Skip to content

Commit 539d7f9

Browse files
magodogerrytan
authored andcommitted
Update
1 parent df284ea commit 539d7f9

File tree

2 files changed

+11
-97
lines changed

2 files changed

+11
-97
lines changed

specification/terraform/resource-manager/Microsoft.AzureTerraform/preview/2023-07-01-preview/examples/ListOperations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "List Operations",
3-
"operationId": "ListOperations",
3+
"operationId": "Operations_List",
44
"parameters": {
55
"subscriptionId": "12345678-1234-1234-12345678abc",
66
"api-version": "2023-07-01-preview"

specification/terraform/resource-manager/Microsoft.AzureTerraform/preview/2023-07-01-preview/export.json

Lines changed: 10 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"Operations"
4141
],
4242
"description": "Lists all of the available RP operations.",
43-
"operationId": "ListOperations",
43+
"operationId": "Operations_List",
4444
"parameters": [
4545
{
4646
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
@@ -50,18 +50,23 @@
5050
"200": {
5151
"description": "OK. The request has succeeded.",
5252
"schema": {
53-
"$ref": "#/definitions/OperationListResult"
53+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/OperationListResult"
5454
}
5555
},
5656
"default": {
5757
"description": "Resource Provider error response describing why the operation failed.",
5858
"schema": {
59-
"$ref": "#/definitions/ErrorResponse"
59+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
6060
}
6161
}
6262
},
6363
"x-ms-pageable": {
6464
"nextLinkName": "nextLink"
65+
},
66+
"x-ms-examples": {
67+
"Get a list of operations for a resource provider": {
68+
"$ref": "./examples/ListOperations.json"
69+
}
6570
}
6671
}
6772
},
@@ -93,7 +98,7 @@
9398
"default": {
9499
"description": "Error response describing why the operation failed.",
95100
"schema": {
96-
"$ref": "#/definitions/CloudError"
101+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
97102
}
98103
}
99104
},
@@ -239,102 +244,11 @@
239244
"type": "array",
240245
"items": {
241246
"type": "object",
242-
"$ref": "#/definitions/ErrorResponse"
247+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorDetail"
243248
},
244249
"x-ms-identifiers": []
245250
}
246251
}
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-
}
338252
}
339253
},
340254
"parameters": {

0 commit comments

Comments
 (0)