Skip to content

Commit

Permalink
[NetAppFiles] Update to 2022-09-01 (Azure#21530)
Browse files Browse the repository at this point in the history
* update to 2022-09-01 add tests

* Update help files

* Add properties to quota rules

* prompt in example

* UnlockNetAppFilesVolumeFileLock singular

* UnlockNetAppFilesVolumeFileLock singular

* Remove AccountBackupsOperations

* Update changelog

* Update changelog.

* Update ChangeLog.md

---------

Co-authored-by: Yunchi Wang <[email protected]>
  • Loading branch information
audunn and wyunchi-ms authored Apr 18, 2023
1 parent 5d3bc00 commit 5071fde
Show file tree
Hide file tree
Showing 160 changed files with 26,787 additions and 29,263 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
/// List all Backups for a Netapp Account
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand Down Expand Up @@ -89,6 +89,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
if (Client.SubscriptionId.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
Expand All @@ -103,15 +110,18 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
{
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 (accountName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
{
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
}
}
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
Expand Down Expand Up @@ -278,7 +288,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
/// Gets the specified backup for a Netapp Account
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand Down Expand Up @@ -313,6 +323,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
if (Client.SubscriptionId.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
Expand All @@ -327,19 +344,29 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
{
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 (accountName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
{
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
}
}
if (backupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "backupName");
}
if (backupName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(backupName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
{
throw new ValidationException(ValidationRules.Pattern, "backupName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
}
}
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
Expand Down Expand Up @@ -508,7 +535,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
/// Delete the specified Backup for a Netapp Account
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand Down Expand Up @@ -536,7 +563,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
/// Delete the specified Backup for a Netapp Account
/// </remarks>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand Down Expand Up @@ -568,6 +595,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
if (Client.SubscriptionId != null)
{
if (Client.SubscriptionId.Length < 1)
{
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
}
}
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
Expand All @@ -582,19 +616,29 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
{
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 (accountName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
{
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
}
}
if (backupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "backupName");
}
if (backupName != null)
{
if (!System.Text.RegularExpressions.Regex.IsMatch(backupName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
{
throw new ValidationException(ValidationRules.Pattern, "backupName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
}
}
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static partial class AccountBackupsOperationsExtensions
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand All @@ -53,7 +53,7 @@ public static IEnumerable<Backup> List(this IAccountBackupsOperations operations
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand All @@ -79,7 +79,7 @@ public static IEnumerable<Backup> List(this IAccountBackupsOperations operations
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand All @@ -102,7 +102,7 @@ public static Backup Get(this IAccountBackupsOperations operations, string resou
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand Down Expand Up @@ -131,7 +131,7 @@ public static Backup Get(this IAccountBackupsOperations operations, string resou
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand All @@ -154,7 +154,7 @@ public static void Delete(this IAccountBackupsOperations operations, string reso
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand All @@ -180,7 +180,7 @@ public static void Delete(this IAccountBackupsOperations operations, string reso
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand All @@ -203,7 +203,7 @@ public static void BeginDelete(this IAccountBackupsOperations operations, string
/// The operations group for this extension method.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// The name of the resource group. The name is case insensitive.
/// </param>
/// <param name='accountName'>
/// The name of the NetApp account
Expand Down
Loading

0 comments on commit 5071fde

Please sign in to comment.