Skip to content

Commit

Permalink
Add 201 response to AppServicePlans_CreateOrUpdate (#4351)
Browse files Browse the repository at this point in the history
* Add 201 response to AppServicePlans_CreateOrUpdate.

Fixes #3648.

* Add examples of 201 response to AppServicePlans_CreateOrUpdate.
  • Loading branch information
pietro authored and sarangan12 committed Feb 26, 2019
1 parent 5efb95a commit 81cd2dd
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@
"$ref": "../2016-03-01/CommonDefinitions.json#/definitions/AppServicePlan"
}
},
"201": {
"description": "Created.",
"schema": {
"$ref": "../2016-03-01/CommonDefinitions.json#/definitions/AppServicePlan"
}
},
"202": {
"description": "Operation is in progress.",
"schema": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,39 @@
}
}
},
"201": {
"headers": {},
"body": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141",
"name": "testsf6141",
"type": "Microsoft.Web/serverfarms",
"kind": "app",
"location": "East US",
"properties": {
"name": "testsf6141",
"workerSize": "Default",
"numberOfWorkers": 1,
"currentWorkerSize": "Default",
"currentNumberOfWorkers": 1,
"status": "Ready",
"maximumNumberOfWorkers": 20,
"geoRegion": "East US",
"numberOfSites": 4,
"reserved": false,
"mdmId": "waws-prod-blu-033_4740",
"targetWorkerCount": 0,
"targetWorkerSizeId": 0,
"provisioningState": "Succeeded"
},
"sku": {
"name": "P1",
"tier": "Premium",
"size": "P1",
"family": "P",
"capacity": 1
}
}
},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141/operationresults/F0C6B8EC-0D53-432C-913B-1CD9E8CDE3A0",
Expand Down Expand Up @@ -94,4 +127,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@
"$ref": "./CommonDefinitions.json#/definitions/AppServicePlan"
}
},
"201": {
"description": "Created.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/AppServicePlan"
}
},
"202": {
"description": "Operation is in progress.",
"schema": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,39 @@
}
}
},
"201": {
"headers": {},
"body": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141",
"name": "testsf6141",
"type": "Microsoft.Web/serverfarms",
"kind": "app",
"location": "East US",
"properties": {
"name": "testsf6141",
"workerSize": "Default",
"numberOfWorkers": 1,
"currentWorkerSize": "Default",
"currentNumberOfWorkers": 1,
"status": "Ready",
"maximumNumberOfWorkers": 20,
"geoRegion": "East US",
"numberOfSites": 4,
"reserved": false,
"mdmId": "waws-prod-blu-033_4740",
"targetWorkerCount": 0,
"targetWorkerSizeId": 0,
"provisioningState": "Succeeded"
},
"sku": {
"name": "P1",
"tier": "Premium",
"size": "P1",
"family": "P",
"capacity": 1
}
}
},
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/serverfarms/testsf6141/operationresults/F0C6B8EC-0D53-432C-913B-1CD9E8CDE3A0",
Expand Down Expand Up @@ -94,4 +127,4 @@
}
}
}
}
}

0 comments on commit 81cd2dd

Please sign in to comment.