All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.azurestackhci.UpdateSummary Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.azurestackhci;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.azurestackhci.UpdateSummaryArgs;
import com.pulumi.azurenative.azurestackhci.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Get the update summaries for the cluster
 * Azure REST API version: 2023-03-01.
 * 
 * Other available API versions: 2022-12-15-preview, 2023-06-01, 2023-08-01, 2023-08-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-04-01, 2024-09-01-preview.
 * 
 * ## Example Usage
 * ### Put Update summaries under cluster resource
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.azurestackhci.UpdateSummary;
 * import com.pulumi.azurenative.azurestackhci.UpdateSummaryArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var updateSummary = new UpdateSummary("updateSummary", UpdateSummaryArgs.builder()
 *             .clusterName("testcluster")
 *             .currentVersion("4.2203.2.32")
 *             .hardwareModel("PowerEdge R730xd")
 *             .lastChecked("2022-04-07T18:04:07Z")
 *             .lastUpdated("2022-04-06T14:08:18.254Z")
 *             .oemFamily("DellEMC")
 *             .resourceGroupName("testrg")
 *             .state("AppliedSuccessfully")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:azurestackhci:UpdateSummary default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/updateSummaries/default * ``` * */ @ResourceType(type="azure-native:azurestackhci:UpdateSummary") public class UpdateSummary extends com.pulumi.resources.CustomResource { /** * Current Solution Bundle version of the stamp. * */ @Export(name="currentVersion", refs={String.class}, tree="[0]") private Output currentVersion; /** * @return Current Solution Bundle version of the stamp. * */ public Output> currentVersion() { return Codegen.optional(this.currentVersion); } /** * Name of the hardware model. * */ @Export(name="hardwareModel", refs={String.class}, tree="[0]") private Output hardwareModel; /** * @return Name of the hardware model. * */ public Output> hardwareModel() { return Codegen.optional(this.hardwareModel); } /** * Last time the package-specific checks were run. * */ @Export(name="healthCheckDate", refs={String.class}, tree="[0]") private Output healthCheckDate; /** * @return Last time the package-specific checks were run. * */ public Output> healthCheckDate() { return Codegen.optional(this.healthCheckDate); } /** * Last time the update service successfully checked for updates * */ @Export(name="lastChecked", refs={String.class}, tree="[0]") private Output lastChecked; /** * @return Last time the update service successfully checked for updates * */ public Output> lastChecked() { return Codegen.optional(this.lastChecked); } /** * Last time an update installation completed successfully. * */ @Export(name="lastUpdated", refs={String.class}, tree="[0]") private Output lastUpdated; /** * @return Last time an update installation completed successfully. * */ public Output> lastUpdated() { return Codegen.optional(this.lastUpdated); } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output> location() { return Codegen.optional(this.location); } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * OEM family name. * */ @Export(name="oemFamily", refs={String.class}, tree="[0]") private Output oemFamily; /** * @return OEM family name. * */ public Output> oemFamily() { return Codegen.optional(this.oemFamily); } /** * Provisioning state of the UpdateSummaries proxy resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the UpdateSummaries proxy resource. * */ public Output provisioningState() { return this.provisioningState; } /** * Overall update state of the stamp. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return Overall update state of the stamp. * */ public Output> state() { return Codegen.optional(this.state); } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public UpdateSummary(java.lang.String name) { this(name, UpdateSummaryArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public UpdateSummary(java.lang.String name, UpdateSummaryArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public UpdateSummary(java.lang.String name, UpdateSummaryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azurestackhci:UpdateSummary", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private UpdateSummary(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azurestackhci:UpdateSummary", name, null, makeResourceOptions(options, id), false); } private static UpdateSummaryArgs makeArgs(UpdateSummaryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? UpdateSummaryArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:azurestackhci/v20221201:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20221215preview:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230201:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230301:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230601:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230801:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230801preview:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20231101preview:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240101:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240215preview:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240401:UpdateSummary").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240901preview:UpdateSummary").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static UpdateSummary get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new UpdateSummary(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy