|
173 | 173 | } |
174 | 174 | } |
175 | 175 | }, |
176 | | - "/providers/Microsoft.Communication/locations/{location}/operationStatuses/{operationId}": { |
177 | | - "get": { |
178 | | - "description": "Gets the current status of an async operation.", |
179 | | - "operationId": "OperationStatuses_Get", |
180 | | - "summary": "Get Operation Status", |
181 | | - "tags": [ |
182 | | - "OperationStatus" |
183 | | - ], |
184 | | - "parameters": [ |
185 | | - { |
186 | | - "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" |
187 | | - }, |
188 | | - { |
189 | | - "$ref": "#/parameters/LocationParameter" |
190 | | - }, |
191 | | - { |
192 | | - "$ref": "#/parameters/OperationIdParameter" |
193 | | - } |
194 | | - ], |
195 | | - "consumes": [ |
196 | | - "application/json" |
197 | | - ], |
198 | | - "responses": { |
199 | | - "200": { |
200 | | - "description": "The requested operation status", |
201 | | - "schema": { |
202 | | - "$ref": "#/definitions/OperationStatus" |
203 | | - } |
204 | | - }, |
205 | | - "default": { |
206 | | - "description": "Error response describing why the operation failed.", |
207 | | - "schema": { |
208 | | - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" |
209 | | - } |
210 | | - } |
211 | | - }, |
212 | | - "produces": [ |
213 | | - "application/json" |
214 | | - ], |
215 | | - "x-ms-examples": { |
216 | | - "Get OperationStatus": { |
217 | | - "$ref": "./examples/getOperationStatus.json" |
218 | | - } |
219 | | - } |
220 | | - } |
221 | | - }, |
222 | 176 | "/subscriptions/{subscriptionId}/providers/Microsoft.Communication/communicationServices": { |
223 | 177 | "get": { |
224 | 178 | "description": "Handles requests to list all resources in a subscription.", |
|
703 | 657 | } |
704 | 658 | } |
705 | 659 | }, |
706 | | - "OperationStatus": { |
707 | | - "description": "The current status of an async operation", |
708 | | - "type": "object", |
709 | | - "properties": { |
710 | | - "id": { |
711 | | - "description": "Fully qualified ID for the operation status.", |
712 | | - "type": "string", |
713 | | - "readOnly": true |
714 | | - }, |
715 | | - "status": { |
716 | | - "description": "Provisioning state of the resource.", |
717 | | - "enum": [ |
718 | | - "Succeeded", |
719 | | - "Failed", |
720 | | - "Canceled", |
721 | | - "Creating", |
722 | | - "Deleting", |
723 | | - "Moving" |
724 | | - ], |
725 | | - "type": "string", |
726 | | - "readOnly": true, |
727 | | - "x-ms-enum": { |
728 | | - "name": "Status", |
729 | | - "modelAsString": true |
730 | | - } |
731 | | - }, |
732 | | - "startTime": { |
733 | | - "description": "The start time of the operation", |
734 | | - "type": "string", |
735 | | - "readOnly": true, |
736 | | - "format": "date-time" |
737 | | - }, |
738 | | - "endTime": { |
739 | | - "description": "The end time of the operation", |
740 | | - "type": "string", |
741 | | - "readOnly": true, |
742 | | - "format": "date-time" |
743 | | - }, |
744 | | - "percentComplete": { |
745 | | - "description": "Percent of the operation that is complete", |
746 | | - "type": "number", |
747 | | - "readOnly": true, |
748 | | - "minimum": 0, |
749 | | - "maximum": 100 |
750 | | - }, |
751 | | - "error": { |
752 | | - "description": "Operation Error message", |
753 | | - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse", |
754 | | - "x-ms-client-flatten": true |
755 | | - } |
756 | | - } |
757 | | - }, |
758 | 660 | "CommunicationServiceResourceList": { |
759 | 661 | "description": "Object that includes an array of CommunicationServices and a possible link for next set.", |
760 | 662 | "type": "object", |
|
938 | 840 | "required": true, |
939 | 841 | "type": "string", |
940 | 842 | "x-ms-parameter-location": "method" |
941 | | - }, |
942 | | - "LocationParameter": { |
943 | | - "name": "location", |
944 | | - "in": "path", |
945 | | - "description": "The Azure region", |
946 | | - "required": true, |
947 | | - "type": "string", |
948 | | - "x-ms-parameter-location": "method" |
949 | | - }, |
950 | | - "OperationIdParameter": { |
951 | | - "name": "operationId", |
952 | | - "in": "path", |
953 | | - "description": "The ID of an ongoing async operation", |
954 | | - "required": true, |
955 | | - "type": "string", |
956 | | - "x-ms-parameter-location": "method" |
957 | 843 | } |
958 | 844 | } |
959 | 845 | } |
0 commit comments