Skip to content

Commit d88c95d

Browse files
authored
Change storagecache name max length from 31 to 80 (#8606)
* Change storagecache name max length from 31 to 80 * Require storagetarget param to create storagetarget for storagecache * Require StorageCache discriminator: targetType * Undo require StorageCache discriminator: targetType * Require StorageCache StorageTarget discriminator: targetType
1 parent 99e5561 commit d88c95d

File tree

1 file changed

+17
-14
lines changed
  • specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2019-11-01

1 file changed

+17
-14
lines changed

specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2019-11-01/storagecache.json

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
"description": "Name of Cache.",
267267
"in": "path",
268268
"name": "cacheName",
269-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
269+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
270270
"required": true,
271271
"type": "string"
272272
},
@@ -325,7 +325,7 @@
325325
"description": "Name of Cache.",
326326
"in": "path",
327327
"name": "cacheName",
328-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
328+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
329329
"required": true,
330330
"type": "string"
331331
},
@@ -386,7 +386,7 @@
386386
"description": "Name of Cache.",
387387
"in": "path",
388388
"name": "cacheName",
389-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
389+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
390390
"required": true,
391391
"type": "string"
392392
},
@@ -456,7 +456,7 @@
456456
"description": "Name of Cache.",
457457
"in": "path",
458458
"name": "cacheName",
459-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
459+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
460460
"required": true,
461461
"type": "string"
462462
},
@@ -518,7 +518,7 @@
518518
"description": "Name of Cache.",
519519
"in": "path",
520520
"name": "cacheName",
521-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
521+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
522522
"required": true,
523523
"type": "string"
524524
}
@@ -579,7 +579,7 @@
579579
"description": "Name of Cache.",
580580
"in": "path",
581581
"name": "cacheName",
582-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
582+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
583583
"required": true,
584584
"type": "string"
585585
}
@@ -640,7 +640,7 @@
640640
"description": "Name of Cache.",
641641
"in": "path",
642642
"name": "cacheName",
643-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
643+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
644644
"required": true,
645645
"type": "string"
646646
}
@@ -701,7 +701,7 @@
701701
"description": "Name of Cache.",
702702
"in": "path",
703703
"name": "cacheName",
704-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
704+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
705705
"required": true,
706706
"type": "string"
707707
}
@@ -758,7 +758,7 @@
758758
"description": "Name of Cache.",
759759
"in": "path",
760760
"name": "cacheName",
761-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
761+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
762762
"required": true,
763763
"type": "string"
764764
},
@@ -825,7 +825,7 @@
825825
"description": "Name of Cache.",
826826
"in": "path",
827827
"name": "cacheName",
828-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
828+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
829829
"required": true,
830830
"type": "string"
831831
},
@@ -888,7 +888,7 @@
888888
"description": "Name of Cache.",
889889
"in": "path",
890890
"name": "cacheName",
891-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
891+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
892892
"required": true,
893893
"type": "string"
894894
},
@@ -965,7 +965,7 @@
965965
"description": "Name of Cache.",
966966
"in": "path",
967967
"name": "cacheName",
968-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
968+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
969969
"required": true,
970970
"type": "string"
971971
}
@@ -1306,7 +1306,7 @@
13061306
},
13071307
"ResourceName": {
13081308
"description": "Schema for the name of resources served by this provider. Note that objects will contain an odata @id annotation as appropriate. This will contain the complete URL of the object. These names are case-preserving, but not case sensitive.",
1309-
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
1309+
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
13101310
"type": "string"
13111311
},
13121312
"ResourceSku": {
@@ -1434,7 +1434,6 @@
14341434
"StorageTarget": {
14351435
"description": "A storage system being cached by a Cache.",
14361436
"type": "object",
1437-
"discriminator": "targetType",
14381437
"properties": {
14391438
"name": {
14401439
"description": "Name of the Storage Target.",
@@ -1455,6 +1454,10 @@
14551454
"x-ms-client-flatten": true,
14561455
"description": "Properties of the Storage Target.",
14571456
"type": "object",
1457+
"discriminator": "targetType",
1458+
"required": [
1459+
"targetType"
1460+
],
14581461
"properties": {
14591462
"junctions": {
14601463
"description": "List of Cache namespace junctions to target for namespace associations.",

0 commit comments

Comments
 (0)