From d18bcd7e293530daf8af0760c3609b8bd8796ebb Mon Sep 17 00:00:00 2001 From: adxsdknet Date: Thu, 21 Mar 2019 15:57:09 +0000 Subject: [PATCH] .NET SDK Resource Provider:'NetApp' REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5446' REST Spec PR Author 'leonardbf' REST Spec PR Last commit --- .../Generated/AccountsOperations.cs | 179 +++++++++++++----- .../Generated/AccountsOperationsExtensions.cs | 86 ++++----- .../AzureNetAppFilesManagementClient.cs | 2 +- .../Generated/IAccountsOperations.cs | 30 +-- .../IAzureNetAppFilesManagementClient.cs | 2 +- .../Generated/IMountTargetsOperations.cs | 6 +- .../Generated/IOperations.cs | 2 +- .../Generated/IPoolsOperations.cs | 30 +-- .../Generated/ISnapshotsOperations.cs | 30 +-- .../Generated/IVolumesOperations.cs | 30 +-- .../Generated/Models/ActiveDirectory.cs | 118 ++++++++++++ .../Generated/Models/CapacityPool.cs | 4 +- .../Generated/Models/CapacityPoolPatch.cs | 79 +++++++- .../Generated/Models/Dimension.cs | 2 +- .../Generated/Models/Error.cs | 2 +- .../Generated/Models/ErrorException.cs | 2 +- .../Generated/Models/ExportPolicyRule.cs | 102 ++++++++++ .../Generated/Models/MetricSpecification.cs | 2 +- .../Generated/Models/MountTarget.cs | 31 ++- .../Generated/Models/NetAppAccount.cs | 14 +- .../Generated/Models/NetAppAccountPatch.cs | 56 +++++- .../Generated/Models/Operation.cs | 2 +- .../Generated/Models/OperationDisplay.cs | 2 +- .../Generated/Models/Page.cs | 2 +- .../Generated/Models/ServiceLevel.cs | 6 +- .../Generated/Models/ServiceSpecification.cs | 2 +- .../Generated/Models/Snapshot.cs | 2 +- .../Generated/Models/SnapshotPatch.cs | 2 +- .../Generated/Models/Volume.cs | 14 +- .../Generated/Models/VolumePatch.cs | 14 +- .../VolumePatchPropertiesExportPolicy.cs | 53 ++++++ .../Models/VolumePropertiesExportPolicy.cs | 53 ++++++ .../Generated/MountTargetsOperations.cs | 31 ++- .../MountTargetsOperationsExtensions.cs | 14 +- .../Management.NetApp/Generated/Operations.cs | 2 +- .../Generated/OperationsExtensions.cs | 2 +- .../Generated/PoolsOperations.cs | 159 ++++++++++++---- .../Generated/PoolsOperationsExtensions.cs | 86 ++++----- .../Generated/SdkInfo_MicrosoftNetApp.cs | 2 +- .../Generated/SnapshotsOperations.cs | 161 +++++++++++----- .../SnapshotsOperationsExtensions.cs | 86 ++++----- .../Generated/VolumesOperations.cs | 159 ++++++++++++---- .../Generated/VolumesOperationsExtensions.cs | 86 ++++----- 43 files changed, 1286 insertions(+), 463 deletions(-) create mode 100644 src/SDKs/NetApp/Management.NetApp/Generated/Models/ActiveDirectory.cs create mode 100644 src/SDKs/NetApp/Management.NetApp/Generated/Models/ExportPolicyRule.cs create mode 100644 src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatchPropertiesExportPolicy.cs create mode 100644 src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePropertiesExportPolicy.cs diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperations.cs index a78ebb2b9680..60d3d256ad28 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -53,7 +53,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// Lists all NetApp accounts in the resource group /// - /// + /// /// The name of the resource group. /// /// @@ -77,15 +77,30 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (Client.ApiVersion == null) { @@ -98,15 +113,15 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -235,7 +250,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// Get the NetApp account /// - /// + /// /// The name of the resource group. /// /// @@ -262,15 +277,30 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -287,16 +317,16 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -429,7 +459,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -441,17 +471,17 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } /// /// Delete a NetApp account /// - /// + /// /// The name of the resource group. /// /// @@ -463,10 +493,10 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -476,7 +506,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -503,7 +533,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(NetAppAccountPatch body, string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(NetAppAccountPatch body, string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -513,9 +543,24 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -533,16 +578,16 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -681,7 +726,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -708,7 +753,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -722,9 +767,24 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -742,16 +802,16 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -822,7 +882,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201 && (int)_statusCode != 202) { var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -860,6 +920,24 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) _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); + } + } + // Deserialize Response if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); @@ -887,7 +965,7 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// Delete a NetApp account /// - /// + /// /// The name of the resource group. /// /// @@ -911,15 +989,30 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -936,16 +1029,16 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperationsExtensions.cs b/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperationsExtensions.cs index 9ba72292377b..f6ac8319caa7 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperationsExtensions.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/AccountsOperationsExtensions.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -29,12 +29,12 @@ public static partial class AccountsOperationsExtensions /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// - public static IEnumerable List(this IAccountsOperations operations, string resourceGroup) + public static IEnumerable List(this IAccountsOperations operations, string resourceGroupName) { - return operations.ListAsync(resourceGroup).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName).GetAwaiter().GetResult(); } /// @@ -43,15 +43,15 @@ public static IEnumerable List(this IAccountsOperations operation /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// /// The cancellation token. /// - public static async Task> ListAsync(this IAccountsOperations operations, string resourceGroup, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IAccountsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -63,15 +63,15 @@ public static IEnumerable List(this IAccountsOperations operation /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// /// The name of the NetApp account /// - public static NetAppAccount Get(this IAccountsOperations operations, string resourceGroup, string accountName) + public static NetAppAccount Get(this IAccountsOperations operations, string resourceGroupName, string accountName) { - return operations.GetAsync(resourceGroup, accountName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -80,7 +80,7 @@ public static NetAppAccount Get(this IAccountsOperations operations, string reso /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -89,9 +89,9 @@ public static NetAppAccount Get(this IAccountsOperations operations, string reso /// /// The cancellation token. /// - public static async Task GetAsync(this IAccountsOperations operations, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -106,15 +106,15 @@ public static NetAppAccount Get(this IAccountsOperations operations, string reso /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// /// The name of the NetApp account /// - public static NetAppAccount CreateOrUpdate(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName) + public static NetAppAccount CreateOrUpdate(this IAccountsOperations operations, NetAppAccount body, string resourceGroupName, string accountName) { - return operations.CreateOrUpdateAsync(body, resourceGroup, accountName).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(body, resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -126,7 +126,7 @@ public static NetAppAccount CreateOrUpdate(this IAccountsOperations operations, /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -135,9 +135,9 @@ public static NetAppAccount CreateOrUpdate(this IAccountsOperations operations, /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IAccountsOperations operations, NetAppAccount body, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -149,15 +149,15 @@ public static NetAppAccount CreateOrUpdate(this IAccountsOperations operations, /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// /// The name of the NetApp account /// - public static void Delete(this IAccountsOperations operations, string resourceGroup, string accountName) + public static void Delete(this IAccountsOperations operations, string resourceGroupName, string accountName) { - operations.DeleteAsync(resourceGroup, accountName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -166,7 +166,7 @@ public static void Delete(this IAccountsOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -175,9 +175,9 @@ public static void Delete(this IAccountsOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task DeleteAsync(this IAccountsOperations operations, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -189,15 +189,15 @@ public static void Delete(this IAccountsOperations operations, string resourceGr /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// /// The name of the NetApp account /// - public static NetAppAccount Update(this IAccountsOperations operations, NetAppAccountPatch body, string resourceGroup, string accountName) + public static NetAppAccount Update(this IAccountsOperations operations, NetAppAccountPatch body, string resourceGroupName, string accountName) { - return operations.UpdateAsync(body, resourceGroup, accountName).GetAwaiter().GetResult(); + return operations.UpdateAsync(body, resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -209,7 +209,7 @@ public static NetAppAccount Update(this IAccountsOperations operations, NetAppAc /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -218,9 +218,9 @@ public static NetAppAccount Update(this IAccountsOperations operations, NetAppAc /// /// The cancellation token. /// - public static async Task UpdateAsync(this IAccountsOperations operations, NetAppAccountPatch body, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IAccountsOperations operations, NetAppAccountPatch body, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -235,15 +235,15 @@ public static NetAppAccount Update(this IAccountsOperations operations, NetAppAc /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// /// The name of the NetApp account /// - public static NetAppAccount BeginCreateOrUpdate(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName) + public static NetAppAccount BeginCreateOrUpdate(this IAccountsOperations operations, NetAppAccount body, string resourceGroupName, string accountName) { - return operations.BeginCreateOrUpdateAsync(body, resourceGroup, accountName).GetAwaiter().GetResult(); + return operations.BeginCreateOrUpdateAsync(body, resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -255,7 +255,7 @@ public static NetAppAccount BeginCreateOrUpdate(this IAccountsOperations operati /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -264,9 +264,9 @@ public static NetAppAccount BeginCreateOrUpdate(this IAccountsOperations operati /// /// The cancellation token. /// - public static async Task BeginCreateOrUpdateAsync(this IAccountsOperations operations, NetAppAccount body, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateOrUpdateAsync(this IAccountsOperations operations, NetAppAccount body, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -278,15 +278,15 @@ public static NetAppAccount BeginCreateOrUpdate(this IAccountsOperations operati /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// /// The name of the NetApp account /// - public static void BeginDelete(this IAccountsOperations operations, string resourceGroup, string accountName) + public static void BeginDelete(this IAccountsOperations operations, string resourceGroupName, string accountName) { - operations.BeginDeleteAsync(resourceGroup, accountName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -295,7 +295,7 @@ public static void BeginDelete(this IAccountsOperations operations, string resou /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -304,9 +304,9 @@ public static void BeginDelete(this IAccountsOperations operations, string resou /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IAccountsOperations operations, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/AzureNetAppFilesManagementClient.cs b/src/SDKs/NetApp/Management.NetApp/Generated/AzureNetAppFilesManagementClient.cs index 16389555606d..ec40c01e3730 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/AzureNetAppFilesManagementClient.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/AzureNetAppFilesManagementClient.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/IAccountsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/IAccountsOperations.cs index 67aad073f5c4..4bd84ab62935 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/IAccountsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/IAccountsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -26,7 +26,7 @@ public partial interface IAccountsOperations /// /// Lists all NetApp accounts in the resource group /// - /// + /// /// The name of the resource group. /// /// @@ -44,11 +44,11 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get the NetApp account /// - /// + /// /// The name of the resource group. /// /// @@ -69,14 +69,14 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or update a NetApp account /// /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -97,11 +97,11 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a NetApp account /// - /// + /// /// The name of the resource group. /// /// @@ -119,14 +119,14 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Patch a NetApp account /// /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -147,14 +147,14 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(NetAppAccountPatch body, string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(NetAppAccountPatch body, string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or update a NetApp account /// /// /// NetApp Account object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -175,11 +175,11 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateOrUpdateWithHttpMessagesAsync(NetAppAccount body, string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a NetApp account /// - /// + /// /// The name of the resource group. /// /// @@ -197,6 +197,6 @@ public partial interface IAccountsOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/IAzureNetAppFilesManagementClient.cs b/src/SDKs/NetApp/Management.NetApp/Generated/IAzureNetAppFilesManagementClient.cs index 4b809bdc552e..788fe9a313d4 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/IAzureNetAppFilesManagementClient.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/IAzureNetAppFilesManagementClient.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/IMountTargetsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/IMountTargetsOperations.cs index 450a521fb3cb..466187f714d9 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/IMountTargetsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/IMountTargetsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -26,7 +26,7 @@ public partial interface IMountTargetsOperations /// /// List mount targets /// - /// + /// /// The name of the resource group. /// /// @@ -53,6 +53,6 @@ public partial interface IMountTargetsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/IOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/IOperations.cs index 9bcf74a9acd1..4053a9bc5b18 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/IOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/IOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/IPoolsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/IPoolsOperations.cs index 826ac57bf9a5..e2fe7a4551aa 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/IPoolsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/IPoolsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -26,7 +26,7 @@ public partial interface IPoolsOperations /// /// Lists all capacity pools in the NetApp Account /// - /// + /// /// The name of the resource group. /// /// @@ -47,11 +47,11 @@ public partial interface IPoolsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a capacity pool /// - /// + /// /// The name of the resource group. /// /// @@ -75,14 +75,14 @@ public partial interface IPoolsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or Update a capacity pool /// /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -106,14 +106,14 @@ public partial interface IPoolsOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Patch a capacity pool /// /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -137,11 +137,11 @@ public partial interface IPoolsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(CapacityPoolPatch body, string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(CapacityPoolPatch body, string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a capacity pool /// - /// + /// /// The name of the resource group. /// /// @@ -162,14 +162,14 @@ public partial interface IPoolsOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or Update a capacity pool /// /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -193,11 +193,11 @@ public partial interface IPoolsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a capacity pool /// - /// + /// /// The name of the resource group. /// /// @@ -218,6 +218,6 @@ public partial interface IPoolsOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/ISnapshotsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/ISnapshotsOperations.cs index 4da66fdaa213..be92d5bb7f30 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/ISnapshotsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/ISnapshotsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -26,7 +26,7 @@ public partial interface ISnapshotsOperations /// /// List snapshots /// - /// + /// /// The name of the resource group. /// /// @@ -53,11 +53,11 @@ public partial interface ISnapshotsOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a snapshot /// - /// + /// /// The name of the resource group. /// /// @@ -87,14 +87,14 @@ public partial interface ISnapshotsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a snapshot /// /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -124,14 +124,14 @@ public partial interface ISnapshotsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Patch a snapshot /// /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -161,11 +161,11 @@ public partial interface ISnapshotsOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(SnapshotPatch body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(SnapshotPatch body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete snapshot /// - /// + /// /// The name of the resource group. /// /// @@ -192,14 +192,14 @@ public partial interface ISnapshotsOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a snapshot /// /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -229,11 +229,11 @@ public partial interface ISnapshotsOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateWithHttpMessagesAsync(Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete snapshot /// - /// + /// /// The name of the resource group. /// /// @@ -260,6 +260,6 @@ public partial interface ISnapshotsOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/IVolumesOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/IVolumesOperations.cs index cc9c8dd3b877..21a88c2d9a40 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/IVolumesOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/IVolumesOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -26,7 +26,7 @@ public partial interface IVolumesOperations /// /// List volumes /// - /// + /// /// The name of the resource group. /// /// @@ -50,11 +50,11 @@ public partial interface IVolumesOperations /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a volume /// - /// + /// /// The name of the resource group. /// /// @@ -81,14 +81,14 @@ public partial interface IVolumesOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or update a volume /// /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -115,14 +115,14 @@ public partial interface IVolumesOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Patch a volume /// /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -149,11 +149,11 @@ public partial interface IVolumesOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(VolumePatch body, string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(VolumePatch body, string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a volume /// - /// + /// /// The name of the resource group. /// /// @@ -177,14 +177,14 @@ public partial interface IVolumesOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or update a volume /// /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -211,11 +211,11 @@ public partial interface IVolumesOperations /// /// Thrown when a required parameter is null /// - Task> BeginCreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginCreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete a volume /// - /// + /// /// The name of the resource group. /// /// @@ -239,6 +239,6 @@ public partial interface IVolumesOperations /// /// Thrown when a required parameter is null /// - Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ActiveDirectory.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ActiveDirectory.cs new file mode 100644 index 000000000000..61e2b4c2d19f --- /dev/null +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ActiveDirectory.cs @@ -0,0 +1,118 @@ +// +// 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.NetApp.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Active Directory + /// + public partial class ActiveDirectory + { + /// + /// Initializes a new instance of the ActiveDirectory class. + /// + public ActiveDirectory() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ActiveDirectory class. + /// + /// Id of the Active Directory + /// Username of Active Directory domain + /// administrator + /// Plain text password of Active Directory + /// domain administrator + /// Name of the Active Directory domain + /// Comma separated list of DNS server IP addresses + /// for the Active Directory domain + /// Status of the Active Directory + /// NetBIOS name of the SMB server. This + /// name will be registered as a computer account in the AD and used to + /// mount volumes + /// The Organizational Unit (OU) + /// within the Windows Active Directory + public ActiveDirectory(string activeDirectoryId = default(string), string username = default(string), string password = default(string), string domain = default(string), string dNS = default(string), string status = default(string), string sMBServerName = default(string), string organizationalUnit = default(string)) + { + ActiveDirectoryId = activeDirectoryId; + Username = username; + Password = password; + Domain = domain; + DNS = dNS; + Status = status; + SMBServerName = sMBServerName; + OrganizationalUnit = organizationalUnit; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets id of the Active Directory + /// + [JsonProperty(PropertyName = "activeDirectoryId")] + public string ActiveDirectoryId { get; set; } + + /// + /// Gets or sets username of Active Directory domain administrator + /// + [JsonProperty(PropertyName = "username")] + public string Username { get; set; } + + /// + /// Gets or sets plain text password of Active Directory domain + /// administrator + /// + [JsonProperty(PropertyName = "password")] + public string Password { get; set; } + + /// + /// Gets or sets name of the Active Directory domain + /// + [JsonProperty(PropertyName = "domain")] + public string Domain { get; set; } + + /// + /// Gets or sets comma separated list of DNS server IP addresses for + /// the Active Directory domain + /// + [JsonProperty(PropertyName = "dNS")] + public string DNS { get; set; } + + /// + /// Gets or sets status of the Active Directory + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets netBIOS name of the SMB server. This name will be + /// registered as a computer account in the AD and used to mount + /// volumes + /// + [JsonProperty(PropertyName = "sMBServerName")] + public string SMBServerName { get; set; } + + /// + /// Gets or sets the Organizational Unit (OU) within the Windows Active + /// Directory + /// + [JsonProperty(PropertyName = "organizationalUnit")] + public string OrganizationalUnit { get; set; } + + } +} diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPool.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPool.cs index e32d346560fb..82c7c3f1c47b 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPool.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPool.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -115,7 +115,7 @@ public CapacityPool() /// /// /// The service level of the file system. Possible values include: - /// 'Standard', 'Premium', 'Extreme' + /// 'Standard', 'Premium', 'Ultra' /// [JsonProperty(PropertyName = "properties.serviceLevel")] public string ServiceLevel { get; set; } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPoolPatch.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPoolPatch.cs index b96b94bc7fff..cc9462a65e2f 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPoolPatch.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/CapacityPoolPatch.cs @@ -8,16 +8,18 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; /// /// Capacity pool patch resource /// + [Rest.Serialization.JsonTransformation] public partial class CapacityPoolPatch : IResource { /// @@ -31,10 +33,22 @@ public CapacityPoolPatch() /// /// Initializes a new instance of the CapacityPoolPatch class. /// + /// Resource location + /// Resource Id + /// Resource name + /// Resource type /// Resource tags - public CapacityPoolPatch(object tags = default(object)) + /// size + /// serviceLevel + public CapacityPoolPatch(string location = default(string), string id = default(string), string name = default(string), string type = default(string), object tags = default(object), long? size = default(long?), string serviceLevel = default(string)) { + Location = location; + Id = id; + Name = name; + Type = type; Tags = tags; + Size = size; + ServiceLevel = serviceLevel; CustomInit(); } @@ -43,11 +57,72 @@ public CapacityPoolPatch() /// partial void CustomInit(); + /// + /// Gets or sets resource location + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets resource type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + /// /// Gets or sets resource tags /// [JsonProperty(PropertyName = "tags")] public object Tags { get; set; } + /// + /// Gets or sets size + /// + /// + /// Provisioned size of the pool (in bytes). Allowed values are in 4TiB + /// chunks (value must be multiply of 4398046511104). + /// + [JsonProperty(PropertyName = "properties.size")] + public long? Size { get; set; } + + /// + /// Gets or sets serviceLevel + /// + /// + /// The service level of the file system. Possible values include: + /// 'Standard', 'Premium', 'Ultra' + /// + [JsonProperty(PropertyName = "properties.serviceLevel")] + public string ServiceLevel { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Size > 549755813888000) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "Size", 549755813888000); + } + if (Size < 4398046511104) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Size", 4398046511104); + } + } } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Dimension.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Dimension.cs index caeaeea6098b..1619db210998 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Dimension.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Dimension.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Newtonsoft.Json; using System.Linq; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Error.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Error.cs index e7f0b6b019d6..8d1f454459a5 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Error.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Error.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Newtonsoft.Json; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ErrorException.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ErrorException.cs index 4d6990794d10..e7d1b7dc29da 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ErrorException.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ErrorException.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ExportPolicyRule.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ExportPolicyRule.cs new file mode 100644 index 000000000000..283c5b48282a --- /dev/null +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ExportPolicyRule.cs @@ -0,0 +1,102 @@ +// +// 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.NetApp.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Volume Export Policy Rule + /// + public partial class ExportPolicyRule + { + /// + /// Initializes a new instance of the ExportPolicyRule class. + /// + public ExportPolicyRule() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExportPolicyRule class. + /// + /// Order index + /// Read only access + /// Read and write access + /// Allows CIFS protocol + /// Allows NFSv3 protocol + /// Allows NFSv4 protocol + /// Client ingress specification as comma + /// separated string with IPv4 CIDRs, IPv4 host addresses and host + /// names + public ExportPolicyRule(int? ruleIndex = default(int?), bool? unixReadOnly = default(bool?), bool? unixReadWrite = default(bool?), bool? cifs = default(bool?), bool? nfsv3 = default(bool?), bool? nfsv4 = default(bool?), string allowedClients = default(string)) + { + RuleIndex = ruleIndex; + UnixReadOnly = unixReadOnly; + UnixReadWrite = unixReadWrite; + Cifs = cifs; + Nfsv3 = nfsv3; + Nfsv4 = nfsv4; + AllowedClients = allowedClients; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets order index + /// + [JsonProperty(PropertyName = "ruleIndex")] + public int? RuleIndex { get; set; } + + /// + /// Gets or sets read only access + /// + [JsonProperty(PropertyName = "unixReadOnly")] + public bool? UnixReadOnly { get; set; } + + /// + /// Gets or sets read and write access + /// + [JsonProperty(PropertyName = "unixReadWrite")] + public bool? UnixReadWrite { get; set; } + + /// + /// Gets or sets allows CIFS protocol + /// + [JsonProperty(PropertyName = "cifs")] + public bool? Cifs { get; set; } + + /// + /// Gets or sets allows NFSv3 protocol + /// + [JsonProperty(PropertyName = "nfsv3")] + public bool? Nfsv3 { get; set; } + + /// + /// Gets or sets allows NFSv4 protocol + /// + [JsonProperty(PropertyName = "nfsv4")] + public bool? Nfsv4 { get; set; } + + /// + /// Gets or sets client ingress specification as comma separated string + /// with IPv4 CIDRs, IPv4 host addresses and host names + /// + [JsonProperty(PropertyName = "allowedClients")] + public string AllowedClients { get; set; } + + } +} diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/MetricSpecification.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/MetricSpecification.cs index e48dcfb07533..2238090b7bbb 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/MetricSpecification.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/MetricSpecification.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Newtonsoft.Json; using System.Collections; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/MountTarget.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/MountTarget.cs index ca99908fac25..7e0bcc905641 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/MountTarget.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/MountTarget.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Serialization; @@ -39,13 +39,14 @@ public MountTarget() /// Resource tags /// mountTargetId /// ipAddress - /// vlanid + /// subnet /// startIp - /// startIp + /// endIp /// gateway /// netmask + /// smbServerFQDN /// Azure lifecycle management - public MountTarget(string location, string fileSystemId, string id = default(string), string name = default(string), object tags = default(object), string mountTargetId = default(string), string ipAddress = default(string), int? vlanId = default(int?), string startIp = default(string), string endIp = default(string), string gateway = default(string), string netmask = default(string), string provisioningState = default(string)) + public MountTarget(string location, string fileSystemId, string id = default(string), string name = default(string), object tags = default(object), string mountTargetId = default(string), string ipAddress = default(string), string subnet = default(string), string startIp = default(string), string endIp = default(string), string gateway = default(string), string netmask = default(string), string smbServerFqdn = default(string), string provisioningState = default(string)) { Location = location; Id = id; @@ -54,11 +55,12 @@ public MountTarget() MountTargetId = mountTargetId; FileSystemId = fileSystemId; IpAddress = ipAddress; - VlanId = vlanId; + Subnet = subnet; StartIp = startIp; EndIp = endIp; Gateway = gateway; Netmask = netmask; + SmbServerFqdn = smbServerFqdn; ProvisioningState = provisioningState; CustomInit(); } @@ -120,13 +122,13 @@ public MountTarget() public string IpAddress { get; private set; } /// - /// Gets or sets vlanid + /// Gets or sets subnet /// /// - /// Vlan Id + /// The subnet /// - [JsonProperty(PropertyName = "properties.vlanId")] - public int? VlanId { get; set; } + [JsonProperty(PropertyName = "properties.subnet")] + public string Subnet { get; set; } /// /// Gets or sets startIp @@ -139,7 +141,7 @@ public MountTarget() public string StartIp { get; set; } /// - /// Gets or sets startIp + /// Gets or sets endIp /// /// /// The end of IPv4 address range to use when creating a new mount @@ -168,6 +170,15 @@ public MountTarget() [JsonProperty(PropertyName = "properties.netmask")] public string Netmask { get; set; } + /// + /// Gets or sets smbServerFQDN + /// + /// + /// The SMB server's Fully Qualified Domain Name, FQDN + /// + [JsonProperty(PropertyName = "properties.smbServerFqdn")] + public string SmbServerFqdn { get; set; } + /// /// Gets azure lifecycle management /// diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccount.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccount.cs index ac0e16078460..779e155263fb 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccount.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccount.cs @@ -8,12 +8,14 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -39,7 +41,8 @@ public NetAppAccount() /// Resource type /// Resource tags /// Azure lifecycle management - public NetAppAccount(string location, string id = default(string), string name = default(string), string type = default(string), object tags = default(object), string provisioningState = default(string)) + /// Active Directories + public NetAppAccount(string location, string id = default(string), string name = default(string), string type = default(string), object tags = default(object), string provisioningState = default(string), IList activeDirectories = default(IList)) { Location = location; Id = id; @@ -47,6 +50,7 @@ public NetAppAccount() Type = type; Tags = tags; ProvisioningState = provisioningState; + ActiveDirectories = activeDirectories; CustomInit(); } @@ -91,6 +95,12 @@ public NetAppAccount() [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } + /// + /// Gets or sets active Directories + /// + [JsonProperty(PropertyName = "properties.activeDirectories")] + public IList ActiveDirectories { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccountPatch.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccountPatch.cs index 95e879c4a0de..f59360c99596 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccountPatch.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/NetAppAccountPatch.cs @@ -8,16 +8,20 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// NetApp account patch resource /// + [Rest.Serialization.JsonTransformation] public partial class NetAppAccountPatch : IResource { /// @@ -31,10 +35,22 @@ public NetAppAccountPatch() /// /// Initializes a new instance of the NetAppAccountPatch class. /// + /// Resource location + /// Resource Id + /// Resource name + /// Resource type /// Resource tags - public NetAppAccountPatch(object tags = default(object)) + /// Azure lifecycle management + /// Active Directories + public NetAppAccountPatch(string location = default(string), string id = default(string), string name = default(string), string type = default(string), object tags = default(object), string provisioningState = default(string), IList activeDirectories = default(IList)) { + Location = location; + Id = id; + Name = name; + Type = type; Tags = tags; + ProvisioningState = provisioningState; + ActiveDirectories = activeDirectories; CustomInit(); } @@ -43,11 +59,47 @@ public NetAppAccountPatch() /// partial void CustomInit(); + /// + /// Gets or sets resource location + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + /// + /// Gets resource Id + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets resource name + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets resource type + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + /// /// Gets or sets resource tags /// [JsonProperty(PropertyName = "tags")] public object Tags { get; set; } + /// + /// Gets azure lifecycle management + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets active Directories + /// + [JsonProperty(PropertyName = "properties.activeDirectories")] + public IList ActiveDirectories { get; set; } + } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Operation.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Operation.cs index 3558eccfb9e4..be4e90f62d79 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Operation.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Operation.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Serialization; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/OperationDisplay.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/OperationDisplay.cs index 21a016ff3766..91a43aa474d0 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/OperationDisplay.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/OperationDisplay.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Newtonsoft.Json; using System.Linq; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Page.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Page.cs index 48b8e217fa20..a8dac6ee9d38 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Page.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Page.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceLevel.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceLevel.cs index 876016b5b31c..4e7e0cff935d 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceLevel.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceLevel.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { /// @@ -25,8 +25,8 @@ public static class ServiceLevel /// public const string Premium = "Premium"; /// - /// Extreme service level + /// Ultra service level /// - public const string Extreme = "Extreme"; + public const string Ultra = "Ultra"; } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceSpecification.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceSpecification.cs index a2635ec2e841..49289a722f3f 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceSpecification.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/ServiceSpecification.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Newtonsoft.Json; using System.Collections; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Snapshot.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Snapshot.cs index 578e0695db9e..9f053af3d74e 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Snapshot.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Snapshot.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/SnapshotPatch.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/SnapshotPatch.cs index a27245efda9a..554fa049f21c 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/SnapshotPatch.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/SnapshotPatch.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Volume.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Volume.cs index 7f6dc1a906e2..40d23b7e9754 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/Volume.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/Volume.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -42,10 +42,11 @@ public Volume() /// Resource tags /// FileSystem ID /// usageThreshold + /// Export policy rule /// Azure lifecycle management /// The Azure Resource URI for a delegated /// subnet. Must have the delegation Microsoft.NetApp/volumes - public Volume(string location, string creationToken, string serviceLevel, string id = default(string), string name = default(string), string type = default(string), object tags = default(object), string fileSystemId = default(string), long? usageThreshold = default(long?), string provisioningState = default(string), string subnetId = default(string)) + public Volume(string location, string creationToken, string serviceLevel, string id = default(string), string name = default(string), string type = default(string), object tags = default(object), string fileSystemId = default(string), long? usageThreshold = default(long?), VolumePropertiesExportPolicy exportPolicy = default(VolumePropertiesExportPolicy), string provisioningState = default(string), string subnetId = default(string)) { Location = location; Id = id; @@ -56,6 +57,7 @@ public Volume() CreationToken = creationToken; ServiceLevel = serviceLevel; UsageThreshold = usageThreshold; + ExportPolicy = exportPolicy; ProvisioningState = provisioningState; SubnetId = subnetId; CustomInit(); @@ -119,7 +121,7 @@ public Volume() /// /// /// The service level of the file system. Possible values include: - /// 'Standard', 'Premium', 'Extreme' + /// 'Standard', 'Premium', 'Ultra' /// [JsonProperty(PropertyName = "properties.serviceLevel")] public string ServiceLevel { get; set; } @@ -135,6 +137,12 @@ public Volume() [JsonProperty(PropertyName = "properties.usageThreshold")] public long? UsageThreshold { get; set; } + /// + /// Gets or sets export policy rule + /// + [JsonProperty(PropertyName = "properties.exportPolicy")] + public VolumePropertiesExportPolicy ExportPolicy { get; set; } + /// /// Gets azure lifecycle management /// diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatch.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatch.cs index 2a6f607a704b..0a2517ca3dd1 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatch.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatch.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp.Models +namespace Microsoft.NetApp.Models { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -40,7 +40,8 @@ public VolumePatch() /// Resource tags /// serviceLevel /// usageThreshold - public VolumePatch(string location = default(string), string id = default(string), string name = default(string), string type = default(string), object tags = default(object), string serviceLevel = default(string), long? usageThreshold = default(long?)) + /// Export policy rule + public VolumePatch(string location = default(string), string id = default(string), string name = default(string), string type = default(string), object tags = default(object), string serviceLevel = default(string), long? usageThreshold = default(long?), VolumePatchPropertiesExportPolicy exportPolicy = default(VolumePatchPropertiesExportPolicy)) { Location = location; Id = id; @@ -49,6 +50,7 @@ public VolumePatch() Tags = tags; ServiceLevel = serviceLevel; UsageThreshold = usageThreshold; + ExportPolicy = exportPolicy; CustomInit(); } @@ -92,7 +94,7 @@ public VolumePatch() /// /// /// The service level of the file system. Possible values include: - /// 'Standard', 'Premium', 'Extreme' + /// 'Standard', 'Premium', 'Ultra' /// [JsonProperty(PropertyName = "properties.serviceLevel")] public string ServiceLevel { get; set; } @@ -108,6 +110,12 @@ public VolumePatch() [JsonProperty(PropertyName = "properties.usageThreshold")] public long? UsageThreshold { get; set; } + /// + /// Gets or sets export policy rule + /// + [JsonProperty(PropertyName = "properties.exportPolicy")] + public VolumePatchPropertiesExportPolicy ExportPolicy { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatchPropertiesExportPolicy.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatchPropertiesExportPolicy.cs new file mode 100644 index 000000000000..7c4cf34a474e --- /dev/null +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePatchPropertiesExportPolicy.cs @@ -0,0 +1,53 @@ +// +// 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.NetApp.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Export policy rule + /// + public partial class VolumePatchPropertiesExportPolicy + { + /// + /// Initializes a new instance of the VolumePatchPropertiesExportPolicy + /// class. + /// + public VolumePatchPropertiesExportPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VolumePatchPropertiesExportPolicy + /// class. + /// + public VolumePatchPropertiesExportPolicy(IList rules = default(IList)) + { + Rules = rules; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "rules")] + public IList Rules { get; set; } + + } +} diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePropertiesExportPolicy.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePropertiesExportPolicy.cs new file mode 100644 index 000000000000..462235e41615 --- /dev/null +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Models/VolumePropertiesExportPolicy.cs @@ -0,0 +1,53 @@ +// +// 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.NetApp.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Export policy rule + /// + public partial class VolumePropertiesExportPolicy + { + /// + /// Initializes a new instance of the VolumePropertiesExportPolicy + /// class. + /// + public VolumePropertiesExportPolicy() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the VolumePropertiesExportPolicy + /// class. + /// + public VolumePropertiesExportPolicy(IList rules = default(IList)) + { + Rules = rules; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// + [JsonProperty(PropertyName = "rules")] + public IList Rules { get; set; } + + } +} diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperations.cs index 47f6a89f0c31..76e1f26c21e6 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -53,7 +53,7 @@ internal MountTargetsOperations(AzureNetAppFilesManagementClient client) /// /// List mount targets /// - /// + /// /// The name of the resource group. /// /// @@ -86,15 +86,30 @@ internal MountTargetsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -119,7 +134,7 @@ internal MountTargetsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -128,9 +143,9 @@ internal MountTargetsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperationsExtensions.cs b/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperationsExtensions.cs index 0fc342c2e72f..b42bd430c839 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperationsExtensions.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/MountTargetsOperationsExtensions.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -29,7 +29,7 @@ public static partial class MountTargetsOperationsExtensions /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -41,9 +41,9 @@ public static partial class MountTargetsOperationsExtensions /// /// The name of the volume /// - public static IEnumerable List(this IMountTargetsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName) + public static IEnumerable List(this IMountTargetsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName) { - return operations.ListAsync(resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -52,7 +52,7 @@ public static IEnumerable List(this IMountTargetsOperations operati /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -67,9 +67,9 @@ public static IEnumerable List(this IMountTargetsOperations operati /// /// The cancellation token. /// - public static async Task> ListAsync(this IMountTargetsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IMountTargetsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/Operations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/Operations.cs index 741f5121bbf2..beeb70a6930c 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/Operations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/Operations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/OperationsExtensions.cs b/src/SDKs/NetApp/Management.NetApp/Generated/OperationsExtensions.cs index 5bacf16bf73a..819433dfc0c0 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/OperationsExtensions.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/OperationsExtensions.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperations.cs index 8150d2fe567c..2a2bfb97f72b 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -53,7 +53,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// Lists all capacity pools in the NetApp Account /// - /// + /// /// The name of the resource group. /// /// @@ -80,15 +80,30 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -105,16 +120,16 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -244,7 +259,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// Get a capacity pool /// - /// + /// /// The name of the resource group. /// /// @@ -274,15 +289,30 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -303,7 +333,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -311,9 +341,9 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); List _queryParameters = new List(); @@ -447,7 +477,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -462,10 +492,10 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -475,7 +505,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -505,7 +535,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(CapacityPoolPatch body, string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(CapacityPoolPatch body, string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -515,9 +545,24 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -539,7 +584,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -547,9 +592,9 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); List _queryParameters = new List(); @@ -686,7 +731,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// Delete a capacity pool /// - /// + /// /// The name of the resource group. /// /// @@ -701,10 +746,10 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -714,7 +759,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -744,7 +789,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(CapacityPool body, string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -758,9 +803,24 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -782,7 +842,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -790,9 +850,9 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); List _queryParameters = new List(); @@ -947,7 +1007,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// Delete a capacity pool /// - /// + /// /// The name of the resource group. /// /// @@ -974,15 +1034,30 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -1003,7 +1078,7 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -1011,9 +1086,9 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); List _queryParameters = new List(); diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperationsExtensions.cs b/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperationsExtensions.cs index 87354cebb127..38fc2b73c093 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperationsExtensions.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/PoolsOperationsExtensions.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -29,15 +29,15 @@ public static partial class PoolsOperationsExtensions /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// /// The name of the NetApp account /// - public static IEnumerable List(this IPoolsOperations operations, string resourceGroup, string accountName) + public static IEnumerable List(this IPoolsOperations operations, string resourceGroupName, string accountName) { - return operations.ListAsync(resourceGroup, accountName).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); } /// @@ -46,7 +46,7 @@ public static IEnumerable List(this IPoolsOperations operations, s /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -55,9 +55,9 @@ public static IEnumerable List(this IPoolsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListAsync(this IPoolsOperations operations, string resourceGroup, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IPoolsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, accountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -69,7 +69,7 @@ public static IEnumerable List(this IPoolsOperations operations, s /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -78,9 +78,9 @@ public static IEnumerable List(this IPoolsOperations operations, s /// /// The name of the capacity pool /// - public static CapacityPool Get(this IPoolsOperations operations, string resourceGroup, string accountName, string poolName) + public static CapacityPool Get(this IPoolsOperations operations, string resourceGroupName, string accountName, string poolName) { - return operations.GetAsync(resourceGroup, accountName, poolName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName, poolName).GetAwaiter().GetResult(); } /// @@ -89,7 +89,7 @@ public static CapacityPool Get(this IPoolsOperations operations, string resource /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -101,9 +101,9 @@ public static CapacityPool Get(this IPoolsOperations operations, string resource /// /// The cancellation token. /// - public static async Task GetAsync(this IPoolsOperations operations, string resourceGroup, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IPoolsOperations operations, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -118,7 +118,7 @@ public static CapacityPool Get(this IPoolsOperations operations, string resource /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -127,9 +127,9 @@ public static CapacityPool Get(this IPoolsOperations operations, string resource /// /// The name of the capacity pool /// - public static CapacityPool CreateOrUpdate(this IPoolsOperations operations, CapacityPool body, string resourceGroup, string accountName, string poolName) + public static CapacityPool CreateOrUpdate(this IPoolsOperations operations, CapacityPool body, string resourceGroupName, string accountName, string poolName) { - return operations.CreateOrUpdateAsync(body, resourceGroup, accountName, poolName).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(body, resourceGroupName, accountName, poolName).GetAwaiter().GetResult(); } /// @@ -141,7 +141,7 @@ public static CapacityPool CreateOrUpdate(this IPoolsOperations operations, Capa /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -153,9 +153,9 @@ public static CapacityPool CreateOrUpdate(this IPoolsOperations operations, Capa /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IPoolsOperations operations, CapacityPool body, string resourceGroup, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IPoolsOperations operations, CapacityPool body, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -170,7 +170,7 @@ public static CapacityPool CreateOrUpdate(this IPoolsOperations operations, Capa /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -179,9 +179,9 @@ public static CapacityPool CreateOrUpdate(this IPoolsOperations operations, Capa /// /// The name of the capacity pool /// - public static CapacityPool Update(this IPoolsOperations operations, CapacityPoolPatch body, string resourceGroup, string accountName, string poolName) + public static CapacityPool Update(this IPoolsOperations operations, CapacityPoolPatch body, string resourceGroupName, string accountName, string poolName) { - return operations.UpdateAsync(body, resourceGroup, accountName, poolName).GetAwaiter().GetResult(); + return operations.UpdateAsync(body, resourceGroupName, accountName, poolName).GetAwaiter().GetResult(); } /// @@ -193,7 +193,7 @@ public static CapacityPool Update(this IPoolsOperations operations, CapacityPool /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -205,9 +205,9 @@ public static CapacityPool Update(this IPoolsOperations operations, CapacityPool /// /// The cancellation token. /// - public static async Task UpdateAsync(this IPoolsOperations operations, CapacityPoolPatch body, string resourceGroup, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IPoolsOperations operations, CapacityPoolPatch body, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -219,7 +219,7 @@ public static CapacityPool Update(this IPoolsOperations operations, CapacityPool /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -228,9 +228,9 @@ public static CapacityPool Update(this IPoolsOperations operations, CapacityPool /// /// The name of the capacity pool /// - public static void Delete(this IPoolsOperations operations, string resourceGroup, string accountName, string poolName) + public static void Delete(this IPoolsOperations operations, string resourceGroupName, string accountName, string poolName) { - operations.DeleteAsync(resourceGroup, accountName, poolName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, accountName, poolName).GetAwaiter().GetResult(); } /// @@ -239,7 +239,7 @@ public static void Delete(this IPoolsOperations operations, string resourceGroup /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -251,9 +251,9 @@ public static void Delete(this IPoolsOperations operations, string resourceGroup /// /// The cancellation token. /// - public static async Task DeleteAsync(this IPoolsOperations operations, string resourceGroup, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IPoolsOperations operations, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -265,7 +265,7 @@ public static void Delete(this IPoolsOperations operations, string resourceGroup /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -274,9 +274,9 @@ public static void Delete(this IPoolsOperations operations, string resourceGroup /// /// The name of the capacity pool /// - public static CapacityPool BeginCreateOrUpdate(this IPoolsOperations operations, CapacityPool body, string resourceGroup, string accountName, string poolName) + public static CapacityPool BeginCreateOrUpdate(this IPoolsOperations operations, CapacityPool body, string resourceGroupName, string accountName, string poolName) { - return operations.BeginCreateOrUpdateAsync(body, resourceGroup, accountName, poolName).GetAwaiter().GetResult(); + return operations.BeginCreateOrUpdateAsync(body, resourceGroupName, accountName, poolName).GetAwaiter().GetResult(); } /// @@ -288,7 +288,7 @@ public static CapacityPool BeginCreateOrUpdate(this IPoolsOperations operations, /// /// Capacity pool object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -300,9 +300,9 @@ public static CapacityPool BeginCreateOrUpdate(this IPoolsOperations operations, /// /// The cancellation token. /// - public static async Task BeginCreateOrUpdateAsync(this IPoolsOperations operations, CapacityPool body, string resourceGroup, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateOrUpdateAsync(this IPoolsOperations operations, CapacityPool body, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -314,7 +314,7 @@ public static CapacityPool BeginCreateOrUpdate(this IPoolsOperations operations, /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -323,9 +323,9 @@ public static CapacityPool BeginCreateOrUpdate(this IPoolsOperations operations, /// /// The name of the capacity pool /// - public static void BeginDelete(this IPoolsOperations operations, string resourceGroup, string accountName, string poolName) + public static void BeginDelete(this IPoolsOperations operations, string resourceGroupName, string accountName, string poolName) { - operations.BeginDeleteAsync(resourceGroup, accountName, poolName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, accountName, poolName).GetAwaiter().GetResult(); } /// @@ -334,7 +334,7 @@ public static void BeginDelete(this IPoolsOperations operations, string resource /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -346,9 +346,9 @@ public static void BeginDelete(this IPoolsOperations operations, string resource /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IPoolsOperations operations, string resourceGroup, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IPoolsOperations operations, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/SdkInfo_MicrosoftNetApp.cs b/src/SDKs/NetApp/Management.NetApp/Generated/SdkInfo_MicrosoftNetApp.cs index e0e3c53035c8..43b9ebe02af1 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/SdkInfo_MicrosoftNetApp.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/SdkInfo_MicrosoftNetApp.cs @@ -5,7 +5,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using System; using System.Collections.Generic; diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperations.cs index ba7c32e174c9..40f8aeecc684 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -53,7 +53,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// List snapshots /// - /// + /// /// The name of the resource group. /// /// @@ -86,15 +86,30 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -119,7 +134,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -128,9 +143,9 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -262,7 +277,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// Get a snapshot /// - /// + /// /// The name of the resource group. /// /// @@ -298,15 +313,30 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -335,7 +365,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -345,9 +375,9 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -483,7 +513,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -504,10 +534,10 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task> CreateWithHttpMessagesAsync(Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, snapshotName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -517,7 +547,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -553,7 +583,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(SnapshotPatch body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(SnapshotPatch body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -563,9 +593,24 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -595,7 +640,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -605,9 +650,9 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -746,7 +791,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// Delete snapshot /// - /// + /// /// The name of the resource group. /// /// @@ -767,10 +812,10 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, snapshotName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -780,7 +825,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -816,7 +861,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateWithHttpMessagesAsync(Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -830,9 +875,24 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -862,7 +922,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -872,9 +932,9 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -1013,7 +1073,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// Delete snapshot /// - /// + /// /// The name of the resource group. /// /// @@ -1046,15 +1106,30 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -1083,7 +1158,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -1093,9 +1168,9 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -1163,7 +1238,7 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 204) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperationsExtensions.cs b/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperationsExtensions.cs index 8229a0a94f4c..42f883888e0b 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperationsExtensions.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/SnapshotsOperationsExtensions.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -29,7 +29,7 @@ public static partial class SnapshotsOperationsExtensions /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -41,9 +41,9 @@ public static partial class SnapshotsOperationsExtensions /// /// The name of the volume /// - public static IEnumerable List(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName) + public static IEnumerable List(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName) { - return operations.ListAsync(resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -52,7 +52,7 @@ public static IEnumerable List(this ISnapshotsOperations operations, s /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -67,9 +67,9 @@ public static IEnumerable List(this ISnapshotsOperations operations, s /// /// The cancellation token. /// - public static async Task> ListAsync(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -81,7 +81,7 @@ public static IEnumerable List(this ISnapshotsOperations operations, s /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -96,9 +96,9 @@ public static IEnumerable List(this ISnapshotsOperations operations, s /// /// The name of the mount target /// - public static Snapshot Get(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName) + public static Snapshot Get(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { - return operations.GetAsync(resourceGroup, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); } /// @@ -107,7 +107,7 @@ public static Snapshot Get(this ISnapshotsOperations operations, string resource /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -125,9 +125,9 @@ public static Snapshot Get(this ISnapshotsOperations operations, string resource /// /// The cancellation token. /// - public static async Task GetAsync(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -142,7 +142,7 @@ public static Snapshot Get(this ISnapshotsOperations operations, string resource /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -157,9 +157,9 @@ public static Snapshot Get(this ISnapshotsOperations operations, string resource /// /// The name of the mount target /// - public static Snapshot Create(this ISnapshotsOperations operations, Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName) + public static Snapshot Create(this ISnapshotsOperations operations, Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { - return operations.CreateAsync(body, resourceGroup, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); + return operations.CreateAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); } /// @@ -171,7 +171,7 @@ public static Snapshot Create(this ISnapshotsOperations operations, Snapshot bod /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -189,9 +189,9 @@ public static Snapshot Create(this ISnapshotsOperations operations, Snapshot bod /// /// The cancellation token. /// - public static async Task CreateAsync(this ISnapshotsOperations operations, Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this ISnapshotsOperations operations, Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -206,7 +206,7 @@ public static Snapshot Create(this ISnapshotsOperations operations, Snapshot bod /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -221,9 +221,9 @@ public static Snapshot Create(this ISnapshotsOperations operations, Snapshot bod /// /// The name of the mount target /// - public static Snapshot Update(this ISnapshotsOperations operations, SnapshotPatch body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName) + public static Snapshot Update(this ISnapshotsOperations operations, SnapshotPatch body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { - return operations.UpdateAsync(body, resourceGroup, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); + return operations.UpdateAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); } /// @@ -235,7 +235,7 @@ public static Snapshot Update(this ISnapshotsOperations operations, SnapshotPatc /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -253,9 +253,9 @@ public static Snapshot Update(this ISnapshotsOperations operations, SnapshotPatc /// /// The cancellation token. /// - public static async Task UpdateAsync(this ISnapshotsOperations operations, SnapshotPatch body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this ISnapshotsOperations operations, SnapshotPatch body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -267,7 +267,7 @@ public static Snapshot Update(this ISnapshotsOperations operations, SnapshotPatc /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -282,9 +282,9 @@ public static Snapshot Update(this ISnapshotsOperations operations, SnapshotPatc /// /// The name of the mount target /// - public static void Delete(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName) + public static void Delete(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { - operations.DeleteAsync(resourceGroup, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); } /// @@ -293,7 +293,7 @@ public static void Delete(this ISnapshotsOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -311,9 +311,9 @@ public static void Delete(this ISnapshotsOperations operations, string resourceG /// /// The cancellation token. /// - public static async Task DeleteAsync(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -325,7 +325,7 @@ public static void Delete(this ISnapshotsOperations operations, string resourceG /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -340,9 +340,9 @@ public static void Delete(this ISnapshotsOperations operations, string resourceG /// /// The name of the mount target /// - public static Snapshot BeginCreate(this ISnapshotsOperations operations, Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName) + public static Snapshot BeginCreate(this ISnapshotsOperations operations, Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { - return operations.BeginCreateAsync(body, resourceGroup, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); + return operations.BeginCreateAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); } /// @@ -354,7 +354,7 @@ public static Snapshot BeginCreate(this ISnapshotsOperations operations, Snapsho /// /// Snapshot object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -372,9 +372,9 @@ public static Snapshot BeginCreate(this ISnapshotsOperations operations, Snapsho /// /// The cancellation token. /// - public static async Task BeginCreateAsync(this ISnapshotsOperations operations, Snapshot body, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateAsync(this ISnapshotsOperations operations, Snapshot body, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -386,7 +386,7 @@ public static Snapshot BeginCreate(this ISnapshotsOperations operations, Snapsho /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -401,9 +401,9 @@ public static Snapshot BeginCreate(this ISnapshotsOperations operations, Snapsho /// /// The name of the mount target /// - public static void BeginDelete(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName) + public static void BeginDelete(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName) { - operations.BeginDeleteAsync(resourceGroup, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).GetAwaiter().GetResult(); } /// @@ -412,7 +412,7 @@ public static void BeginDelete(this ISnapshotsOperations operations, string reso /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -430,9 +430,9 @@ public static void BeginDelete(this ISnapshotsOperations operations, string reso /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this ISnapshotsOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this ISnapshotsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, string snapshotName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } } diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperations.cs b/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperations.cs index 705b7c976b3b..28fde0b537d7 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperations.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperations.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -53,7 +53,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// List volumes /// - /// + /// /// The name of the resource group. /// /// @@ -83,15 +83,30 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -112,7 +127,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -120,9 +135,9 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); List _queryParameters = new List(); @@ -253,7 +268,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// Get a volume /// - /// + /// /// The name of the resource group. /// /// @@ -286,15 +301,30 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -319,7 +349,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -328,9 +358,9 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -465,7 +495,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -483,10 +513,10 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -496,7 +526,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -529,7 +559,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(VolumePatch body, string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(VolumePatch body, string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -539,9 +569,24 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -567,7 +612,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -576,9 +621,9 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -716,7 +761,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// Delete a volume /// - /// + /// /// The name of the resource group. /// /// @@ -734,10 +779,10 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// The cancellation token. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -747,7 +792,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -780,7 +825,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(Volume body, string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body == null) { @@ -794,9 +839,24 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -822,7 +882,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -831,9 +891,9 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); @@ -989,7 +1049,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// Delete a volume /// - /// + /// /// The name of the resource group. /// /// @@ -1019,15 +1079,30 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroup, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (resourceGroup == null) + if (resourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } } if (accountName == null) { @@ -1052,7 +1127,7 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroup", resourceGroup); + tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("poolName", poolName); tracingParameters.Add("volumeName", volumeName); @@ -1061,9 +1136,9 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}").ToString(); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); - _url = _url.Replace("{resourceGroup}", System.Uri.EscapeDataString(resourceGroup)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); _url = _url.Replace("{poolName}", System.Uri.EscapeDataString(poolName)); _url = _url.Replace("{volumeName}", System.Uri.EscapeDataString(volumeName)); diff --git a/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperationsExtensions.cs b/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperationsExtensions.cs index cc68cd1b6701..f9a00ebbe85c 100644 --- a/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperationsExtensions.cs +++ b/src/SDKs/NetApp/Management.NetApp/Generated/VolumesOperationsExtensions.cs @@ -8,7 +8,7 @@ // regenerated. // -namespace Microsoft.Azure.Management.NetApp +namespace Microsoft.NetApp { using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -29,7 +29,7 @@ public static partial class VolumesOperationsExtensions /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -38,9 +38,9 @@ public static partial class VolumesOperationsExtensions /// /// The name of the capacity pool /// - public static IEnumerable List(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName) + public static IEnumerable List(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName) { - return operations.ListAsync(resourceGroup, accountName, poolName).GetAwaiter().GetResult(); + return operations.ListAsync(resourceGroupName, accountName, poolName).GetAwaiter().GetResult(); } /// @@ -49,7 +49,7 @@ public static IEnumerable List(this IVolumesOperations operations, strin /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -61,9 +61,9 @@ public static IEnumerable List(this IVolumesOperations operations, strin /// /// The cancellation token. /// - public static async Task> ListAsync(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroup, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, poolName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -75,7 +75,7 @@ public static IEnumerable List(this IVolumesOperations operations, strin /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -87,9 +87,9 @@ public static IEnumerable List(this IVolumesOperations operations, strin /// /// The name of the volume /// - public static Volume Get(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName, string volumeName) + public static Volume Get(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName) { - return operations.GetAsync(resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -98,7 +98,7 @@ public static Volume Get(this IVolumesOperations operations, string resourceGrou /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -113,9 +113,9 @@ public static Volume Get(this IVolumesOperations operations, string resourceGrou /// /// The cancellation token. /// - public static async Task GetAsync(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -130,7 +130,7 @@ public static Volume Get(this IVolumesOperations operations, string resourceGrou /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -142,9 +142,9 @@ public static Volume Get(this IVolumesOperations operations, string resourceGrou /// /// The name of the volume /// - public static Volume CreateOrUpdate(this IVolumesOperations operations, Volume body, string resourceGroup, string accountName, string poolName, string volumeName) + public static Volume CreateOrUpdate(this IVolumesOperations operations, Volume body, string resourceGroupName, string accountName, string poolName, string volumeName) { - return operations.CreateOrUpdateAsync(body, resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(body, resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -156,7 +156,7 @@ public static Volume CreateOrUpdate(this IVolumesOperations operations, Volume b /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -171,9 +171,9 @@ public static Volume CreateOrUpdate(this IVolumesOperations operations, Volume b /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IVolumesOperations operations, Volume body, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IVolumesOperations operations, Volume body, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -188,7 +188,7 @@ public static Volume CreateOrUpdate(this IVolumesOperations operations, Volume b /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -200,9 +200,9 @@ public static Volume CreateOrUpdate(this IVolumesOperations operations, Volume b /// /// The name of the volume /// - public static Volume Update(this IVolumesOperations operations, VolumePatch body, string resourceGroup, string accountName, string poolName, string volumeName) + public static Volume Update(this IVolumesOperations operations, VolumePatch body, string resourceGroupName, string accountName, string poolName, string volumeName) { - return operations.UpdateAsync(body, resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + return operations.UpdateAsync(body, resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -214,7 +214,7 @@ public static Volume Update(this IVolumesOperations operations, VolumePatch body /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -229,9 +229,9 @@ public static Volume Update(this IVolumesOperations operations, VolumePatch body /// /// The cancellation token. /// - public static async Task UpdateAsync(this IVolumesOperations operations, VolumePatch body, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IVolumesOperations operations, VolumePatch body, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -243,7 +243,7 @@ public static Volume Update(this IVolumesOperations operations, VolumePatch body /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -255,9 +255,9 @@ public static Volume Update(this IVolumesOperations operations, VolumePatch body /// /// The name of the volume /// - public static void Delete(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName, string volumeName) + public static void Delete(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName) { - operations.DeleteAsync(resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + operations.DeleteAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -266,7 +266,7 @@ public static void Delete(this IVolumesOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -281,9 +281,9 @@ public static void Delete(this IVolumesOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task DeleteAsync(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -295,7 +295,7 @@ public static void Delete(this IVolumesOperations operations, string resourceGro /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -307,9 +307,9 @@ public static void Delete(this IVolumesOperations operations, string resourceGro /// /// The name of the volume /// - public static Volume BeginCreateOrUpdate(this IVolumesOperations operations, Volume body, string resourceGroup, string accountName, string poolName, string volumeName) + public static Volume BeginCreateOrUpdate(this IVolumesOperations operations, Volume body, string resourceGroupName, string accountName, string poolName, string volumeName) { - return operations.BeginCreateOrUpdateAsync(body, resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + return operations.BeginCreateOrUpdateAsync(body, resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -321,7 +321,7 @@ public static Volume BeginCreateOrUpdate(this IVolumesOperations operations, Vol /// /// Volume object supplied in the body of the operation. /// - /// + /// /// The name of the resource group. /// /// @@ -336,9 +336,9 @@ public static Volume BeginCreateOrUpdate(this IVolumesOperations operations, Vol /// /// The cancellation token. /// - public static async Task BeginCreateOrUpdateAsync(this IVolumesOperations operations, Volume body, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateOrUpdateAsync(this IVolumesOperations operations, Volume body, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -350,7 +350,7 @@ public static Volume BeginCreateOrUpdate(this IVolumesOperations operations, Vol /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -362,9 +362,9 @@ public static Volume BeginCreateOrUpdate(this IVolumesOperations operations, Vol /// /// The name of the volume /// - public static void BeginDelete(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName, string volumeName) + public static void BeginDelete(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName) { - operations.BeginDeleteAsync(resourceGroup, accountName, poolName, volumeName).GetAwaiter().GetResult(); + operations.BeginDeleteAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); } /// @@ -373,7 +373,7 @@ public static void BeginDelete(this IVolumesOperations operations, string resour /// /// The operations group for this extension method. /// - /// + /// /// The name of the resource group. /// /// @@ -388,9 +388,9 @@ public static void BeginDelete(this IVolumesOperations operations, string resour /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IVolumesOperations operations, string resourceGroup, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IVolumesOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroup, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } }