Skip to content

Commit 69774e9

Browse files
authored
[Storage] blob Inventory filter - creationTime (#22942)
1 parent f333b89 commit 69774e9

File tree

101 files changed

+4025
-2235
lines changed

Some content is hidden

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

101 files changed

+4025
-2235
lines changed

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

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ internal BlobContainersOperations (StorageManagementClient client)
116116
{
117117
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
118118
}
119+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
120+
{
121+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
122+
}
119123
}
120124
if (this.Client.ApiVersion == null)
121125
{
@@ -388,6 +392,10 @@ internal BlobContainersOperations (StorageManagementClient client)
388392
{
389393
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
390394
}
395+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
396+
{
397+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
398+
}
391399
}
392400
if (containerName == null)
393401
{
@@ -683,6 +691,10 @@ internal BlobContainersOperations (StorageManagementClient client)
683691
{
684692
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
685693
}
694+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
695+
{
696+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
697+
}
686698
}
687699
if (containerName == null)
688700
{
@@ -953,6 +965,10 @@ internal BlobContainersOperations (StorageManagementClient client)
953965
{
954966
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
955967
}
968+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
969+
{
970+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
971+
}
956972
}
957973
if (containerName == null)
958974
{
@@ -1213,6 +1229,10 @@ internal BlobContainersOperations (StorageManagementClient client)
12131229
{
12141230
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
12151231
}
1232+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1233+
{
1234+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1235+
}
12161236
}
12171237
if (containerName == null)
12181238
{
@@ -1464,6 +1484,10 @@ internal BlobContainersOperations (StorageManagementClient client)
14641484
{
14651485
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
14661486
}
1487+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1488+
{
1489+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1490+
}
14671491
}
14681492
if (containerName == null)
14691493
{
@@ -1746,6 +1770,10 @@ internal BlobContainersOperations (StorageManagementClient client)
17461770
{
17471771
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
17481772
}
1773+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
1774+
{
1775+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
1776+
}
17491777
}
17501778
if (containerName == null)
17511779
{
@@ -2029,6 +2057,10 @@ internal BlobContainersOperations (StorageManagementClient client)
20292057
{
20302058
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
20312059
}
2060+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2061+
{
2062+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2063+
}
20322064
}
20332065
if (containerName == null)
20342066
{
@@ -2328,6 +2360,10 @@ internal BlobContainersOperations (StorageManagementClient client)
23282360
{
23292361
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
23302362
}
2363+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2364+
{
2365+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2366+
}
23312367
}
23322368
if (containerName == null)
23332369
{
@@ -2620,6 +2656,10 @@ internal BlobContainersOperations (StorageManagementClient client)
26202656
{
26212657
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
26222658
}
2659+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2660+
{
2661+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2662+
}
26232663
}
26242664
if (containerName == null)
26252665
{
@@ -2916,6 +2956,10 @@ internal BlobContainersOperations (StorageManagementClient client)
29162956
{
29172957
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
29182958
}
2959+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
2960+
{
2961+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
2962+
}
29192963
}
29202964
if (containerName == null)
29212965
{
@@ -3213,6 +3257,10 @@ internal BlobContainersOperations (StorageManagementClient client)
32133257
{
32143258
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
32153259
}
3260+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
3261+
{
3262+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
3263+
}
32163264
}
32173265
if (containerName == null)
32183266
{
@@ -3517,6 +3565,10 @@ internal BlobContainersOperations (StorageManagementClient client)
35173565
{
35183566
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
35193567
}
3568+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
3569+
{
3570+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
3571+
}
35203572
}
35213573
if (containerName == null)
35223574
{
@@ -3809,6 +3861,10 @@ internal BlobContainersOperations (StorageManagementClient client)
38093861
{
38103862
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
38113863
}
3864+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
3865+
{
3866+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
3867+
}
38123868
}
38133869
if (containerName == null)
38143870
{

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ internal BlobInventoryPoliciesOperations (StorageManagementClient client)
107107
{
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
109109
}
110+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
111+
{
112+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
113+
}
110114
}
111115
if (this.Client.ApiVersion == null)
112116
{
@@ -356,6 +360,10 @@ internal BlobInventoryPoliciesOperations (StorageManagementClient client)
356360
{
357361
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
358362
}
363+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
364+
{
365+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
366+
}
359367
}
360368
if (this.Client.ApiVersion == null)
361369
{
@@ -611,6 +619,10 @@ internal BlobInventoryPoliciesOperations (StorageManagementClient client)
611619
{
612620
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
613621
}
622+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
623+
{
624+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
625+
}
614626
}
615627
if (this.Client.ApiVersion == null)
616628
{
@@ -839,6 +851,10 @@ internal BlobInventoryPoliciesOperations (StorageManagementClient client)
839851
{
840852
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
841853
}
854+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
855+
{
856+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
857+
}
842858
}
843859
if (this.Client.ApiVersion == null)
844860
{

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ internal BlobServicesOperations (StorageManagementClient client)
107107
{
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
109109
}
110+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
111+
{
112+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
113+
}
110114
}
111115
if (this.Client.ApiVersion == null)
112116
{
@@ -361,6 +365,10 @@ internal BlobServicesOperations (StorageManagementClient client)
361365
{
362366
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
363367
}
368+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
369+
{
370+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
371+
}
364372
}
365373
if (this.Client.ApiVersion == null)
366374
{
@@ -614,6 +622,10 @@ internal BlobServicesOperations (StorageManagementClient client)
614622
{
615623
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
616624
}
625+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
626+
{
627+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
628+
}
617629
}
618630
if (this.Client.ApiVersion == null)
619631
{

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ internal EncryptionScopesOperations (StorageManagementClient client)
118118
{
119119
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
120120
}
121+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
122+
{
123+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
124+
}
121125
}
122126
if (this.Client.ApiVersion == null)
123127
{
@@ -408,6 +412,10 @@ internal EncryptionScopesOperations (StorageManagementClient client)
408412
{
409413
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
410414
}
415+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
416+
{
417+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
418+
}
411419
}
412420
if (this.Client.ApiVersion == null)
413421
{
@@ -673,6 +681,10 @@ internal EncryptionScopesOperations (StorageManagementClient client)
673681
{
674682
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
675683
}
684+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
685+
{
686+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
687+
}
676688
}
677689
if (this.Client.ApiVersion == null)
678690
{
@@ -937,6 +949,10 @@ internal EncryptionScopesOperations (StorageManagementClient client)
937949
{
938950
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
939951
}
952+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
953+
{
954+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
955+
}
940956
}
941957
if (this.Client.ApiVersion == null)
942958
{

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ internal FileServicesOperations (StorageManagementClient client)
107107
{
108108
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
109109
}
110+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
111+
{
112+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
113+
}
110114
}
111115
if (this.Client.ApiVersion == null)
112116
{
@@ -361,6 +365,10 @@ internal FileServicesOperations (StorageManagementClient client)
361365
{
362366
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
363367
}
368+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
369+
{
370+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
371+
}
364372
}
365373
if (this.Client.ApiVersion == null)
366374
{
@@ -614,6 +622,10 @@ internal FileServicesOperations (StorageManagementClient client)
614622
{
615623
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3);
616624
}
625+
if (!System.Text.RegularExpressions.Regex.IsMatch(accountName, "^[a-z0-9]+$"))
626+
{
627+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "accountName", "^[a-z0-9]+$");
628+
}
617629
}
618630
if (this.Client.ApiVersion == null)
619631
{

0 commit comments

Comments
 (0)