Skip to content

Commit 06dd4ea

Browse files
authored
Add planned failover new account properties (#22508)
1 parent 38b318d commit 06dd4ea

File tree

97 files changed

+13149
-13294
lines changed

Some content is hidden

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

97 files changed

+13149
-13294
lines changed

src/Storage/Storage.Management.Sdk/Generated/BlobContainersOperations.cs

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ internal BlobContainersOperations(StorageManagementClient client)
131131
{
132132
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
133133
}
134+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
135+
{
136+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
137+
}
134138
}
135139
if (Client.ApiVersion == null)
136140
{
@@ -397,6 +401,10 @@ internal BlobContainersOperations(StorageManagementClient client)
397401
{
398402
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
399403
}
404+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
405+
{
406+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
407+
}
400408
}
401409
if (containerName == null)
402410
{
@@ -693,6 +701,10 @@ internal BlobContainersOperations(StorageManagementClient client)
693701
{
694702
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
695703
}
704+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
705+
{
706+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
707+
}
696708
}
697709
if (containerName == null)
698710
{
@@ -966,6 +978,10 @@ internal BlobContainersOperations(StorageManagementClient client)
966978
{
967979
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
968980
}
981+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
982+
{
983+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
984+
}
969985
}
970986
if (containerName == null)
971987
{
@@ -1225,6 +1241,10 @@ internal BlobContainersOperations(StorageManagementClient client)
12251241
{
12261242
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
12271243
}
1244+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1245+
{
1246+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1247+
}
12281248
}
12291249
if (containerName == null)
12301250
{
@@ -1480,6 +1500,10 @@ internal BlobContainersOperations(StorageManagementClient client)
14801500
{
14811501
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
14821502
}
1503+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1504+
{
1505+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1506+
}
14831507
}
14841508
if (containerName == null)
14851509
{
@@ -1770,6 +1794,10 @@ internal BlobContainersOperations(StorageManagementClient client)
17701794
{
17711795
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
17721796
}
1797+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1798+
{
1799+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1800+
}
17731801
}
17741802
if (containerName == null)
17751803
{
@@ -2059,6 +2087,10 @@ internal BlobContainersOperations(StorageManagementClient client)
20592087
{
20602088
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
20612089
}
2090+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2091+
{
2092+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2093+
}
20622094
}
20632095
if (containerName == null)
20642096
{
@@ -2359,6 +2391,10 @@ internal BlobContainersOperations(StorageManagementClient client)
23592391
{
23602392
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
23612393
}
2394+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2395+
{
2396+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2397+
}
23622398
}
23632399
if (containerName == null)
23642400
{
@@ -2655,6 +2691,10 @@ internal BlobContainersOperations(StorageManagementClient client)
26552691
{
26562692
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
26572693
}
2694+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2695+
{
2696+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2697+
}
26582698
}
26592699
if (containerName == null)
26602700
{
@@ -2953,6 +2993,10 @@ internal BlobContainersOperations(StorageManagementClient client)
29532993
{
29542994
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
29552995
}
2996+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2997+
{
2998+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2999+
}
29563000
}
29573001
if (containerName == null)
29583002
{
@@ -3252,6 +3296,10 @@ internal BlobContainersOperations(StorageManagementClient client)
32523296
{
32533297
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
32543298
}
3299+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
3300+
{
3301+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
3302+
}
32553303
}
32563304
if (containerName == null)
32573305
{
@@ -3552,6 +3600,10 @@ internal BlobContainersOperations(StorageManagementClient client)
35523600
{
35533601
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
35543602
}
3603+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
3604+
{
3605+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
3606+
}
35553607
}
35563608
if (containerName == null)
35573609
{
@@ -3861,6 +3913,10 @@ internal BlobContainersOperations(StorageManagementClient client)
38613913
{
38623914
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
38633915
}
3916+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
3917+
{
3918+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
3919+
}
38643920
}
38653921
if (containerName == null)
38663922
{

src/Storage/Storage.Management.Sdk/Generated/BlobInventoryPoliciesOperations.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ internal BlobInventoryPoliciesOperations(StorageManagementClient client)
119119
{
120120
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
121121
}
122+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
123+
{
124+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
125+
}
122126
}
123127
if (Client.ApiVersion == null)
124128
{
@@ -367,6 +371,10 @@ internal BlobInventoryPoliciesOperations(StorageManagementClient client)
367371
{
368372
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
369373
}
374+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
375+
{
376+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
377+
}
370378
}
371379
if (Client.ApiVersion == null)
372380
{
@@ -628,6 +636,10 @@ internal BlobInventoryPoliciesOperations(StorageManagementClient client)
628636
{
629637
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
630638
}
639+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
640+
{
641+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
642+
}
631643
}
632644
if (Client.ApiVersion == null)
633645
{
@@ -853,6 +865,10 @@ internal BlobInventoryPoliciesOperations(StorageManagementClient client)
853865
{
854866
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
855867
}
868+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
869+
{
870+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
871+
}
856872
}
857873
if (Client.ApiVersion == null)
858874
{

src/Storage/Storage.Management.Sdk/Generated/BlobServicesOperations.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ internal BlobServicesOperations(StorageManagementClient client)
119119
{
120120
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
121121
}
122+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
123+
{
124+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
125+
}
122126
}
123127
if (Client.ApiVersion == null)
124128
{
@@ -364,6 +368,10 @@ internal BlobServicesOperations(StorageManagementClient client)
364368
{
365369
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
366370
}
371+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
372+
{
373+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
374+
}
367375
}
368376
if (Client.ApiVersion == null)
369377
{
@@ -623,6 +631,10 @@ internal BlobServicesOperations(StorageManagementClient client)
623631
{
624632
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
625633
}
634+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
635+
{
636+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
637+
}
626638
}
627639
if (Client.ApiVersion == null)
628640
{

src/Storage/Storage.Management.Sdk/Generated/EncryptionScopesOperations.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ internal EncryptionScopesOperations(StorageManagementClient client)
130130
{
131131
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
132132
}
133+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
134+
{
135+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
136+
}
133137
}
134138
if (Client.ApiVersion == null)
135139
{
@@ -420,6 +424,10 @@ internal EncryptionScopesOperations(StorageManagementClient client)
420424
{
421425
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
422426
}
427+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
428+
{
429+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
430+
}
423431
}
424432
if (Client.ApiVersion == null)
425433
{
@@ -688,6 +696,10 @@ internal EncryptionScopesOperations(StorageManagementClient client)
688696
{
689697
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
690698
}
699+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
700+
{
701+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
702+
}
691703
}
692704
if (Client.ApiVersion == null)
693705
{
@@ -953,6 +965,10 @@ internal EncryptionScopesOperations(StorageManagementClient client)
953965
{
954966
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
955967
}
968+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
969+
{
970+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
971+
}
956972
}
957973
if (Client.ApiVersion == null)
958974
{

src/Storage/Storage.Management.Sdk/Generated/FileServicesOperations.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ internal FileServicesOperations(StorageManagementClient client)
118118
{
119119
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
120120
}
121+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
122+
{
123+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
124+
}
121125
}
122126
if (Client.ApiVersion == null)
123127
{
@@ -362,6 +366,10 @@ internal FileServicesOperations(StorageManagementClient client)
362366
{
363367
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
364368
}
369+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
370+
{
371+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
372+
}
365373
}
366374
if (Client.ApiVersion == null)
367375
{
@@ -620,6 +628,10 @@ internal FileServicesOperations(StorageManagementClient client)
620628
{
621629
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
622630
}
631+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
632+
{
633+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
634+
}
623635
}
624636
if (Client.ApiVersion == null)
625637
{

src/Storage/Storage.Management.Sdk/Generated/FileSharesOperations.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ internal FileSharesOperations(StorageManagementClient client)
131131
{
132132
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
133133
}
134+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
135+
{
136+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
137+
}
134138
}
135139
if (Client.ApiVersion == null)
136140
{
@@ -400,6 +404,10 @@ internal FileSharesOperations(StorageManagementClient client)
400404
{
401405
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
402406
}
407+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
408+
{
409+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
410+
}
403411
}
404412
if (shareName == null)
405413
{
@@ -705,6 +713,10 @@ internal FileSharesOperations(StorageManagementClient client)
705713
{
706714
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
707715
}
716+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
717+
{
718+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
719+
}
708720
}
709721
if (shareName == null)
710722
{
@@ -985,6 +997,10 @@ internal FileSharesOperations(StorageManagementClient client)
985997
{
986998
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
987999
}
1000+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1001+
{
1002+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1003+
}
9881004
}
9891005
if (shareName == null)
9901006
{
@@ -1271,6 +1287,10 @@ internal FileSharesOperations(StorageManagementClient client)
12711287
{
12721288
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
12731289
}
1290+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1291+
{
1292+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1293+
}
12741294
}
12751295
if (shareName == null)
12761296
{
@@ -1533,6 +1553,10 @@ internal FileSharesOperations(StorageManagementClient client)
15331553
{
15341554
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
15351555
}
1556+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1557+
{
1558+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1559+
}
15361560
}
15371561
if (shareName == null)
15381562
{
@@ -1806,6 +1830,10 @@ internal FileSharesOperations(StorageManagementClient client)
18061830
{
18071831
throw new ValidationException(ValidationRules.MinLength, "accountName", 3);
18081832
}
1833+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1834+
{
1835+
throw new ValidationException(ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1836+
}
18091837
}
18101838
if (shareName == null)
18111839
{

src/Storage/Storage.Management.Sdk/Generated/IManagementPoliciesOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public partial interface IManagementPoliciesOperations
6767
/// <param name='policy'>
6868
/// The Storage Account ManagementPolicy, in JSON format. See more
6969
/// details in:
70-
/// https://learn.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
70+
/// https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
7171
/// </param>
7272
/// <param name='customHeaders'>
7373
/// The headers that will be added to request.

0 commit comments

Comments
 (0)