From 54a98083200e56d88fe1182f2741a61aea91c788 Mon Sep 17 00:00:00 2001 From: Ben Viglietta Date: Mon, 3 May 2021 15:01:17 -0700 Subject: [PATCH] Remove operationStatuses endpoint from Swagger (#14153) Co-authored-by: Ben Viglietta --- .../2020-08-20/CommunicationService.json | 114 ------------------ .../examples/getOperationStatus.json | 26 ---- 2 files changed, 140 deletions(-) delete mode 100644 specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/getOperationStatus.json diff --git a/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json b/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json index 84f2d286939b..d9b39b604428 100644 --- a/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json +++ b/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/CommunicationService.json @@ -173,52 +173,6 @@ } } }, - "/providers/Microsoft.Communication/locations/{location}/operationStatuses/{operationId}": { - "get": { - "description": "Gets the current status of an async operation.", - "operationId": "OperationStatuses_Get", - "summary": "Get Operation Status", - "tags": [ - "OperationStatus" - ], - "parameters": [ - { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/LocationParameter" - }, - { - "$ref": "#/parameters/OperationIdParameter" - } - ], - "consumes": [ - "application/json" - ], - "responses": { - "200": { - "description": "The requested operation status", - "schema": { - "$ref": "#/definitions/OperationStatus" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - } - } - }, - "produces": [ - "application/json" - ], - "x-ms-examples": { - "Get OperationStatus": { - "$ref": "./examples/getOperationStatus.json" - } - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.Communication/communicationServices": { "get": { "description": "Handles requests to list all resources in a subscription.", @@ -703,58 +657,6 @@ } } }, - "OperationStatus": { - "description": "The current status of an async operation", - "type": "object", - "properties": { - "id": { - "description": "Fully qualified ID for the operation status.", - "type": "string", - "readOnly": true - }, - "status": { - "description": "Provisioning state of the resource.", - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Creating", - "Deleting", - "Moving" - ], - "type": "string", - "readOnly": true, - "x-ms-enum": { - "name": "Status", - "modelAsString": true - } - }, - "startTime": { - "description": "The start time of the operation", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "endTime": { - "description": "The end time of the operation", - "type": "string", - "readOnly": true, - "format": "date-time" - }, - "percentComplete": { - "description": "Percent of the operation that is complete", - "type": "number", - "readOnly": true, - "minimum": 0, - "maximum": 100 - }, - "error": { - "description": "Operation Error message", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", - "x-ms-client-flatten": true - } - } - }, "CommunicationServiceResourceList": { "description": "Object that includes an array of CommunicationServices and a possible link for next set.", "type": "object", @@ -938,22 +840,6 @@ "required": true, "type": "string", "x-ms-parameter-location": "method" - }, - "LocationParameter": { - "name": "location", - "in": "path", - "description": "The Azure region", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" - }, - "OperationIdParameter": { - "name": "operationId", - "in": "path", - "description": "The ID of an ongoing async operation", - "required": true, - "type": "string", - "x-ms-parameter-location": "method" } } } diff --git a/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/getOperationStatus.json b/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/getOperationStatus.json deleted file mode 100644 index fc9587705dd9..000000000000 --- a/specification/communication/resource-manager/Microsoft.Communication/stable/2020-08-20/examples/getOperationStatus.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "location": "westus2", - "operationId": "db5f291f-284d-46e9-9152-d5c83f7c14b8", - "api-version": "2020-08-20" - }, - "responses": { - "200": { - "body": { - "id": "db5f291f-284d-46e9-9152-d5c83f7c14b8", - "status": "Succeeded", - "startTime": "2020-07-06T17:06:26.100Z", - "endTime": "2020-07-06T17:06:42.800Z", - "percentComplete": 100 - } - }, - "default": { - "body": { - "error": { - "code": "OperationNotFound", - "message": "The requested async operation was not found" - } - } - } - } -}