@@ -57,7 +57,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
57
57
/// List all Backups for a Netapp Account
58
58
/// </remarks>
59
59
/// <param name='resourceGroupName'>
60
- /// The name of the resource group.
60
+ /// The name of the resource group. The name is case insensitive.
61
61
/// </param>
62
62
/// <param name='accountName'>
63
63
/// The name of the NetApp account
@@ -89,6 +89,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
89
89
{
90
90
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
91
91
}
92
+ if ( Client . SubscriptionId != null )
93
+ {
94
+ if ( Client . SubscriptionId . Length < 1 )
95
+ {
96
+ throw new ValidationException ( ValidationRules . MinLength , "Client.SubscriptionId" , 1 ) ;
97
+ }
98
+ }
92
99
if ( resourceGroupName == null )
93
100
{
94
101
throw new ValidationException ( ValidationRules . CannotBeNull , "resourceGroupName" ) ;
@@ -103,15 +110,18 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
103
110
{
104
111
throw new ValidationException ( ValidationRules . MinLength , "resourceGroupName" , 1 ) ;
105
112
}
106
- if ( ! System . Text . RegularExpressions . Regex . IsMatch ( resourceGroupName , "^[-\\ w\\ ._\\ (\\ )]+$" ) )
107
- {
108
- throw new ValidationException ( ValidationRules . Pattern , "resourceGroupName" , "^[-\\ w\\ ._\\ (\\ )]+$" ) ;
109
- }
110
113
}
111
114
if ( accountName == null )
112
115
{
113
116
throw new ValidationException ( ValidationRules . CannotBeNull , "accountName" ) ;
114
117
}
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
+ }
115
125
if ( Client . ApiVersion == null )
116
126
{
117
127
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
@@ -278,7 +288,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
278
288
/// Gets the specified backup for a Netapp Account
279
289
/// </remarks>
280
290
/// <param name='resourceGroupName'>
281
- /// The name of the resource group.
291
+ /// The name of the resource group. The name is case insensitive.
282
292
/// </param>
283
293
/// <param name='accountName'>
284
294
/// The name of the NetApp account
@@ -313,6 +323,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
313
323
{
314
324
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
315
325
}
326
+ if ( Client . SubscriptionId != null )
327
+ {
328
+ if ( Client . SubscriptionId . Length < 1 )
329
+ {
330
+ throw new ValidationException ( ValidationRules . MinLength , "Client.SubscriptionId" , 1 ) ;
331
+ }
332
+ }
316
333
if ( resourceGroupName == null )
317
334
{
318
335
throw new ValidationException ( ValidationRules . CannotBeNull , "resourceGroupName" ) ;
@@ -327,19 +344,29 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
327
344
{
328
345
throw new ValidationException ( ValidationRules . MinLength , "resourceGroupName" , 1 ) ;
329
346
}
330
- if ( ! System . Text . RegularExpressions . Regex . IsMatch ( resourceGroupName , "^[-\\ w\\ ._\\ (\\ )]+$" ) )
331
- {
332
- throw new ValidationException ( ValidationRules . Pattern , "resourceGroupName" , "^[-\\ w\\ ._\\ (\\ )]+$" ) ;
333
- }
334
347
}
335
348
if ( accountName == null )
336
349
{
337
350
throw new ValidationException ( ValidationRules . CannotBeNull , "accountName" ) ;
338
351
}
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
+ }
339
359
if ( backupName == null )
340
360
{
341
361
throw new ValidationException ( ValidationRules . CannotBeNull , "backupName" ) ;
342
362
}
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
+ }
343
370
if ( Client . ApiVersion == null )
344
371
{
345
372
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
@@ -508,7 +535,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
508
535
/// Delete the specified Backup for a Netapp Account
509
536
/// </remarks>
510
537
/// <param name='resourceGroupName'>
511
- /// The name of the resource group.
538
+ /// The name of the resource group. The name is case insensitive.
512
539
/// </param>
513
540
/// <param name='accountName'>
514
541
/// The name of the NetApp account
@@ -536,7 +563,7 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
536
563
/// Delete the specified Backup for a Netapp Account
537
564
/// </remarks>
538
565
/// <param name='resourceGroupName'>
539
- /// The name of the resource group.
566
+ /// The name of the resource group. The name is case insensitive.
540
567
/// </param>
541
568
/// <param name='accountName'>
542
569
/// The name of the NetApp account
@@ -568,6 +595,13 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
568
595
{
569
596
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.SubscriptionId" ) ;
570
597
}
598
+ if ( Client . SubscriptionId != null )
599
+ {
600
+ if ( Client . SubscriptionId . Length < 1 )
601
+ {
602
+ throw new ValidationException ( ValidationRules . MinLength , "Client.SubscriptionId" , 1 ) ;
603
+ }
604
+ }
571
605
if ( resourceGroupName == null )
572
606
{
573
607
throw new ValidationException ( ValidationRules . CannotBeNull , "resourceGroupName" ) ;
@@ -582,19 +616,29 @@ internal AccountBackupsOperations(AzureNetAppFilesManagementClient client)
582
616
{
583
617
throw new ValidationException ( ValidationRules . MinLength , "resourceGroupName" , 1 ) ;
584
618
}
585
- if ( ! System . Text . RegularExpressions . Regex . IsMatch ( resourceGroupName , "^[-\\ w\\ ._\\ (\\ )]+$" ) )
586
- {
587
- throw new ValidationException ( ValidationRules . Pattern , "resourceGroupName" , "^[-\\ w\\ ._\\ (\\ )]+$" ) ;
588
- }
589
619
}
590
620
if ( accountName == null )
591
621
{
592
622
throw new ValidationException ( ValidationRules . CannotBeNull , "accountName" ) ;
593
623
}
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
+ }
594
631
if ( backupName == null )
595
632
{
596
633
throw new ValidationException ( ValidationRules . CannotBeNull , "backupName" ) ;
597
634
}
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
+ }
598
642
if ( Client . ApiVersion == null )
599
643
{
600
644
throw new ValidationException ( ValidationRules . CannotBeNull , "this.Client.ApiVersion" ) ;
0 commit comments