com.pulumi.azurenative.storagesync.ServerEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.storagesync;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.storagesync.ServerEndpointArgs;
import com.pulumi.azurenative.storagesync.outputs.ServerEndpointCloudTieringStatusResponse;
import com.pulumi.azurenative.storagesync.outputs.ServerEndpointRecallStatusResponse;
import com.pulumi.azurenative.storagesync.outputs.ServerEndpointSyncStatusResponse;
import com.pulumi.azurenative.storagesync.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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Server Endpoint object.
* Azure REST API version: 2022-06-01. Prior API version in Azure Native 1.x: 2020-03-01.
*
* Other available API versions: 2017-06-05-preview, 2018-04-02, 2018-07-01, 2018-10-01, 2019-10-01, 2022-09-01.
*
* ## Example Usage
* ### ServerEndpoints_Create
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.storagesync.ServerEndpoint;
* import com.pulumi.azurenative.storagesync.ServerEndpointArgs;
* 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 serverEndpoint = new ServerEndpoint("serverEndpoint", ServerEndpointArgs.builder()
* .cloudTiering("off")
* .initialDownloadPolicy("NamespaceThenModifiedFiles")
* .initialUploadPolicy("ServerAuthoritative")
* .localCacheMode("UpdateLocallyCachedFiles")
* .offlineDataTransfer("on")
* .offlineDataTransferShareName("myfileshare")
* .resourceGroupName("SampleResourceGroup_1")
* .serverEndpointName("SampleServerEndpoint_1")
* .serverLocalPath("D:\\SampleServerEndpoint_1")
* .serverResourceId("/subscriptions/52b8da2f-61e0-4a1f-8dde-336911f367fb/resourceGroups/SampleResourceGroup_1/providers/Microsoft.StorageSync/storageSyncServices/SampleStorageSyncService_1/registeredServers/080d4133-bdb5-40a0-96a0-71a6057bfe9a")
* .storageSyncServiceName("SampleStorageSyncService_1")
* .syncGroupName("SampleSyncGroup_1")
* .tierFilesOlderThanDays(0)
* .volumeFreeSpacePercent(100)
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:storagesync:ServerEndpoint SampleServerEndpoint_1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/syncGroups/{syncGroupName}/serverEndpoints/{serverEndpointName}
* ```
*
*/
@ResourceType(type="azure-native:storagesync:ServerEndpoint")
public class ServerEndpoint extends com.pulumi.resources.CustomResource {
/**
* Cloud Tiering.
*
*/
@Export(name="cloudTiering", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> cloudTiering;
/**
* @return Cloud Tiering.
*
*/
public Output> cloudTiering() {
return Codegen.optional(this.cloudTiering);
}
/**
* Cloud tiering status. Only populated if cloud tiering is enabled.
*
*/
@Export(name="cloudTieringStatus", refs={ServerEndpointCloudTieringStatusResponse.class}, tree="[0]")
private Output cloudTieringStatus;
/**
* @return Cloud tiering status. Only populated if cloud tiering is enabled.
*
*/
public Output cloudTieringStatus() {
return this.cloudTieringStatus;
}
/**
* Friendly Name
*
*/
@Export(name="friendlyName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> friendlyName;
/**
* @return Friendly Name
*
*/
public Output> friendlyName() {
return Codegen.optional(this.friendlyName);
}
/**
* Policy for how namespace and files are recalled during FastDr.
*
*/
@Export(name="initialDownloadPolicy", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> initialDownloadPolicy;
/**
* @return Policy for how namespace and files are recalled during FastDr.
*
*/
public Output> initialDownloadPolicy() {
return Codegen.optional(this.initialDownloadPolicy);
}
/**
* Policy for how the initial upload sync session is performed.
*
*/
@Export(name="initialUploadPolicy", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> initialUploadPolicy;
/**
* @return Policy for how the initial upload sync session is performed.
*
*/
public Output> initialUploadPolicy() {
return Codegen.optional(this.initialUploadPolicy);
}
/**
* Resource Last Operation Name
*
*/
@Export(name="lastOperationName", refs={String.class}, tree="[0]")
private Output lastOperationName;
/**
* @return Resource Last Operation Name
*
*/
public Output lastOperationName() {
return this.lastOperationName;
}
/**
* ServerEndpoint lastWorkflowId
*
*/
@Export(name="lastWorkflowId", refs={String.class}, tree="[0]")
private Output lastWorkflowId;
/**
* @return ServerEndpoint lastWorkflowId
*
*/
public Output lastWorkflowId() {
return this.lastWorkflowId;
}
/**
* Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access.
*
*/
@Export(name="localCacheMode", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> localCacheMode;
/**
* @return Policy for enabling follow-the-sun business models: link local cache to cloud behavior to pre-populate before local access.
*
*/
public Output> localCacheMode() {
return Codegen.optional(this.localCacheMode);
}
/**
* 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;
}
/**
* Offline data transfer
*
*/
@Export(name="offlineDataTransfer", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> offlineDataTransfer;
/**
* @return Offline data transfer
*
*/
public Output> offlineDataTransfer() {
return Codegen.optional(this.offlineDataTransfer);
}
/**
* Offline data transfer share name
*
*/
@Export(name="offlineDataTransferShareName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> offlineDataTransferShareName;
/**
* @return Offline data transfer share name
*
*/
public Output> offlineDataTransferShareName() {
return Codegen.optional(this.offlineDataTransferShareName);
}
/**
* Offline data transfer storage account resource ID
*
*/
@Export(name="offlineDataTransferStorageAccountResourceId", refs={String.class}, tree="[0]")
private Output offlineDataTransferStorageAccountResourceId;
/**
* @return Offline data transfer storage account resource ID
*
*/
public Output offlineDataTransferStorageAccountResourceId() {
return this.offlineDataTransferStorageAccountResourceId;
}
/**
* Offline data transfer storage account tenant ID
*
*/
@Export(name="offlineDataTransferStorageAccountTenantId", refs={String.class}, tree="[0]")
private Output offlineDataTransferStorageAccountTenantId;
/**
* @return Offline data transfer storage account tenant ID
*
*/
public Output offlineDataTransferStorageAccountTenantId() {
return this.offlineDataTransferStorageAccountTenantId;
}
/**
* ServerEndpoint Provisioning State
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return ServerEndpoint Provisioning State
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Recall status. Only populated if cloud tiering is enabled.
*
*/
@Export(name="recallStatus", refs={ServerEndpointRecallStatusResponse.class}, tree="[0]")
private Output recallStatus;
/**
* @return Recall status. Only populated if cloud tiering is enabled.
*
*/
public Output recallStatus() {
return this.recallStatus;
}
/**
* Server Local path.
*
*/
@Export(name="serverLocalPath", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> serverLocalPath;
/**
* @return Server Local path.
*
*/
public Output> serverLocalPath() {
return Codegen.optional(this.serverLocalPath);
}
/**
* Server name
*
*/
@Export(name="serverName", refs={String.class}, tree="[0]")
private Output serverName;
/**
* @return Server name
*
*/
public Output serverName() {
return this.serverName;
}
/**
* Server Resource Id.
*
*/
@Export(name="serverResourceId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> serverResourceId;
/**
* @return Server Resource Id.
*
*/
public Output> serverResourceId() {
return Codegen.optional(this.serverResourceId);
}
/**
* Server Endpoint sync status
*
*/
@Export(name="syncStatus", refs={ServerEndpointSyncStatusResponse.class}, tree="[0]")
private Output syncStatus;
/**
* @return Server Endpoint sync status
*
*/
public Output syncStatus() {
return this.syncStatus;
}
/**
* 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;
}
/**
* Tier files older than days.
*
*/
@Export(name="tierFilesOlderThanDays", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> tierFilesOlderThanDays;
/**
* @return Tier files older than days.
*
*/
public Output> tierFilesOlderThanDays() {
return Codegen.optional(this.tierFilesOlderThanDays);
}
/**
* 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;
}
/**
* Level of free space to be maintained by Cloud Tiering if it is enabled.
*
*/
@Export(name="volumeFreeSpacePercent", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> volumeFreeSpacePercent;
/**
* @return Level of free space to be maintained by Cloud Tiering if it is enabled.
*
*/
public Output> volumeFreeSpacePercent() {
return Codegen.optional(this.volumeFreeSpacePercent);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ServerEndpoint(java.lang.String name) {
this(name, ServerEndpointArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ServerEndpoint(java.lang.String name, ServerEndpointArgs 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 ServerEndpoint(java.lang.String name, ServerEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:storagesync:ServerEndpoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ServerEndpoint(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:storagesync:ServerEndpoint", name, null, makeResourceOptions(options, id), false);
}
private static ServerEndpointArgs makeArgs(ServerEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ServerEndpointArgs.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:storagesync/v20170605preview:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20180402:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20180701:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20181001:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20190201:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20190301:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20190601:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20191001:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20200301:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20200901:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20220601:ServerEndpoint").build()),
Output.of(Alias.builder().type("azure-native:storagesync/v20220901:ServerEndpoint").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 ServerEndpoint get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ServerEndpoint(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy