diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md b/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md index 8f15b2fc2a54..49f9777cec4f 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/CHANGELOG.md @@ -1,20 +1,19 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (Unreleased) -### Features Added - -### Breaking Changes +This release is the first stable release of the Storage Mover Management library. -### Bugs Fixed - -### Other Changes +### Features Added +- +- Upgraded API version to 2021-01-01. ## 1.0.0-beta.1 (2022-12-09) ### Breaking Changes New design of track 2 initial commit. + - Corrected the format of all `uuid` type properties / parameters. - Corrected all acronyms that don't follow [Microsoft .NET Naming Guidelines](https://docs.microsoft.com/dotnet/standard/design-guidelines/naming-guidelines). - Prepended `StorageMover` prefix to all single / simple model names @@ -32,4 +31,4 @@ This package follows the [new Azure SDK guidelines](https://azure.github.io/azur This package is a Public Preview version, so expect incompatible changes in subsequent releases as we improve the product. To provide feedback, submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). -> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). \ No newline at end of file +> NOTE: For more information about unified authentication, please refer to [Microsoft Azure Identity documentation for .NET](https://docs.microsoft.com//dotnet/api/overview/azure/identity-readme?view=azure-dotnet). 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 5b9de7123acf..be3db013ed2b 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 @@ -126,15 +126,15 @@ protected StorageMoverAgentCollection() { } } public partial class StorageMoverAgentData : Azure.ResourceManager.Models.ResourceData { - public StorageMoverAgentData(string arcResourceId, string arcVmUuid) { } + public StorageMoverAgentData(Azure.Core.ResourceIdentifier arcResourceId, System.Guid arcVmUuid) { } public Azure.ResourceManager.StorageMover.Models.StorageMoverAgentStatus? AgentStatus { get { throw null; } } public string AgentVersion { get { throw null; } } - public string ArcResourceId { get { throw null; } set { } } - public string ArcVmUuid { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier ArcResourceId { get { throw null; } set { } } + public System.Guid ArcVmUuid { get { throw null; } set { } } public string Description { get { throw null; } set { } } public Azure.ResourceManager.StorageMover.Models.StorageMoverAgentPropertiesErrorDetails ErrorDetails { get { throw null; } } public System.DateTimeOffset? LastStatusUpdate { get { throw null; } } - public string LocalIPAddress { get { throw null; } } + public System.Net.IPAddress LocalIPAddress { get { throw null; } } public long? MemoryInMB { get { throw null; } } public long? NumberOfCores { get { throw null; } } public Azure.ResourceManager.StorageMover.Models.StorageMoverProvisioningState? ProvisioningState { get { throw null; } } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Azure.ResourceManager.StorageMover.csproj b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Azure.ResourceManager.StorageMover.csproj index ad3bca1ad2b1..fe47fb70280d 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Azure.ResourceManager.StorageMover.csproj +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Azure.ResourceManager.StorageMover.csproj @@ -1,6 +1,6 @@ - 1.0.0-beta.2 + 1.0.0 Azure.ResourceManager.StorageMover Azure Resource Manager client SDK for Azure resource provider StorageMover azure;management;arm;resource manager;storagemover diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverAgentData.Serialization.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverAgentData.Serialization.cs index 80a6d31bb2cc..fb31ea34aaff 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverAgentData.Serialization.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/Models/StorageMoverAgentData.Serialization.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Net; using System.Text.Json; using Azure.Core; using Azure.ResourceManager.Models; @@ -41,11 +42,11 @@ internal static StorageMoverAgentData DeserializeStorageMoverAgentData(JsonEleme Optional systemData = default; Optional description = default; Optional agentVersion = default; - string arcResourceId = default; - string arcVmUuid = default; + ResourceIdentifier arcResourceId = default; + Guid arcVmUuid = default; Optional agentStatus = default; Optional lastStatusUpdate = default; - Optional localIPAddress = default; + Optional localIPAddress = default; Optional memoryInMB = default; Optional numberOfCores = default; Optional uptimeInSeconds = default; @@ -99,12 +100,12 @@ internal static StorageMoverAgentData DeserializeStorageMoverAgentData(JsonEleme } if (property0.NameEquals("arcResourceId")) { - arcResourceId = property0.Value.GetString(); + arcResourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("arcVmUuid")) { - arcVmUuid = property0.Value.GetString(); + arcVmUuid = property0.Value.GetGuid(); continue; } if (property0.NameEquals("agentStatus")) @@ -129,7 +130,12 @@ internal static StorageMoverAgentData DeserializeStorageMoverAgentData(JsonEleme } if (property0.NameEquals("localIPAddress")) { - localIPAddress = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + localIPAddress = IPAddress.Parse(property0.Value.GetString()); continue; } if (property0.NameEquals("memoryInMB")) 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 eca35da0f37d..066e0782f93a 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/AgentsRestOperations.cs @@ -33,7 +33,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 ?? "2022-07-01-preview"; + _apiVersion = apiVersion ?? "2023-03-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 34eb4cdca5c0..cada89bec20d 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/EndpointsRestOperations.cs @@ -33,7 +33,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 ?? "2022-07-01-preview"; + _apiVersion = apiVersion ?? "2023-03-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 9cfc22fc30c8..858f3599a854 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobDefinitionsRestOperations.cs @@ -33,7 +33,7 @@ public JobDefinitionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-07-01-preview"; + _apiVersion = apiVersion ?? "2023-03-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 f6cb2dc9be43..5697665f3fab 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/JobRunsRestOperations.cs @@ -33,7 +33,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 ?? "2022-07-01-preview"; + _apiVersion = apiVersion ?? "2023-03-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 a4fb6d9902cb..6aff90eb1777 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/ProjectsRestOperations.cs @@ -33,7 +33,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 ?? "2022-07-01-preview"; + _apiVersion = apiVersion ?? "2023-03-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 28499cfd3547..bf02debda1ed 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/RestOperations/StorageMoversRestOperations.cs @@ -33,7 +33,7 @@ public StorageMoversRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-07-01-preview"; + _apiVersion = apiVersion ?? "2023-03-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentData.cs b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentData.cs index 5a8aec57ff41..dc4e91bd316c 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentData.cs +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/Generated/StorageMoverAgentData.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Net; using Azure.Core; using Azure.ResourceManager.Models; using Azure.ResourceManager.StorageMover.Models; @@ -18,11 +19,10 @@ public partial class StorageMoverAgentData : ResourceData /// Initializes a new instance of StorageMoverAgentData. /// The fully qualified resource ID of the Hybrid Compute resource for the Agent. /// The VM UUID of the Hybrid Compute resource for the Agent. - /// or is null. - public StorageMoverAgentData(string arcResourceId, string arcVmUuid) + /// is null. + public StorageMoverAgentData(ResourceIdentifier arcResourceId, Guid arcVmUuid) { Argument.AssertNotNull(arcResourceId, nameof(arcResourceId)); - Argument.AssertNotNull(arcVmUuid, nameof(arcVmUuid)); ArcResourceId = arcResourceId; ArcVmUuid = arcVmUuid; @@ -45,7 +45,7 @@ public StorageMoverAgentData(string arcResourceId, string arcVmUuid) /// Uptime of the Agent in seconds. /// /// The provisioning state of this resource. - internal 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) : base(id, name, resourceType, systemData) + internal StorageMoverAgentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, string agentVersion, ResourceIdentifier arcResourceId, Guid arcVmUuid, StorageMoverAgentStatus? agentStatus, DateTimeOffset? lastStatusUpdate, IPAddress localIPAddress, long? memoryInMB, long? numberOfCores, long? uptimeInSeconds, StorageMoverAgentPropertiesErrorDetails errorDetails, StorageMoverProvisioningState? provisioningState) : base(id, name, resourceType, systemData) { Description = description; AgentVersion = agentVersion; @@ -66,15 +66,15 @@ internal StorageMoverAgentData(ResourceIdentifier id, string name, ResourceType /// The Agent version. public string AgentVersion { get; } /// The fully qualified resource ID of the Hybrid Compute resource for the Agent. - public string ArcResourceId { get; set; } + public ResourceIdentifier ArcResourceId { get; set; } /// The VM UUID of the Hybrid Compute resource for the Agent. - public string ArcVmUuid { get; set; } + public Guid ArcVmUuid { get; set; } /// The Agent status. public StorageMoverAgentStatus? AgentStatus { get; } /// The last updated time of the Agent status. public DateTimeOffset? LastStatusUpdate { get; } /// Local IP address reported by the Agent. - public string LocalIPAddress { get; } + public IPAddress LocalIPAddress { get; } /// Available memory reported by the Agent, in MB. public long? MemoryInMB { get; } /// Available compute cores reported by the Agent. diff --git a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md index c73660eba360..85e7d08b62c1 100644 --- a/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md +++ b/sdk/storagemover/Azure.ResourceManager.StorageMover/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: StorageMover namespace: Azure.ResourceManager.StorageMover -require: https://github.com/Azure/azure-rest-api-specs/blob/e99a45d498a1c7fadc18229ecba5d84a471a8771/specification/storagemover/resource-manager/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/ac3e8f0fdda32a4ea0f20d67c8a23547cd21f3f8/specification/storagemover/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true @@ -30,6 +30,9 @@ rename-mapping: JobRun.properties.sourceResourceId: -|arm-id JobRun.properties.targetResourceId: -|arm-id JobRunResourceId.jobRunResourceId: -|arm-id + Agent.properties.arcResourceId: -|arm-id + Agent.properties.arcVmUuid: -|uuid + Agent.properties.localIPAddress: -|ip-address format-by-name-rules: 'tenantId': 'uuid' @@ -61,4 +64,4 @@ rename-rules: URI: Uri Etag: ETag|etag -``` \ No newline at end of file +```