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

com.pulumi.azurenative.storagemover.Agent Maven / Gradle / Ivy

There is a newer version: 2.78.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.storagemover;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.storagemover.AgentArgs;
import com.pulumi.azurenative.storagemover.outputs.AgentPropertiesResponseErrorDetails;
import com.pulumi.azurenative.storagemover.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.Double;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The Agent resource.
 * Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2022-07-01-preview.
 * 
 * Other available API versions: 2023-07-01-preview, 2023-10-01, 2024-07-01.
 * 
 * ## Example Usage
 * ### Agents_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.storagemover.Agent;
 * import com.pulumi.azurenative.storagemover.AgentArgs;
 * 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 agent = new Agent("agent", AgentArgs.builder()
 *             .agentName("examples-agentName")
 *             .arcResourceId("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName")
 *             .arcVmUuid("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9")
 *             .description("Example Agent Description")
 *             .resourceGroupName("examples-rg")
 *             .storageMoverName("examples-storageMoverName")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:storagemover:Agent examples-agentName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName} * ``` * */ @ResourceType(type="azure-native:storagemover:Agent") public class Agent extends com.pulumi.resources.CustomResource { /** * The Agent status. * */ @Export(name="agentStatus", refs={String.class}, tree="[0]") private Output agentStatus; /** * @return The Agent status. * */ public Output agentStatus() { return this.agentStatus; } /** * The Agent version. * */ @Export(name="agentVersion", refs={String.class}, tree="[0]") private Output agentVersion; /** * @return The Agent version. * */ public Output agentVersion() { return this.agentVersion; } /** * The fully qualified resource ID of the Hybrid Compute resource for the Agent. * */ @Export(name="arcResourceId", refs={String.class}, tree="[0]") private Output arcResourceId; /** * @return The fully qualified resource ID of the Hybrid Compute resource for the Agent. * */ public Output arcResourceId() { return this.arcResourceId; } /** * The VM UUID of the Hybrid Compute resource for the Agent. * */ @Export(name="arcVmUuid", refs={String.class}, tree="[0]") private Output arcVmUuid; /** * @return The VM UUID of the Hybrid Compute resource for the Agent. * */ public Output arcVmUuid() { return this.arcVmUuid; } /** * A description for the Agent. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return A description for the Agent. * */ public Output> description() { return Codegen.optional(this.description); } @Export(name="errorDetails", refs={AgentPropertiesResponseErrorDetails.class}, tree="[0]") private Output errorDetails; public Output errorDetails() { return this.errorDetails; } /** * The last updated time of the Agent status. * */ @Export(name="lastStatusUpdate", refs={String.class}, tree="[0]") private Output lastStatusUpdate; /** * @return The last updated time of the Agent status. * */ public Output lastStatusUpdate() { return this.lastStatusUpdate; } /** * Local IP address reported by the Agent. * */ @Export(name="localIPAddress", refs={String.class}, tree="[0]") private Output localIPAddress; /** * @return Local IP address reported by the Agent. * */ public Output localIPAddress() { return this.localIPAddress; } /** * Available memory reported by the Agent, in MB. * */ @Export(name="memoryInMB", refs={Double.class}, tree="[0]") private Output memoryInMB; /** * @return Available memory reported by the Agent, in MB. * */ public Output memoryInMB() { return this.memoryInMB; } /** * 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; } /** * Available compute cores reported by the Agent. * */ @Export(name="numberOfCores", refs={Double.class}, tree="[0]") private Output numberOfCores; /** * @return Available compute cores reported by the Agent. * */ public Output numberOfCores() { return this.numberOfCores; } /** * The provisioning state of this resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of this resource. * */ public Output provisioningState() { return this.provisioningState; } /** * Resource system metadata. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Resource system metadata. * */ 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; } /** * Uptime of the Agent in seconds. * */ @Export(name="uptimeInSeconds", refs={Double.class}, tree="[0]") private Output uptimeInSeconds; /** * @return Uptime of the Agent in seconds. * */ public Output uptimeInSeconds() { return this.uptimeInSeconds; } /** * * @param name The _unique_ name of the resulting resource. */ public Agent(java.lang.String name) { this(name, AgentArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Agent(java.lang.String name, AgentArgs 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 Agent(java.lang.String name, AgentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:storagemover:Agent", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Agent(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:storagemover:Agent", name, null, makeResourceOptions(options, id), false); } private static AgentArgs makeArgs(AgentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? AgentArgs.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:storagemover/v20220701preview:Agent").build()), Output.of(Alias.builder().type("azure-native:storagemover/v20230301:Agent").build()), Output.of(Alias.builder().type("azure-native:storagemover/v20230701preview:Agent").build()), Output.of(Alias.builder().type("azure-native:storagemover/v20231001:Agent").build()), Output.of(Alias.builder().type("azure-native:storagemover/v20240701:Agent").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 Agent get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Agent(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy