From 0ae5b7058abb87f8a3115aa8cbc5ce2f8cc77bdb Mon Sep 17 00:00:00 2001 From: Ajay Gupta Date: Tue, 20 Oct 2020 17:29:20 +0530 Subject: [PATCH 1/3] Changes to refer to the new resourcemover folder from azure-rest-api-specs repo, Added support for BulkRemoveMoveResources Api. --- .../resourcemover_resource-manager.txt | 6 +- .../Generated/IMoveCollectionsOperations.cs | 56 +++++ .../src/Generated/Models/BulkRemoveRequest.cs | 77 ++++++ .../Generated/Models/OperationsDiscovery.cs | 11 +- .../src/Generated/Models/SummaryItem.cs | 59 +++++ .../Generated/MoveCollectionsOperations.cs | 231 ++++++++++++++++++ .../MoveCollectionsOperationsExtensions.cs | 92 +++++++ .../SdkInfo_ResourceMoverServiceAPI.cs | 4 +- ...re.Management.Migrate.ResourceMover.csproj | 2 +- .../src/Properties/AssemblyInfo.cs | 4 +- .../src/generate.ps1 | 2 +- .../tests/ScenarioTests/ResourceMoverTests.cs | 69 ++++++ ...itiateBulkRemoveForMoveResourcesAsync.json | 134 ++++++++++ ...lidateBulkRemoveForMoveResourcesAsync.json | 134 ++++++++++ 14 files changed, 871 insertions(+), 10 deletions(-) create mode 100644 sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/BulkRemoveRequest.cs create mode 100644 sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/SummaryItem.cs create mode 100644 sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/InitiateBulkRemoveForMoveResourcesAsync.json create mode 100644 sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/ValidateBulkRemoveForMoveResourcesAsync.json diff --git a/eng/mgmt/mgmtmetadata/resourcemover_resource-manager.txt b/eng/mgmt/mgmtmetadata/resourcemover_resource-manager.txt index 6e76c12427dd..d487fe18127e 100644 --- a/eng/mgmt/mgmtmetadata/resourcemover_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/resourcemover_resource-manager.txt @@ -3,12 +3,12 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/regionmove/resource-manager/readme.md --csharp --version=V2 --reflect-api-versions --csharp-sdks-folder=C:\GithubRepo\azure-sdk-for-net\sdk -2020-09-09 23:50:23 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resourcemover/resource-manager/readme.md --csharp --version=V2 --reflect-api-versions --csharp-sdks-folder=C:\GithubRepo\azure-sdk-for-net\sdk +2020-10-20 10:49:48 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: f348535652dfa19050c903528130c55eb9ff4095 +Commit: 6e52d5c8e77a02fb333a991de8f1ca630ba9ff3e AutoRest information Requested version: V2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/IMoveCollectionsOperations.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/IMoveCollectionsOperations.cs index 3b8e107af9d2..4fbfbdceaa44 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/IMoveCollectionsOperations.cs +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/IMoveCollectionsOperations.cs @@ -282,6 +282,34 @@ public partial interface IMoveCollectionsOperations /// Task> ResolveDependenciesWithHttpMessagesAsync(string resourceGroupName, string moveCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Removes the set of move resources included in the request body from + /// move collection. The orchestration is done by service. To aid the + /// user to prerequisite the operation the client can call operation + /// with validateOnly property set to true. + /// + /// + /// + /// + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BulkRemoveWithHttpMessagesAsync(string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Get all Move Collections. /// /// @@ -508,6 +536,34 @@ public partial interface IMoveCollectionsOperations /// Task> BeginResolveDependenciesWithHttpMessagesAsync(string resourceGroupName, string moveCollectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Removes the set of move resources included in the request body from + /// move collection. The orchestration is done by service. To aid the + /// user to prerequisite the operation the client can call operation + /// with validateOnly property set to true. + /// + /// + /// + /// + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginBulkRemoveWithHttpMessagesAsync(string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Get all Move Collections. /// /// diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/BulkRemoveRequest.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/BulkRemoveRequest.cs new file mode 100644 index 000000000000..98a35d1b289b --- /dev/null +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/BulkRemoveRequest.cs @@ -0,0 +1,77 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Migrate.ResourceMover.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Defines the request body for bulk remove of move resources operation. + /// + public partial class BulkRemoveRequest + { + /// + /// Initializes a new instance of the BulkRemoveRequest class. + /// + public BulkRemoveRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the BulkRemoveRequest class. + /// + /// Gets or sets a value indicating whether + /// the operation needs to only run pre-requisite. + /// Gets or sets the list of resource Id's, + /// by default it accepts move resource id's unless the input type is + /// switched via moveResourceInputType property. + /// Possible values include: + /// 'MoveResourceId', 'MoveResourceSourceId' + public BulkRemoveRequest(bool? validateOnly = default(bool?), IList moveResources = default(IList), string moveResourceInputType = default(string)) + { + ValidateOnly = validateOnly; + MoveResources = moveResources; + MoveResourceInputType = moveResourceInputType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets a value indicating whether the operation needs to only + /// run pre-requisite. + /// + [JsonProperty(PropertyName = "validateOnly")] + public bool? ValidateOnly { get; set; } + + /// + /// Gets or sets the list of resource Id's, by default it accepts move + /// resource id's unless the input type is switched via + /// moveResourceInputType property. + /// + [JsonProperty(PropertyName = "moveResources")] + public IList MoveResources { get; set; } + + /// + /// Gets or sets possible values include: 'MoveResourceId', + /// 'MoveResourceSourceId' + /// + [JsonProperty(PropertyName = "moveResourceInputType")] + public string MoveResourceInputType { get; set; } + + } +} diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/OperationsDiscovery.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/OperationsDiscovery.cs index dba92fd3c9b6..6c3409990d3a 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/OperationsDiscovery.cs +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/OperationsDiscovery.cs @@ -58,14 +58,17 @@ public OperationsDiscovery() /// operation (e.g. a localized name for the resource provider + any /// special /// considerations like PII release). + /// Indicates whether the operation is a + /// data action /// Gets or sets Origin. /// The intended executor of the operation; governs the display of the /// operation in the /// RBAC UX and the audit logs UX. /// Default value is "user,system". - public OperationsDiscovery(string name = default(string), Display display = default(Display), string origin = default(string), object properties = default(object)) + public OperationsDiscovery(string name = default(string), bool? isDataAction = default(bool?), Display display = default(Display), string origin = default(string), object properties = default(object)) { Name = name; + IsDataAction = isDataAction; Display = display; Origin = origin; Properties = properties; @@ -111,6 +114,12 @@ public OperationsDiscovery() [JsonProperty(PropertyName = "name")] public string Name { get; set; } + /// + /// Gets or sets indicates whether the operation is a data action + /// + [JsonProperty(PropertyName = "isDataAction")] + public bool? IsDataAction { get; set; } + /// /// [JsonProperty(PropertyName = "display")] diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/SummaryItem.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/SummaryItem.cs new file mode 100644 index 000000000000..aa4624b73b90 --- /dev/null +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/Models/SummaryItem.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Migrate.ResourceMover.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Summary item. + /// + public partial class SummaryItem + { + /// + /// Initializes a new instance of the SummaryItem class. + /// + public SummaryItem() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SummaryItem class. + /// + /// Gets the count. + /// Gets the item. + public SummaryItem(int? count = default(int?), string item = default(string)) + { + Count = count; + Item = item; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the count. + /// + [JsonProperty(PropertyName = "count")] + public int? Count { get; set; } + + /// + /// Gets the item. + /// + [JsonProperty(PropertyName = "item")] + public string Item { get; set; } + + } +} diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperations.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperations.cs index dc417474777e..353e982f901d 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperations.cs +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperations.cs @@ -834,6 +834,31 @@ internal MoveCollectionsOperations(ResourceMoverServiceAPIClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Removes the set of move resources included in the request body from move + /// collection. The orchestration is done by service. To aid the user to + /// prerequisite the operation the client can call operation with validateOnly + /// property set to true. + /// + /// + /// + /// + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> BulkRemoveWithHttpMessagesAsync(string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginBulkRemoveWithHttpMessagesAsync(resourceGroupName, moveCollectionName, body, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Get all Move Collections. /// @@ -2437,6 +2462,212 @@ internal MoveCollectionsOperations(ResourceMoverServiceAPIClient client) return _result; } + /// + /// Removes the set of move resources included in the request body from move + /// collection. The orchestration is done by service. To aid the user to + /// prerequisite the operation the client can call operation with validateOnly + /// property set to true. + /// + /// + /// + /// + /// + /// + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginBulkRemoveWithHttpMessagesAsync(string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (moveCollectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "moveCollectionName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("moveCollectionName", moveCollectionName); + tracingParameters.Add("body", body); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginBulkRemove", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/bulkRemove").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{moveCollectionName}", System.Uri.EscapeDataString(moveCollectionName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(body != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Get all Move Collections. /// diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperationsExtensions.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperationsExtensions.cs index db2b7751711b..da4bf8001e4e 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperationsExtensions.cs +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/MoveCollectionsOperationsExtensions.cs @@ -445,6 +445,52 @@ public static OperationStatus ResolveDependencies(this IMoveCollectionsOperation } } + /// + /// Removes the set of move resources included in the request body from move + /// collection. The orchestration is done by service. To aid the user to + /// prerequisite the operation the client can call operation with validateOnly + /// property set to true. + /// + /// + /// The operations group for this extension method. + /// + /// + /// + /// + /// + /// + /// + public static OperationStatus BulkRemove(this IMoveCollectionsOperations operations, string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest)) + { + return operations.BulkRemoveAsync(resourceGroupName, moveCollectionName, body).GetAwaiter().GetResult(); + } + + /// + /// Removes the set of move resources included in the request body from move + /// collection. The orchestration is done by service. To aid the user to + /// prerequisite the operation the client can call operation with validateOnly + /// property set to true. + /// + /// + /// The operations group for this extension method. + /// + /// + /// + /// + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task BulkRemoveAsync(this IMoveCollectionsOperations operations, string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BulkRemoveWithHttpMessagesAsync(resourceGroupName, moveCollectionName, body, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Get all Move Collections. /// @@ -815,6 +861,52 @@ public static OperationStatus BeginResolveDependencies(this IMoveCollectionsOper } } + /// + /// Removes the set of move resources included in the request body from move + /// collection. The orchestration is done by service. To aid the user to + /// prerequisite the operation the client can call operation with validateOnly + /// property set to true. + /// + /// + /// The operations group for this extension method. + /// + /// + /// + /// + /// + /// + /// + public static OperationStatus BeginBulkRemove(this IMoveCollectionsOperations operations, string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest)) + { + return operations.BeginBulkRemoveAsync(resourceGroupName, moveCollectionName, body).GetAwaiter().GetResult(); + } + + /// + /// Removes the set of move resources included in the request body from move + /// collection. The orchestration is done by service. To aid the user to + /// prerequisite the operation the client can call operation with validateOnly + /// property set to true. + /// + /// + /// The operations group for this extension method. + /// + /// + /// + /// + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task BeginBulkRemoveAsync(this IMoveCollectionsOperations operations, string resourceGroupName, string moveCollectionName, BulkRemoveRequest body = default(BulkRemoveRequest), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginBulkRemoveWithHttpMessagesAsync(resourceGroupName, moveCollectionName, body, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Get all Move Collections. /// diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/SdkInfo_ResourceMoverServiceAPI.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/SdkInfo_ResourceMoverServiceAPI.cs index 7658a59f74a6..af72b0d9936c 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/SdkInfo_ResourceMoverServiceAPI.cs +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Generated/SdkInfo_ResourceMoverServiceAPI.cs @@ -29,10 +29,10 @@ public static IEnumerable> ApiInfo_ResourceMoverSe // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "V2"; public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/regionmove/resource-manager/readme.md --csharp --version=V2 --reflect-api-versions --csharp-sdks-folder=C:\\GithubRepo\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resourcemover/resource-manager/readme.md --csharp --version=V2 --reflect-api-versions --csharp-sdks-folder=C:\\GithubRepo\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "f348535652dfa19050c903528130c55eb9ff4095"; + public static readonly String GithubCommidId = "6e52d5c8e77a02fb333a991de8f1ca630ba9ff3e"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj index 3531d595c14e..c8bce1cbcc46 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj @@ -7,7 +7,7 @@ Microsoft.Azure.Management.Migrate.ResourceMover Provides developers with libraries for the azure resource mover under Azure Resource manager. Microsoft.Azure.Management.Migrate.ResourceMover - 1.0.0-preview + 1.0.1-preview Management.Migrate; Region Move;Azure Resource Mover; Adding new APIs for azure resource move from one region to another. diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Properties/AssemblyInfo.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Properties/AssemblyInfo.cs index e8d208465250..d6f5f056186e 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Properties/AssemblyInfo.cs +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure Resource Mover Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Resource Mover Service.")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: AssemblyVersion("1.0.1.0")] +[assembly: AssemblyFileVersion("1.0.1.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/generate.ps1 b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/generate.ps1 index 3bcb88ca6519..707dc0914e98 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/generate.ps1 +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/generate.ps1 @@ -1 +1 @@ -Start-AutoRestCodeGeneration -ResourceProvider "regionmove/resource-manager" -AutoRestVersion "V2" \ No newline at end of file +Start-AutoRestCodeGeneration -ResourceProvider "resourcemover/resource-manager" -AutoRestVersion "V2" \ No newline at end of file diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/ScenarioTests/ResourceMoverTests.cs b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/ScenarioTests/ResourceMoverTests.cs index 878faab696e6..6deb146d2889 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/ScenarioTests/ResourceMoverTests.cs +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/ScenarioTests/ResourceMoverTests.cs @@ -586,5 +586,74 @@ public async Task InitiateCommitForMoveResourcesAsync() "Commit operation should have succeeded."); } } + + [Fact] + public async Task ValidateBulkRemoveForMoveResourcesAsync() + { + using (var context = MockContext.Start(this.GetType())) + { + this.TestHelper.Initialize(context); + var client = this.TestHelper.ResourceMoverServiceClient; + + var bulkRemoveRequest = new BulkRemoveRequest() + { + MoveResources = new List() + { + VirtualMachineId, + PublicIpId, + VirtualNetworkId, + NetworkSecurityGroupId, + ResourceGroupId + }, + ValidateOnly = true, + MoveResourceInputType = MoveResourceInputType.MoveResourceSourceId + }; + + var operationStatus = + (await client.MoveCollections.BulkRemoveWithHttpMessagesAsync( + MoveCollectionResourceGroup, + MoveCollectionName, + bulkRemoveRequest)).Body; + + Assert.True(OperationStatusSucceeded.Equals( + operationStatus.Status, + StringComparison.OrdinalIgnoreCase), + "Validate Bulk remove operation should have succeeded."); + } + } + + [Fact] + public async Task InitiateBulkRemoveForMoveResourcesAsync() + { + using (var context = MockContext.Start(this.GetType())) + { + this.TestHelper.Initialize(context); + var client = this.TestHelper.ResourceMoverServiceClient; + + var bulkRemoveRequest = new BulkRemoveRequest() + { + MoveResources = new List() + { + VirtualMachineId, + PublicIpId, + VirtualNetworkId, + NetworkSecurityGroupId, + ResourceGroupId + }, + MoveResourceInputType = MoveResourceInputType.MoveResourceSourceId + }; + + var operationStatus = + (await client.MoveCollections.BulkRemoveWithHttpMessagesAsync( + MoveCollectionResourceGroup, + MoveCollectionName, + bulkRemoveRequest)).Body; + + Assert.True(OperationStatusSucceeded.Equals( + operationStatus.Status, + StringComparison.OrdinalIgnoreCase), + "Bulk Remove operation should have succeeded."); + } + } } } diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/InitiateBulkRemoveForMoveResourcesAsync.json b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/InitiateBulkRemoveForMoveResourcesAsync.json new file mode 100644 index 000000000000..4928dea3339d --- /dev/null +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/InitiateBulkRemoveForMoveResourcesAsync.json @@ -0,0 +1,134 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/moveCollections/ResourceMover-eastus-westus2/bulkRemove?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTgwZWI5ZmEtYzk5Ni00NDM1LWFhMzItNWFmNmYzZDMwNzdjL3Jlc291cmNlR3JvdXBzL21vdmVDb2xsZWN0aW9uUmcvcHJvdmlkZXJzL01pY3Jvc29mdC5NaWdyYXRlL21vdmVDb2xsZWN0aW9ucy9SZXNvdXJjZU1vdmVyLWVhc3R1cy13ZXN0dXMyL2J1bGtSZW1vdmU/YXBpLXZlcnNpb249MjAxOS0xMC0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"moveResources\": [\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Network/publicIPAddresses/vm1-publicIp\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Network/virtualNetworks/vnet1\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Network/networkSecurityGroups/vm1-nsg\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS\"\r\n ],\r\n \"moveResourceInputType\": \"MoveResourceSourceId\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0624ebdd-768c-4e25-8ed7-fd827782e308" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Migrate.ResourceMover.ResourceMoverServiceAPIClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "737" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "42ce1a95-583e-4273-89df-c49c24d697ac" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/MoveCollections/ResourceMover-eastus-westus2/operations/cc79780b-20dc-4f5d-8fab-dff4190e8e62?api-version=2019-10-01-preview" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "e2e04022-40cb-4c15-8a37-7938f8231a55" + ], + "x-ms-routing-request-id": [ + "WESTINDIA:20201020T113233Z:e2e04022-40cb-4c15-8a37-7938f8231a55" + ], + "Date": [ + "Tue, 20 Oct 2020 11:32:32 GMT" + ], + "Content-Type": [ + "text/plain" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/MoveCollections/ResourceMover-eastus-westus2/operations/cc79780b-20dc-4f5d-8fab-dff4190e8e62?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTgwZWI5ZmEtYzk5Ni00NDM1LWFhMzItNWFmNmYzZDMwNzdjL3Jlc291cmNlR3JvdXBzL21vdmVDb2xsZWN0aW9uUmcvcHJvdmlkZXJzL01pY3Jvc29mdC5NaWdyYXRlL01vdmVDb2xsZWN0aW9ucy9SZXNvdXJjZU1vdmVyLWVhc3R1cy13ZXN0dXMyL29wZXJhdGlvbnMvY2M3OTc4MGItMjBkYy00ZjVkLThmYWItZGZmNDE5MGU4ZTYyP2FwaS12ZXJzaW9uPTIwMTktMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Migrate.ResourceMover.ResourceMoverServiceAPIClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f2a80bc9-8b32-4fec-9926-caea11508844" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "c26d4965-2edf-4c90-8490-2ba99457462f" + ], + "x-ms-routing-request-id": [ + "WESTINDIA:20201020T113248Z:c26d4965-2edf-4c90-8490-2ba99457462f" + ], + "Date": [ + "Tue, 20 Oct 2020 11:32:47 GMT" + ], + "Content-Length": [ + "381" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/MoveCollections/ResourceMover-eastus-westus2/operations/cc79780b-20dc-4f5d-8fab-dff4190e8e62\",\r\n \"name\": \"cc79780b-20dc-4f5d-8fab-dff4190e8e62\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"10/20/2020 11:32:32 AM\",\r\n \"endTime\": \"10/20/2020 11:32:44 AM\",\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "e80eb9fa-c996-4435-aa32-5af6f3d3077c" + } +} \ No newline at end of file diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/ValidateBulkRemoveForMoveResourcesAsync.json b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/ValidateBulkRemoveForMoveResourcesAsync.json new file mode 100644 index 000000000000..c97fc67d8a2c --- /dev/null +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/tests/SessionRecords/ResourceMoverTests/ValidateBulkRemoveForMoveResourcesAsync.json @@ -0,0 +1,134 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/moveCollections/ResourceMover-eastus-westus2/bulkRemove?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTgwZWI5ZmEtYzk5Ni00NDM1LWFhMzItNWFmNmYzZDMwNzdjL3Jlc291cmNlR3JvdXBzL21vdmVDb2xsZWN0aW9uUmcvcHJvdmlkZXJzL01pY3Jvc29mdC5NaWdyYXRlL21vdmVDb2xsZWN0aW9ucy9SZXNvdXJjZU1vdmVyLWVhc3R1cy13ZXN0dXMyL2J1bGtSZW1vdmU/YXBpLXZlcnNpb249MjAxOS0xMC0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"validateOnly\": true,\r\n \"moveResources\": [\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Network/publicIPAddresses/vm1-publicIp\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Network/virtualNetworks/vnet1\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS/providers/Microsoft.Network/networkSecurityGroups/vm1-nsg\",\r\n \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/NETSdkEastUS\"\r\n ],\r\n \"moveResourceInputType\": \"MoveResourceSourceId\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "fd2e5010-aaa0-4078-a88a-2e08c4a66768" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Migrate.ResourceMover.ResourceMoverServiceAPIClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "762" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Retry-After": [ + "15" + ], + "x-ms-request-id": [ + "23e22957-20b8-47e0-b8cf-70b17528d3ad" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/MoveCollections/ResourceMover-eastus-westus2/operations/f4d660da-077e-475d-98dc-ec9ccc8a2d24?api-version=2019-10-01-preview" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "544f27d7-9fb3-499d-bc8a-93a16bb3ac93" + ], + "x-ms-routing-request-id": [ + "WESTINDIA:20201020T113202Z:544f27d7-9fb3-499d-bc8a-93a16bb3ac93" + ], + "Date": [ + "Tue, 20 Oct 2020 11:32:02 GMT" + ], + "Content-Type": [ + "text/plain" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/MoveCollections/ResourceMover-eastus-westus2/operations/f4d660da-077e-475d-98dc-ec9ccc8a2d24?api-version=2019-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTgwZWI5ZmEtYzk5Ni00NDM1LWFhMzItNWFmNmYzZDMwNzdjL3Jlc291cmNlR3JvdXBzL21vdmVDb2xsZWN0aW9uUmcvcHJvdmlkZXJzL01pY3Jvc29mdC5NaWdyYXRlL01vdmVDb2xsZWN0aW9ucy9SZXNvdXJjZU1vdmVyLWVhc3R1cy13ZXN0dXMyL29wZXJhdGlvbnMvZjRkNjYwZGEtMDc3ZS00NzVkLTk4ZGMtZWM5Y2NjOGEyZDI0P2FwaS12ZXJzaW9uPTIwMTktMTAtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Migrate.ResourceMover.ResourceMoverServiceAPIClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f5c65b69-7607-421f-a59e-303a111ac899" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "a8a3057a-0993-478d-ac24-37a8684f16f4" + ], + "x-ms-routing-request-id": [ + "WESTINDIA:20201020T113217Z:a8a3057a-0993-478d-ac24-37a8684f16f4" + ], + "Date": [ + "Tue, 20 Oct 2020 11:32:17 GMT" + ], + "Content-Length": [ + "381" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/moveCollectionRg/providers/Microsoft.Migrate/MoveCollections/ResourceMover-eastus-westus2/operations/f4d660da-077e-475d-98dc-ec9ccc8a2d24\",\r\n \"name\": \"f4d660da-077e-475d-98dc-ec9ccc8a2d24\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"10/20/2020 11:32:02 AM\",\r\n \"endTime\": \"10/20/2020 11:32:02 AM\",\r\n \"error\": null,\r\n \"properties\": {}\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "e80eb9fa-c996-4435-aa32-5af6f3d3077c" + } +} \ No newline at end of file From a092fd58bd9dbeb0eb6f0a67c6620c6eb12e3e8f Mon Sep 17 00:00:00 2001 From: Ajay Gupta Date: Wed, 21 Oct 2020 12:11:29 +0530 Subject: [PATCH 2/3] Added release notes. --- .../src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj index c8bce1cbcc46..270bac5961c3 100644 --- a/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj +++ b/sdk/resourcemover/Microsoft.Azure.Management.Migrate/src/Microsoft.Azure.Management.Migrate.ResourceMover.csproj @@ -9,7 +9,7 @@ Microsoft.Azure.Management.Migrate.ResourceMover 1.0.1-preview Management.Migrate; Region Move;Azure Resource Mover; - Adding new APIs for azure resource move from one region to another. + Added BulkRemoveMoveResources API. $(SdkTargetFx) From 6ff631825854036ce87780864bb7da27b3491d0a Mon Sep 17 00:00:00 2001 From: Ajay Gupta Date: Tue, 27 Oct 2020 09:24:14 +0530 Subject: [PATCH 3/3] Changes in pipeline config to use resourcemover in place of regionmove --- eng/pipelines/mgmt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/mgmt.yml b/eng/pipelines/mgmt.yml index 969d5452beb6..6520e9b654da 100644 --- a/eng/pipelines/mgmt.yml +++ b/eng/pipelines/mgmt.yml @@ -117,10 +117,10 @@ pr: - sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup - sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery - sdk/redis/Microsoft.Azure.Management.RedisCache - - sdk/regionmove/Microsoft.Azure.Management.Migrate - sdk/relay/Microsoft.Azure.Management.Relay - sdk/reservations/Microsoft.Azure.Management.Reservations - sdk/resourcegraph/Microsoft.Azure.Management.ResourceGraph + - sdk/resourcemover/Microsoft.Azure.Management.Migrate - sdk/resources/Microsoft.Azure.Management.Resource - sdk/scheduler/Microsoft.Azure.Management.Scheduler - sdk/search/Microsoft.Azure.Management.Search