|
40 | 40 | "Operations" |
41 | 41 | ], |
42 | 42 | "description": "Lists all of the available RP operations.", |
43 | | - "operationId": "ListOperations", |
| 43 | + "operationId": "Operations_List", |
44 | 44 | "parameters": [ |
45 | 45 | { |
46 | 46 | "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" |
|
50 | 50 | "200": { |
51 | 51 | "description": "OK. The request has succeeded.", |
52 | 52 | "schema": { |
53 | | - "$ref": "#/definitions/OperationListResult" |
| 53 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult" |
54 | 54 | } |
55 | 55 | }, |
56 | 56 | "default": { |
57 | 57 | "description": "Resource Provider error response describing why the operation failed.", |
58 | 58 | "schema": { |
59 | | - "$ref": "#/definitions/ErrorResponse" |
| 59 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" |
60 | 60 | } |
61 | 61 | } |
62 | 62 | }, |
63 | 63 | "x-ms-pageable": { |
64 | 64 | "nextLinkName": "nextLink" |
| 65 | + }, |
| 66 | + "x-ms-examples": { |
| 67 | + "Get a list of operations for a resource provider": { |
| 68 | + "$ref": "./examples/ListOperations.json" |
| 69 | + } |
65 | 70 | } |
66 | 71 | } |
67 | 72 | }, |
|
93 | 98 | "default": { |
94 | 99 | "description": "Error response describing why the operation failed.", |
95 | 100 | "schema": { |
96 | | - "$ref": "#/definitions/CloudError" |
| 101 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" |
97 | 102 | } |
98 | 103 | } |
99 | 104 | }, |
|
239 | 244 | "type": "array", |
240 | 245 | "items": { |
241 | 246 | "type": "object", |
242 | | - "$ref": "#/definitions/ErrorResponse" |
| 247 | + "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorDetail" |
243 | 248 | }, |
244 | 249 | "x-ms-identifiers": [] |
245 | 250 | } |
246 | 251 | } |
247 | | - }, |
248 | | - "CloudError": { |
249 | | - "x-ms-external": true, |
250 | | - "type": "object", |
251 | | - "properties": { |
252 | | - "error": { |
253 | | - "$ref": "#/definitions/ErrorResponse" |
254 | | - } |
255 | | - }, |
256 | | - "description": "An error response for a resource management request" |
257 | | - }, |
258 | | - "ErrorResponse": { |
259 | | - "title": "Error Response", |
260 | | - "description": "Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)", |
261 | | - "type": "object", |
262 | | - "properties": { |
263 | | - "code": { |
264 | | - "readOnly": true, |
265 | | - "type": "string", |
266 | | - "description": "The error code." |
267 | | - }, |
268 | | - "message": { |
269 | | - "readOnly": true, |
270 | | - "type": "string", |
271 | | - "description": "The error message." |
272 | | - }, |
273 | | - "target": { |
274 | | - "readOnly": true, |
275 | | - "type": "string", |
276 | | - "description": "The error target." |
277 | | - }, |
278 | | - "details": { |
279 | | - "readOnly": true, |
280 | | - "type": "array", |
281 | | - "items": { |
282 | | - "$ref": "#/definitions/ErrorResponse" |
283 | | - }, |
284 | | - "x-ms-identifiers": [ |
285 | | - "message", |
286 | | - "target" |
287 | | - ], |
288 | | - "description": "The error details." |
289 | | - } |
290 | | - } |
291 | | - }, |
292 | | - "Operation": { |
293 | | - "description": "REST API operation", |
294 | | - "type": "object", |
295 | | - "properties": { |
296 | | - "name": { |
297 | | - "description": "Operation name: {provider}/{resource}/{operation}", |
298 | | - "type": "string" |
299 | | - }, |
300 | | - "display": { |
301 | | - "description": "The object that represents the operation.", |
302 | | - "properties": { |
303 | | - "provider": { |
304 | | - "description": "Service provider: Microsoft.AzureTerraform", |
305 | | - "type": "string" |
306 | | - }, |
307 | | - "resource": { |
308 | | - "description": "Resource on which the operation is performed: Profile, endpoint, etc.", |
309 | | - "type": "string" |
310 | | - }, |
311 | | - "operation": { |
312 | | - "description": "Name of the operation for display purposes", |
313 | | - "type": "string" |
314 | | - }, |
315 | | - "description": { |
316 | | - "description": "Description of the operation for display purposes", |
317 | | - "type": "string" |
318 | | - } |
319 | | - } |
320 | | - } |
321 | | - } |
322 | | - }, |
323 | | - "OperationListResult": { |
324 | | - "description": "Result of the request to list Resource Provider operations. It contains a list of operations and a URL link to get the next set of results.", |
325 | | - "properties": { |
326 | | - "value": { |
327 | | - "type": "array", |
328 | | - "items": { |
329 | | - "$ref": "#/definitions/Operation" |
330 | | - }, |
331 | | - "description": "List of Resource Provider operations supported by the Resource Provider resource provider." |
332 | | - }, |
333 | | - "nextLink": { |
334 | | - "type": "string", |
335 | | - "description": "URL to get the next set of operation list results if there are any." |
336 | | - } |
337 | | - } |
338 | 252 | } |
339 | 253 | }, |
340 | 254 | "parameters": { |
|
0 commit comments