Skip to content

Commit bd003a6

Browse files
committed
Created operation.json
1 parent 3ce4df7 commit bd003a6

File tree

2 files changed

+136
-73
lines changed

2 files changed

+136
-73
lines changed
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2018-03-01-preview",
5+
"title": "SubscriptionClient",
6+
"description": "Subscription client provides an interface to create and manage Azure subscriptions programmatically."
7+
},
8+
"schemes": [
9+
"https"
10+
],
11+
"host": "management.azure.com",
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/providers/Microsoft.Subscription/operations": {
20+
"get": {
21+
"description": "Lists all of the available Microsoft.Subscription API operations.",
22+
"operationId": "Operations_List",
23+
"x-ms-examples": {
24+
"getOperations": {
25+
"$ref": "./examples/getOperations.json"
26+
}
27+
},
28+
"parameters": [
29+
{
30+
"$ref": "#/parameters/apiVersionParameter"
31+
}
32+
],
33+
"responses": {
34+
"200": {
35+
"description": "OK. The request has succeeded.",
36+
"schema": {
37+
"$ref": "#/definitions/OperationListResult"
38+
}
39+
},
40+
"default": {
41+
"description": "Error response describing why the operation failed.",
42+
"schema": {
43+
"$ref": "#/definitions/ErrorResponse"
44+
}
45+
}
46+
}
47+
}
48+
}
49+
},
50+
"definitions": {
51+
"ErrorResponse": {
52+
"description": "Describes the format of Error response.",
53+
"type": "object",
54+
"properties": {
55+
"code": {
56+
"description": "Error code",
57+
"type": "string"
58+
},
59+
"message": {
60+
"description": "Error message indicating why the operation failed.",
61+
"type": "string"
62+
}
63+
}
64+
},
65+
"OperationListResult": {
66+
"description": "Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results.",
67+
"properties": {
68+
"value": {
69+
"type": "array",
70+
"items": {
71+
"$ref": "#/definitions/Operation"
72+
},
73+
"description": "List of operations."
74+
},
75+
"nextLink": {
76+
"type": "string",
77+
"description": "URL to get the next set of operation list results if there are any."
78+
}
79+
}
80+
},
81+
"Operation": {
82+
"description": "REST API operation",
83+
"type": "object",
84+
"properties": {
85+
"name": {
86+
"description": "Operation name: {provider}/{resource}/{operation}",
87+
"type": "string"
88+
},
89+
"display": {
90+
"description": "The object that represents the operation.",
91+
"properties": {
92+
"provider": {
93+
"description": "Service provider: Microsoft.Subscription",
94+
"type": "string"
95+
},
96+
"resource": {
97+
"description": "Resource on which the operation is performed: Profile, endpoint, etc.",
98+
"type": "string"
99+
},
100+
"operation": {
101+
"description": "Operation type: Read, write, delete, etc.",
102+
"type": "string"
103+
}
104+
}
105+
}
106+
}
107+
}
108+
},
109+
"parameters": {
110+
"apiVersionParameter": {
111+
"name": "api-version",
112+
"in": "query",
113+
"required": true,
114+
"type": "string",
115+
"description": "Version of the API to be used with the client request. Current version is 2015-06-01"
116+
}
117+
},
118+
"security": [
119+
{
120+
"azure_auth": [
121+
"user_impersonation"
122+
]
123+
}
124+
],
125+
"securityDefinitions": {
126+
"azure_auth": {
127+
"type": "oauth2",
128+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
129+
"flow": "implicit",
130+
"description": "Azure Active Directory OAuth2 Flow",
131+
"scopes": {
132+
"user_impersonation": "impersonate your user account"
133+
}
134+
}
135+
}
136+
}

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

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,6 @@
1616
"application/json"
1717
],
1818
"paths": {
19-
"/providers/Microsoft.Subscription/operations": {
20-
"get": {
21-
"description": "Lists all of the available Microsoft.Subscription API operations.",
22-
"operationId": "Operations_List",
23-
"x-ms-examples": {
24-
"getOperations": {
25-
"$ref": "./examples/getOperations.json"
26-
}
27-
},
28-
"parameters": [
29-
{
30-
"$ref": "#/parameters/apiVersionParameter"
31-
}
32-
],
33-
"responses": {
34-
"200": {
35-
"description": "OK. The request has succeeded.",
36-
"schema": {
37-
"$ref": "#/definitions/OperationListResult"
38-
}
39-
},
40-
"default": {
41-
"description": "Error response describing why the operation failed.",
42-
"schema": {
43-
"$ref": "#/definitions/ErrorResponse"
44-
}
45-
}
46-
}
47-
}
48-
},
4919
"/providers/Microsoft.Subscription/subscriptionOperations": {
5020
"get": {
5121
"description": "Lists all of the available pending Microsoft.Subscription API operations.",
@@ -237,49 +207,6 @@
237207
"type": "string"
238208
}
239209
}
240-
},
241-
"OperationListResult": {
242-
"description": "Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results.",
243-
"properties": {
244-
"value": {
245-
"type": "array",
246-
"items": {
247-
"$ref": "#/definitions/Operation"
248-
},
249-
"description": "List of operations."
250-
},
251-
"nextLink": {
252-
"type": "string",
253-
"description": "URL to get the next set of operation list results if there are any."
254-
}
255-
}
256-
},
257-
"Operation": {
258-
"description": "REST API operation",
259-
"type": "object",
260-
"properties": {
261-
"name": {
262-
"description": "Operation name: {provider}/{resource}/{operation}",
263-
"type": "string"
264-
},
265-
"display": {
266-
"description": "The object that represents the operation.",
267-
"properties": {
268-
"provider": {
269-
"description": "Service provider: Microsoft.Subscription",
270-
"type": "string"
271-
},
272-
"resource": {
273-
"description": "Resource on which the operation is performed: Profile, endpoint, etc.",
274-
"type": "string"
275-
},
276-
"operation": {
277-
"description": "Operation type: Read, write, delete, etc.",
278-
"type": "string"
279-
}
280-
}
281-
}
282-
}
283210
}
284211
},
285212
"parameters": {

0 commit comments

Comments
 (0)