Skip to content

Commit adfab43

Browse files
authored
Linting and Completeness fixes S360 (#11958)
* New Version for subscription RP * S360 fixes * Update readme.md * Update subscriptions.json * Update subscriptions.json * Update subscriptions.json
1 parent 6fc4f3f commit adfab43

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"operationId": "e4b8d068-f574-462a-a76f-6fa0afc613c9",
4+
"api-version": "2018-03-01-preview"
5+
},
6+
"responses": {
7+
"202": {
8+
"headers": {
9+
"Location": "/providers/Microsoft.Subscription/subscriptionOperations/e4b8d068-f574-462a-a76f-6fa0afc613c9?api-version=2018-03-01-preview",
10+
"Retry-After": 8
11+
}
12+
},
13+
"200": {
14+
"body": {
15+
"subscriptionLink": "/subscriptions/4df8d5c2-1b7e-4dd5-bc61-640704bde633"
16+
}
17+
}
18+
}
19+
}

specification/subscription/resource-manager/Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,57 @@
4646
]
4747
}
4848
},
49+
"/providers/Microsoft.Subscription/subscriptionOperations/{operationId}": {
50+
"get": {
51+
"description": "Get the status of the pending Microsoft.Subscription API operations.",
52+
"operationId": "SubscriptionOperation_Get",
53+
"x-ms-examples": {
54+
"getPendingSubscriptionOperations": {
55+
"$ref": "./examples/getSubscriptionOperation.json"
56+
}
57+
},
58+
"responses": {
59+
"200": {
60+
"description": "Successful completion of the asynchronous operation",
61+
"schema": {
62+
"$ref": "#/definitions/SubscriptionCreationResult"
63+
}
64+
},
65+
"202": {
66+
"description": "Accepted. Subscription update is in progress.",
67+
"headers": {
68+
"Location": {
69+
"description": "The URL where the status of the asynchronous operation can be checked.",
70+
"type": "string"
71+
},
72+
"Retry-After": {
73+
"description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
74+
"type": "integer",
75+
"format": "int64"
76+
}
77+
}
78+
},
79+
"default": {
80+
"description": "Error response describing why the operation failed.",
81+
"schema": {
82+
"$ref": "#/definitions/ErrorResponseBody"
83+
}
84+
}
85+
},
86+
"parameters": [
87+
{
88+
"name": "operationId",
89+
"in": "path",
90+
"description": "The operation ID, which can be found from the Location field in the generate recommendation response header.",
91+
"required": true,
92+
"type": "string"
93+
},
94+
{
95+
"$ref": "#/parameters/apiVersionParameter"
96+
}
97+
]
98+
}
99+
},
49100
"/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountName}/providers/Microsoft.Subscription/createSubscription": {
50101
"post": {
51102
"description": "Creates an Azure subscription",
@@ -166,6 +217,16 @@
166217
}
167218
}
168219
},
220+
"ErrorResponseBody": {
221+
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
222+
"type": "object",
223+
"properties": {
224+
"error": {
225+
"description": "The details of the error.",
226+
"$ref": "#/definitions/ErrorResponse"
227+
}
228+
}
229+
},
169230
"AdPrincipal": {
170231
"description": "Active Directory Principal who’ll get owner access on the new subscription.",
171232
"properties": {

specification/subscription/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ These settings apply only when `--tag=package-2019-03-preview` is specified on t
7777
input-file:
7878
- Microsoft.Subscription/preview/2019-03-01-preview/subscriptions.json
7979
- Microsoft.Subscription/preview/2018-11-01-preview/subscriptions.json
80-
- Microsoft.Subscription/preview/2018-03-01-preview/subscriptions.json
8180
- Microsoft.Subscription/preview/2018-03-01-preview/operations.json
8281
- Microsoft.Subscription/stable/2016-06-01/subscriptions.json
8382
title: SubscriptionClient

0 commit comments

Comments
 (0)