@microsoft.azure/autorest.testserver
Version:
Autorest test server.
1,404 lines • 116 kB
JSON
{
"swagger": "2.0",
"info": {
"title": "AutoRest Long-running Operation Test Service",
"description": "Long-running Operation for AutoRest",
"version": "1.0.0"
},
"host": "localhost:3000",
"schemes": ["http"],
"produces": ["application/json"],
"consumes": ["application/json"],
"paths": {
"/lro/put/200/succeeded": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put200Succeeded",
"description": "Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Succeeded’.",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Succeeded'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"204": {
"description": "Final response"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/patch/200/succeeded/ignoreheaders": {
"patch": {
"x-ms-long-running-operation": true,
"operationId": "LROs_patch200SucceededIgnoreHeaders",
"description": "Long running put request, service returns a 200 to the initial request with location header. We should not have any subsequent calls after receiving this first response.",
"tags": ["LROs Operations"],
"parameters": [
{
"name": "product",
"description": "Product to patch",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Succeeded'",
"headers": {
"Azure-AsyncOperation": {
"description": "This header should be ignored in this case",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/patch/201/retry/onlyAsyncHeader": {
"patch": {
"tags": ["LROs Operations"],
"description": "Long running patch request, service returns a 201 to the initial request with async header.",
"operationId": "LROs_patch201RetryWithAsyncHeader",
"x-ms-long-running-operation": true,
"parameters": [
{
"name": "product",
"description": "Product to patch",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Product updated successfully.",
"schema": {
"$ref": "#/definitions/Product"
}
},
"201": {
"description": "Async operation to update products was created.",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/patch/201/retry/onlyAsyncHeader/operationStatuses/201",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/patch/202/retry/asyncAndLocationHeader": {
"patch": {
"tags": ["LROs Operations"],
"description": "Long running patch request, service returns a 202 to the initial request with async and location header.",
"operationId": "LROs_patch202RetryWithAsyncAndLocationHeader",
"x-ms-long-running-operation": true,
"parameters": [
{
"name": "product",
"description": "Product to patch",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Product updated successfully.",
"schema": {
"$ref": "#/definitions/Product"
}
},
"202": {
"description": "Async operation to update products was accpeted.",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/patch/202/retry/asyncAndLocationHeader/operationResults/202",
"type": "string"
},
"Location": {
"description": "Location to poll for final status: will be set to /lro/patch/202/retry/asyncAndLocationHeader/operationResults/202/finalResults/202",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/201/succeeded": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put201Succeeded",
"description": "Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Succeeded’.",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"201": {
"description": "Initial response with ProvisioningState='Succeeded'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/list": {
"post": {
"x-ms-long-running-operation": true,
"operationId": "LROs_post202List",
"description": "Long running put request, service returns a 202 with empty body to first request, returns a 200 with body [{ 'id': '100', 'name': 'foo' }].",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Initial response",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/list/pollingGet",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/list/finalGet",
"type": "string"
}
}
},
"200": {
"description": "Response after completion. Will be [{ 'id': '100', 'name': 'foo' }]",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Product"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/200/succeeded/nostate": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put200SucceededNoState",
"description": "Long running put request, service returns a 200 to the initial request, with an entity that does not contain ProvisioningState=’Succeeded’.",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response without ProvisioningState",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/202/retry/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put202Retry200",
"description": "Long running put request, service returns a 202 to the initial request, with a location header that points to a polling URL that returns a 200 and an entity that doesn't contains ProvisioningState",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Succeeded'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/201/creating/succeeded/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put201CreatingSucceeded200",
"description": "Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Response after completion, with ProvisioningState='Succeeded'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"201": {
"description": "Initial response, with ProvisioningState = 'Creating'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/200/updating/succeeded/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put200UpdatingSucceeded204",
"description": "Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Updating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/201/created/failed/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put201CreatingFailed200",
"description": "Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Created’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Failed’",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Response after completion, with ProvisioningState='Failed'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"201": {
"description": "Initial response, with ProvisioningState = 'Created'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/200/accepted/canceled/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_put200Acceptedcanceled200",
"description": "Long running put request, service returns a 201 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/put/noheader/202/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putNoHeaderInRetry",
"description": "Long running put request, service returns a 202 to the initial request with location header. Subsequent calls to operation status do not contain location header.",
"tags": ["LROs Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Accepted'",
"headers": {
"location": {
"description": "Location to poll for result status: will be set to /lro/putasync/noheader/202/200/operationResults",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putasync/retry/succeeded": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putAsyncRetrySucceeded",
"description": "Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/putasync/retry/succeeded/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/putasync/retry/succeeded/operationResults/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putasync/noretry/succeeded": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putAsyncNoRetrySucceeded",
"description": "Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/putasync/noretry/succeeded/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/putasync/noretry/succeeded/operationResults/200",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putasync/retry/failed": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putAsyncRetryFailed",
"description": "Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/putasync/retry/failed/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/putasync/retry/failed/operationResults/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putasync/noretry/canceled": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putAsyncNoRetrycanceled",
"description": "Long running put request, service returns a 200 to the initial request, with an entity that contains ProvisioningState=’Creating’. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/putasync/noretry/canceled/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/putasync/noretry/canceled/operationResults/200",
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putasync/noheader/201/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putAsyncNoHeaderInRetry",
"description": "Long running put request, service returns a 202 to the initial request with Azure-AsyncOperation header. Subsequent calls to operation status do not contain Azure-AsyncOperation header.",
"tags": ["LROs Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"201": {
"description": "Initial response with ProvisioningState='Accepted'",
"headers": {
"Azure-AsyncOperation": {
"type": "string"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putnonresource/202/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putNonResource",
"description": "Long running put request with non resource.",
"tags": ["LROs Operations"],
"parameters": [
{
"name": "sku",
"description": "sku to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Sku"
}
}
],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Accepted'",
"schema": {
"$ref": "#/definitions/Sku"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putnonresourceasync/202/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putAsyncNonResource",
"description": "Long running put request with non resource.",
"tags": ["LROs Operations"],
"parameters": [
{
"name": "sku",
"description": "Sku to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Sku"
}
}
],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Accepted'",
"schema": {
"$ref": "#/definitions/Sku"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putsubresource/202/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putSubResource",
"description": "Long running put request with sub resource.",
"tags": ["LROs Operations"],
"parameters": [
{
"name": "product",
"description": "Sub Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/SubProduct"
}
}
],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Accepted'",
"schema": {
"$ref": "#/definitions/SubProduct"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/putsubresourceasync/202/200": {
"put": {
"x-ms-long-running-operation": true,
"operationId": "LROs_putAsyncSubResource",
"description": "Long running put request with sub resource.",
"tags": ["LROs Operations"],
"parameters": [
{
"name": "product",
"description": "Sub Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/SubProduct"
}
}
],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Accepted'",
"schema": {
"$ref": "#/definitions/SubProduct"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/delete/provisioning/202/accepted/200/succeeded": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteProvisioning202Accepted200Succeeded",
"description": "Long running delete request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’",
"tags": ["LRO Operations"],
"responses": {
"200": {
"description": "Response after completion, with ProvisioningState='Succeeded'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"202": {
"description": "Initial response, with ProvisioningState = 'Deleting'",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/delete/provisioning/202/accepted/200/succeeded",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/delete/provisioning/202/deleting/200/failed": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteProvisioning202DeletingFailed200",
"description": "Long running delete request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Failed’",
"tags": ["LRO Operations"],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"202": {
"description": "Inital response",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/delete/provisioning/202/deleting/200/failed",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/delete/provisioning/202/deleting/200/canceled": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteProvisioning202Deletingcanceled200",
"description": "Long running delete request, service returns a 202 to the initial request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’",
"tags": ["LRO Operations"],
"responses": {
"200": {
"description": "Initial response with ProvisioningState='Updating'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"202": {
"description": "Inital response",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/delete/provisioning/202/deleting/200/canceled",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/delete/204/succeeded": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_delete204Succeeded",
"description": "Long running delete succeeds and returns right away",
"tags": ["LRO Operations"],
"responses": {
"204": {
"description": "Response after completion, with ProvisioningState='Succeeded'"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/delete/202/retry/200": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_delete202Retry200",
"description": "Long running delete request, service returns a 202 to the initial request. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’",
"tags": ["LRO Operations"],
"responses": {
"200": {
"description": "Response after completion, with ProvisioningState='Succeeded'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"202": {
"description": "Initial response, with no entity body",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/delete/202/retry/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/delete/202/noretry/204": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_delete202NoRetry204",
"description": "Long running delete request, service returns a 202 to the initial request. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’",
"tags": ["LRO Operations"],
"responses": {
"200": {
"description": "Response after completion, with ProvisioningState='Succeeded'",
"schema": {
"$ref": "#/definitions/Product"
}
},
"202": {
"description": "Initial response, with no entity body",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/delete/202/noretry/204",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/delete/noheader": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteNoHeaderInRetry",
"description": "Long running delete request, service returns a location header in the initial request. Subsequent calls to operation status do not contain location header.",
"tags": ["LRO Operations"],
"responses": {
"204": {
"description": "Response after completion"
},
"202": {
"description": "Initial response, with no entity body",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/put/noheader/202/204/operationresults",
"type": "string"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/deleteasync/noheader/202/204": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteAsyncNoHeaderInRetry",
"description": "Long running delete request, service returns an Azure-AsyncOperation header in the initial request. Subsequent calls to operation status do not contain Azure-AsyncOperation header.",
"tags": ["LRO Operations"],
"responses": {
"204": {
"description": "Response after completion"
},
"202": {
"description": "Initial response, with no entity body",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/put/noheader/202/204/operationresults",
"type": "string"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/deleteasync/retry/succeeded": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteAsyncRetrySucceeded",
"description": "Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/retry/succeeded/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/retry/succeeded/operationResults/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/deleteasync/noretry/succeeded": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteAsyncNoRetrySucceeded",
"description": "Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/noretry/succeeded/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/noretry/succeeded/operationResults/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/deleteasync/retry/failed": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteAsyncRetryFailed",
"description": "Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/retry/failed/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/retry/failed/operationResults/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/deleteasync/retry/canceled": {
"delete": {
"x-ms-long-running-operation": true,
"operationId": "LROs_deleteAsyncRetrycanceled",
"description": "Long running delete request, service returns a 202 to the initial request. Poll the endpoint indicated in the Azure-AsyncOperation header for operation status",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Initial response with ProvisioningState='Updating'",
"headers": {
"Azure-AsyncOperation": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/retry/canceled/operationResults/200",
"type": "string"
},
"Location": {
"description": "Location to poll for result status: will be set to /lro/deleteasync/retry/canceled/operationResults/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/post/payload/200": {
"post": {
"x-ms-long-running-operation": true,
"operationId": "LROs_post200WithPayload",
"description": "Long running post request, service returns a 202 to the initial request, with 'Location' header. Poll returns a 200 with a response body after success.",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Initial response, with ProvisioningState = 'Creating'",
"schema": {
"$ref": "#/definitions/Sku"
}
},
"200": {
"description": "Initial response, with ProvisioningState = 'Creating'",
"schema": {
"$ref": "#/definitions/Sku"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/post/202/retry/200": {
"post": {
"x-ms-long-running-operation": true,
"operationId": "LROs_post202Retry200",
"description": "Long running post request, service returns a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"202": {
"description": "Initial response, with ProvisioningState = 'Creating'",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/post/202/retry/200",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/post/202/noretry/204": {
"post": {
"x-ms-long-running-operation": true,
"operationId": "LROs_post202NoRetry204",
"description": "Long running post request, service returns a 202 to the initial request, with 'Location' header, 204 with noresponse body after success",
"tags": ["LRO Operations"],
"parameters": [
{
"name": "product",
"description": "Product to put",
"in": "body",
"schema": {
"$ref": "#/definitions/Product"
}
}
],
"responses": {
"202": {
"description": "Initial response, with ProvisioningState = 'Creating'",
"headers": {
"Location": {
"description": "Location to poll for result status: will be set to /lro/post/202/noretry/204",
"type": "string"
},
"Retry-After": {
"description": "Number of milliseconds until the next poll should be sent, will be set to zero",
"type": "integer",
"format": "Int32"
}
},
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/LROPostDoubleHeadersFinalLocationGet": {
"post": {
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"operationId": "LROs_postDoubleHeadersFinalLocationGet",
"description": "Long running post request, service returns a 202 to the initial request with both Location and Azure-Async header. Poll Azure-Async and it's success. Should poll Location to get the final object",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Response after completion.",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/LROPostDoubleHeadersFinalAzureHeaderGet": {
"post": {
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"operationId": "LROs_postDoubleHeadersFinalAzureHeaderGet",
"description": "Long running post request, service returns a 202 to the initial request with both Location and Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Response after completion.",
"schema": {
"$ref": "#/definitions/Product"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/lro/LROPostDoubleHeadersFinalAzureHeaderGetDefault": {
"post": {
"x-ms-long-running-operation": true,
"operationId": "LROs_postDoubleHeadersFinalAzureHeaderGetDefault",
"description": "Long running post request, service returns a 202 to the initial request with both Location and Azure-Async header. Poll Azure-Async and it's success. Should NOT poll Location to get the final object if you support initial Autorest behavior.",
"tags": ["LRO Operations"],
"responses": {
"202": {
"description": "Response after completion.",
"schema": {
"$r