Skip to content

Commit a252633

Browse files
authored
[AzureStack] [Admin API] Compute ScaleUnit Open API Spec (Azure#14133)
* Fixed issues for Avocado, Semantic, Model, and LintDiff. * Implement Compute Admin GET Scale Unit View Open API spec and example. * Updating readme and List operations. * Adding default error responses * Removing ReadOnly=True from ARM resource. * Adding back ReadOnly property to ARM resource type; Adding suppression to readme.md file. * Reverting suppression and removing the unnecessary parameters from the examples.
1 parent 48bdeb7 commit a252633

File tree

11 files changed

+650
-8
lines changed

11 files changed

+650
-8
lines changed

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/Compute.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
"schema": {
3939
"$ref": "#/definitions/OperationList"
4040
}
41+
},
42+
"default": {
43+
"description": "Default Response.",
44+
"schema": {
45+
"$ref": "#/definitions/ErrorDetails"
46+
}
4147
}
4248
},
4349
"x-ms-pageable": {
@@ -140,6 +146,37 @@
140146
"type": "string"
141147
}
142148
}
149+
},
150+
"ErrorDetails": {
151+
"description": "Error details.",
152+
"type": "object",
153+
"properties": {
154+
"error": {
155+
"description": "Object containing error details.",
156+
"$ref": "#/definitions/ErrorDetailsInternal"
157+
}
158+
}
159+
},
160+
"ErrorDetailsInternal": {
161+
"description": "Error details.",
162+
"type": "object",
163+
"properties": {
164+
"code": {
165+
"description": "The error code.",
166+
"type": "string",
167+
"readOnly": true
168+
},
169+
"message": {
170+
"description": "The error message.",
171+
"type": "string",
172+
"readOnly": true
173+
},
174+
"target": {
175+
"description": "The target of the particular error.",
176+
"type": "string",
177+
"readOnly": true
178+
}
179+
}
143180
}
144181
},
145182
"parameters": {

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/PlatformImages.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
"schema": {
4646
"$ref": "#/definitions/PlatformImageList"
4747
}
48+
},
49+
"default": {
50+
"description": "Default Response.",
51+
"schema": {
52+
"$ref": "#/definitions/ErrorDetails"
53+
}
4854
}
4955
}
5056
}
@@ -91,6 +97,12 @@
9197
"schema": {
9298
"$ref": "#/definitions/PlatformImage"
9399
}
100+
},
101+
"default": {
102+
"description": "Default Response.",
103+
"schema": {
104+
"$ref": "#/definitions/ErrorDetails"
105+
}
94106
}
95107
}
96108
},
@@ -150,6 +162,12 @@
150162
"schema": {
151163
"$ref": "#/definitions/PlatformImage"
152164
}
165+
},
166+
"default": {
167+
"description": "Default Response.",
168+
"schema": {
169+
"$ref": "#/definitions/ErrorDetails"
170+
}
153171
}
154172
},
155173
"x-ms-long-running-operation": true
@@ -190,6 +208,12 @@
190208
}
191209
],
192210
"responses": {
211+
"default": {
212+
"description": "Default Response.",
213+
"schema": {
214+
"$ref": "#/definitions/ErrorDetails"
215+
}
216+
},
193217
"200": {
194218
"description": "OK"
195219
}
@@ -307,6 +331,37 @@
307331
"$ref": "#/definitions/PlatformImageProperties"
308332
}
309333
}
334+
},
335+
"ErrorDetails": {
336+
"description": "Error details.",
337+
"type": "object",
338+
"properties": {
339+
"error": {
340+
"description": "Object containing error details.",
341+
"$ref": "#/definitions/ErrorDetailsInternal"
342+
}
343+
}
344+
},
345+
"ErrorDetailsInternal": {
346+
"description": "Error details.",
347+
"type": "object",
348+
"properties": {
349+
"code": {
350+
"description": "The error code.",
351+
"type": "string",
352+
"readOnly": true
353+
},
354+
"message": {
355+
"description": "The error message.",
356+
"type": "string",
357+
"readOnly": true
358+
},
359+
"target": {
360+
"description": "The target of the particular error.",
361+
"type": "string",
362+
"readOnly": true
363+
}
364+
}
310365
}
311366
},
312367
"parameters": {

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/VMExtensions.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
"schema": {
5555
"$ref": "#/definitions/VMExtension"
5656
}
57+
},
58+
"default": {
59+
"description": "Default Response.",
60+
"schema": {
61+
"$ref": "#/definitions/ErrorDetails"
62+
}
5763
}
5864
}
5965
},
@@ -110,6 +116,12 @@
110116
"schema": {
111117
"$ref": "#/definitions/VMExtension"
112118
}
119+
},
120+
"default": {
121+
"description": "Default Response.",
122+
"schema": {
123+
"$ref": "#/definitions/ErrorDetails"
124+
}
113125
}
114126
}
115127
},
@@ -154,6 +166,12 @@
154166
"responses": {
155167
"200": {
156168
"description": "OK"
169+
},
170+
"default": {
171+
"description": "Default Response.",
172+
"schema": {
173+
"$ref": "#/definitions/ErrorDetails"
174+
}
157175
}
158176
}
159177
}
@@ -194,6 +212,12 @@
194212
"schema": {
195213
"$ref": "#/definitions/VMExtensionList"
196214
}
215+
},
216+
"default": {
217+
"description": "Default Response.",
218+
"schema": {
219+
"$ref": "#/definitions/ErrorDetails"
220+
}
197221
}
198222
}
199223
}
@@ -281,6 +305,37 @@
281305
"$ref": "#/definitions/VMExtensionProperties"
282306
}
283307
}
308+
},
309+
"ErrorDetails": {
310+
"description": "Error details.",
311+
"type": "object",
312+
"properties": {
313+
"error": {
314+
"description": "Object containing error details.",
315+
"$ref": "#/definitions/ErrorDetailsInternal"
316+
}
317+
}
318+
},
319+
"ErrorDetailsInternal": {
320+
"description": "Error details.",
321+
"type": "object",
322+
"properties": {
323+
"code": {
324+
"description": "The error code.",
325+
"type": "string",
326+
"readOnly": true
327+
},
328+
"message": {
329+
"description": "The error message.",
330+
"type": "string",
331+
"readOnly": true
332+
},
333+
"target": {
334+
"description": "The target of the particular error.",
335+
"type": "string",
336+
"readOnly": true
337+
}
338+
}
284339
}
285340
},
286341
"parameters": {

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2015-12-01-preview/examples/Operations/List.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@
114114
"description": "Delete any VMExtension"
115115
}
116116
},
117+
{
118+
"name": "Microsoft.Compute.Admin/locations/computeScaleUnits/read",
119+
"display": {
120+
"provider": "Microsoft Compute Admin",
121+
"resource": "ScaleUnitView",
122+
"operation": "Get scale unit view",
123+
"description": "Get scale unit view"
124+
}
125+
},
117126
{
118127
"name": "Microsoft.Compute.Admin/locations/Disks/read",
119128
"display": {

specification/azsadmin/resource-manager/compute/Microsoft.Compute.Admin/preview/2018-07-30-preview/DiskMigrationJobs.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
"schema": {
4949
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJobList"
5050
}
51+
},
52+
"default": {
53+
"description": "Default Response.",
54+
"schema": {
55+
"$ref": "#/definitions/ErrorDetails"
56+
}
5157
}
5258
},
5359
"x-ms-pageable": {
@@ -87,6 +93,12 @@
8793
"schema": {
8894
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJob"
8995
}
96+
},
97+
"default": {
98+
"description": "Default Response.",
99+
"schema": {
100+
"$ref": "#/definitions/ErrorDetails"
101+
}
90102
}
91103
}
92104
},
@@ -133,6 +145,12 @@
133145
"schema": {
134146
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJob"
135147
}
148+
},
149+
"default": {
150+
"description": "Default Response.",
151+
"schema": {
152+
"$ref": "#/definitions/ErrorDetails"
153+
}
136154
}
137155
}
138156
}
@@ -169,6 +187,12 @@
169187
"schema": {
170188
"$ref": "DiskMigrationJobs.json#/definitions/DiskMigrationJob"
171189
}
190+
},
191+
"default": {
192+
"description": "Default Response.",
193+
"schema": {
194+
"$ref": "#/definitions/ErrorDetails"
195+
}
172196
}
173197
}
174198
}
@@ -361,6 +385,37 @@
361385
"items": {
362386
"$ref": "Disks.json#/definitions/Disk"
363387
}
388+
},
389+
"ErrorDetails": {
390+
"description": "Error details.",
391+
"type": "object",
392+
"properties": {
393+
"error": {
394+
"description": "Object containing error details.",
395+
"$ref": "#/definitions/ErrorDetailsInternal"
396+
}
397+
}
398+
},
399+
"ErrorDetailsInternal": {
400+
"description": "Error details.",
401+
"type": "object",
402+
"properties": {
403+
"code": {
404+
"description": "The error code.",
405+
"type": "string",
406+
"readOnly": true
407+
},
408+
"message": {
409+
"description": "The error message.",
410+
"type": "string",
411+
"readOnly": true
412+
},
413+
"target": {
414+
"description": "The target of the particular error.",
415+
"type": "string",
416+
"readOnly": true
417+
}
418+
}
364419
}
365420
},
366421
"parameters": {

0 commit comments

Comments
 (0)