From ac82c05593bcabe28667d5ea78716984db369dce Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Thu, 28 Aug 2025 05:13:03 +0000 Subject: [PATCH 1/2] Configurations: 'specification/storagemover/StorageMover.Management/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: stable, and CommitSHA: '17891d99ece54475e43fb8665727d044e8fb2f54' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5271391 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- ...ure.ResourceManager.StorageMover.net8.0.cs | 116 ++++++- ...urceManager.StorageMover.netstandard2.0.cs | 116 ++++++- .../Generated/ArmStorageMoverModelFactory.cs | 105 ++++-- ...ckableStorageMoverResourceGroupResource.cs | 4 +- ...ockableStorageMoverSubscriptionResource.cs | 4 +- .../Extensions/StorageMoverExtensions.cs | 8 +- .../src/Generated/JobDefinitionCollection.cs | 20 +- .../JobDefinitionData.Serialization.cs | 32 ++ .../src/Generated/JobDefinitionData.cs | 25 +- .../src/Generated/JobDefinitionResource.cs | 24 +- .../src/Generated/JobRunCollection.cs | 16 +- .../src/Generated/JobRunResource.cs | 4 +- ...nnectorEndpointProperties.Serialization.cs | 148 ++++++++ ...reMultiCloudConnectorEndpointProperties.cs | 55 +++ ...rEndpointUpdateProperties.Serialization.cs | 116 +++++++ ...iCloudConnectorEndpointUpdateProperties.cs | 31 ++ ...AzureResourceManagerStorageMoverContext.cs | 12 + ...leShareEndpointProperties.Serialization.cs | 148 ++++++++ ...reStorageNfsFileShareEndpointProperties.cs | 55 +++ ...eEndpointUpdateProperties.Serialization.cs | 116 +++++++ ...ageNfsFileShareEndpointUpdateProperties.cs | 31 ++ .../EndpointBaseProperties.Serialization.cs | 2 + .../Models/EndpointBaseProperties.cs | 2 +- ...pointBaseUpdateProperties.Serialization.cs | 2 + .../Models/EndpointBaseUpdateProperties.cs | 2 +- .../src/Generated/Models/EndpointType.cs | 6 + ...PropertiesSourceTargetMap.Serialization.cs | 143 ++++++++ .../JobDefinitionPropertiesSourceTargetMap.cs | 66 ++++ .../src/Generated/Models/JobType.cs | 51 +++ .../Models/SourceEndpoint.Serialization.cs | 133 ++++++++ .../src/Generated/Models/SourceEndpoint.cs | 65 ++++ .../SourceEndpointProperties.Serialization.cs | 159 +++++++++ .../Models/SourceEndpointProperties.cs | 74 ++++ .../Models/SourceTargetMap.Serialization.cs | 134 ++++++++ .../src/Generated/Models/SourceTargetMap.cs | 93 +++++ ...StorageMoverEndpointPatch.Serialization.cs | 19 +- .../Models/StorageMoverEndpointPatch.cs | 11 +- .../Models/TargetEndpoint.Serialization.cs | 133 ++++++++ .../src/Generated/Models/TargetEndpoint.cs | 65 ++++ .../TargetEndpointProperties.Serialization.cs | 170 ++++++++++ .../Models/TargetEndpointProperties.cs | 78 +++++ .../RestOperations/AgentsRestOperations.cs | 2 +- .../RestOperations/EndpointsRestOperations.cs | 2 +- .../JobDefinitionsRestOperations.cs | 2 +- .../RestOperations/JobRunsRestOperations.cs | 2 +- .../RestOperations/ProjectsRestOperations.cs | 2 +- .../StorageMoversRestOperations.cs | 2 +- .../Generated/StorageMoverAgentCollection.cs | 20 +- .../Generated/StorageMoverAgentResource.cs | 12 +- .../src/Generated/StorageMoverCollection.cs | 20 +- .../StorageMoverEndpointCollection.cs | 20 +- .../StorageMoverEndpointData.Serialization.cs | 16 + .../src/Generated/StorageMoverEndpointData.cs | 12 +- .../Generated/StorageMoverEndpointResource.cs | 12 +- .../StorageMoverProjectCollection.cs | 20 +- .../Generated/StorageMoverProjectResource.cs | 16 +- .../src/Generated/StorageMoverResource.cs | 36 +- .../Samples/Sample_JobDefinitionCollection.cs | 47 ++- .../Samples/Sample_JobDefinitionResource.cs | 10 +- .../Samples/Sample_JobRunCollection.cs | 8 +- .../Samples/Sample_JobRunResource.cs | 2 +- .../Sample_StorageMoverAgentCollection.cs | 22 +- .../Sample_StorageMoverAgentResource.cs | 8 +- .../Samples/Sample_StorageMoverCollection.cs | 10 +- .../Sample_StorageMoverEndpointCollection.cs | 318 +++++++++++++++++- .../Sample_StorageMoverEndpointResource.cs | 144 +++++++- .../Sample_StorageMoverProjectCollection.cs | 10 +- .../Sample_StorageMoverProjectResource.cs | 6 +- .../Samples/Sample_StorageMoverResource.cs | 6 +- .../Sample_SubscriptionResourceExtensions.cs | 2 +- .../tsp-location.yaml | 4 +- 71 files changed, 3138 insertions(+), 249 deletions(-) create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobType.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.Serialization.cs create mode 100644 sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.cs diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs index db453bcedd32..5f66f070ef8f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs @@ -30,6 +30,7 @@ public JobDefinitionData(Azure.ResourceManager.StorageMover.Models.StorageMoverC public Azure.Core.ResourceIdentifier AgentResourceId { get { throw null; } } public Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode CopyMode { get { throw null; } set { } } public string Description { get { throw null; } set { } } + public Azure.ResourceManager.StorageMover.Models.JobType? JobType { get { throw null; } set { } } public string LatestJobRunName { get { throw null; } } public Azure.Core.ResourceIdentifier LatestJobRunResourceId { get { throw null; } } public Azure.ResourceManager.StorageMover.Models.JobRunStatus? LatestJobRunStatus { get { throw null; } } @@ -37,6 +38,7 @@ public JobDefinitionData(Azure.ResourceManager.StorageMover.Models.StorageMoverC public string SourceName { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } } public string SourceSubpath { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList SourceTargetMapValue { get { throw null; } } public string TargetName { get { throw null; } set { } } public Azure.Core.ResourceIdentifier TargetResourceId { get { throw null; } } public string TargetSubpath { get { throw null; } set { } } @@ -250,6 +252,7 @@ protected StorageMoverEndpointCollection() { } public partial class StorageMoverEndpointData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public StorageMoverEndpointData(Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties) { } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.StorageMover.StorageMoverEndpointData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -407,22 +410,25 @@ namespace Azure.ResourceManager.StorageMover.Models { public static partial class ArmStorageMoverModelFactory { + public static Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointProperties AzureMultiCloudConnectorEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier multiCloudConnectorId = null, Azure.Core.ResourceIdentifier awsS3BucketId = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.AzureStorageBlobContainerEndpointProperties AzureStorageBlobContainerEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string storageAccountResourceId = null, string blobContainerName = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties AzureStorageNfsFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.AzureStorageSmbFileShareEndpointProperties AzureStorageSmbFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties EndpointBaseProperties(string endpointType = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } - public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.JobType? jobType = default(Azure.ResourceManager.StorageMover.Models.JobType?), Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.Collections.Generic.IEnumerable sourceTargetMapValue = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.JobRunData JobRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? status = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), Azure.ResourceManager.StorageMover.Models.JobRunScanStatus? scanStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunScanStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.DateTimeOffset? executionStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? executionEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), long? itemsScanned = default(long?), long? itemsExcluded = default(long?), long? itemsUnsupported = default(long?), long? itemsNoTransferNeeded = default(long?), long? itemsFailed = default(long?), long? itemsTransferred = default(long?), long? bytesScanned = default(long?), long? bytesExcluded = default(long?), long? bytesUnsupported = default(long?), long? bytesNoTransferNeeded = default(long?), long? bytesFailed = default(long?), long? bytesTransferred = default(long?), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, System.BinaryData sourceProperties = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, System.BinaryData targetProperties = null, System.BinaryData jobDefinitionProperties = null, Azure.ResourceManager.StorageMover.Models.JobRunError error = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunError JobRunError(string code = null, string message = null, string target = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunResourceId JobRunResourceId(Azure.Core.ResourceIdentifier jobRunResourceIdValue = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.NfsMountEndpointProperties NfsMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, Azure.ResourceManager.StorageMover.Models.NfsVersion? nfsVersion = default(Azure.ResourceManager.StorageMover.Models.NfsVersion?), string export = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.SmbMountEndpointProperties SmbMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, string shareName = null, Azure.ResourceManager.StorageMover.Models.AzureKeyVaultSmbCredentials credentials = null) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string agentVersion, string arcResourceId, string arcVmUuid, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus, System.DateTimeOffset? lastStatusUpdate, string localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties SourceEndpointProperties(string name = null, Azure.Core.ResourceIdentifier sourceEndpointResourceId = null, Azure.Core.ResourceIdentifier awsS3BucketId = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.SourceTargetMap SourceTargetMap(Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties sourceEndpointProperties = null, Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties targetEndpointProperties = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string agentVersion = null, string arcResourceId = null, string arcVmUuid = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus = default(Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), string localIPAddress = null, long? memoryInMB = default(long?), long? numberOfCores = default(long?), long? uptimeInSeconds = default(long?), string timeZone = null, System.Collections.Generic.IEnumerable uploadLimitScheduleWeeklyRecurrences = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertiesErrorDetails(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverData StorageMoverData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } - public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null) { throw null; } + public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverProjectData StorageMoverProjectData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties TargetEndpointProperties(string name = null, Azure.Core.ResourceIdentifier targetEndpointResourceId = null, Azure.Core.ResourceIdentifier azureStorageAccountResourceId = null, string azureStorageBlobContainerName = null) { throw null; } } public partial class AzureKeyVaultSmbCredentials : Azure.ResourceManager.StorageMover.Models.StorageMoverCredentials, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -436,6 +442,28 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AzureMultiCloudConnectorEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureMultiCloudConnectorEndpointProperties(Azure.Core.ResourceIdentifier multiCloudConnectorId, Azure.Core.ResourceIdentifier awsS3BucketId) { } + public Azure.Core.ResourceIdentifier AwsS3BucketId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier MultiCloudConnectorId { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AzureMultiCloudConnectorEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureMultiCloudConnectorEndpointUpdateProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class AzureStorageBlobContainerEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AzureStorageBlobContainerEndpointProperties(string storageAccountResourceId, string blobContainerName) { } @@ -458,6 +486,28 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AzureStorageNfsFileShareEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureStorageNfsFileShareEndpointProperties(Azure.Core.ResourceIdentifier storageAccountResourceId, string fileShareName) { } + public string FileShareName { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier StorageAccountResourceId { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AzureStorageNfsFileShareEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureStorageNfsFileShareEndpointUpdateProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class AzureStorageSmbFileShareEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AzureStorageSmbFileShareEndpointProperties(Azure.Core.ResourceIdentifier storageAccountResourceId, string fileShareName) { } @@ -584,6 +634,24 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.StorageMover.Models.JobRunStatus left, Azure.ResourceManager.StorageMover.Models.JobRunStatus right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct JobType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JobType(string value) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.JobType CloudToCloud { get { throw null; } } + public static Azure.ResourceManager.StorageMover.Models.JobType OnPremToCloud { get { throw null; } } + public bool Equals(Azure.ResourceManager.StorageMover.Models.JobType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.StorageMover.Models.JobType left, Azure.ResourceManager.StorageMover.Models.JobType right) { throw null; } + public static implicit operator Azure.ResourceManager.StorageMover.Models.JobType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.StorageMover.Models.JobType left, Azure.ResourceManager.StorageMover.Models.JobType right) { throw null; } + public override string ToString() { throw null; } + } public partial class NfsMountEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NfsMountEndpointProperties(string host, string export) { } @@ -712,6 +780,31 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SourceEndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SourceEndpointProperties() { } + public Azure.Core.ResourceIdentifier AwsS3BucketId { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Core.ResourceIdentifier SourceEndpointResourceId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SourceTargetMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SourceTargetMap() { } + public Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties SourceEndpointProperties { get { throw null; } } + public Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties TargetEndpointProperties { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceTargetMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceTargetMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class StorageMoverAgentPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public StorageMoverAgentPatch() { } @@ -792,6 +885,7 @@ public StorageMoverEndpointPatch() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] public string EndpointBaseUpdateDescription { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties Properties { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.StorageMover.Models.StorageMoverEndpointPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -843,6 +937,20 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState left, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class TargetEndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TargetEndpointProperties() { } + public Azure.Core.ResourceIdentifier AzureStorageAccountResourceId { get { throw null; } } + public string AzureStorageBlobContainerName { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Core.ResourceIdentifier TargetEndpointResourceId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class UploadLimitWeeklyRecurrence : Azure.ResourceManager.StorageMover.Models.ScheduleWeeklyRecurrence, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public UploadLimitWeeklyRecurrence(Azure.ResourceManager.StorageMover.Models.ScheduleTime startTime, Azure.ResourceManager.StorageMover.Models.ScheduleTime endTime, System.Collections.Generic.IEnumerable days, int limitInMbps) : base (default(Azure.ResourceManager.StorageMover.Models.ScheduleTime), default(Azure.ResourceManager.StorageMover.Models.ScheduleTime), default(System.Collections.Generic.IEnumerable)) { } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs index db453bcedd32..5f66f070ef8f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs @@ -30,6 +30,7 @@ public JobDefinitionData(Azure.ResourceManager.StorageMover.Models.StorageMoverC public Azure.Core.ResourceIdentifier AgentResourceId { get { throw null; } } public Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode CopyMode { get { throw null; } set { } } public string Description { get { throw null; } set { } } + public Azure.ResourceManager.StorageMover.Models.JobType? JobType { get { throw null; } set { } } public string LatestJobRunName { get { throw null; } } public Azure.Core.ResourceIdentifier LatestJobRunResourceId { get { throw null; } } public Azure.ResourceManager.StorageMover.Models.JobRunStatus? LatestJobRunStatus { get { throw null; } } @@ -37,6 +38,7 @@ public JobDefinitionData(Azure.ResourceManager.StorageMover.Models.StorageMoverC public string SourceName { get { throw null; } set { } } public Azure.Core.ResourceIdentifier SourceResourceId { get { throw null; } } public string SourceSubpath { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList SourceTargetMapValue { get { throw null; } } public string TargetName { get { throw null; } set { } } public Azure.Core.ResourceIdentifier TargetResourceId { get { throw null; } } public string TargetSubpath { get { throw null; } set { } } @@ -250,6 +252,7 @@ protected StorageMoverEndpointCollection() { } public partial class StorageMoverEndpointData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public StorageMoverEndpointData(Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties) { } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.StorageMover.StorageMoverEndpointData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -407,22 +410,25 @@ namespace Azure.ResourceManager.StorageMover.Models { public static partial class ArmStorageMoverModelFactory { + public static Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointProperties AzureMultiCloudConnectorEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier multiCloudConnectorId = null, Azure.Core.ResourceIdentifier awsS3BucketId = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.AzureStorageBlobContainerEndpointProperties AzureStorageBlobContainerEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string storageAccountResourceId = null, string blobContainerName = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties AzureStorageNfsFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.AzureStorageSmbFileShareEndpointProperties AzureStorageSmbFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties EndpointBaseProperties(string endpointType = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } - public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.JobType? jobType = default(Azure.ResourceManager.StorageMover.Models.JobType?), Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.Collections.Generic.IEnumerable sourceTargetMapValue = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.JobRunData JobRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? status = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), Azure.ResourceManager.StorageMover.Models.JobRunScanStatus? scanStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunScanStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.DateTimeOffset? executionStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? executionEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), long? itemsScanned = default(long?), long? itemsExcluded = default(long?), long? itemsUnsupported = default(long?), long? itemsNoTransferNeeded = default(long?), long? itemsFailed = default(long?), long? itemsTransferred = default(long?), long? bytesScanned = default(long?), long? bytesExcluded = default(long?), long? bytesUnsupported = default(long?), long? bytesNoTransferNeeded = default(long?), long? bytesFailed = default(long?), long? bytesTransferred = default(long?), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, System.BinaryData sourceProperties = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, System.BinaryData targetProperties = null, System.BinaryData jobDefinitionProperties = null, Azure.ResourceManager.StorageMover.Models.JobRunError error = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunError JobRunError(string code = null, string message = null, string target = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunResourceId JobRunResourceId(Azure.Core.ResourceIdentifier jobRunResourceIdValue = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.NfsMountEndpointProperties NfsMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, Azure.ResourceManager.StorageMover.Models.NfsVersion? nfsVersion = default(Azure.ResourceManager.StorageMover.Models.NfsVersion?), string export = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.SmbMountEndpointProperties SmbMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, string shareName = null, Azure.ResourceManager.StorageMover.Models.AzureKeyVaultSmbCredentials credentials = null) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string agentVersion, string arcResourceId, string arcVmUuid, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus, System.DateTimeOffset? lastStatusUpdate, string localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties SourceEndpointProperties(string name = null, Azure.Core.ResourceIdentifier sourceEndpointResourceId = null, Azure.Core.ResourceIdentifier awsS3BucketId = null) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.SourceTargetMap SourceTargetMap(Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties sourceEndpointProperties = null, Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties targetEndpointProperties = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string agentVersion = null, string arcResourceId = null, string arcVmUuid = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus = default(Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), string localIPAddress = null, long? memoryInMB = default(long?), long? numberOfCores = default(long?), long? uptimeInSeconds = default(long?), string timeZone = null, System.Collections.Generic.IEnumerable uploadLimitScheduleWeeklyRecurrences = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertiesErrorDetails(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverData StorageMoverData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } - public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null) { throw null; } + public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverProjectData StorageMoverProjectData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties TargetEndpointProperties(string name = null, Azure.Core.ResourceIdentifier targetEndpointResourceId = null, Azure.Core.ResourceIdentifier azureStorageAccountResourceId = null, string azureStorageBlobContainerName = null) { throw null; } } public partial class AzureKeyVaultSmbCredentials : Azure.ResourceManager.StorageMover.Models.StorageMoverCredentials, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -436,6 +442,28 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AzureMultiCloudConnectorEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureMultiCloudConnectorEndpointProperties(Azure.Core.ResourceIdentifier multiCloudConnectorId, Azure.Core.ResourceIdentifier awsS3BucketId) { } + public Azure.Core.ResourceIdentifier AwsS3BucketId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier MultiCloudConnectorId { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AzureMultiCloudConnectorEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureMultiCloudConnectorEndpointUpdateProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureMultiCloudConnectorEndpointUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class AzureStorageBlobContainerEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AzureStorageBlobContainerEndpointProperties(string storageAccountResourceId, string blobContainerName) { } @@ -458,6 +486,28 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class AzureStorageNfsFileShareEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureStorageNfsFileShareEndpointProperties(Azure.Core.ResourceIdentifier storageAccountResourceId, string fileShareName) { } + public string FileShareName { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier StorageAccountResourceId { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AzureStorageNfsFileShareEndpointUpdateProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureStorageNfsFileShareEndpointUpdateProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class AzureStorageSmbFileShareEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AzureStorageSmbFileShareEndpointProperties(Azure.Core.ResourceIdentifier storageAccountResourceId, string fileShareName) { } @@ -584,6 +634,24 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.StorageMover.Models.JobRunStatus left, Azure.ResourceManager.StorageMover.Models.JobRunStatus right) { throw null; } public override string ToString() { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct JobType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JobType(string value) { throw null; } + public static Azure.ResourceManager.StorageMover.Models.JobType CloudToCloud { get { throw null; } } + public static Azure.ResourceManager.StorageMover.Models.JobType OnPremToCloud { get { throw null; } } + public bool Equals(Azure.ResourceManager.StorageMover.Models.JobType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.StorageMover.Models.JobType left, Azure.ResourceManager.StorageMover.Models.JobType right) { throw null; } + public static implicit operator Azure.ResourceManager.StorageMover.Models.JobType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.StorageMover.Models.JobType left, Azure.ResourceManager.StorageMover.Models.JobType right) { throw null; } + public override string ToString() { throw null; } + } public partial class NfsMountEndpointProperties : Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public NfsMountEndpointProperties(string host, string export) { } @@ -712,6 +780,31 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SourceEndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SourceEndpointProperties() { } + public Azure.Core.ResourceIdentifier AwsS3BucketId { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Core.ResourceIdentifier SourceEndpointResourceId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SourceTargetMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SourceTargetMap() { } + public Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties SourceEndpointProperties { get { throw null; } } + public Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties TargetEndpointProperties { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceTargetMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.SourceTargetMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class StorageMoverAgentPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public StorageMoverAgentPatch() { } @@ -792,6 +885,7 @@ public StorageMoverEndpointPatch() { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("This method is obsolete and will be removed in a future release", false)] public string EndpointBaseUpdateDescription { get { throw null; } set { } } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.ResourceManager.StorageMover.Models.EndpointBaseUpdateProperties Properties { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.StorageMover.Models.StorageMoverEndpointPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -843,6 +937,20 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState left, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState right) { throw null; } public override string ToString() { throw null; } } + public partial class TargetEndpointProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal TargetEndpointProperties() { } + public Azure.Core.ResourceIdentifier AzureStorageAccountResourceId { get { throw null; } } + public string AzureStorageBlobContainerName { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Core.ResourceIdentifier TargetEndpointResourceId { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class UploadLimitWeeklyRecurrence : Azure.ResourceManager.StorageMover.Models.ScheduleWeeklyRecurrence, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public UploadLimitWeeklyRecurrence(Azure.ResourceManager.StorageMover.Models.ScheduleTime startTime, Azure.ResourceManager.StorageMover.Models.ScheduleTime endTime, System.Collections.Generic.IEnumerable days, int limitInMbps) : base (default(Azure.ResourceManager.StorageMover.Models.ScheduleTime), default(Azure.ResourceManager.StorageMover.Models.ScheduleTime), default(System.Collections.Generic.IEnumerable)) { } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs index 3dc8f7b61d78..3d290be31209 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -106,10 +105,11 @@ public static StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertie /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// + /// The managed service identity of the resource. This property is only available on the latest version. /// A new instance for mocking. - public static StorageMoverEndpointData StorageMoverEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointBaseProperties properties = null) + public static StorageMoverEndpointData StorageMoverEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointBaseProperties properties = null, ManagedServiceIdentity identity = null) { return new StorageMoverEndpointData( id, @@ -117,6 +117,7 @@ public static StorageMoverEndpointData StorageMoverEndpointData(ResourceIdentifi resourceType, systemData, properties, + identity, serializedAdditionalRawData: null); } @@ -202,6 +203,40 @@ public static SmbMountEndpointProperties SmbMountEndpointProperties(string descr credentials); } + /// Initializes a new instance of . + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The Azure Resource ID of the storage account. + /// The name of the Azure Storage NFS file share. + /// A new instance for mocking. + public static AzureStorageNfsFileShareEndpointProperties AzureStorageNfsFileShareEndpointProperties(string description = null, StorageMoverProvisioningState? provisioningState = null, ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) + { + return new AzureStorageNfsFileShareEndpointProperties( + EndpointType.AzureStorageNfsFileShare, + description, + provisioningState, + serializedAdditionalRawData: null, + storageAccountResourceId, + fileShareName); + } + + /// Initializes a new instance of . + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// The Azure Resource ID of the MultiCloud Connector resource. + /// The AWS S3 bucket ARM resource Id. + /// A new instance for mocking. + public static AzureMultiCloudConnectorEndpointProperties AzureMultiCloudConnectorEndpointProperties(string description = null, StorageMoverProvisioningState? provisioningState = null, ResourceIdentifier multiCloudConnectorId = null, ResourceIdentifier awsS3BucketId = null) + { + return new AzureMultiCloudConnectorEndpointProperties( + EndpointType.AzureMultiCloudConnector, + description, + provisioningState, + serializedAdditionalRawData: null, + multiCloudConnectorId, + awsS3BucketId); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -227,7 +262,8 @@ public static StorageMoverProjectData StorageMoverProjectData(ResourceIdentifier /// The name. /// The resourceType. /// The systemData. - /// A description for the Job Definition. + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud. + /// The type of the Job. /// Strategy to use for copy. /// The name of the source Endpoint. /// Fully qualified resource ID of the source Endpoint. @@ -240,16 +276,20 @@ public static StorageMoverProjectData StorageMoverProjectData(ResourceIdentifier /// The current status of the Job Run in a non-terminal state, if exists. /// Name of the Agent to assign for new Job Runs of this Job Definition. /// Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. + /// The list of cloud endpoints to migrate. /// The provisioning state of this resource. /// A new instance for mocking. - public static JobDefinitionData JobDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, StorageMoverCopyMode copyMode = default, string sourceName = null, ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, ResourceIdentifier latestJobRunResourceId = null, JobRunStatus? latestJobRunStatus = null, string agentName = null, ResourceIdentifier agentResourceId = null, StorageMoverProvisioningState? provisioningState = null) + public static JobDefinitionData JobDefinitionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, JobType? jobType = null, StorageMoverCopyMode copyMode = default, string sourceName = null, ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, ResourceIdentifier latestJobRunResourceId = null, JobRunStatus? latestJobRunStatus = null, string agentName = null, ResourceIdentifier agentResourceId = null, IEnumerable sourceTargetMapValue = null, StorageMoverProvisioningState? provisioningState = null) { + sourceTargetMapValue ??= new List(); + return new JobDefinitionData( id, name, resourceType, systemData, description, + jobType, copyMode, sourceName, sourceResourceId, @@ -262,10 +302,41 @@ public static JobDefinitionData JobDefinitionData(ResourceIdentifier id = null, latestJobRunStatus, agentName, agentResourceId, + sourceTargetMapValue != null ? new JobDefinitionPropertiesSourceTargetMap(sourceTargetMapValue?.ToList(), serializedAdditionalRawData: null) : null, provisioningState, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// + /// + /// A new instance for mocking. + public static SourceTargetMap SourceTargetMap(SourceEndpointProperties sourceEndpointProperties = null, TargetEndpointProperties targetEndpointProperties = null) + { + return new SourceTargetMap(sourceEndpointProperties != null ? new SourceEndpoint(sourceEndpointProperties, serializedAdditionalRawData: null) : null, targetEndpointProperties != null ? new TargetEndpoint(targetEndpointProperties, serializedAdditionalRawData: null) : null, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The name of the cloud source endpoint to migrate. + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + /// A new instance for mocking. + public static SourceEndpointProperties SourceEndpointProperties(string name = null, ResourceIdentifier sourceEndpointResourceId = null, ResourceIdentifier awsS3BucketId = null) + { + return new SourceEndpointProperties(name, sourceEndpointResourceId, awsS3BucketId, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The name of the cloud target endpoint to migrate. + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + /// The fully qualified ARM resource ID of the Azure Storage account. + /// The name of the Azure Storage blob container. + /// A new instance for mocking. + public static TargetEndpointProperties TargetEndpointProperties(string name = null, ResourceIdentifier targetEndpointResourceId = null, ResourceIdentifier azureStorageAccountResourceId = null, string azureStorageBlobContainerName = null) + { + return new TargetEndpointProperties(name, targetEndpointResourceId, azureStorageAccountResourceId, azureStorageBlobContainerName, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Fully qualified resource id of the Job Run. /// A new instance for mocking. @@ -355,29 +426,5 @@ public static JobRunError JobRunError(string code = null, string message = null, { return new JobRunError(code, message, target, serializedAdditionalRawData: null); } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// A description for the Agent. - /// The Agent version. - /// The fully qualified resource ID of the Hybrid Compute resource for the Agent. - /// The VM UUID of the Hybrid Compute resource for the Agent. - /// The Agent status. - /// The last updated time of the Agent status. - /// Local IP address reported by the Agent. - /// Available memory reported by the Agent, in MB. - /// Available compute cores reported by the Agent. - /// Uptime of the Agent in seconds. - /// - /// The provisioning state of this resource. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static StorageMoverAgentData StorageMoverAgentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string agentVersion, string arcResourceId, string arcVmUuid, StorageMoverAgentStatus? agentStatus, DateTimeOffset? lastStatusUpdate, string localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, StorageMoverAgentPropertiesErrorDetails errorDetails, StorageMoverProvisioningState? provisioningState) - { - return StorageMoverAgentData(id: id, name: name, resourceType: resourceType, systemData: systemData, description: description, agentVersion: agentVersion, arcResourceId: arcResourceId, arcVmUuid: arcVmUuid, agentStatus: agentStatus, lastStatusUpdate: lastStatusUpdate, localIPAddress: localIPAddress, memoryInMB: memoryInMB, numberOfCores: numberOfCores, uptimeInSeconds: uptimeInSeconds, timeZone: default, uploadLimitScheduleWeeklyRecurrences: default, errorDetails: errorDetails, provisioningState: provisioningState); - } } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverResourceGroupResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverResourceGroupResource.cs index cbd645b12c77..cec73998e7f8 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverResourceGroupResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual StorageMoverCollection GetStorageMovers() /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetStorageMoverAsync(s /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverSubscriptionResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverSubscriptionResource.cs index b93afa835235..725d425d4f2d 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverSubscriptionResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/MockableStorageMoverSubscriptionResource.cs @@ -52,7 +52,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -82,7 +82,7 @@ public virtual AsyncPageable GetStorageMoversAsync(Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/StorageMoverExtensions.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/StorageMoverExtensions.cs index 8b7c542623bb..bedc6d042420 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/StorageMoverExtensions.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Extensions/StorageMoverExtensions.cs @@ -176,7 +176,7 @@ public static StorageMoverCollection GetStorageMovers(this ResourceGroupResource /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -214,7 +214,7 @@ public static async Task> GetStorageMoverAsync(th /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -252,7 +252,7 @@ public static Response GetStorageMover(this ResourceGroupR /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -288,7 +288,7 @@ public static AsyncPageable GetStorageMoversAsync(this Sub /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs index 8a37d01d3041..76de6c5d81ff 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string jobDe /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string jobDefinitionName, Can /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string jobDefinitionName, /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string jobDefinitionName, CancellationToken /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.Serialization.cs index 1a22be1768e2..fa6dc2adf833 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.Serialization.cs @@ -45,6 +45,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } + if (Optional.IsDefined(JobType)) + { + writer.WritePropertyName("jobType"u8); + writer.WriteStringValue(JobType.Value.ToString()); + } writer.WritePropertyName("copyMode"u8); writer.WriteStringValue(CopyMode.ToString()); writer.WritePropertyName("sourceName"u8); @@ -96,6 +101,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("agentResourceId"u8); writer.WriteStringValue(AgentResourceId); } + if (Optional.IsDefined(SourceTargetMap)) + { + writer.WritePropertyName("sourceTargetMap"u8); + writer.WriteObjectValue(SourceTargetMap, options); + } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); @@ -129,6 +139,7 @@ internal static JobDefinitionData DeserializeJobDefinitionData(JsonElement eleme ResourceType type = default; SystemData systemData = default; string description = default; + JobType? jobType = default; StorageMoverCopyMode copyMode = default; string sourceName = default; ResourceIdentifier sourceResourceId = default; @@ -141,6 +152,7 @@ internal static JobDefinitionData DeserializeJobDefinitionData(JsonElement eleme JobRunStatus? latestJobRunStatus = default; string agentName = default; ResourceIdentifier agentResourceId = default; + JobDefinitionPropertiesSourceTargetMap sourceTargetMap = default; StorageMoverProvisioningState? provisioningState = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -184,6 +196,15 @@ internal static JobDefinitionData DeserializeJobDefinitionData(JsonElement eleme description = property0.Value.GetString(); continue; } + if (property0.NameEquals("jobType"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + jobType = new JobType(property0.Value.GetString()); + continue; + } if (property0.NameEquals("copyMode"u8)) { copyMode = new StorageMoverCopyMode(property0.Value.GetString()); @@ -264,6 +285,15 @@ internal static JobDefinitionData DeserializeJobDefinitionData(JsonElement eleme agentResourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } + if (property0.NameEquals("sourceTargetMap"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceTargetMap = JobDefinitionPropertiesSourceTargetMap.DeserializeJobDefinitionPropertiesSourceTargetMap(property0.Value, options); + continue; + } if (property0.NameEquals("provisioningState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -288,6 +318,7 @@ internal static JobDefinitionData DeserializeJobDefinitionData(JsonElement eleme type, systemData, description, + jobType, copyMode, sourceName, sourceResourceId, @@ -300,6 +331,7 @@ internal static JobDefinitionData DeserializeJobDefinitionData(JsonElement eleme latestJobRunStatus, agentName, agentResourceId, + sourceTargetMap, provisioningState, serializedAdditionalRawData); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.cs index 9b5569eb8b60..3471f6abcd8f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionData.cs @@ -71,7 +71,8 @@ public JobDefinitionData(StorageMoverCopyMode copyMode, string sourceName, strin /// The name. /// The resourceType. /// The systemData. - /// A description for the Job Definition. + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud. + /// The type of the Job. /// Strategy to use for copy. /// The name of the source Endpoint. /// Fully qualified resource ID of the source Endpoint. @@ -84,11 +85,13 @@ public JobDefinitionData(StorageMoverCopyMode copyMode, string sourceName, strin /// The current status of the Job Run in a non-terminal state, if exists. /// Name of the Agent to assign for new Job Runs of this Job Definition. /// Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. + /// The list of cloud endpoints to migrate. /// The provisioning state of this resource. /// Keeps track of any properties unknown to the library. - internal JobDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, StorageMoverCopyMode copyMode, string sourceName, ResourceIdentifier sourceResourceId, string sourceSubpath, string targetName, ResourceIdentifier targetResourceId, string targetSubpath, string latestJobRunName, ResourceIdentifier latestJobRunResourceId, JobRunStatus? latestJobRunStatus, string agentName, ResourceIdentifier agentResourceId, StorageMoverProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal JobDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, JobType? jobType, StorageMoverCopyMode copyMode, string sourceName, ResourceIdentifier sourceResourceId, string sourceSubpath, string targetName, ResourceIdentifier targetResourceId, string targetSubpath, string latestJobRunName, ResourceIdentifier latestJobRunResourceId, JobRunStatus? latestJobRunStatus, string agentName, ResourceIdentifier agentResourceId, JobDefinitionPropertiesSourceTargetMap sourceTargetMap, StorageMoverProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Description = description; + JobType = jobType; CopyMode = copyMode; SourceName = sourceName; SourceResourceId = sourceResourceId; @@ -101,6 +104,7 @@ internal JobDefinitionData(ResourceIdentifier id, string name, ResourceType reso LatestJobRunStatus = latestJobRunStatus; AgentName = agentName; AgentResourceId = agentResourceId; + SourceTargetMap = sourceTargetMap; ProvisioningState = provisioningState; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -110,8 +114,10 @@ internal JobDefinitionData() { } - /// A description for the Job Definition. + /// A description for the Job Definition. OnPremToCloud is for migrating data from on-premises to cloud. CloudToCloud is for migrating data between cloud to cloud. public string Description { get; set; } + /// The type of the Job. + public JobType? JobType { get; set; } /// Strategy to use for copy. public StorageMoverCopyMode CopyMode { get; set; } /// The name of the source Endpoint. @@ -136,6 +142,19 @@ internal JobDefinitionData() public string AgentName { get; set; } /// Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. public ResourceIdentifier AgentResourceId { get; } + /// The list of cloud endpoints to migrate. + internal JobDefinitionPropertiesSourceTargetMap SourceTargetMap { get; set; } + /// Gets the source target map value. + public IReadOnlyList SourceTargetMapValue + { + get + { + if (SourceTargetMap is null) + SourceTargetMap = new JobDefinitionPropertiesSourceTargetMap(); + return SourceTargetMap.Value; + } + } + /// The provisioning state of this resource. public StorageMoverProvisioningState? ProvisioningState { get; } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionResource.cs index 9c25f38d62ba..b88a95bee5b8 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobDefinitionResource.cs @@ -110,7 +110,7 @@ public virtual JobRunCollection GetJobRuns() /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetJobRunAsync(string jobRun /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetJobRun(string jobRunName, Cancellatio /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> UpdateAsync(JobDefini /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual Response Update(JobDefinitionPatch patch, /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -458,7 +458,7 @@ public virtual async Task> StartJobAsync(Cancellation /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -496,7 +496,7 @@ public virtual Response StartJob(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> StopJobAsync(CancellationT /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunCollection.cs index cbfd710f5cda..49c094085709 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string jobRunName, /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string jobRunName, CancellationToken /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cance /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string jobRunName, Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string jobRunName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsync(str /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunResource.cs index 3f10d058c85e..d1441e08cbed 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/JobRunResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.Serialization.cs new file mode 100644 index 000000000000..6977c80d5759 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.Serialization.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureMultiCloudConnectorEndpointProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointProperties)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("multiCloudConnectorId"u8); + writer.WriteStringValue(MultiCloudConnectorId); + writer.WritePropertyName("awsS3BucketId"u8); + writer.WriteStringValue(AwsS3BucketId); + } + + AzureMultiCloudConnectorEndpointProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureMultiCloudConnectorEndpointProperties(document.RootElement, options); + } + + internal static AzureMultiCloudConnectorEndpointProperties DeserializeAzureMultiCloudConnectorEndpointProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier multiCloudConnectorId = default; + ResourceIdentifier awsS3BucketId = default; + EndpointType endpointType = default; + string description = default; + StorageMoverProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("multiCloudConnectorId"u8)) + { + multiCloudConnectorId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("awsS3BucketId"u8)) + { + awsS3BucketId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("endpointType"u8)) + { + endpointType = new EndpointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new StorageMoverProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureMultiCloudConnectorEndpointProperties( + endpointType, + description, + provisioningState, + serializedAdditionalRawData, + multiCloudConnectorId, + awsS3BucketId); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointProperties)} does not support writing '{options.Format}' format."); + } + } + + AzureMultiCloudConnectorEndpointProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzureMultiCloudConnectorEndpointProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.cs new file mode 100644 index 000000000000..1fbd7c6dbe97 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointProperties.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of Azure MultiCloudConnector endpoint. + public partial class AzureMultiCloudConnectorEndpointProperties : EndpointBaseProperties + { + /// Initializes a new instance of . + /// The Azure Resource ID of the MultiCloud Connector resource. + /// The AWS S3 bucket ARM resource Id. + /// or is null. + public AzureMultiCloudConnectorEndpointProperties(ResourceIdentifier multiCloudConnectorId, ResourceIdentifier awsS3BucketId) + { + Argument.AssertNotNull(multiCloudConnectorId, nameof(multiCloudConnectorId)); + Argument.AssertNotNull(awsS3BucketId, nameof(awsS3BucketId)); + + MultiCloudConnectorId = multiCloudConnectorId; + AwsS3BucketId = awsS3BucketId; + EndpointType = EndpointType.AzureMultiCloudConnector; + } + + /// Initializes a new instance of . + /// The Endpoint resource type. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// Keeps track of any properties unknown to the library. + /// The Azure Resource ID of the MultiCloud Connector resource. + /// The AWS S3 bucket ARM resource Id. + internal AzureMultiCloudConnectorEndpointProperties(EndpointType endpointType, string description, StorageMoverProvisioningState? provisioningState, IDictionary serializedAdditionalRawData, ResourceIdentifier multiCloudConnectorId, ResourceIdentifier awsS3BucketId) : base(endpointType, description, provisioningState, serializedAdditionalRawData) + { + MultiCloudConnectorId = multiCloudConnectorId; + AwsS3BucketId = awsS3BucketId; + EndpointType = endpointType; + } + + /// Initializes a new instance of for deserialization. + internal AzureMultiCloudConnectorEndpointProperties() + { + } + + /// The Azure Resource ID of the MultiCloud Connector resource. + public ResourceIdentifier MultiCloudConnectorId { get; set; } + /// The AWS S3 bucket ARM resource Id. + public ResourceIdentifier AwsS3BucketId { get; set; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..a43462a6968f --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.Serialization.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureMultiCloudConnectorEndpointUpdateProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointUpdateProperties)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + AzureMultiCloudConnectorEndpointUpdateProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointUpdateProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureMultiCloudConnectorEndpointUpdateProperties(document.RootElement, options); + } + + internal static AzureMultiCloudConnectorEndpointUpdateProperties DeserializeAzureMultiCloudConnectorEndpointUpdateProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + EndpointType endpointType = default; + string description = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("endpointType"u8)) + { + endpointType = new EndpointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureMultiCloudConnectorEndpointUpdateProperties(endpointType, description, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointUpdateProperties)} does not support writing '{options.Format}' format."); + } + } + + AzureMultiCloudConnectorEndpointUpdateProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzureMultiCloudConnectorEndpointUpdateProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureMultiCloudConnectorEndpointUpdateProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.cs new file mode 100644 index 000000000000..e36f743fe21a --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureMultiCloudConnectorEndpointUpdateProperties.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of Azure Storage NFS file share endpoint to update. + public partial class AzureMultiCloudConnectorEndpointUpdateProperties : EndpointBaseUpdateProperties + { + /// Initializes a new instance of . + public AzureMultiCloudConnectorEndpointUpdateProperties() + { + EndpointType = EndpointType.AzureMultiCloudConnector; + } + + /// Initializes a new instance of . + /// The Endpoint resource type. + /// A description for the Endpoint. + /// Keeps track of any properties unknown to the library. + internal AzureMultiCloudConnectorEndpointUpdateProperties(EndpointType endpointType, string description, IDictionary serializedAdditionalRawData) : base(endpointType, description, serializedAdditionalRawData) + { + EndpointType = endpointType; + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureResourceManagerStorageMoverContext.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureResourceManagerStorageMoverContext.cs index 3f82240e3830..6e10753459be 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureResourceManagerStorageMoverContext.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureResourceManagerStorageMoverContext.cs @@ -17,8 +17,12 @@ namespace Azure.ResourceManager.StorageMover /// [ModelReaderWriterBuildable(typeof(AgentList))] [ModelReaderWriterBuildable(typeof(AzureKeyVaultSmbCredentials))] + [ModelReaderWriterBuildable(typeof(AzureMultiCloudConnectorEndpointProperties))] + [ModelReaderWriterBuildable(typeof(AzureMultiCloudConnectorEndpointUpdateProperties))] [ModelReaderWriterBuildable(typeof(AzureStorageBlobContainerEndpointProperties))] [ModelReaderWriterBuildable(typeof(AzureStorageBlobContainerEndpointUpdateProperties))] + [ModelReaderWriterBuildable(typeof(AzureStorageNfsFileShareEndpointProperties))] + [ModelReaderWriterBuildable(typeof(AzureStorageNfsFileShareEndpointUpdateProperties))] [ModelReaderWriterBuildable(typeof(AzureStorageSmbFileShareEndpointProperties))] [ModelReaderWriterBuildable(typeof(AzureStorageSmbFileShareEndpointUpdateProperties))] [ModelReaderWriterBuildable(typeof(EndpointBaseProperties))] @@ -27,12 +31,14 @@ namespace Azure.ResourceManager.StorageMover [ModelReaderWriterBuildable(typeof(JobDefinitionData))] [ModelReaderWriterBuildable(typeof(JobDefinitionList))] [ModelReaderWriterBuildable(typeof(JobDefinitionPatch))] + [ModelReaderWriterBuildable(typeof(JobDefinitionPropertiesSourceTargetMap))] [ModelReaderWriterBuildable(typeof(JobDefinitionResource))] [ModelReaderWriterBuildable(typeof(JobRunData))] [ModelReaderWriterBuildable(typeof(JobRunError))] [ModelReaderWriterBuildable(typeof(JobRunList))] [ModelReaderWriterBuildable(typeof(JobRunResource))] [ModelReaderWriterBuildable(typeof(JobRunResourceId))] + [ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))] [ModelReaderWriterBuildable(typeof(NfsMountEndpointProperties))] [ModelReaderWriterBuildable(typeof(NfsMountEndpointUpdateProperties))] [ModelReaderWriterBuildable(typeof(ProjectList))] @@ -42,6 +48,9 @@ namespace Azure.ResourceManager.StorageMover [ModelReaderWriterBuildable(typeof(ScheduleWeeklyRecurrence))] [ModelReaderWriterBuildable(typeof(SmbMountEndpointProperties))] [ModelReaderWriterBuildable(typeof(SmbMountEndpointUpdateProperties))] + [ModelReaderWriterBuildable(typeof(SourceEndpoint))] + [ModelReaderWriterBuildable(typeof(SourceEndpointProperties))] + [ModelReaderWriterBuildable(typeof(SourceTargetMap))] [ModelReaderWriterBuildable(typeof(StorageMoverAgentData))] [ModelReaderWriterBuildable(typeof(StorageMoverAgentPatch))] [ModelReaderWriterBuildable(typeof(StorageMoverAgentPropertiesErrorDetails))] @@ -58,11 +67,14 @@ namespace Azure.ResourceManager.StorageMover [ModelReaderWriterBuildable(typeof(StorageMoverProjectResource))] [ModelReaderWriterBuildable(typeof(StorageMoverResource))] [ModelReaderWriterBuildable(typeof(SystemData))] + [ModelReaderWriterBuildable(typeof(TargetEndpoint))] + [ModelReaderWriterBuildable(typeof(TargetEndpointProperties))] [ModelReaderWriterBuildable(typeof(UnknownCredentials))] [ModelReaderWriterBuildable(typeof(UnknownEndpointBaseProperties))] [ModelReaderWriterBuildable(typeof(UnknownEndpointBaseUpdateProperties))] [ModelReaderWriterBuildable(typeof(UploadLimitSchedule))] [ModelReaderWriterBuildable(typeof(UploadLimitWeeklyRecurrence))] + [ModelReaderWriterBuildable(typeof(UserAssignedIdentity))] public partial class AzureResourceManagerStorageMoverContext : ModelReaderWriterContext { } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.Serialization.cs new file mode 100644 index 000000000000..a7e46841494b --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.Serialization.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureStorageNfsFileShareEndpointProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointProperties)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("storageAccountResourceId"u8); + writer.WriteStringValue(StorageAccountResourceId); + writer.WritePropertyName("fileShareName"u8); + writer.WriteStringValue(FileShareName); + } + + AzureStorageNfsFileShareEndpointProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureStorageNfsFileShareEndpointProperties(document.RootElement, options); + } + + internal static AzureStorageNfsFileShareEndpointProperties DeserializeAzureStorageNfsFileShareEndpointProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier storageAccountResourceId = default; + string fileShareName = default; + EndpointType endpointType = default; + string description = default; + StorageMoverProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("storageAccountResourceId"u8)) + { + storageAccountResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("fileShareName"u8)) + { + fileShareName = property.Value.GetString(); + continue; + } + if (property.NameEquals("endpointType"u8)) + { + endpointType = new EndpointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new StorageMoverProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureStorageNfsFileShareEndpointProperties( + endpointType, + description, + provisioningState, + serializedAdditionalRawData, + storageAccountResourceId, + fileShareName); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointProperties)} does not support writing '{options.Format}' format."); + } + } + + AzureStorageNfsFileShareEndpointProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzureStorageNfsFileShareEndpointProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.cs new file mode 100644 index 000000000000..faf58b8c6c84 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointProperties.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of Azure Storage NFS file share endpoint. + public partial class AzureStorageNfsFileShareEndpointProperties : EndpointBaseProperties + { + /// Initializes a new instance of . + /// The Azure Resource ID of the storage account. + /// The name of the Azure Storage NFS file share. + /// or is null. + public AzureStorageNfsFileShareEndpointProperties(ResourceIdentifier storageAccountResourceId, string fileShareName) + { + Argument.AssertNotNull(storageAccountResourceId, nameof(storageAccountResourceId)); + Argument.AssertNotNull(fileShareName, nameof(fileShareName)); + + StorageAccountResourceId = storageAccountResourceId; + FileShareName = fileShareName; + EndpointType = EndpointType.AzureStorageNfsFileShare; + } + + /// Initializes a new instance of . + /// The Endpoint resource type. + /// A description for the Endpoint. + /// The provisioning state of this resource. + /// Keeps track of any properties unknown to the library. + /// The Azure Resource ID of the storage account. + /// The name of the Azure Storage NFS file share. + internal AzureStorageNfsFileShareEndpointProperties(EndpointType endpointType, string description, StorageMoverProvisioningState? provisioningState, IDictionary serializedAdditionalRawData, ResourceIdentifier storageAccountResourceId, string fileShareName) : base(endpointType, description, provisioningState, serializedAdditionalRawData) + { + StorageAccountResourceId = storageAccountResourceId; + FileShareName = fileShareName; + EndpointType = endpointType; + } + + /// Initializes a new instance of for deserialization. + internal AzureStorageNfsFileShareEndpointProperties() + { + } + + /// The Azure Resource ID of the storage account. + public ResourceIdentifier StorageAccountResourceId { get; set; } + /// The name of the Azure Storage NFS file share. + public string FileShareName { get; set; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..2df0db7a466d --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.Serialization.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class AzureStorageNfsFileShareEndpointUpdateProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointUpdateProperties)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + AzureStorageNfsFileShareEndpointUpdateProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointUpdateProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureStorageNfsFileShareEndpointUpdateProperties(document.RootElement, options); + } + + internal static AzureStorageNfsFileShareEndpointUpdateProperties DeserializeAzureStorageNfsFileShareEndpointUpdateProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + EndpointType endpointType = default; + string description = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("endpointType"u8)) + { + endpointType = new EndpointType(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureStorageNfsFileShareEndpointUpdateProperties(endpointType, description, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointUpdateProperties)} does not support writing '{options.Format}' format."); + } + } + + AzureStorageNfsFileShareEndpointUpdateProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzureStorageNfsFileShareEndpointUpdateProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureStorageNfsFileShareEndpointUpdateProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.cs new file mode 100644 index 000000000000..23af67553705 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/AzureStorageNfsFileShareEndpointUpdateProperties.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of Azure Storage NFS file share endpoint to update. + public partial class AzureStorageNfsFileShareEndpointUpdateProperties : EndpointBaseUpdateProperties + { + /// Initializes a new instance of . + public AzureStorageNfsFileShareEndpointUpdateProperties() + { + EndpointType = EndpointType.AzureStorageNfsFileShare; + } + + /// Initializes a new instance of . + /// The Endpoint resource type. + /// A description for the Endpoint. + /// Keeps track of any properties unknown to the library. + internal AzureStorageNfsFileShareEndpointUpdateProperties(EndpointType endpointType, string description, IDictionary serializedAdditionalRawData) : base(endpointType, description, serializedAdditionalRawData) + { + EndpointType = endpointType; + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs index 5d69124c2dff..0b759a8e4593 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.Serialization.cs @@ -87,7 +87,9 @@ internal static EndpointBaseProperties DeserializeEndpointBaseProperties(JsonEle { switch (discriminator.GetString()) { + case "AzureMultiCloudConnector": return AzureMultiCloudConnectorEndpointProperties.DeserializeAzureMultiCloudConnectorEndpointProperties(element, options); case "AzureStorageBlobContainer": return AzureStorageBlobContainerEndpointProperties.DeserializeAzureStorageBlobContainerEndpointProperties(element, options); + case "AzureStorageNfsFileShare": return AzureStorageNfsFileShareEndpointProperties.DeserializeAzureStorageNfsFileShareEndpointProperties(element, options); case "AzureStorageSmbFileShare": return AzureStorageSmbFileShareEndpointProperties.DeserializeAzureStorageSmbFileShareEndpointProperties(element, options); case "NfsMount": return NfsMountEndpointProperties.DeserializeNfsMountEndpointProperties(element, options); case "SmbMount": return SmbMountEndpointProperties.DeserializeSmbMountEndpointProperties(element, options); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs index 07d227e516da..2f3d5595ef26 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseProperties.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.StorageMover.Models /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public abstract partial class EndpointBaseProperties { diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs index 16c3216342e8..d8b149844279 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.Serialization.cs @@ -82,7 +82,9 @@ internal static EndpointBaseUpdateProperties DeserializeEndpointBaseUpdateProper { switch (discriminator.GetString()) { + case "AzureMultiCloudConnector": return AzureMultiCloudConnectorEndpointUpdateProperties.DeserializeAzureMultiCloudConnectorEndpointUpdateProperties(element, options); case "AzureStorageBlobContainer": return AzureStorageBlobContainerEndpointUpdateProperties.DeserializeAzureStorageBlobContainerEndpointUpdateProperties(element, options); + case "AzureStorageNfsFileShare": return AzureStorageNfsFileShareEndpointUpdateProperties.DeserializeAzureStorageNfsFileShareEndpointUpdateProperties(element, options); case "AzureStorageSmbFileShare": return AzureStorageSmbFileShareEndpointUpdateProperties.DeserializeAzureStorageSmbFileShareEndpointUpdateProperties(element, options); case "NfsMount": return NfsMountEndpointUpdateProperties.DeserializeNfsMountEndpointUpdateProperties(element, options); case "SmbMount": return SmbMountEndpointUpdateProperties.DeserializeSmbMountEndpointUpdateProperties(element, options); diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs index c9ab7955e46a..d8935778d2cf 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointBaseUpdateProperties.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.StorageMover.Models /// /// The Endpoint resource, which contains information about file sources and targets. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public abstract partial class EndpointBaseUpdateProperties { diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs index 10c7ec6f6172..791511705239 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/EndpointType.cs @@ -26,6 +26,8 @@ public EndpointType(string value) private const string NfsMountValue = "NfsMount"; private const string AzureStorageSmbFileShareValue = "AzureStorageSmbFileShare"; private const string SmbMountValue = "SmbMount"; + private const string AzureMultiCloudConnectorValue = "AzureMultiCloudConnector"; + private const string AzureStorageNfsFileShareValue = "AzureStorageNfsFileShare"; /// AzureStorageBlobContainer. public static EndpointType AzureStorageBlobContainer { get; } = new EndpointType(AzureStorageBlobContainerValue); @@ -35,6 +37,10 @@ public EndpointType(string value) public static EndpointType AzureStorageSmbFileShare { get; } = new EndpointType(AzureStorageSmbFileShareValue); /// SmbMount. public static EndpointType SmbMount { get; } = new EndpointType(SmbMountValue); + /// AzureMultiCloudConnector. + public static EndpointType AzureMultiCloudConnector { get; } = new EndpointType(AzureMultiCloudConnectorValue); + /// AzureStorageNfsFileShare. + public static EndpointType AzureStorageNfsFileShare { get; } = new EndpointType(AzureStorageNfsFileShareValue); /// Determines if two values are the same. public static bool operator ==(EndpointType left, EndpointType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.Serialization.cs new file mode 100644 index 000000000000..3524f54556b0 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.Serialization.cs @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + internal partial class JobDefinitionPropertiesSourceTargetMap : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(JobDefinitionPropertiesSourceTargetMap)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + JobDefinitionPropertiesSourceTargetMap IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(JobDefinitionPropertiesSourceTargetMap)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeJobDefinitionPropertiesSourceTargetMap(document.RootElement, options); + } + + internal static JobDefinitionPropertiesSourceTargetMap DeserializeJobDefinitionPropertiesSourceTargetMap(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SourceTargetMap.DeserializeSourceTargetMap(item, options)); + } + value = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new JobDefinitionPropertiesSourceTargetMap(value ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(JobDefinitionPropertiesSourceTargetMap)} does not support writing '{options.Format}' format."); + } + } + + JobDefinitionPropertiesSourceTargetMap IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeJobDefinitionPropertiesSourceTargetMap(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(JobDefinitionPropertiesSourceTargetMap)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.cs new file mode 100644 index 000000000000..f51b9ab58c0b --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobDefinitionPropertiesSourceTargetMap.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The JobDefinitionPropertiesSourceTargetMap. + internal partial class JobDefinitionPropertiesSourceTargetMap + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public JobDefinitionPropertiesSourceTargetMap() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// Keeps track of any properties unknown to the library. + internal JobDefinitionPropertiesSourceTargetMap(IReadOnlyList value, IDictionary serializedAdditionalRawData) + { + Value = value; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the value. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobType.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobType.cs new file mode 100644 index 000000000000..70ee3fdd0150 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/JobType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The type of the Job. + public readonly partial struct JobType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public JobType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OnPremToCloudValue = "OnPremToCloud"; + private const string CloudToCloudValue = "CloudToCloud"; + + /// OnPremToCloud. + public static JobType OnPremToCloud { get; } = new JobType(OnPremToCloudValue); + /// CloudToCloud. + public static JobType CloudToCloud { get; } = new JobType(CloudToCloudValue); + /// Determines if two values are the same. + public static bool operator ==(JobType left, JobType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(JobType left, JobType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator JobType(string value) => new JobType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is JobType other && Equals(other); + /// + public bool Equals(JobType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.Serialization.cs new file mode 100644 index 000000000000..4d0211e3d47c --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.Serialization.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + internal partial class SourceEndpoint : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SourceEndpoint)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SourceEndpoint IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SourceEndpoint)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSourceEndpoint(document.RootElement, options); + } + + internal static SourceEndpoint DeserializeSourceEndpoint(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + SourceEndpointProperties properties = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = SourceEndpointProperties.DeserializeSourceEndpointProperties(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SourceEndpoint(properties, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(SourceEndpoint)} does not support writing '{options.Format}' format."); + } + } + + SourceEndpoint IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSourceEndpoint(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SourceEndpoint)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.cs new file mode 100644 index 000000000000..2a7fe49c0e0e --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpoint.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The source endpoint resource for source and target mapping. + internal partial class SourceEndpoint + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal SourceEndpoint() + { + } + + /// Initializes a new instance of . + /// The properties of the cloud source endpoint to migrate. + /// Keeps track of any properties unknown to the library. + internal SourceEndpoint(SourceEndpointProperties properties, IDictionary serializedAdditionalRawData) + { + Properties = properties; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The properties of the cloud source endpoint to migrate. + public SourceEndpointProperties Properties { get; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.Serialization.cs new file mode 100644 index 000000000000..13a5d5268b0e --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.Serialization.cs @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class SourceEndpointProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SourceEndpointProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(SourceEndpointResourceId)) + { + writer.WritePropertyName("sourceEndpointResourceId"u8); + writer.WriteStringValue(SourceEndpointResourceId); + } + if (Optional.IsDefined(AwsS3BucketId)) + { + writer.WritePropertyName("awsS3BucketId"u8); + writer.WriteStringValue(AwsS3BucketId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SourceEndpointProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SourceEndpointProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSourceEndpointProperties(document.RootElement, options); + } + + internal static SourceEndpointProperties DeserializeSourceEndpointProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + ResourceIdentifier sourceEndpointResourceId = default; + ResourceIdentifier awsS3BucketId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceEndpointResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sourceEndpointResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("awsS3BucketId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + awsS3BucketId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SourceEndpointProperties(name, sourceEndpointResourceId, awsS3BucketId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(SourceEndpointProperties)} does not support writing '{options.Format}' format."); + } + } + + SourceEndpointProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSourceEndpointProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SourceEndpointProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.cs new file mode 100644 index 000000000000..da9996cfdd7e --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceEndpointProperties.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of the cloud source endpoint to migrate. + public partial class SourceEndpointProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal SourceEndpointProperties() + { + } + + /// Initializes a new instance of . + /// The name of the cloud source endpoint to migrate. + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + /// Keeps track of any properties unknown to the library. + internal SourceEndpointProperties(string name, ResourceIdentifier sourceEndpointResourceId, ResourceIdentifier awsS3BucketId, IDictionary serializedAdditionalRawData) + { + Name = name; + SourceEndpointResourceId = sourceEndpointResourceId; + AwsS3BucketId = awsS3BucketId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The name of the cloud source endpoint to migrate. + public string Name { get; } + /// The fully qualified ARM resource ID of the cloud source endpoint to migrate. + public ResourceIdentifier SourceEndpointResourceId { get; } + /// The fully qualified ARM resource ID of the AWS S3 bucket to migrate. + public ResourceIdentifier AwsS3BucketId { get; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.Serialization.cs new file mode 100644 index 000000000000..0e8af9617ce7 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.Serialization.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class SourceTargetMap : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SourceTargetMap)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("sourceEndpoint"u8); + writer.WriteObjectValue(SourceEndpoint, options); + writer.WritePropertyName("targetEndpoint"u8); + writer.WriteObjectValue(TargetEndpoint, options); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SourceTargetMap IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SourceTargetMap)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSourceTargetMap(document.RootElement, options); + } + + internal static SourceTargetMap DeserializeSourceTargetMap(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + SourceEndpoint sourceEndpoint = default; + TargetEndpoint targetEndpoint = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sourceEndpoint"u8)) + { + sourceEndpoint = SourceEndpoint.DeserializeSourceEndpoint(property.Value, options); + continue; + } + if (property.NameEquals("targetEndpoint"u8)) + { + targetEndpoint = TargetEndpoint.DeserializeTargetEndpoint(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SourceTargetMap(sourceEndpoint, targetEndpoint, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(SourceTargetMap)} does not support writing '{options.Format}' format."); + } + } + + SourceTargetMap IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSourceTargetMap(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SourceTargetMap)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.cs new file mode 100644 index 000000000000..207b9b2e758a --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/SourceTargetMap.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of cloud endpoints to migrate. + public partial class SourceTargetMap + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// + /// + /// or is null. + internal SourceTargetMap(SourceEndpoint sourceEndpoint, TargetEndpoint targetEndpoint) + { + Argument.AssertNotNull(sourceEndpoint, nameof(sourceEndpoint)); + Argument.AssertNotNull(targetEndpoint, nameof(targetEndpoint)); + + SourceEndpoint = sourceEndpoint; + TargetEndpoint = targetEndpoint; + } + + /// Initializes a new instance of . + /// + /// + /// Keeps track of any properties unknown to the library. + internal SourceTargetMap(SourceEndpoint sourceEndpoint, TargetEndpoint targetEndpoint, IDictionary serializedAdditionalRawData) + { + SourceEndpoint = sourceEndpoint; + TargetEndpoint = targetEndpoint; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal SourceTargetMap() + { + } + + /// Gets the source endpoint. + internal SourceEndpoint SourceEndpoint { get; } + /// The properties of the cloud source endpoint to migrate. + public SourceEndpointProperties SourceEndpointProperties + { + get => SourceEndpoint?.Properties; + } + + /// Gets the target endpoint. + internal TargetEndpoint TargetEndpoint { get; } + /// The properties of the cloud target endpoint to migrate. + public TargetEndpointProperties TargetEndpointProperties + { + get => TargetEndpoint?.Properties; + } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.Serialization.cs index 5535583d257c..cdfa30f10ed6 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.Serialization.cs @@ -8,8 +8,10 @@ using System; using System.ClientModel.Primitives; using System.Collections.Generic; +using System.Text; using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.StorageMover.Models { @@ -39,6 +41,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("properties"u8); writer.WriteObjectValue(Properties, options); } + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + ((IJsonModel)Identity).Write(writer, ModelSerializationExtensions.WireV3Options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -77,6 +84,7 @@ internal static StorageMoverEndpointPatch DeserializeStorageMoverEndpointPatch(J return null; } EndpointBaseUpdateProperties properties = default; + ManagedServiceIdentity identity = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -90,13 +98,22 @@ internal static StorageMoverEndpointPatch DeserializeStorageMoverEndpointPatch(J properties = EndpointBaseUpdateProperties.DeserializeEndpointBaseUpdateProperties(property.Value, options); continue; } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireV3Options, AzureResourceManagerStorageMoverContext.Default); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new StorageMoverEndpointPatch(properties, serializedAdditionalRawData); + return new StorageMoverEndpointPatch(properties, identity, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs index 2d2c6872d91b..e4c5874571e0 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverEndpointPatch.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.StorageMover.Models { @@ -54,20 +55,24 @@ public StorageMoverEndpointPatch() /// /// The Endpoint resource, which contains information about file sources and targets. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// + /// The managed system identity assigned to this resource. /// Keeps track of any properties unknown to the library. - internal StorageMoverEndpointPatch(EndpointBaseUpdateProperties properties, IDictionary serializedAdditionalRawData) + internal StorageMoverEndpointPatch(EndpointBaseUpdateProperties properties, ManagedServiceIdentity identity, IDictionary serializedAdditionalRawData) { Properties = properties; + Identity = identity; _serializedAdditionalRawData = serializedAdditionalRawData; } /// /// The Endpoint resource, which contains information about file sources and targets. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public EndpointBaseUpdateProperties Properties { get; set; } + /// The managed system identity assigned to this resource. + public ManagedServiceIdentity Identity { get; set; } } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.Serialization.cs new file mode 100644 index 000000000000..aea82dad092c --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.Serialization.cs @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + internal partial class TargetEndpoint : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(TargetEndpoint)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + TargetEndpoint IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(TargetEndpoint)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeTargetEndpoint(document.RootElement, options); + } + + internal static TargetEndpoint DeserializeTargetEndpoint(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + TargetEndpointProperties properties = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = TargetEndpointProperties.DeserializeTargetEndpointProperties(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new TargetEndpoint(properties, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(TargetEndpoint)} does not support writing '{options.Format}' format."); + } + } + + TargetEndpoint IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeTargetEndpoint(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(TargetEndpoint)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.cs new file mode 100644 index 000000000000..3c177b9cee50 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpoint.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The target endpoint resource for source and target mapping. + internal partial class TargetEndpoint + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal TargetEndpoint() + { + } + + /// Initializes a new instance of . + /// The properties of the cloud target endpoint to migrate. + /// Keeps track of any properties unknown to the library. + internal TargetEndpoint(TargetEndpointProperties properties, IDictionary serializedAdditionalRawData) + { + Properties = properties; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The properties of the cloud target endpoint to migrate. + public TargetEndpointProperties Properties { get; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.Serialization.cs new file mode 100644 index 000000000000..de448c534982 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.Serialization.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + public partial class TargetEndpointProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(TargetEndpointProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(TargetEndpointResourceId)) + { + writer.WritePropertyName("targetEndpointResourceId"u8); + writer.WriteStringValue(TargetEndpointResourceId); + } + if (Optional.IsDefined(AzureStorageAccountResourceId)) + { + writer.WritePropertyName("azureStorageAccountResourceId"u8); + writer.WriteStringValue(AzureStorageAccountResourceId); + } + if (Optional.IsDefined(AzureStorageBlobContainerName)) + { + writer.WritePropertyName("azureStorageBlobContainerName"u8); + writer.WriteStringValue(AzureStorageBlobContainerName); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + TargetEndpointProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(TargetEndpointProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeTargetEndpointProperties(document.RootElement, options); + } + + internal static TargetEndpointProperties DeserializeTargetEndpointProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + ResourceIdentifier targetEndpointResourceId = default; + ResourceIdentifier azureStorageAccountResourceId = default; + string azureStorageBlobContainerName = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("targetEndpointResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + targetEndpointResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("azureStorageAccountResourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + azureStorageAccountResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("azureStorageBlobContainerName"u8)) + { + azureStorageBlobContainerName = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new TargetEndpointProperties(name, targetEndpointResourceId, azureStorageAccountResourceId, azureStorageBlobContainerName, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureResourceManagerStorageMoverContext.Default); + default: + throw new FormatException($"The model {nameof(TargetEndpointProperties)} does not support writing '{options.Format}' format."); + } + } + + TargetEndpointProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeTargetEndpointProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(TargetEndpointProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.cs new file mode 100644 index 000000000000..8a4be89d01d3 --- /dev/null +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/TargetEndpointProperties.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.StorageMover.Models +{ + /// The properties of the cloud target endpoint to migrate. + public partial class TargetEndpointProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal TargetEndpointProperties() + { + } + + /// Initializes a new instance of . + /// The name of the cloud target endpoint to migrate. + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + /// The fully qualified ARM resource ID of the Azure Storage account. + /// The name of the Azure Storage blob container. + /// Keeps track of any properties unknown to the library. + internal TargetEndpointProperties(string name, ResourceIdentifier targetEndpointResourceId, ResourceIdentifier azureStorageAccountResourceId, string azureStorageBlobContainerName, IDictionary serializedAdditionalRawData) + { + Name = name; + TargetEndpointResourceId = targetEndpointResourceId; + AzureStorageAccountResourceId = azureStorageAccountResourceId; + AzureStorageBlobContainerName = azureStorageBlobContainerName; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The name of the cloud target endpoint to migrate. + public string Name { get; } + /// The fully qualified ARM resource ID of the cloud target endpoint to migrate. + public ResourceIdentifier TargetEndpointResourceId { get; } + /// The fully qualified ARM resource ID of the Azure Storage account. + public ResourceIdentifier AzureStorageAccountResourceId { get; } + /// The name of the Azure Storage blob container. + public string AzureStorageBlobContainerName { get; } + } +} diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs index d9b6e117ae5e..8574b2a31f11 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs @@ -32,7 +32,7 @@ public AgentsRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-07-01"; + _apiVersion = apiVersion ?? "2025-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs index 9749ebb3d77c..f3f193c7b760 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -32,7 +32,7 @@ public EndpointsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-07-01"; + _apiVersion = apiVersion ?? "2025-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs index 2dabbd415a5b..f5c45d8980dd 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs @@ -32,7 +32,7 @@ public JobDefinitionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-07-01"; + _apiVersion = apiVersion ?? "2025-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs index b1f351d33ebb..1ee94d979eb0 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs @@ -32,7 +32,7 @@ public JobRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-07-01"; + _apiVersion = apiVersion ?? "2025-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs index b37340c8e65e..e014b3851d70 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs @@ -32,7 +32,7 @@ public ProjectsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-07-01"; + _apiVersion = apiVersion ?? "2025-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs index 6d371e71c9d4..a55779ea32d7 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs @@ -32,7 +32,7 @@ public StorageMoversRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-07-01"; + _apiVersion = apiVersion ?? "2025-07-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs index 7a112ff73d80..7853f214146c 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string a /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string agentName, Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string agentName, Cancella /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string agentName, CancellationToken cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentResource.cs index e03bb5fa1f98..f940e753e86f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual async Task> UpdateAsync(Stora /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs index 0acc96b09f85..03be891cddca 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string storag /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string storageMoverName, Cance /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string storageMoverName, C /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string storageMoverName, CancellationToken /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs index 1acc5b2ee50a..0c866c27b7b4 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string endpointName, C /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string endpointName, Cance /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string endpointName, CancellationToken canc /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.Serialization.cs index 027a91c085e2..6ae6123f07f0 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.Serialization.cs @@ -40,6 +40,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri base.JsonModelWriteCore(writer, options); writer.WritePropertyName("properties"u8); writer.WriteObjectValue(Properties, options); + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + ((IJsonModel)Identity).Write(writer, ModelSerializationExtensions.WireV3Options); + } } StorageMoverEndpointData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -63,6 +68,7 @@ internal static StorageMoverEndpointData DeserializeStorageMoverEndpointData(Jso return null; } EndpointBaseProperties properties = default; + ManagedServiceIdentity identity = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -76,6 +82,15 @@ internal static StorageMoverEndpointData DeserializeStorageMoverEndpointData(Jso properties = EndpointBaseProperties.DeserializeEndpointBaseProperties(property.Value, options); continue; } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(property.Value.GetRawText())), ModelSerializationExtensions.WireV3Options, AzureResourceManagerStorageMoverContext.Default); + continue; + } if (property.NameEquals("id"u8)) { id = new ResourceIdentifier(property.Value.GetString()); @@ -112,6 +127,7 @@ internal static StorageMoverEndpointData DeserializeStorageMoverEndpointData(Jso type, systemData, properties, + identity, serializedAdditionalRawData); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs index 0b6664c649ef..6b6ba7198f88 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointData.cs @@ -55,7 +55,7 @@ public partial class StorageMoverEndpointData : ResourceData /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// /// is null. public StorageMoverEndpointData(EndpointBaseProperties properties) @@ -73,12 +73,14 @@ public StorageMoverEndpointData(EndpointBaseProperties properties) /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// + /// The managed service identity of the resource. This property is only available on the latest version. /// Keeps track of any properties unknown to the library. - internal StorageMoverEndpointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, EndpointBaseProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal StorageMoverEndpointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, EndpointBaseProperties properties, ManagedServiceIdentity identity, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; + Identity = identity; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -90,8 +92,10 @@ internal StorageMoverEndpointData() /// /// The resource specific properties for the Storage Mover resource. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . + /// The available derived classes include , , , , and . /// public EndpointBaseProperties Properties { get; set; } + /// The managed service identity of the resource. This property is only available on the latest version. + public ManagedServiceIdentity Identity { get; set; } } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointResource.cs index 0ba66fe9f1d0..2187a7b3ed97 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverEndpointResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual async Task> UpdateAsync(St /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs index 2a79282ebe70..f2f38ea00466 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string projectName, Can /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string projectName, Cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string projectName, CancellationToken cance /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectResource.cs index 3327747e0561..1103491779d7 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverProjectResource.cs @@ -109,7 +109,7 @@ public virtual JobDefinitionCollection GetJobDefinitions() /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetJobDefinitionAsync /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetJobDefinition(string jobDefini /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -335,7 +335,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -377,7 +377,7 @@ public virtual async Task> UpdateAsync(Sto /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverResource.cs index cbc9b240bfa8..2091f82bc981 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverResource.cs @@ -110,7 +110,7 @@ public virtual StorageMoverAgentCollection GetStorageMoverAgents() /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetStorageMoverAg /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual StorageMoverEndpointCollection GetStorageMoverEndpoints() /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetStorageMove /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual StorageMoverProjectCollection GetStorageMoverProjects() /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetStorageMover /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response GetStorageMoverProject(stri /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -432,7 +432,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -474,7 +474,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -516,7 +516,7 @@ public virtual async Task> UpdateAsync(StorageMov /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -558,7 +558,7 @@ public virtual Response Update(StorageMoverPatch patch, Ca /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -620,7 +620,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -682,7 +682,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -739,7 +739,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -796,7 +796,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource @@ -856,7 +856,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2024-07-01 + /// 2025-07-01 /// /// /// Resource diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionCollection.cs index b17e13b8b0ff..5cb8479f4cfc 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionCollection.cs @@ -20,7 +20,44 @@ public partial class Sample_JobDefinitionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_JobDefinitionsCreateOrUpdate() { - // Generated from example definition: 2024-07-01/JobDefinitions_CreateOrUpdate.json + // Generated from example definition: 2025-07-01/JobDefinitions_CreateOrUpdate.json + // this example is just showing the usage of "JobDefinition_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverProjectResource created on azure + // for more information of creating StorageMoverProjectResource, please refer to the document of StorageMoverProjectResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + string projectName = "examples-projectName"; + ResourceIdentifier storageMoverProjectResourceId = StorageMoverProjectResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName, projectName); + StorageMoverProjectResource storageMoverProject = client.GetStorageMoverProjectResource(storageMoverProjectResourceId); + + // get the collection of this JobDefinitionResource + JobDefinitionCollection collection = storageMoverProject.GetJobDefinitions(); + + // invoke the operation + string jobDefinitionName = "examples-jobDefinitionName"; + JobDefinitionData data = new JobDefinitionData(default, null, null); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, jobDefinitionName, data); + JobDefinitionResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + JobDefinitionData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_JobDefinitionsCreateOrUpdateCloudToCloud() + { + // Generated from example definition: 2025-07-01/JobDefinitions_CreateOrUpdate_CloudToCloud.json // this example is just showing the usage of "JobDefinition_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -57,7 +94,7 @@ public async Task CreateOrUpdate_JobDefinitionsCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_JobDefinitionsGet() { - // Generated from example definition: 2024-07-01/JobDefinitions_Get.json + // Generated from example definition: 2025-07-01/JobDefinitions_Get.json // this example is just showing the usage of "JobDefinition_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +129,7 @@ public async Task Get_JobDefinitionsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_JobDefinitionsList() { - // Generated from example definition: 2024-07-01/JobDefinitions_List.json + // Generated from example definition: 2025-07-01/JobDefinitions_List.json // this example is just showing the usage of "JobDefinition_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +166,7 @@ public async Task GetAll_JobDefinitionsList() [Ignore("Only validating compilation of examples")] public async Task Exists_JobDefinitionsGet() { - // Generated from example definition: 2024-07-01/JobDefinitions_Get.json + // Generated from example definition: 2025-07-01/JobDefinitions_Get.json // this example is just showing the usage of "JobDefinition_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,7 +197,7 @@ public async Task Exists_JobDefinitionsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_JobDefinitionsGet() { - // Generated from example definition: 2024-07-01/JobDefinitions_Get.json + // Generated from example definition: 2025-07-01/JobDefinitions_Get.json // this example is just showing the usage of "JobDefinition_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionResource.cs index de217e839669..1dfad1f55ad9 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobDefinitionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_JobDefinitionResource [Ignore("Only validating compilation of examples")] public async Task Get_JobDefinitionsGet() { - // Generated from example definition: 2024-07-01/JobDefinitions_Get.json + // Generated from example definition: 2025-07-01/JobDefinitions_Get.json // this example is just showing the usage of "JobDefinition_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_JobDefinitionsGet() [Ignore("Only validating compilation of examples")] public async Task Delete_ProjectsDelete() { - // Generated from example definition: 2024-07-01/JobDefinitions_Delete.json + // Generated from example definition: 2025-07-01/JobDefinitions_Delete.json // this example is just showing the usage of "JobDefinition_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Delete_ProjectsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_JobDefinitionsUpdate() { - // Generated from example definition: 2024-07-01/JobDefinitions_Update.json + // Generated from example definition: 2025-07-01/JobDefinitions_Update.json // this example is just showing the usage of "JobDefinition_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +113,7 @@ public async Task Update_JobDefinitionsUpdate() [Ignore("Only validating compilation of examples")] public async Task StartJob_JobDefinitionsStartJob() { - // Generated from example definition: 2024-07-01/JobDefinitions_StartJob.json + // Generated from example definition: 2025-07-01/JobDefinitions_StartJob.json // this example is just showing the usage of "JobDefinitions_StartJob" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -141,7 +141,7 @@ public async Task StartJob_JobDefinitionsStartJob() [Ignore("Only validating compilation of examples")] public async Task StopJob_JobDefinitionsStopJob() { - // Generated from example definition: 2024-07-01/JobDefinitions_StopJob.json + // Generated from example definition: 2025-07-01/JobDefinitions_StopJob.json // this example is just showing the usage of "JobDefinitions_StopJob" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunCollection.cs index 0fcba7835bd1..28f7ae28e290 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_JobRunCollection [Ignore("Only validating compilation of examples")] public async Task Get_JobRunsGet() { - // Generated from example definition: 2024-07-01/JobRuns_Get.json + // Generated from example definition: 2025-07-01/JobRuns_Get.json // this example is just showing the usage of "JobRun_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_JobRunsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_JobRunsList() { - // Generated from example definition: 2024-07-01/JobRuns_List.json + // Generated from example definition: 2025-07-01/JobRuns_List.json // this example is just showing the usage of "JobRun_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task GetAll_JobRunsList() [Ignore("Only validating compilation of examples")] public async Task Exists_JobRunsGet() { - // Generated from example definition: 2024-07-01/JobRuns_Get.json + // Generated from example definition: 2025-07-01/JobRuns_Get.json // this example is just showing the usage of "JobRun_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_JobRunsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_JobRunsGet() { - // Generated from example definition: 2024-07-01/JobRuns_Get.json + // Generated from example definition: 2025-07-01/JobRuns_Get.json // this example is just showing the usage of "JobRun_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunResource.cs index 39cc1d06b01e..c761c3db5870 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_JobRunResource.cs @@ -19,7 +19,7 @@ public partial class Sample_JobRunResource [Ignore("Only validating compilation of examples")] public async Task Get_JobRunsGet() { - // Generated from example definition: 2024-07-01/JobRuns_Get.json + // Generated from example definition: 2025-07-01/JobRuns_Get.json // this example is just showing the usage of "JobRun_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentCollection.cs index 5911f8a9fa6a..58b79a7f307b 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StorageMoverAgentCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AgentsCreateOrUpdateMaximumSet() { - // Generated from example definition: 2024-07-01/Agents_CreateOrUpdate_MaximumSet.json + // Generated from example definition: 2025-07-01/Agents_CreateOrUpdate_MaximumSet.json // this example is just showing the usage of "Agent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_AgentsCreateOrUpdateMaximumSet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AgentsCreateOrUpdateMinimumSet() { - // Generated from example definition: 2024-07-01/Agents_CreateOrUpdate_MinimumSet.json + // Generated from example definition: 2025-07-01/Agents_CreateOrUpdate_MinimumSet.json // this example is just showing the usage of "Agent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task CreateOrUpdate_AgentsCreateOrUpdateMinimumSet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_AgentsCreateOrUpdateWithOvernightUploadLimitSchedule() { - // Generated from example definition: 2024-07-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json + // Generated from example definition: 2025-07-01/Agents_CreateOrUpdate_UploadLimitSchedule_Overnight.json // this example is just showing the usage of "Agent_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +127,7 @@ public async Task CreateOrUpdate_AgentsCreateOrUpdateWithOvernightUploadLimitSch [Ignore("Only validating compilation of examples")] public async Task Get_AgentsGetMaximumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MaximumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MaximumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task Get_AgentsGetMaximumSet() [Ignore("Only validating compilation of examples")] public async Task Get_AgentsGetMinimumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MinimumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MinimumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -195,7 +195,7 @@ public async Task Get_AgentsGetMinimumSet() [Ignore("Only validating compilation of examples")] public async Task GetAll_AgentsListMaximumSet() { - // Generated from example definition: 2024-07-01/Agents_List_MaximumSet.json + // Generated from example definition: 2025-07-01/Agents_List_MaximumSet.json // this example is just showing the usage of "Agent_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -231,7 +231,7 @@ public async Task GetAll_AgentsListMaximumSet() [Ignore("Only validating compilation of examples")] public async Task GetAll_AgentsListMinimumSet() { - // Generated from example definition: 2024-07-01/Agents_List_MinimumSet.json + // Generated from example definition: 2025-07-01/Agents_List_MinimumSet.json // this example is just showing the usage of "Agent_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +267,7 @@ public async Task GetAll_AgentsListMinimumSet() [Ignore("Only validating compilation of examples")] public async Task Exists_AgentsGetMaximumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MaximumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MaximumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -297,7 +297,7 @@ public async Task Exists_AgentsGetMaximumSet() [Ignore("Only validating compilation of examples")] public async Task Exists_AgentsGetMinimumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MinimumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MinimumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -327,7 +327,7 @@ public async Task Exists_AgentsGetMinimumSet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_AgentsGetMaximumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MaximumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MaximumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -369,7 +369,7 @@ public async Task GetIfExists_AgentsGetMaximumSet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_AgentsGetMinimumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MinimumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MinimumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentResource.cs index 730fc70e7ba2..31ccb5ded169 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverAgentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageMoverAgentResource [Ignore("Only validating compilation of examples")] public async Task Get_AgentsGetMaximumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MaximumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MaximumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_AgentsGetMaximumSet() [Ignore("Only validating compilation of examples")] public async Task Get_AgentsGetMinimumSet() { - // Generated from example definition: 2024-07-01/Agents_Get_MinimumSet.json + // Generated from example definition: 2025-07-01/Agents_Get_MinimumSet.json // this example is just showing the usage of "Agent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_AgentsGetMinimumSet() [Ignore("Only validating compilation of examples")] public async Task Delete_AgentsDelete() { - // Generated from example definition: 2024-07-01/Agents_Delete.json + // Generated from example definition: 2025-07-01/Agents_Delete.json // this example is just showing the usage of "Agent_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -109,7 +109,7 @@ public async Task Delete_AgentsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_AgentsUpdate() { - // Generated from example definition: 2024-07-01/Agents_Update.json + // Generated from example definition: 2025-07-01/Agents_Update.json // this example is just showing the usage of "Agent_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverCollection.cs index d297464bd129..1696b9c13d0d 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageMoverCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StorageMoversCreateOrUpdate() { - // Generated from example definition: 2024-07-01/StorageMovers_CreateOrUpdate.json + // Generated from example definition: 2025-07-01/StorageMovers_CreateOrUpdate.json // this example is just showing the usage of "StorageMover_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task CreateOrUpdate_StorageMoversCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_StorageMoversGet() { - // Generated from example definition: 2024-07-01/StorageMovers_Get.json + // Generated from example definition: 2025-07-01/StorageMovers_Get.json // this example is just showing the usage of "StorageMover_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_StorageMoversGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_StorageMoversList() { - // Generated from example definition: 2024-07-01/StorageMovers_List.json + // Generated from example definition: 2025-07-01/StorageMovers_List.json // this example is just showing the usage of "StorageMover_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -130,7 +130,7 @@ public async Task GetAll_StorageMoversList() [Ignore("Only validating compilation of examples")] public async Task Exists_StorageMoversGet() { - // Generated from example definition: 2024-07-01/StorageMovers_Get.json + // Generated from example definition: 2025-07-01/StorageMovers_Get.json // this example is just showing the usage of "StorageMover_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -159,7 +159,7 @@ public async Task Exists_StorageMoversGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StorageMoversGet() { - // Generated from example definition: 2024-07-01/StorageMovers_Get.json + // Generated from example definition: 2025-07-01/StorageMovers_Get.json // this example is just showing the usage of "StorageMover_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointCollection.cs index 91e9043eefc8..3f289bb07277 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointCollection.cs @@ -16,11 +16,83 @@ namespace Azure.ResourceManager.StorageMover.Samples { public partial class Sample_StorageMoverEndpointCollection { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_EndpointsCreateOrUpdateAzureMultiCloudConnector() + { + // Generated from example definition: 2025-07-01/Endpoints_CreateOrUpdate_AzureMultiCloudConnector.json + // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + StorageMoverEndpointData data = new StorageMoverEndpointData(null); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data); + StorageMoverEndpointResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_EndpointsCreateOrUpdateAzureStorageBlobContainer() { - // Generated from example definition: 2024-07-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json + // Generated from example definition: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageBlobContainer.json + // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + StorageMoverEndpointData data = new StorageMoverEndpointData(null); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data); + StorageMoverEndpointResource result = lro.Value; + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_EndpointsCreateOrUpdateAzureStorageNfsFileShare() + { + // Generated from example definition: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageNfsFileShare.json // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +128,7 @@ public async Task CreateOrUpdate_EndpointsCreateOrUpdateAzureStorageBlobContaine [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_EndpointsCreateOrUpdateAzureStorageSmbFileShare() { - // Generated from example definition: 2024-07-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json + // Generated from example definition: 2025-07-01/Endpoints_CreateOrUpdate_AzureStorageSmbFileShare.json // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +164,7 @@ public async Task CreateOrUpdate_EndpointsCreateOrUpdateAzureStorageSmbFileShare [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_EndpointsCreateOrUpdateNfsMount() { - // Generated from example definition: 2024-07-01/Endpoints_CreateOrUpdate_NfsMount.json + // Generated from example definition: 2025-07-01/Endpoints_CreateOrUpdate_NfsMount.json // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +200,7 @@ public async Task CreateOrUpdate_EndpointsCreateOrUpdateNfsMount() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_EndpointsCreateOrUpdateSmbMount() { - // Generated from example definition: 2024-07-01/Endpoints_CreateOrUpdate_SmbMount.json + // Generated from example definition: 2025-07-01/Endpoints_CreateOrUpdate_SmbMount.json // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -160,11 +232,79 @@ public async Task CreateOrUpdate_EndpointsCreateOrUpdateSmbMount() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_EndpointsGetAzureMultiCloudConnector() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureMultiCloudConnector.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + StorageMoverEndpointResource result = await collection.GetAsync(endpointName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetAzureStorageBlobContainer() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + StorageMoverEndpointResource result = await collection.GetAsync(endpointName); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_EndpointsGetAzureStorageNfsFileShare() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageNfsFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +338,7 @@ public async Task Get_EndpointsGetAzureStorageBlobContainer() [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetAzureStorageSmbFileShare() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageSmbFileShare.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageSmbFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -232,7 +372,7 @@ public async Task Get_EndpointsGetAzureStorageSmbFileShare() [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetNfsMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_NfsMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_NfsMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -266,7 +406,7 @@ public async Task Get_EndpointsGetNfsMount() [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetSmbMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_SmbMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_SmbMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -300,7 +440,7 @@ public async Task Get_EndpointsGetSmbMount() [Ignore("Only validating compilation of examples")] public async Task GetAll_EndpointsList() { - // Generated from example definition: 2024-07-01/Endpoints_List.json + // Generated from example definition: 2025-07-01/Endpoints_List.json // this example is just showing the usage of "Endpoint_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -332,11 +472,71 @@ public async Task GetAll_EndpointsList() Console.WriteLine("Succeeded"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_EndpointsGetAzureMultiCloudConnector() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureMultiCloudConnector.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + bool result = await collection.ExistsAsync(endpointName); + + Console.WriteLine($"Succeeded: {result}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Exists_EndpointsGetAzureStorageBlobContainer() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + bool result = await collection.ExistsAsync(endpointName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_EndpointsGetAzureStorageNfsFileShare() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageNfsFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -366,7 +566,7 @@ public async Task Exists_EndpointsGetAzureStorageBlobContainer() [Ignore("Only validating compilation of examples")] public async Task Exists_EndpointsGetAzureStorageSmbFileShare() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageSmbFileShare.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageSmbFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -396,7 +596,7 @@ public async Task Exists_EndpointsGetAzureStorageSmbFileShare() [Ignore("Only validating compilation of examples")] public async Task Exists_EndpointsGetNfsMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_NfsMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_NfsMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -426,7 +626,7 @@ public async Task Exists_EndpointsGetNfsMount() [Ignore("Only validating compilation of examples")] public async Task Exists_EndpointsGetSmbMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_SmbMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_SmbMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -452,11 +652,95 @@ public async Task Exists_EndpointsGetSmbMount() Console.WriteLine($"Succeeded: {result}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_EndpointsGetAzureMultiCloudConnector() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureMultiCloudConnector.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + NullableResponse response = await collection.GetIfExistsAsync(endpointName); + StorageMoverEndpointResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine("Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + [Test] [Ignore("Only validating compilation of examples")] public async Task GetIfExists_EndpointsGetAzureStorageBlobContainer() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverResource created on azure + // for more information of creating StorageMoverResource, please refer to the document of StorageMoverResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + ResourceIdentifier storageMoverResourceId = StorageMoverResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName); + StorageMoverResource storageMover = client.GetStorageMoverResource(storageMoverResourceId); + + // get the collection of this StorageMoverEndpointResource + StorageMoverEndpointCollection collection = storageMover.GetStorageMoverEndpoints(); + + // invoke the operation + string endpointName = "examples-endpointName"; + NullableResponse response = await collection.GetIfExistsAsync(endpointName); + StorageMoverEndpointResource result = response.HasValue ? response.Value : null; + + if (result == null) + { + Console.WriteLine("Succeeded with null as result"); + } + else + { + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_EndpointsGetAzureStorageNfsFileShare() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageNfsFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -498,7 +782,7 @@ public async Task GetIfExists_EndpointsGetAzureStorageBlobContainer() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_EndpointsGetAzureStorageSmbFileShare() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageSmbFileShare.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageSmbFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -540,7 +824,7 @@ public async Task GetIfExists_EndpointsGetAzureStorageSmbFileShare() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_EndpointsGetNfsMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_NfsMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_NfsMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -582,7 +866,7 @@ public async Task GetIfExists_EndpointsGetNfsMount() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_EndpointsGetSmbMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_SmbMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_SmbMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointResource.cs index d9b356dfb007..570596018d66 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverEndpointResource.cs @@ -16,11 +16,73 @@ namespace Azure.ResourceManager.StorageMover.Samples { public partial class Sample_StorageMoverEndpointResource { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_EndpointsGetAzureMultiCloudConnector() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureMultiCloudConnector.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverEndpointResource created on azure + // for more information of creating StorageMoverEndpointResource, please refer to the document of StorageMoverEndpointResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + string endpointName = "examples-endpointName"; + ResourceIdentifier storageMoverEndpointResourceId = StorageMoverEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName, endpointName); + StorageMoverEndpointResource storageMoverEndpoint = client.GetStorageMoverEndpointResource(storageMoverEndpointResourceId); + + // invoke the operation + StorageMoverEndpointResource result = await storageMoverEndpoint.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetAzureStorageBlobContainer() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageBlobContainer.json + // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverEndpointResource created on azure + // for more information of creating StorageMoverEndpointResource, please refer to the document of StorageMoverEndpointResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + string endpointName = "examples-endpointName"; + ResourceIdentifier storageMoverEndpointResourceId = StorageMoverEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName, endpointName); + StorageMoverEndpointResource storageMoverEndpoint = client.GetStorageMoverEndpointResource(storageMoverEndpointResourceId); + + // invoke the operation + StorageMoverEndpointResource result = await storageMoverEndpoint.GetAsync(); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_EndpointsGetAzureStorageNfsFileShare() + { + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageNfsFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +113,7 @@ public async Task Get_EndpointsGetAzureStorageBlobContainer() [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetAzureStorageSmbFileShare() { - // Generated from example definition: 2024-07-01/Endpoints_Get_AzureStorageSmbFileShare.json + // Generated from example definition: 2025-07-01/Endpoints_Get_AzureStorageSmbFileShare.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +144,7 @@ public async Task Get_EndpointsGetAzureStorageSmbFileShare() [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetNfsMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_NfsMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_NfsMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -113,7 +175,7 @@ public async Task Get_EndpointsGetNfsMount() [Ignore("Only validating compilation of examples")] public async Task Get_EndpointsGetSmbMount() { - // Generated from example definition: 2024-07-01/Endpoints_Get_SmbMount.json + // Generated from example definition: 2025-07-01/Endpoints_Get_SmbMount.json // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +206,7 @@ public async Task Get_EndpointsGetSmbMount() [Ignore("Only validating compilation of examples")] public async Task Delete_EndpointsDelete() { - // Generated from example definition: 2024-07-01/Endpoints_Delete.json + // Generated from example definition: 2025-07-01/Endpoints_Delete.json // this example is just showing the usage of "Endpoint_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -167,11 +229,75 @@ public async Task Delete_EndpointsDelete() Console.WriteLine("Succeeded"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_EndpointsUpdateAzureMultiCloudConnector() + { + // Generated from example definition: 2025-07-01/Endpoints_Update_AzureMultiCloudConnector.json + // this example is just showing the usage of "Endpoint_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverEndpointResource created on azure + // for more information of creating StorageMoverEndpointResource, please refer to the document of StorageMoverEndpointResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + string endpointName = "examples-endpointName"; + ResourceIdentifier storageMoverEndpointResourceId = StorageMoverEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName, endpointName); + StorageMoverEndpointResource storageMoverEndpoint = client.GetStorageMoverEndpointResource(storageMoverEndpointResourceId); + + // invoke the operation + StorageMoverEndpointPatch patch = new StorageMoverEndpointPatch(); + StorageMoverEndpointResource result = await storageMoverEndpoint.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_EndpointsUpdateAzureStorageBlobContainer() { - // Generated from example definition: 2024-07-01/Endpoints_Update_AzureStorageBlobContainer.json + // Generated from example definition: 2025-07-01/Endpoints_Update_AzureStorageBlobContainer.json + // this example is just showing the usage of "Endpoint_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this StorageMoverEndpointResource created on azure + // for more information of creating StorageMoverEndpointResource, please refer to the document of StorageMoverEndpointResource + string subscriptionId = "60bcfc77-6589-4da2-b7fd-f9ec9322cf95"; + string resourceGroupName = "examples-rg"; + string storageMoverName = "examples-storageMoverName"; + string endpointName = "examples-endpointName"; + ResourceIdentifier storageMoverEndpointResourceId = StorageMoverEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, storageMoverName, endpointName); + StorageMoverEndpointResource storageMoverEndpoint = client.GetStorageMoverEndpointResource(storageMoverEndpointResourceId); + + // invoke the operation + StorageMoverEndpointPatch patch = new StorageMoverEndpointPatch(); + StorageMoverEndpointResource result = await storageMoverEndpoint.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StorageMoverEndpointData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_EndpointsUpdateAzureStorageNfsFileShare() + { + // Generated from example definition: 2025-07-01/Endpoints_Update_AzureStorageNfsFileShare.json // this example is just showing the usage of "Endpoint_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -203,7 +329,7 @@ public async Task Update_EndpointsUpdateAzureStorageBlobContainer() [Ignore("Only validating compilation of examples")] public async Task Update_EndpointsUpdateAzureStorageSmbFileShare() { - // Generated from example definition: 2024-07-01/Endpoints_Update_AzureStorageSmbFileShare.json + // Generated from example definition: 2025-07-01/Endpoints_Update_AzureStorageSmbFileShare.json // this example is just showing the usage of "Endpoint_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -235,7 +361,7 @@ public async Task Update_EndpointsUpdateAzureStorageSmbFileShare() [Ignore("Only validating compilation of examples")] public async Task Update_EndpointsUpdateNfsMount() { - // Generated from example definition: 2024-07-01/Endpoints_Update_NfsMount.json + // Generated from example definition: 2025-07-01/Endpoints_Update_NfsMount.json // this example is just showing the usage of "Endpoint_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +393,7 @@ public async Task Update_EndpointsUpdateNfsMount() [Ignore("Only validating compilation of examples")] public async Task Update_EndpointsUpdateSmbMount() { - // Generated from example definition: 2024-07-01/Endpoints_Update_SmbMount.json + // Generated from example definition: 2025-07-01/Endpoints_Update_SmbMount.json // this example is just showing the usage of "Endpoint_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectCollection.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectCollection.cs index ad85c3454cd0..893f1e815f94 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectCollection.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_StorageMoverProjectCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ProjectsCreateOrUpdate() { - // Generated from example definition: 2024-07-01/Projects_CreateOrUpdate.json + // Generated from example definition: 2025-07-01/Projects_CreateOrUpdate.json // this example is just showing the usage of "Project_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task CreateOrUpdate_ProjectsCreateOrUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_ProjectsGet() { - // Generated from example definition: 2024-07-01/Projects_Get.json + // Generated from example definition: 2025-07-01/Projects_Get.json // this example is just showing the usage of "Project_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_ProjectsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_ProjectsList() { - // Generated from example definition: 2024-07-01/Projects_List.json + // Generated from example definition: 2025-07-01/Projects_List.json // this example is just showing the usage of "Project_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetAll_ProjectsList() [Ignore("Only validating compilation of examples")] public async Task Exists_ProjectsGet() { - // Generated from example definition: 2024-07-01/Projects_Get.json + // Generated from example definition: 2025-07-01/Projects_Get.json // this example is just showing the usage of "Project_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -155,7 +155,7 @@ public async Task Exists_ProjectsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ProjectsGet() { - // Generated from example definition: 2024-07-01/Projects_Get.json + // Generated from example definition: 2025-07-01/Projects_Get.json // this example is just showing the usage of "Project_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectResource.cs index ded1bb7ac0f6..cabdd37e3f90 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverProjectResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageMoverProjectResource [Ignore("Only validating compilation of examples")] public async Task Get_ProjectsGet() { - // Generated from example definition: 2024-07-01/Projects_Get.json + // Generated from example definition: 2025-07-01/Projects_Get.json // this example is just showing the usage of "Project_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_ProjectsGet() [Ignore("Only validating compilation of examples")] public async Task Delete_ProjectsDelete() { - // Generated from example definition: 2024-07-01/Projects_Delete.json + // Generated from example definition: 2025-07-01/Projects_Delete.json // this example is just showing the usage of "Project_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task Delete_ProjectsDelete() [Ignore("Only validating compilation of examples")] public async Task Update_ProjectsUpdate() { - // Generated from example definition: 2024-07-01/Projects_Update.json + // Generated from example definition: 2025-07-01/Projects_Update.json // this example is just showing the usage of "Project_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverResource.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverResource.cs index 49b00a06454b..116d26d3872d 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverResource.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_StorageMoverResource.cs @@ -20,7 +20,7 @@ public partial class Sample_StorageMoverResource [Ignore("Only validating compilation of examples")] public async Task Get_StorageMoversGet() { - // Generated from example definition: 2024-07-01/StorageMovers_Get.json + // Generated from example definition: 2025-07-01/StorageMovers_Get.json // this example is just showing the usage of "StorageMover_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -50,7 +50,7 @@ public async Task Get_StorageMoversGet() [Ignore("Only validating compilation of examples")] public async Task Delete_StorageMoversDelete() { - // Generated from example definition: 2024-07-01/StorageMovers_Delete.json + // Generated from example definition: 2025-07-01/StorageMovers_Delete.json // this example is just showing the usage of "StorageMover_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Delete_StorageMoversDelete() [Ignore("Only validating compilation of examples")] public async Task Update_StorageMoversUpdate() { - // Generated from example definition: 2024-07-01/StorageMovers_Update.json + // Generated from example definition: 2025-07-01/StorageMovers_Update.json // this example is just showing the usage of "StorageMover_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 0894bdc19d8c..d8a8ad603ea9 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tests/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -20,7 +20,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetStorageMovers_StorageMoversList() { - // Generated from example definition: 2024-07-01/StorageMovers_ListBySubscription.json + // Generated from example definition: 2025-07-01/StorageMovers_ListBySubscription.json // this example is just showing the usage of "StorageMover_ListBySubscription" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml b/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml index 489becdfd83b..d7c6eb4a9a54 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/storagemover/StorageMover.Management +commit: 17891d99ece54475e43fb8665727d044e8fb2f54 repo: Azure/azure-rest-api-specs -commit: a920a0ebf21edd5f70ba6039f7e7df6c40733d0b -additionalDirectories: [] +additionalDirectories: From 3c7d408b1ad4eb6deb99a0f4545076931e61b1ad Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Wed, 17 Sep 2025 11:21:27 +0800 Subject: [PATCH 2/2] update --- ...ure.ResourceManager.StorageMover.net8.0.cs | 6 ++ ...urceManager.StorageMover.netstandard2.0.cs | 6 ++ .../Generated/ArmStorageMoverModelFactory.cs | 68 +++++++++++++++++++ .../tsp-location.yaml | 2 +- 4 files changed, 81 insertions(+), 1 deletion(-) diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs index 5f66f070ef8f..a533a44f6e02 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.net8.0.cs @@ -415,6 +415,8 @@ public static partial class ArmStorageMoverModelFactory public static Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties AzureStorageNfsFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.AzureStorageSmbFileShareEndpointProperties AzureStorageSmbFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties EndpointBaseProperties(string endpointType = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode, string sourceName, Azure.Core.ResourceIdentifier sourceResourceId, string sourceSubpath, string targetName, Azure.Core.ResourceIdentifier targetResourceId, string targetSubpath, string latestJobRunName, Azure.Core.ResourceIdentifier latestJobRunResourceId, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus, string agentName, Azure.Core.ResourceIdentifier agentResourceId, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState) { throw null; } public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.JobType? jobType = default(Azure.ResourceManager.StorageMover.Models.JobType?), Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.Collections.Generic.IEnumerable sourceTargetMapValue = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.JobRunData JobRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? status = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), Azure.ResourceManager.StorageMover.Models.JobRunScanStatus? scanStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunScanStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.DateTimeOffset? executionStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? executionEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), long? itemsScanned = default(long?), long? itemsExcluded = default(long?), long? itemsUnsupported = default(long?), long? itemsNoTransferNeeded = default(long?), long? itemsFailed = default(long?), long? itemsTransferred = default(long?), long? bytesScanned = default(long?), long? bytesExcluded = default(long?), long? bytesUnsupported = default(long?), long? bytesNoTransferNeeded = default(long?), long? bytesFailed = default(long?), long? bytesTransferred = default(long?), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, System.BinaryData sourceProperties = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, System.BinaryData targetProperties = null, System.BinaryData jobDefinitionProperties = null, Azure.ResourceManager.StorageMover.Models.JobRunError error = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunError JobRunError(string code = null, string message = null, string target = null) { throw null; } @@ -423,9 +425,13 @@ public static partial class ArmStorageMoverModelFactory public static Azure.ResourceManager.StorageMover.Models.SmbMountEndpointProperties SmbMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, string shareName = null, Azure.ResourceManager.StorageMover.Models.AzureKeyVaultSmbCredentials credentials = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties SourceEndpointProperties(string name = null, Azure.Core.ResourceIdentifier sourceEndpointResourceId = null, Azure.Core.ResourceIdentifier awsS3BucketId = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.SourceTargetMap SourceTargetMap(Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties sourceEndpointProperties = null, Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties targetEndpointProperties = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string agentVersion, string arcResourceId, string arcVmUuid, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus, System.DateTimeOffset? lastStatusUpdate, string localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string agentVersion = null, string arcResourceId = null, string arcVmUuid = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus = default(Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), string localIPAddress = null, long? memoryInMB = default(long?), long? numberOfCores = default(long?), long? uptimeInSeconds = default(long?), string timeZone = null, System.Collections.Generic.IEnumerable uploadLimitScheduleWeeklyRecurrences = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertiesErrorDetails(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverData StorageMoverData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverProjectData StorageMoverProjectData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties TargetEndpointProperties(string name = null, Azure.Core.ResourceIdentifier targetEndpointResourceId = null, Azure.Core.ResourceIdentifier azureStorageAccountResourceId = null, string azureStorageBlobContainerName = null) { throw null; } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs index 5f66f070ef8f..a533a44f6e02 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/api/Azure.ResourceManager.StorageMover.netstandard2.0.cs @@ -415,6 +415,8 @@ public static partial class ArmStorageMoverModelFactory public static Azure.ResourceManager.StorageMover.Models.AzureStorageNfsFileShareEndpointProperties AzureStorageNfsFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.AzureStorageSmbFileShareEndpointProperties AzureStorageSmbFileShareEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), Azure.Core.ResourceIdentifier storageAccountResourceId = null, string fileShareName = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties EndpointBaseProperties(string endpointType = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode, string sourceName, Azure.Core.ResourceIdentifier sourceResourceId, string sourceSubpath, string targetName, Azure.Core.ResourceIdentifier targetResourceId, string targetSubpath, string latestJobRunName, Azure.Core.ResourceIdentifier latestJobRunResourceId, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus, string agentName, Azure.Core.ResourceIdentifier agentResourceId, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState) { throw null; } public static Azure.ResourceManager.StorageMover.JobDefinitionData JobDefinitionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.JobType? jobType = default(Azure.ResourceManager.StorageMover.Models.JobType?), Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode copyMode = default(Azure.ResourceManager.StorageMover.Models.StorageMoverCopyMode), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, string sourceSubpath = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, string targetSubpath = null, string latestJobRunName = null, Azure.Core.ResourceIdentifier latestJobRunResourceId = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? latestJobRunStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.Collections.Generic.IEnumerable sourceTargetMapValue = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.JobRunData JobRunData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.JobRunStatus? status = default(Azure.ResourceManager.StorageMover.Models.JobRunStatus?), Azure.ResourceManager.StorageMover.Models.JobRunScanStatus? scanStatus = default(Azure.ResourceManager.StorageMover.Models.JobRunScanStatus?), string agentName = null, Azure.Core.ResourceIdentifier agentResourceId = null, System.DateTimeOffset? executionStartOn = default(System.DateTimeOffset?), System.DateTimeOffset? executionEndOn = default(System.DateTimeOffset?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), long? itemsScanned = default(long?), long? itemsExcluded = default(long?), long? itemsUnsupported = default(long?), long? itemsNoTransferNeeded = default(long?), long? itemsFailed = default(long?), long? itemsTransferred = default(long?), long? bytesScanned = default(long?), long? bytesExcluded = default(long?), long? bytesUnsupported = default(long?), long? bytesNoTransferNeeded = default(long?), long? bytesFailed = default(long?), long? bytesTransferred = default(long?), string sourceName = null, Azure.Core.ResourceIdentifier sourceResourceId = null, System.BinaryData sourceProperties = null, string targetName = null, Azure.Core.ResourceIdentifier targetResourceId = null, System.BinaryData targetProperties = null, System.BinaryData jobDefinitionProperties = null, Azure.ResourceManager.StorageMover.Models.JobRunError error = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.JobRunError JobRunError(string code = null, string message = null, string target = null) { throw null; } @@ -423,9 +425,13 @@ public static partial class ArmStorageMoverModelFactory public static Azure.ResourceManager.StorageMover.Models.SmbMountEndpointProperties SmbMountEndpointProperties(string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?), string host = null, string shareName = null, Azure.ResourceManager.StorageMover.Models.AzureKeyVaultSmbCredentials credentials = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties SourceEndpointProperties(string name = null, Azure.Core.ResourceIdentifier sourceEndpointResourceId = null, Azure.Core.ResourceIdentifier awsS3BucketId = null) { throw null; } public static Azure.ResourceManager.StorageMover.Models.SourceTargetMap SourceTargetMap(Azure.ResourceManager.StorageMover.Models.SourceEndpointProperties sourceEndpointProperties = null, Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties targetEndpointProperties = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string description, string agentVersion, string arcResourceId, string arcVmUuid, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus, System.DateTimeOffset? lastStatusUpdate, string localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverAgentData StorageMoverAgentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, string agentVersion = null, string arcResourceId = null, string arcVmUuid = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? agentStatus = default(Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus?), System.DateTimeOffset? lastStatusUpdate = default(System.DateTimeOffset?), string localIPAddress = null, long? memoryInMB = default(long?), long? numberOfCores = default(long?), long? uptimeInSeconds = default(long?), string timeZone = null, System.Collections.Generic.IEnumerable uploadLimitScheduleWeeklyRecurrences = null, Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails errorDetails = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails StorageMoverAgentPropertiesErrorDetails(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverData StorageMoverData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverEndpointData StorageMoverEndpointData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.StorageMover.Models.EndpointBaseProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null) { throw null; } public static Azure.ResourceManager.StorageMover.StorageMoverProjectData StorageMoverProjectData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string description = null, Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? provisioningState = default(Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState?)) { throw null; } public static Azure.ResourceManager.StorageMover.Models.TargetEndpointProperties TargetEndpointProperties(string name = null, Azure.Core.ResourceIdentifier targetEndpointResourceId = null, Azure.Core.ResourceIdentifier azureStorageAccountResourceId = null, string azureStorageBlobContainerName = null) { throw null; } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs index 3d290be31209..2928765bc088 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/ArmStorageMoverModelFactory.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -426,5 +427,72 @@ public static JobRunError JobRunError(string code = null, string message = null, { return new JobRunError(code, message, target, serializedAdditionalRawData: null); } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// + /// The resource specific properties for the Storage Mover resource. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . + /// + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static StorageMoverEndpointData StorageMoverEndpointData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, EndpointBaseProperties properties) + { + return StorageMoverEndpointData(id: id, name: name, resourceType: resourceType, systemData: systemData, properties: properties, identity: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for the Job Definition. + /// Strategy to use for copy. + /// The name of the source Endpoint. + /// Fully qualified resource ID of the source Endpoint. + /// The subpath to use when reading from the source Endpoint. + /// The name of the target Endpoint. + /// Fully qualified resource ID of the target Endpoint. + /// The subpath to use when writing to the target Endpoint. + /// The name of the Job Run in a non-terminal state, if exists. + /// The fully qualified resource ID of the Job Run in a non-terminal state, if exists. + /// The current status of the Job Run in a non-terminal state, if exists. + /// Name of the Agent to assign for new Job Runs of this Job Definition. + /// Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. + /// The provisioning state of this resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static JobDefinitionData JobDefinitionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, StorageMoverCopyMode copyMode, string sourceName, ResourceIdentifier sourceResourceId, string sourceSubpath, string targetName, ResourceIdentifier targetResourceId, string targetSubpath, string latestJobRunName, ResourceIdentifier latestJobRunResourceId, JobRunStatus? latestJobRunStatus, string agentName, ResourceIdentifier agentResourceId, StorageMoverProvisioningState? provisioningState) + { + return JobDefinitionData(id: id, name: name, resourceType: resourceType, systemData: systemData, description: description, jobType: default, copyMode: copyMode, sourceName: sourceName, sourceResourceId: sourceResourceId, sourceSubpath: sourceSubpath, targetName: targetName, targetResourceId: targetResourceId, targetSubpath: targetSubpath, latestJobRunName: latestJobRunName, latestJobRunResourceId: latestJobRunResourceId, latestJobRunStatus: latestJobRunStatus, agentName: agentName, agentResourceId: agentResourceId, sourceTargetMapValue: default, provisioningState: provisioningState); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for the Agent. + /// The Agent version. + /// The fully qualified resource ID of the Hybrid Compute resource for the Agent. + /// The VM UUID of the Hybrid Compute resource for the Agent. + /// The Agent status. + /// The last updated time of the Agent status. + /// Local IP address reported by the Agent. + /// Available memory reported by the Agent, in MB. + /// Available compute cores reported by the Agent. + /// Uptime of the Agent in seconds. + /// + /// The provisioning state of this resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static StorageMoverAgentData StorageMoverAgentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string agentVersion, string arcResourceId, string arcVmUuid, StorageMoverAgentStatus? agentStatus, DateTimeOffset? lastStatusUpdate, string localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, StorageMoverAgentPropertiesErrorDetails errorDetails, StorageMoverProvisioningState? provisioningState) + { + return StorageMoverAgentData(id: id, name: name, resourceType: resourceType, systemData: systemData, description: description, agentVersion: agentVersion, arcResourceId: arcResourceId, arcVmUuid: arcVmUuid, agentStatus: agentStatus, lastStatusUpdate: lastStatusUpdate, localIPAddress: localIPAddress, memoryInMB: memoryInMB, numberOfCores: numberOfCores, uptimeInSeconds: uptimeInSeconds, timeZone: default, uploadLimitScheduleWeeklyRecurrences: default, errorDetails: errorDetails, provisioningState: provisioningState); + } } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml b/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml index d7c6eb4a9a54..d16f64fe81a3 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/storagemover/StorageMover.Management -commit: 17891d99ece54475e43fb8665727d044e8fb2f54 +commit: e89374a1f5e2c4ddcf34ed01495a98dfedac0f8b repo: Azure/azure-rest-api-specs additionalDirectories: