Skip to content

Commit c3a81d4

Browse files
aim-for-betteranuchandy
authored andcommitted
Add Capabilities to stable version, Modify ApplicationType and AccessMode to Enum. (#6665)
In order to be consistent with the response from RP side, add suppression for DefinitionsPropertiesNamesCamelCase
1 parent 968929c commit c3a81d4

File tree

8 files changed

+3190
-17
lines changed

8 files changed

+3190
-17
lines changed

specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,14 @@
233233
"accessModes": {
234234
"type": "array",
235235
"items": {
236-
"type": "string"
236+
"type": "string",
237+
"enum": [
238+
"WebPage"
239+
],
240+
"x-ms-enum": {
241+
"name": "ApplicationHttpsEndpointAccessMode",
242+
"modelAsString": true
243+
}
237244
},
238245
"description": "The list of access modes for the application."
239246
},
@@ -250,6 +257,14 @@
250257
"type": "integer",
251258
"format": "int32",
252259
"description": "The public port to connect to."
260+
},
261+
"subDomainSuffix": {
262+
"type": "string",
263+
"description": "The subdomain suffix of the application."
264+
},
265+
"disableGatewayAuth": {
266+
"type": "boolean",
267+
"description": "Disable gateway authentication."
253268
}
254269
}
255270
},
@@ -316,7 +331,15 @@
316331
},
317332
"applicationType": {
318333
"type": "string",
319-
"description": "The application type."
334+
"description": "The application type.",
335+
"enum": [
336+
"CustomApplication",
337+
"RServer"
338+
],
339+
"x-ms-enum": {
340+
"name": "ApplicationType",
341+
"modelAsString": true
342+
}
320343
},
321344
"applicationState": {
322345
"readOnly": true,

specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/CreateApplication.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
]
3939
}
4040
],
41-
"provisioningState": "",
4241
"applicationType": "CustomApplication",
4342
"errors": []
4443
}

specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/examples/GetHDInsightCapabilities.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,6 +2743,8 @@
27432743
"VMSIZES_AUX"
27442744
],
27452745
"quota": {
2746+
"cores_used": 0,
2747+
"max_cores_allowed": 3000,
27462748
"regionalQuotas": [
27472749
{
27482750
"region_name": "Australia East",

specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/locations.json

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@
175175
"type": "string"
176176
}
177177
}
178-
}
178+
},
179+
"readOnly": true
179180
},
180181
"VersionsCapability": {
181182
"description": "The version capability.",
@@ -187,7 +188,8 @@
187188
"$ref": "#/definitions/VersionSpec"
188189
}
189190
}
190-
}
191+
},
192+
"readOnly": true
191193
},
192194
"RegionsCapability": {
193195
"description": "The regions capability.",
@@ -199,7 +201,8 @@
199201
"type": "string"
200202
}
201203
}
202-
}
204+
},
205+
"readOnly": true
203206
},
204207
"VmSizesCapability": {
205208
"description": "The virtual machine sizes capability.",
@@ -211,7 +214,8 @@
211214
"type": "string"
212215
}
213216
}
214-
}
217+
},
218+
"readOnly": true
215219
},
216220
"VmSizeCompatibilityFilter": {
217221
"description": "The virtual machine type compatibility filter.",
@@ -255,7 +259,8 @@
255259
"type": "string"
256260
}
257261
}
258-
}
262+
},
263+
"readOnly": true
259264
},
260265
"RegionalQuotaCapability": {
261266
"description": "The regional quota capacity.",
@@ -270,23 +275,35 @@
270275
"format": "int64"
271276
},
272277
"cores_available": {
273-
"description": "The number of courses available in the region.",
278+
"description": "The number of cores available in the region.",
274279
"type": "integer",
275280
"format": "int64"
276281
}
277-
}
282+
},
283+
"readOnly": true
278284
},
279285
"QuotaCapability": {
280286
"description": "The regional quota capability.",
281287
"properties": {
288+
"cores_used": {
289+
"description": "The number of cores used in the subscription.",
290+
"type": "integer",
291+
"format": "int64"
292+
},
293+
"max_cores_allowed": {
294+
"description": "The number of cores that the subscription allowed.",
295+
"type": "integer",
296+
"format": "int64"
297+
},
282298
"regionalQuotas": {
283299
"description": "The list of region quota capabilities.",
284300
"type": "array",
285301
"items": {
286302
"$ref": "#/definitions/RegionalQuotaCapability"
287303
}
288304
}
289-
}
305+
},
306+
"readOnly": true
290307
},
291308
"CapabilitiesResult": {
292309
"description": "The Get Capabilities operation response.",
@@ -330,7 +347,8 @@
330347
"description": "The quota capability.",
331348
"$ref": "#/definitions/QuotaCapability"
332349
}
333-
}
350+
},
351+
"readOnly": true
334352
},
335353
"LocalizedName": {
336354
"description": "The details about the localizable name of a type of usage.",

specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/applications.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,14 @@
233233
"accessModes": {
234234
"type": "array",
235235
"items": {
236-
"type": "string"
236+
"type": "string",
237+
"enum": [
238+
"WebPage"
239+
],
240+
"x-ms-enum": {
241+
"name": "ApplicationHttpsEndpointAccessMode",
242+
"modelAsString": true
243+
}
237244
},
238245
"description": "The list of access modes for the application."
239246
},
@@ -253,7 +260,7 @@
253260
},
254261
"subDomainSuffix": {
255262
"type": "string",
256-
"description": "The subDomainSuffix of the application."
263+
"description": "The subdomain suffix of the application."
257264
},
258265
"disableGatewayAuth": {
259266
"type": "boolean",
@@ -324,7 +331,15 @@
324331
},
325332
"applicationType": {
326333
"type": "string",
327-
"description": "The application type."
334+
"description": "The application type.",
335+
"enum": [
336+
"CustomApplication",
337+
"RServer"
338+
],
339+
"x-ms-enum": {
340+
"name": "ApplicationType",
341+
"modelAsString": true
342+
}
328343
},
329344
"applicationState": {
330345
"readOnly": true,

0 commit comments

Comments
 (0)