Skip to content

Commit c12de2a

Browse files
authored
[Hub Generated] Review request for Microsoft.AzureStack to add version stable/2017-06-01 (#11937)
* added default error response where missing and fixed camel case action names * removed readonly properties from examples * removed more readonly properties from examples * remove hard-coded product name from swagger action * added enable remote management action * ran npm prettier on new jsong files * moved remote management action to registrations
1 parent f60475f commit c12de2a

File tree

9 files changed

+93
-20
lines changed

9 files changed

+93
-20
lines changed

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/AzureStack.json

Lines changed: 6 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": "Error response describing why the operation failed.",
44+
"schema": {
45+
"$ref": "#/definitions/ErrorResponse"
46+
}
4147
}
4248
},
4349
"x-ms-pageable": {

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/CustomerSubscription.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@
138138
},
139139
"204": {
140140
"description": "NO CONTENT"
141+
},
142+
"default": {
143+
"description": "Error response describing why the operation failed.",
144+
"schema": {
145+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
146+
}
141147
}
142148
}
143149
},
@@ -178,6 +184,12 @@
178184
"schema": {
179185
"$ref": "#/definitions/CustomerSubscription"
180186
}
187+
},
188+
"default": {
189+
"description": "Error response describing why the operation failed.",
190+
"schema": {
191+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
192+
}
181193
}
182194
}
183195
}

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/Product.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,17 @@
140140
"schema": {
141141
"$ref": "#/definitions/ExtendedProduct"
142142
}
143+
},
144+
"default": {
145+
"description": "Error response describing why the operation failed.",
146+
"schema": {
147+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
148+
}
143149
}
144150
}
145151
}
146152
},
147-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/_all/GetProducts": {
153+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProducts": {
148154
"post": {
149155
"x-ms-examples": {
150156
"Returns a list of products.": {
@@ -166,6 +172,9 @@
166172
{
167173
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter"
168174
},
175+
{
176+
"$ref": "#/parameters/ProductNameParameter"
177+
},
169178
{
170179
"$ref": "#/parameters/DeviceConfigurationParameter"
171180
},
@@ -189,7 +198,7 @@
189198
}
190199
}
191200
},
192-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/GetProduct": {
201+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/products/{productName}/getProduct": {
193202
"post": {
194203
"x-ms-examples": {
195204
"Returns the specified product.": {

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/Registration.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@
178178
"schema": {
179179
"$ref": "#/definitions/Registration"
180180
}
181+
},
182+
"default": {
183+
"description": "Error response describing why the operation failed.",
184+
"schema": {
185+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
186+
}
181187
}
182188
}
183189
},
@@ -257,6 +263,48 @@
257263
"schema": {
258264
"$ref": "#/definitions/ActivationKeyResult"
259265
}
266+
},
267+
"default": {
268+
"description": "Error response describing why the operation failed.",
269+
"schema": {
270+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
271+
}
272+
}
273+
}
274+
}
275+
},
276+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/enableRemoteManagement": {
277+
"post": {
278+
"x-ms-examples": {
279+
"Returns empty response for successful action..": {
280+
"$ref": "examples/RemoteManagement/Post.json"
281+
}
282+
},
283+
"tags": [
284+
"Registrations"
285+
],
286+
"description": "Enables remote management for device under the Azure Stack registration.",
287+
"operationId": "Registrations_EnableRemoteManagement",
288+
"parameters": [
289+
{
290+
"$ref": "AzureStack.json#/parameters/SubscriptionIdParameter"
291+
},
292+
{
293+
"$ref": "AzureStack.json#/parameters/ResourceGroupNameParameter"
294+
},
295+
{
296+
"$ref": "AzureStack.json#/parameters/RegistrationNameParameter"
297+
}
298+
],
299+
"responses": {
300+
"200": {
301+
"description": "OK"
302+
},
303+
"default": {
304+
"description": "Error response describing why the operation failed.",
305+
"schema": {
306+
"$ref": "AzureStack.json#/definitions/ErrorResponse"
307+
}
260308
}
261309
}
262310
}

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/examples/Product/GetPost.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
"resourceGroup": "azurestack",
55
"registrationName": "testregistration",
66
"productName": "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
7-
"api-version": "2017-06-01",
8-
"deviceConfiguration": {
9-
"identitySystem": "AzureAD",
10-
"deviceVersion": "1910.0.0.0"
11-
}
7+
"api-version": "2017-06-01"
128
},
139
"responses": {
1410
"200": {

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/examples/Product/ListPost.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
44
"resourceGroup": "azurestack",
55
"registrationName": "testregistration",
6-
"api-version": "2017-06-01",
7-
"deviceConfiguration": {
8-
"identitySystem": "AzureAD",
9-
"deviceVersion": "1910.0.0.0"
10-
}
6+
"productName": "_all",
7+
"api-version": "2017-06-01"
118
},
129
"responses": {
1310
"200": {

specification/azurestack/resource-manager/Microsoft.AzureStack/stable/2017-06-01/examples/Product/UploadLog.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44
"resourceGroup": "azurestack",
55
"registrationName": "testregistration",
66
"productName": "Microsoft.OSTCExtensions.VMAccessForLinux.1.4.7.1",
7-
"api-version": "2017-06-01",
8-
"marketplaceProductLogUpdate": {
9-
"operation": "Download",
10-
"status": "Failed",
11-
"error": "ExampleError",
12-
"details": "ExampleDetails"
13-
}
7+
"api-version": "2017-06-01"
148
},
159
"responses": {
1610
"200": {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "dd8597b4-8739-4467-8b10-f8679f62bfbf",
4+
"resourceGroup": "azurestack",
5+
"registrationName": "testregistration",
6+
"api-version": "2017-06-01"
7+
},
8+
"responses": {
9+
"200": {}
10+
}
11+
}

specification/azurestack/resource-manager/readme.azureresourceschema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ input-file:
2323
- Microsoft.AzureStack/stable/2017-06-01/Product.json
2424
- Microsoft.AzureStack/stable/2017-06-01/Registration.json
2525
- Microsoft.AzureStack/stable/2017-06-01/CustomerSubscription.json
26-
26+
2727
```

0 commit comments

Comments
 (0)