Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0c9d63

Browse files
authored
Merge pull request Azure#576 from athipp/athippas-b1
Adding Validations to asazure.json
2 parents 22cbe1e + f68a3aa commit c0c9d63

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

arm-asazure/2016-05-06/swagger/asazure.json

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"in": "path",
4747
"required": true,
4848
"type": "string",
49+
"pattern": "^[a-z][a-z0-9]*$",
50+
"minLength": 3,
51+
"maxLength": 63,
4952
"description": "Name of the Analysis Services server"
5053
},
5154
{
@@ -82,6 +85,9 @@
8285
"in": "path",
8386
"required": true,
8487
"type": "string",
88+
"pattern": "^[a-z][a-z0-9]*$",
89+
"minLength": 3,
90+
"maxLength": 63,
8591
"description": "Name of the Analysis Services server"
8692
},
8793
{
@@ -116,6 +122,9 @@
116122
"in": "path",
117123
"required": true,
118124
"type": "string",
125+
"pattern": "^[a-z][a-z0-9]*$",
126+
"minLength": 3,
127+
"maxLength": 63,
119128
"description": "Name of the Analysis Services server"
120129
},
121130
{
@@ -148,6 +157,9 @@
148157
"in": "path",
149158
"required": true,
150159
"type": "string",
160+
"pattern": "^[a-z][a-z0-9]*$",
161+
"minLength": 3,
162+
"maxLength": 63,
151163
"description": "Name of the Analysis Services server"
152164
},
153165
{
@@ -243,6 +255,11 @@
243255
"readOnly": true,
244256
"description": "Name of the Analysis Services resource"
245257
},
258+
"type": {
259+
"type": "string",
260+
"readOnly": true,
261+
"description": "Specifies the type of Analysis Services resource"
262+
},
246263
"location": {
247264
"type": "string",
248265
"description": "Location of the Analysis Services resource"
@@ -267,11 +284,6 @@
267284
"description": "Represents an instance of Analysis Services resource",
268285
"type": "object",
269286
"properties": {
270-
"resourceType": {
271-
"type": "string",
272-
"readOnly": true,
273-
"description": "Specifies the type of Analysis Services resource"
274-
},
275287
"properties": {
276288
"x-ms-client-flatten": true,
277289
"$ref": "#/definitions/AnalysisServicesResourceProperties",
@@ -378,7 +390,7 @@
378390
"description": "Represents a set of mutable Analysis Services resource properties",
379391
"type": "object",
380392
"properties": {
381-
"serverAdministrators": {
393+
"asAdministrators": {
382394
"$ref": "#/definitions/ServerAdministrators"
383395
}
384396
}
@@ -418,6 +430,9 @@
418430
"in": "path",
419431
"required": true,
420432
"type": "string",
433+
"pattern": "^[-\\w\\._\\(\\)]+$",
434+
"minLength": 1,
435+
"maxLength": 90 ,
421436
"x-ms-parameter-location": "method",
422437
"description": "Name of the Azure Resource group which a given Analysis Services server is part of."
423438
}

0 commit comments

Comments
 (0)