Skip to content

Commit 5071fde

Browse files
audunnwyunchi-ms
andauthored
[NetAppFiles] Update to 2022-09-01 (#21530)
* 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]>
1 parent 5d3bc00 commit 5071fde

File tree

160 files changed

+26787
-29263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+26787
-29263
lines changed

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/AccountBackupsOperations.cs

Lines changed: 60 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
5757
/// List all Backups for a Netapp Account
5858
/// </remarks>
5959
/// <param name='resourceGroupName'>
60-
/// The name of the resource group.
60+
/// The name of the resource group. The name is case insensitive.
6161
/// </param>
6262
/// <param name='accountName'>
6363
/// The name of the NetApp account
@@ -89,6 +89,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
8989
{
9090
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
9191
}
92+
if (Client.SubscriptionId != null)
93+
{
94+
if (Client.SubscriptionId.Length < 1)
95+
{
96+
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
97+
}
98+
}
9299
if (resourceGroupName == null)
93100
{
94101
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
@@ -103,15 +110,18 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
103110
{
104111
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
105112
}
106-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
107-
{
108-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
109-
}
110113
}
111114
if (accountName == null)
112115
{
113116
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
114117
}
118+
if (accountName != null)
119+
{
120+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
121+
{
122+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
123+
}
124+
}
115125
if (Client.ApiVersion == null)
116126
{
117127
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -278,7 +288,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
278288
/// Gets the specified backup for a Netapp Account
279289
/// </remarks>
280290
/// <param name='resourceGroupName'>
281-
/// The name of the resource group.
291+
/// The name of the resource group. The name is case insensitive.
282292
/// </param>
283293
/// <param name='accountName'>
284294
/// The name of the NetApp account
@@ -313,6 +323,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
313323
{
314324
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
315325
}
326+
if (Client.SubscriptionId != null)
327+
{
328+
if (Client.SubscriptionId.Length < 1)
329+
{
330+
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
331+
}
332+
}
316333
if (resourceGroupName == null)
317334
{
318335
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
@@ -327,19 +344,29 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
327344
{
328345
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
329346
}
330-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
331-
{
332-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
333-
}
334347
}
335348
if (accountName == null)
336349
{
337350
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
338351
}
352+
if (accountName != null)
353+
{
354+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
355+
{
356+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
357+
}
358+
}
339359
if (backupName == null)
340360
{
341361
throw new ValidationException(ValidationRules.CannotBeNull, "backupName");
342362
}
363+
if (backupName != null)
364+
{
365+
if (!System.Text.RegularExpressions.Regex.IsMatch(backupName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
366+
{
367+
throw new ValidationException(ValidationRules.Pattern, "backupName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
368+
}
369+
}
343370
if (Client.ApiVersion == null)
344371
{
345372
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -508,7 +535,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
508535
/// Delete the specified Backup for a Netapp Account
509536
/// </remarks>
510537
/// <param name='resourceGroupName'>
511-
/// The name of the resource group.
538+
/// The name of the resource group. The name is case insensitive.
512539
/// </param>
513540
/// <param name='accountName'>
514541
/// The name of the NetApp account
@@ -536,7 +563,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
536563
/// Delete the specified Backup for a Netapp Account
537564
/// </remarks>
538565
/// <param name='resourceGroupName'>
539-
/// The name of the resource group.
566+
/// The name of the resource group. The name is case insensitive.
540567
/// </param>
541568
/// <param name='accountName'>
542569
/// The name of the NetApp account
@@ -568,6 +595,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
568595
{
569596
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
570597
}
598+
if (Client.SubscriptionId != null)
599+
{
600+
if (Client.SubscriptionId.Length < 1)
601+
{
602+
throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
603+
}
604+
}
571605
if (resourceGroupName == null)
572606
{
573607
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
@@ -582,19 +616,29 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
582616
{
583617
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
584618
}
585-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
586-
{
587-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
588-
}
589619
}
590620
if (accountName == null)
591621
{
592622
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
593623
}
624+
if (accountName != null)
625+
{
626+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
627+
{
628+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
629+
}
630+
}
594631
if (backupName == null)
595632
{
596633
throw new ValidationException(ValidationRules.CannotBeNull, "backupName");
597634
}
635+
if (backupName != null)
636+
{
637+
if (!System.Text.RegularExpressions.Regex.IsMatch(backupName, "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$"))
638+
{
639+
throw new ValidationException(ValidationRules.Pattern, "backupName", "^[a-zA-Z0-9][a-zA-Z0-9\\-_]{0,63}$");
640+
}
641+
}
598642
if (Client.ApiVersion == null)
599643
{
600644
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");

src/NetAppFiles/NetAppFiles.Management.Sdk/Generated/AccountBackupsOperationsExtensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static partial class AccountBackupsOperationsExtensions
3333
/// The operations group for this extension method.
3434
/// </param>
3535
/// <param name='resourceGroupName'>
36-
/// The name of the resource group.
36+
/// The name of the resource group. The name is case insensitive.
3737
/// </param>
3838
/// <param name='accountName'>
3939
/// The name of the NetApp account
@@ -53,7 +53,7 @@ public static IEnumerable<Backup> List(this IAccountBackupsOperations operations
5353
/// The operations group for this extension method.
5454
/// </param>
5555
/// <param name='resourceGroupName'>
56-
/// The name of the resource group.
56+
/// The name of the resource group. The name is case insensitive.
5757
/// </param>
5858
/// <param name='accountName'>
5959
/// The name of the NetApp account
@@ -79,7 +79,7 @@ public static IEnumerable<Backup> List(this IAccountBackupsOperations operations
7979
/// The operations group for this extension method.
8080
/// </param>
8181
/// <param name='resourceGroupName'>
82-
/// The name of the resource group.
82+
/// The name of the resource group. The name is case insensitive.
8383
/// </param>
8484
/// <param name='accountName'>
8585
/// The name of the NetApp account
@@ -102,7 +102,7 @@ public static Backup Get(this IAccountBackupsOperations operations, string resou
102102
/// The operations group for this extension method.
103103
/// </param>
104104
/// <param name='resourceGroupName'>
105-
/// The name of the resource group.
105+
/// The name of the resource group. The name is case insensitive.
106106
/// </param>
107107
/// <param name='accountName'>
108108
/// The name of the NetApp account
@@ -131,7 +131,7 @@ public static Backup Get(this IAccountBackupsOperations operations, string resou
131131
/// The operations group for this extension method.
132132
/// </param>
133133
/// <param name='resourceGroupName'>
134-
/// The name of the resource group.
134+
/// The name of the resource group. The name is case insensitive.
135135
/// </param>
136136
/// <param name='accountName'>
137137
/// The name of the NetApp account
@@ -154,7 +154,7 @@ public static void Delete(this IAccountBackupsOperations operations, string reso
154154
/// The operations group for this extension method.
155155
/// </param>
156156
/// <param name='resourceGroupName'>
157-
/// The name of the resource group.
157+
/// The name of the resource group. The name is case insensitive.
158158
/// </param>
159159
/// <param name='accountName'>
160160
/// The name of the NetApp account
@@ -180,7 +180,7 @@ public static void Delete(this IAccountBackupsOperations operations, string reso
180180
/// The operations group for this extension method.
181181
/// </param>
182182
/// <param name='resourceGroupName'>
183-
/// The name of the resource group.
183+
/// The name of the resource group. The name is case insensitive.
184184
/// </param>
185185
/// <param name='accountName'>
186186
/// The name of the NetApp account
@@ -203,7 +203,7 @@ public static void BeginDelete(this IAccountBackupsOperations operations, string
203203
/// The operations group for this extension method.
204204
/// </param>
205205
/// <param name='resourceGroupName'>
206-
/// The name of the resource group.
206+
/// The name of the resource group. The name is case insensitive.
207207
/// </param>
208208
/// <param name='accountName'>
209209
/// The name of the NetApp account

0 commit comments

Comments
 (0)