Skip to content

Commit

Permalink
Change storagecache name max length from 31 to 80 (#8606)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jsmartt authored Jul 20, 2020
1 parent 99e5561 commit d88c95d
Showing 1 changed file with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -325,7 +325,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -386,7 +386,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -456,7 +456,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -518,7 +518,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
}
Expand Down Expand Up @@ -579,7 +579,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
}
Expand Down Expand Up @@ -640,7 +640,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
}
Expand Down Expand Up @@ -701,7 +701,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
}
Expand Down Expand Up @@ -758,7 +758,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -825,7 +825,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -888,7 +888,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
},
Expand Down Expand Up @@ -965,7 +965,7 @@
"description": "Name of Cache.",
"in": "path",
"name": "cacheName",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"required": true,
"type": "string"
}
Expand Down Expand Up @@ -1306,7 +1306,7 @@
},
"ResourceName": {
"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.",
"pattern": "^[-0-9a-zA-Z_]{1,31}$",
"pattern": "^[-0-9a-zA-Z_]{1,80}$",
"type": "string"
},
"ResourceSku": {
Expand Down Expand Up @@ -1434,7 +1434,6 @@
"StorageTarget": {
"description": "A storage system being cached by a Cache.",
"type": "object",
"discriminator": "targetType",
"properties": {
"name": {
"description": "Name of the Storage Target.",
Expand All @@ -1455,6 +1454,10 @@
"x-ms-client-flatten": true,
"description": "Properties of the Storage Target.",
"type": "object",
"discriminator": "targetType",
"required": [
"targetType"
],
"properties": {
"junctions": {
"description": "List of Cache namespace junctions to target for namespace associations.",
Expand Down

0 comments on commit d88c95d

Please sign in to comment.