diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountBackupsOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountBackupsOperations.cs index a9c1402857e9c..e88bf1e7e1565 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountBackupsOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountBackupsOperations.cs @@ -116,6 +116,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -337,6 +344,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -585,6 +599,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountsOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountsOperations.cs index 6ae6e51797a34..c9cdc864d3949 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountsOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AccountsOperations.cs @@ -109,6 +109,13 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -321,6 +328,13 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -627,6 +641,13 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -863,6 +884,13 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1066,6 +1094,13 @@ internal AccountsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs index 2b930cbab2710..d00bee4fd0579 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/AzureNetAppFilesManagementClient.cs @@ -54,7 +54,7 @@ public partial class AzureNetAppFilesManagementClient : ServiceClient - /// Version of the API to be used with the client request. + /// The API version to use for this operation. /// public string ApiVersion { get; private set; } @@ -384,7 +384,7 @@ private void Initialize() BackupPolicies = new BackupPoliciesOperations(this); Vaults = new VaultsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-02-01"; + ApiVersion = "2021-04-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupPoliciesOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupPoliciesOperations.cs index eb3731fa00c21..5b5e7730f7371 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupPoliciesOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupPoliciesOperations.cs @@ -116,6 +116,13 @@ internal BackupPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -337,6 +344,13 @@ internal BackupPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -653,6 +667,13 @@ internal BackupPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (body == null) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); @@ -912,6 +933,13 @@ internal BackupPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (body == null) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); @@ -1161,6 +1189,13 @@ internal BackupPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperations.cs index e64c96c42d7ef..56f2b5aec328b 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperations.cs @@ -160,6 +160,13 @@ internal BackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -312,6 +319,275 @@ internal BackupsOperations(AzureNetAppFilesManagementClient client) return _result; } + /// + /// Get volume's restore status + /// + /// + /// Get the status of the restore for a volume + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the NetApp account + /// + /// + /// The name of the capacity pool + /// + /// + /// The name of the volume + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetVolumeRestoreStatusWithHttpMessagesAsync(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 (resourceGroupName == null) + { + 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) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (poolName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "poolName"); + } + if (poolName != null) + { + if (poolName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "poolName", 64); + } + if (poolName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "poolName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(poolName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$")) + { + throw new ValidationException(ValidationRules.Pattern, "poolName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"); + } + } + if (volumeName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "volumeName"); + } + if (volumeName != null) + { + if (volumeName.Length > 64) + { + throw new ValidationException(ValidationRules.MaxLength, "volumeName", 64); + } + if (volumeName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "volumeName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(volumeName, "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$")) + { + throw new ValidationException(ValidationRules.Pattern, "volumeName", "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("poolName", poolName); + tracingParameters.Add("volumeName", volumeName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetVolumeRestoreStatus", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/restoreStatus").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _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)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex = new CloudException(_errorBody.Message); + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// List Backups /// @@ -422,6 +698,13 @@ internal BackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -691,6 +974,13 @@ internal BackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1073,6 +1363,13 @@ internal BackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (body == null) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); @@ -1380,6 +1677,13 @@ internal BackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1673,6 +1977,13 @@ internal BackupsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperationsExtensions.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperationsExtensions.cs index 418f778c9b033..6ea29fffe053e 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperationsExtensions.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/BackupsOperationsExtensions.cs @@ -81,6 +81,64 @@ public static BackupStatus GetStatus(this IBackupsOperations operations, string } } + /// + /// Get volume's restore status + /// + /// + /// Get the status of the restore for a volume + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the NetApp account + /// + /// + /// The name of the capacity pool + /// + /// + /// The name of the volume + /// + public static RestoreStatus GetVolumeRestoreStatus(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName) + { + return operations.GetVolumeRestoreStatusAsync(resourceGroupName, accountName, poolName, volumeName).GetAwaiter().GetResult(); + } + + /// + /// Get volume's restore status + /// + /// + /// Get the status of the restore for a volume + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the NetApp account + /// + /// + /// The name of the capacity pool + /// + /// + /// The name of the volume + /// + /// + /// The cancellation token. + /// + public static async Task GetVolumeRestoreStatusAsync(this IBackupsOperations operations, string resourceGroupName, string accountName, string poolName, string volumeName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetVolumeRestoreStatusWithHttpMessagesAsync(resourceGroupName, accountName, poolName, volumeName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// List Backups /// diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs index 52afe2b6017ce..d5dfac40cbe68 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IAzureNetAppFilesManagementClient.cs @@ -48,7 +48,7 @@ public partial interface IAzureNetAppFilesManagementClient : System.IDisposable string SubscriptionId { get; set; } /// - /// Version of the API to be used with the client request. + /// The API version to use for this operation. /// string ApiVersion { get; } diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IBackupsOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IBackupsOperations.cs index 826a6e6d7d768..d33c5f08eef0b 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IBackupsOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/IBackupsOperations.cs @@ -58,6 +58,40 @@ public partial interface IBackupsOperations /// Task> GetStatusWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Get volume's restore status + /// + /// + /// Get the status of the restore for a volume + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the NetApp account + /// + /// + /// The name of the capacity pool + /// + /// + /// The name of the volume + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetVolumeRestoreStatusWithHttpMessagesAsync(string resourceGroupName, string accountName, string poolName, string volumeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// List Backups /// /// diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/INetAppResourceOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/INetAppResourceOperations.cs index bcfe391b6a980..3b526ee9a1c96 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/INetAppResourceOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/INetAppResourceOperations.cs @@ -71,17 +71,11 @@ public partial interface INetAppResourceOperations /// The location /// /// - /// Resource name to verify. - /// - /// - /// Resource type used for verification. Possible values include: - /// 'Microsoft.NetApp/netAppAccounts', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots' + /// File path to verify. /// - /// - /// Resource group name. + /// + /// The Azure Resource URI for a delegated subnet. Must have the + /// delegation Microsoft.NetApp/volumes /// /// /// The headers that will be added to request. @@ -98,7 +92,7 @@ public partial interface INetAppResourceOperations /// /// Thrown when a required parameter is null /// - Task> CheckFilePathAvailabilityWithHttpMessagesAsync(string location, string name, string type, string resourceGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CheckFilePathAvailabilityWithHttpMessagesAsync(string location, string name, string subnetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Check quota availability /// diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs index 1b8647124f2d5..dcc6fe63a817c 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ActiveDirectory.cs @@ -55,6 +55,9 @@ public ActiveDirectory() /// Users to be added to the Built-in /// Backup Operator active directory group. A list of unique usernames /// without domain specifier + /// Users to be added to the Built-in + /// Administrators active directory group. A list of unique usernames + /// without domain specifier /// kdc server IP addresses for the active /// directory machine. This optional parameter is used only while /// creating kerberos volume. @@ -79,7 +82,7 @@ public ActiveDirectory() /// If enabled, NFS client /// local users can also (in addition to LDAP users) access the NFS /// volumes. - 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 statusDetails = default(string), string smbServerName = default(string), string organizationalUnit = default(string), string site = default(string), IList backupOperators = default(IList), string kdcIP = default(string), string adName = default(string), string serverRootCACertificate = default(string), bool? aesEncryption = default(bool?), bool? ldapSigning = default(bool?), IList securityOperators = default(IList), bool? ldapOverTLS = default(bool?), bool? allowLocalNfsUsersWithLdap = default(bool?)) + 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 statusDetails = default(string), string smbServerName = default(string), string organizationalUnit = default(string), string site = default(string), IList backupOperators = default(IList), IList administrators = default(IList), string kdcIP = default(string), string adName = default(string), string serverRootCACertificate = default(string), bool? aesEncryption = default(bool?), bool? ldapSigning = default(bool?), IList securityOperators = default(IList), bool? ldapOverTLS = default(bool?), bool? allowLocalNfsUsersWithLdap = default(bool?)) { ActiveDirectoryId = activeDirectoryId; Username = username; @@ -92,6 +95,7 @@ public ActiveDirectory() OrganizationalUnit = organizationalUnit; Site = site; BackupOperators = backupOperators; + Administrators = administrators; KdcIP = kdcIP; AdName = adName; ServerRootCACertificate = serverRootCACertificate; @@ -183,6 +187,14 @@ public ActiveDirectory() [JsonProperty(PropertyName = "backupOperators")] public IList BackupOperators { get; set; } + /// + /// Gets or sets users to be added to the Built-in Administrators + /// active directory group. A list of unique usernames without domain + /// specifier + /// + [JsonProperty(PropertyName = "administrators")] + public IList Administrators { get; set; } + /// /// Gets or sets kdc server IP addresses for the active directory /// machine. This optional parameter is used only while creating diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupStatus.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupStatus.cs index df434d4ffe261..d8e3ad3027bc7 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupStatus.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/BackupStatus.cs @@ -39,13 +39,22 @@ public BackupStatus() /// relationship /// Displays error message if the backup is /// in an error state - public BackupStatus(bool? healthy = default(bool?), string relationshipStatus = default(string), string mirrorState = default(string), string unhealthyReason = default(string), string errorMessage = default(string)) + /// Displays the last transfer + /// size + /// Displays the last transfer + /// type + /// Displays the total bytes + /// transferred + public BackupStatus(bool? healthy = default(bool?), string relationshipStatus = default(string), string mirrorState = default(string), string unhealthyReason = default(string), string errorMessage = default(string), long? lastTransferSize = default(long?), string lastTransferType = default(string), long? totalTransferBytes = default(long?)) { Healthy = healthy; RelationshipStatus = relationshipStatus; MirrorState = mirrorState; UnhealthyReason = unhealthyReason; ErrorMessage = errorMessage; + LastTransferSize = lastTransferSize; + LastTransferType = lastTransferType; + TotalTransferBytes = totalTransferBytes; CustomInit(); } @@ -86,5 +95,23 @@ public BackupStatus() [JsonProperty(PropertyName = "errorMessage")] public string ErrorMessage { get; private set; } + /// + /// Gets displays the last transfer size + /// + [JsonProperty(PropertyName = "lastTransferSize")] + public long? LastTransferSize { get; private set; } + + /// + /// Gets displays the last transfer type + /// + [JsonProperty(PropertyName = "lastTransferType")] + public string LastTransferType { get; private set; } + + /// + /// Gets displays the total bytes transferred + /// + [JsonProperty(PropertyName = "totalTransferBytes")] + public long? TotalTransferBytes { get; private set; } + } } diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPool.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPool.cs index b11375360767e..16ed2af390be3 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPool.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPool.cs @@ -49,7 +49,9 @@ public CapacityPool() /// Utilized throughput of pool /// in Mibps /// qosType - public CapacityPool(string location, long size, string serviceLevel, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string poolId = default(string), string provisioningState = default(string), double? totalThroughputMibps = default(double?), double? utilizedThroughputMibps = default(double?), string qosType = default(string)) + /// If enabled (true) the pool can contain + /// cool Access enabled volumes. + public CapacityPool(string location, long size, string serviceLevel, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string poolId = default(string), string provisioningState = default(string), double? totalThroughputMibps = default(double?), double? utilizedThroughputMibps = default(double?), string qosType = default(string), bool? coolAccess = default(bool?)) { Location = location; Id = id; @@ -63,6 +65,7 @@ public CapacityPool() TotalThroughputMibps = totalThroughputMibps; UtilizedThroughputMibps = utilizedThroughputMibps; QosType = qosType; + CoolAccess = coolAccess; CustomInit(); } @@ -157,6 +160,13 @@ public CapacityPool() [JsonProperty(PropertyName = "properties.qosType")] public string QosType { get; set; } + /// + /// Gets or sets if enabled (true) the pool can contain cool Access + /// enabled volumes. + /// + [JsonProperty(PropertyName = "properties.coolAccess")] + public bool? CoolAccess { get; set; } + /// /// Validate the object. /// diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs index b4113f746648f..a1824484d4bf2 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/CapacityPoolPatch.cs @@ -116,16 +116,13 @@ public CapacityPoolPatch() /// public virtual void Validate() { - if (Size != null) + if (Size > 549755813888000) { - if (Size > 549755813888000) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "Size", 549755813888000); - } - if (Size < 4398046511104) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "Size", 4398046511104); - } + throw new ValidationException(ValidationRules.InclusiveMaximum, "Size", 549755813888000); + } + if (Size < 4398046511104) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "Size", 4398046511104); } } } diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ChownMode.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ChownMode.cs new file mode 100644 index 0000000000000..8042ee631d9cf --- /dev/null +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ChownMode.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.NetApp.Models +{ + + /// + /// Defines values for ChownMode. + /// + public static class ChownMode + { + public const string Restricted = "Restricted"; + public const string Unrestricted = "Unrestricted"; + } +} diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ExportPolicyRule.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ExportPolicyRule.cs index 5c7c9c8b892af..d7d96bb570fda 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ExportPolicyRule.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/ExportPolicyRule.cs @@ -53,7 +53,12 @@ public ExportPolicyRule() /// separated string with IPv4 CIDRs, IPv4 host addresses and host /// names /// Has root access to volume - public ExportPolicyRule(int? ruleIndex = default(int?), bool? unixReadOnly = default(bool?), bool? unixReadWrite = default(bool?), bool? kerberos5ReadOnly = default(bool?), bool? kerberos5ReadWrite = default(bool?), bool? kerberos5iReadOnly = default(bool?), bool? kerberos5iReadWrite = default(bool?), bool? kerberos5pReadOnly = default(bool?), bool? kerberos5pReadWrite = default(bool?), bool? cifs = default(bool?), bool? nfsv3 = default(bool?), bool? nfsv41 = default(bool?), string allowedClients = default(string), bool? hasRootAccess = default(bool?)) + /// This parameter specifies who is authorized + /// to change the ownership of a file. restricted - Only root user can + /// change the ownership of the file. unrestricted - Non-root users can + /// change ownership of files that they own. Possible values include: + /// 'Restricted', 'Unrestricted' + public ExportPolicyRule(int? ruleIndex = default(int?), bool? unixReadOnly = default(bool?), bool? unixReadWrite = default(bool?), bool? kerberos5ReadOnly = default(bool?), bool? kerberos5ReadWrite = default(bool?), bool? kerberos5iReadOnly = default(bool?), bool? kerberos5iReadWrite = default(bool?), bool? kerberos5pReadOnly = default(bool?), bool? kerberos5pReadWrite = default(bool?), bool? cifs = default(bool?), bool? nfsv3 = default(bool?), bool? nfsv41 = default(bool?), string allowedClients = default(string), bool? hasRootAccess = default(bool?), string chownMode = default(string)) { RuleIndex = ruleIndex; UnixReadOnly = unixReadOnly; @@ -69,6 +74,7 @@ public ExportPolicyRule() Nfsv41 = nfsv41; AllowedClients = allowedClients; HasRootAccess = hasRootAccess; + ChownMode = chownMode; CustomInit(); } @@ -170,5 +176,15 @@ public ExportPolicyRule() [JsonProperty(PropertyName = "hasRootAccess")] public bool? HasRootAccess { get; set; } + /// + /// Gets or sets this parameter specifies who is authorized to change + /// the ownership of a file. restricted - Only root user can change the + /// ownership of the file. unrestricted - Non-root users can change + /// ownership of files that they own. Possible values include: + /// 'Restricted', 'Unrestricted' + /// + [JsonProperty(PropertyName = "chownMode")] + public string ChownMode { get; set; } + } } diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/FilePathAvailabilityRequest.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/FilePathAvailabilityRequest.cs new file mode 100644 index 0000000000000..bee29e41394e6 --- /dev/null +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/FilePathAvailabilityRequest.cs @@ -0,0 +1,82 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.NetApp.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// File path availability request content - availability is based on the + /// name and the subnetId. + /// + public partial class FilePathAvailabilityRequest + { + /// + /// Initializes a new instance of the FilePathAvailabilityRequest + /// class. + /// + public FilePathAvailabilityRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the FilePathAvailabilityRequest + /// class. + /// + /// File path to verify. + /// The Azure Resource URI for a delegated + /// subnet. Must have the delegation Microsoft.NetApp/volumes + public FilePathAvailabilityRequest(string name, string subnetId) + { + Name = name; + SubnetId = subnetId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets file path to verify. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the Azure Resource URI for a delegated subnet. Must + /// have the delegation Microsoft.NetApp/volumes + /// + [JsonProperty(PropertyName = "subnetId")] + public string SubnetId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); + } + if (SubnetId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SubnetId"); + } + } + } +} diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/RestoreStatus.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/RestoreStatus.cs new file mode 100644 index 0000000000000..0f14390380253 --- /dev/null +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/RestoreStatus.cs @@ -0,0 +1,99 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.NetApp.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Restore status + /// + public partial class RestoreStatus + { + /// + /// Initializes a new instance of the RestoreStatus class. + /// + public RestoreStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RestoreStatus class. + /// + /// Restore health status + /// Status of the restore SnapMirror + /// relationship. Possible values include: 'Idle', + /// 'Transferring' + /// The status of the restore. Possible + /// values include: 'Uninitialized', 'Mirrored', 'Broken' + /// Reason for the unhealthy restore + /// relationship + /// Displays error message if the restore is + /// in an error state + /// Displays the total bytes + /// transferred + public RestoreStatus(bool? healthy = default(bool?), string relationshipStatus = default(string), string mirrorState = default(string), string unhealthyReason = default(string), string errorMessage = default(string), long? totalTransferBytes = default(long?)) + { + Healthy = healthy; + RelationshipStatus = relationshipStatus; + MirrorState = mirrorState; + UnhealthyReason = unhealthyReason; + ErrorMessage = errorMessage; + TotalTransferBytes = totalTransferBytes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets restore health status + /// + [JsonProperty(PropertyName = "healthy")] + public bool? Healthy { get; private set; } + + /// + /// Gets status of the restore SnapMirror relationship. Possible values + /// include: 'Idle', 'Transferring' + /// + [JsonProperty(PropertyName = "relationshipStatus")] + public string RelationshipStatus { get; private set; } + + /// + /// Gets the status of the restore. Possible values include: + /// 'Uninitialized', 'Mirrored', 'Broken' + /// + [JsonProperty(PropertyName = "mirrorState")] + public string MirrorState { get; private set; } + + /// + /// Gets reason for the unhealthy restore relationship + /// + [JsonProperty(PropertyName = "unhealthyReason")] + public string UnhealthyReason { get; private set; } + + /// + /// Gets displays error message if the restore is in an error state + /// + [JsonProperty(PropertyName = "errorMessage")] + public string ErrorMessage { get; private set; } + + /// + /// Gets displays the total bytes transferred + /// + [JsonProperty(PropertyName = "totalTransferBytes")] + public long? TotalTransferBytes { get; private set; } + + } +} diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs index 63fc94ce5e806..96f3241baa806 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/Volume.cs @@ -77,7 +77,19 @@ public Volume() /// values are: 'Microsoft.NetApp' /// Specifies whether LDAP is enabled or not /// for a given NFS volume. - public Volume(string location, string creationToken, long usageThreshold, string subnetId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string fileSystemId = default(string), string serviceLevel = default(string), VolumePropertiesExportPolicy exportPolicy = default(VolumePropertiesExportPolicy), IList protocolTypes = default(IList), string provisioningState = default(string), string snapshotId = default(string), string backupId = default(string), string baremetalTenantId = default(string), IList mountTargets = default(IList), string volumeType = default(string), VolumePropertiesDataProtection dataProtection = default(VolumePropertiesDataProtection), bool? isRestoring = default(bool?), bool? snapshotDirectoryVisible = default(bool?), bool? kerberosEnabled = default(bool?), string securityStyle = default(string), bool? smbEncryption = default(bool?), bool? smbContinuouslyAvailable = default(bool?), double? throughputMibps = default(double?), string encryptionKeySource = default(string), bool? ldapEnabled = default(bool?)) + /// Specifies whether Cool Access(tiering) is + /// enabled for the volume. + /// Specifies the number of days after + /// which data that is not accessed by clients will be tiered. + /// UNIX permissions for NFS volume + /// accepted in octal 4 digit format. First digit selects the set user + /// ID(4), set group ID (2) and sticky (1) attributes. Second digit + /// selects permission for the owner of the file: read (4), write (2) + /// and execute (1). Third selects permissions for other users in the + /// same group. the fourth for other users not in the group. 0755 - + /// gives read/write/execute permissions to owner and read/execute to + /// group and other users. + public Volume(string location, string creationToken, long usageThreshold, string subnetId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string fileSystemId = default(string), string serviceLevel = default(string), VolumePropertiesExportPolicy exportPolicy = default(VolumePropertiesExportPolicy), IList protocolTypes = default(IList), string provisioningState = default(string), string snapshotId = default(string), string backupId = default(string), string baremetalTenantId = default(string), IList mountTargets = default(IList), string volumeType = default(string), VolumePropertiesDataProtection dataProtection = default(VolumePropertiesDataProtection), bool? isRestoring = default(bool?), bool? snapshotDirectoryVisible = default(bool?), bool? kerberosEnabled = default(bool?), string securityStyle = default(string), bool? smbEncryption = default(bool?), bool? smbContinuouslyAvailable = default(bool?), double? throughputMibps = default(double?), string encryptionKeySource = default(string), bool? ldapEnabled = default(bool?), bool? coolAccess = default(bool?), int? coolnessPeriod = default(int?), string unixPermissions = default(string)) { Location = location; Id = id; @@ -107,6 +119,9 @@ public Volume() ThroughputMibps = throughputMibps; EncryptionKeySource = encryptionKeySource; LdapEnabled = ldapEnabled; + CoolAccess = coolAccess; + CoolnessPeriod = coolnessPeriod; + UnixPermissions = unixPermissions; CustomInit(); } @@ -332,6 +347,32 @@ public Volume() [JsonProperty(PropertyName = "properties.ldapEnabled")] public bool? LdapEnabled { get; set; } + /// + /// Gets or sets specifies whether Cool Access(tiering) is enabled for + /// the volume. + /// + [JsonProperty(PropertyName = "properties.coolAccess")] + public bool? CoolAccess { get; set; } + + /// + /// Gets or sets specifies the number of days after which data that is + /// not accessed by clients will be tiered. + /// + [JsonProperty(PropertyName = "properties.coolnessPeriod")] + public int? CoolnessPeriod { get; set; } + + /// + /// Gets or sets UNIX permissions for NFS volume accepted in octal 4 + /// digit format. First digit selects the set user ID(4), set group ID + /// (2) and sticky (1) attributes. Second digit selects permission for + /// the owner of the file: read (4), write (2) and execute (1). Third + /// selects permissions for other users in the same group. the fourth + /// for other users not in the group. 0755 - gives read/write/execute + /// permissions to owner and read/execute to group and other users. + /// + [JsonProperty(PropertyName = "properties.unixPermissions")] + public string UnixPermissions { get; set; } + /// /// Validate the object. /// @@ -434,15 +475,31 @@ public virtual void Validate() { DataProtection.Validate(); } - if (ThroughputMibps != null) + if (ThroughputMibps > 4500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500); + } + if (ThroughputMibps < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 0); + } + if (CoolnessPeriod > 63) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "CoolnessPeriod", 63); + } + if (CoolnessPeriod < 7) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "CoolnessPeriod", 7); + } + if (UnixPermissions != null) { - if (ThroughputMibps > 4500) + if (UnixPermissions.Length > 4) { - throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500); + throw new ValidationException(ValidationRules.MaxLength, "UnixPermissions", 4); } - if (ThroughputMibps < 0) + if (UnixPermissions.Length < 4) { - throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 0); + throw new ValidationException(ValidationRules.MinLength, "UnixPermissions", 4); } } } diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs index 70212c81a0b95..a0d20540c890e 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/VolumePatch.cs @@ -151,27 +151,21 @@ public VolumePatch() /// public virtual void Validate() { - if (UsageThreshold != null) + if (UsageThreshold > 109951162777600) { - if (UsageThreshold > 109951162777600) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "UsageThreshold", 109951162777600); - } - if (UsageThreshold < 107374182400) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400); - } + throw new ValidationException(ValidationRules.InclusiveMaximum, "UsageThreshold", 109951162777600); } - if (ThroughputMibps != null) + if (UsageThreshold < 107374182400) { - if (ThroughputMibps > 4500) - { - throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500); - } - if (ThroughputMibps < 1) - { - throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 1); - } + throw new ValidationException(ValidationRules.InclusiveMinimum, "UsageThreshold", 107374182400); + } + if (ThroughputMibps > 4500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "ThroughputMibps", 4500); + } + if (ThroughputMibps < 1) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "ThroughputMibps", 1); } } } diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperations.cs index 0462c9ea77751..88b9e7cdbad45 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperations.cs @@ -107,6 +107,13 @@ internal NetAppResourceOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (name == null) { throw new ValidationException(ValidationRules.CannotBeNull, "name"); @@ -289,17 +296,11 @@ internal NetAppResourceOperations(AzureNetAppFilesManagementClient client) /// The location /// /// - /// Resource name to verify. - /// - /// - /// Resource type used for verification. Possible values include: - /// 'Microsoft.NetApp/netAppAccounts', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots' + /// File path to verify. /// - /// - /// Resource group name. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation + /// Microsoft.NetApp/volumes /// /// /// Headers that will be added to request. @@ -322,7 +323,7 @@ internal NetAppResourceOperations(AzureNetAppFilesManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CheckFilePathAvailabilityWithHttpMessagesAsync(string location, string name, string type, string resourceGroup, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CheckFilePathAvailabilityWithHttpMessagesAsync(string location, string name, string subnetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -336,24 +337,26 @@ internal NetAppResourceOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (name == null) + if (Client.ApiVersion != null) { - throw new ValidationException(ValidationRules.CannotBeNull, "name"); + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } } - if (type == null) + if (name == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "type"); + throw new ValidationException(ValidationRules.CannotBeNull, "name"); } - if (resourceGroup == null) + if (subnetId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroup"); + throw new ValidationException(ValidationRules.CannotBeNull, "subnetId"); } - ResourceNameAvailabilityRequest body = new ResourceNameAvailabilityRequest(); - if (name != null || type != null || resourceGroup != null) + FilePathAvailabilityRequest body = new FilePathAvailabilityRequest(); + if (name != null || subnetId != null) { body.Name = name; - body.Type = type; - body.ResourceGroup = resourceGroup; + body.SubnetId = subnetId; } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -565,6 +568,13 @@ internal NetAppResourceOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (name == null) { throw new ValidationException(ValidationRules.CannotBeNull, "name"); diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperationsExtensions.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperationsExtensions.cs index 59b4040cdda0f..03af5547ccc31 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperationsExtensions.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/NetAppResourceOperationsExtensions.cs @@ -100,21 +100,15 @@ public static CheckAvailabilityResponse CheckNameAvailability(this INetAppResour /// The location /// /// - /// Resource name to verify. - /// - /// - /// Resource type used for verification. Possible values include: - /// 'Microsoft.NetApp/netAppAccounts', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots' + /// File path to verify. /// - /// - /// Resource group name. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation + /// Microsoft.NetApp/volumes /// - public static CheckAvailabilityResponse CheckFilePathAvailability(this INetAppResourceOperations operations, string location, string name, string type, string resourceGroup) + public static CheckAvailabilityResponse CheckFilePathAvailability(this INetAppResourceOperations operations, string location, string name, string subnetId) { - return operations.CheckFilePathAvailabilityAsync(location, name, type, resourceGroup).GetAwaiter().GetResult(); + return operations.CheckFilePathAvailabilityAsync(location, name, subnetId).GetAwaiter().GetResult(); } /// @@ -130,24 +124,18 @@ public static CheckAvailabilityResponse CheckFilePathAvailability(this INetAppRe /// The location /// /// - /// Resource name to verify. - /// - /// - /// Resource type used for verification. Possible values include: - /// 'Microsoft.NetApp/netAppAccounts', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes', - /// 'Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots' + /// File path to verify. /// - /// - /// Resource group name. + /// + /// The Azure Resource URI for a delegated subnet. Must have the delegation + /// Microsoft.NetApp/volumes /// /// /// The cancellation token. /// - public static async Task CheckFilePathAvailabilityAsync(this INetAppResourceOperations operations, string location, string name, string type, string resourceGroup, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CheckFilePathAvailabilityAsync(this INetAppResourceOperations operations, string location, string name, string subnetId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CheckFilePathAvailabilityWithHttpMessagesAsync(location, name, type, resourceGroup, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CheckFilePathAvailabilityWithHttpMessagesAsync(location, name, subnetId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Operations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Operations.cs index 8c08b98e9ce08..4e0854b6f51ff 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Operations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Operations.cs @@ -83,6 +83,13 @@ internal Operations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/PoolsOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/PoolsOperations.cs index 443e654599548..49cf912aea1ca 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/PoolsOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/PoolsOperations.cs @@ -116,6 +116,13 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -352,6 +359,13 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -691,6 +705,13 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -961,6 +982,13 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1203,6 +1231,13 @@ internal PoolsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs index 8b67e2ea238c4..8a4471ad4bbf1 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SdkInfo_NetAppManagementClient.cs @@ -19,31 +19,19 @@ public static IEnumerable> ApiInfo_NetAppManagemen { return new Tuple[] { - new Tuple("NetApp", "AccountBackups", "2021-02-01"), - new Tuple("NetApp", "Accounts", "2021-02-01"), - new Tuple("NetApp", "BackupPolicies", "2021-02-01"), - new Tuple("NetApp", "Backups", "2021-02-01"), - new Tuple("NetApp", "NetAppResource", "2021-02-01"), - new Tuple("NetApp", "Operations", "2021-02-01"), - new Tuple("NetApp", "Pools", "2021-02-01"), - new Tuple("NetApp", "SnapshotPolicies", "2021-02-01"), - new Tuple("NetApp", "Snapshots", "2021-02-01"), - new Tuple("NetApp", "Vaults", "2021-02-01"), - new Tuple("NetApp", "Volumes", "2021-02-01"), + new Tuple("NetApp", "AccountBackups", "2021-04-01"), + new Tuple("NetApp", "Accounts", "2021-04-01"), + new Tuple("NetApp", "BackupPolicies", "2021-04-01"), + new Tuple("NetApp", "Backups", "2021-04-01"), + new Tuple("NetApp", "NetAppResource", "2021-04-01"), + new Tuple("NetApp", "Operations", "2021-04-01"), + new Tuple("NetApp", "Pools", "2021-04-01"), + new Tuple("NetApp", "SnapshotPolicies", "2021-04-01"), + new Tuple("NetApp", "Snapshots", "2021-04-01"), + new Tuple("NetApp", "Vaults", "2021-04-01"), + new Tuple("NetApp", "Volumes", "2021-04-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@1.9.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/netapp/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --use:@microsoft.azure/autorest.csharp@2.3.90 --csharp-sdks-folder=C:\\Users\\audunn\\Source\\repos\\azure\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "6bc4561be16f8d7d8a8479617400f3b3600b07f0"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - - diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotPoliciesOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotPoliciesOperations.cs index ffe6d8088a2ab..35fe98ea1e1d5 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotPoliciesOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotPoliciesOperations.cs @@ -113,6 +113,13 @@ internal SnapshotPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -331,6 +338,13 @@ internal SnapshotPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -562,6 +576,13 @@ internal SnapshotPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -863,6 +884,13 @@ internal SnapshotPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1090,6 +1118,13 @@ internal SnapshotPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1332,6 +1367,13 @@ internal SnapshotPoliciesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotsOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotsOperations.cs index 8222dc8fc9079..a693ef1f002d7 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotsOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/SnapshotsOperations.cs @@ -160,6 +160,13 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -429,6 +436,13 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -819,6 +833,13 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1104,6 +1125,13 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1379,6 +1407,13 @@ internal SnapshotsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VaultsOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VaultsOperations.cs index b0524cb238f58..872e92257a497 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VaultsOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VaultsOperations.cs @@ -116,6 +116,13 @@ internal VaultsOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; diff --git a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumesOperations.cs b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumesOperations.cs index 08cefa130248b..b7a108e5d4581 100644 --- a/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumesOperations.cs +++ b/sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/VolumesOperations.cs @@ -138,6 +138,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -398,6 +405,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -827,6 +841,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1264,6 +1285,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1558,6 +1586,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1824,6 +1859,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2068,6 +2110,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (body == null) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); @@ -2323,6 +2372,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2573,6 +2629,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2815,6 +2878,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3059,6 +3129,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (body == null) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); @@ -3311,6 +3388,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -3555,6 +3639,13 @@ internal VolumesOperations(AzureNetAppFilesManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } if (body == null) { throw new ValidationException(ValidationRules.CannotBeNull, "body");