Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backfilling Microsoft.Resources and subscriptions Swagger specs up to 2019-03-01 API version #5529

Merged
merged 11 commits into from
Apr 9, 2019
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"deploymentName": "{deploymentName}",
"deploymentName": "exampleDeploymentName",
"api-version": "2018-02-01",
"parameters": {
"properties": {
Expand All @@ -16,14 +16,30 @@
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2018-02-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful",
"deploymentName": "{nameOfLastSuccesfulDeployment}"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/{deploymentName}",
"name": "{deploymentName}",
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timeStamp": "{timeStamp}",
"timestamp": "2018-02-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"deploymentName": "{deploymentName}",
"deploymentName": "exampleDeploymentName",
"api-version": "2018-02-01",
"parameters": {
"properties": {
Expand All @@ -17,14 +17,30 @@
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2018-02-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "{nameOfDeploymentToUse}"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/{deploymentName}",
"name": "{deploymentName}",
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timeStamp": "{timeStamp}",
"timestamp": "2018-02-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@
}
}
},
"x-ms-examples": {
"Create a deployment that will redeploy the last successful deployment on failure": {
"$ref": "./examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json"
},
"Create a deployment that will redeploy another deployment on failure": {
"$ref": "./examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json"
}
},
"x-ms-long-running-operation": true
},
"get": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"deploymentName": "{deploymentName}",
"deploymentName": "exampleDeploymentName",
"api-version": "2018-05-01",
"parameters": {
"properties": {
Expand All @@ -16,14 +16,30 @@
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2018-05-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful",
"deploymentName": "{nameOfLastSuccesfulDeployment}"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/{deploymentName}",
"name": "{deploymentName}",
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timeStamp": "{timeStamp}",
"timestamp": "2018-05-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "LastSuccessful",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"deploymentName": "{deploymentName}",
"deploymentName": "exampleDeploymentName",
"api-version": "2018-05-01",
"parameters": {
"properties": {
Expand All @@ -17,14 +17,30 @@
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timestamp": "2018-05-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
"deploymentName": "{nameOfDeploymentToUse}"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/{deploymentName}",
"name": "{deploymentName}",
"id": "/subscriptions/{subscriptionId}/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/exampleDeploymentName",
"name": "exampleDeploymentName",
"properties": {
"provisioningState": "Accepted",
"correlationId": "{correlationId}",
"timeStamp": "{timeStamp}",
"timestamp": "2018-05-01T00:00:00.0000000Z",
"mode": "Complete",
"onErrorDeployment": {
"type": "SpecificDeployment",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,14 @@
}
}
},
"x-ms-examples": {
"Create a deployment that will redeploy the last successful deployment on failure": {
"$ref": "./examples/PutDeploymentWithOnErrorDeploymentLastSuccessful.json"
},
"Create a deployment that will redeploy another deployment on failure": {
"$ref": "./examples/PutDeploymentWithOnErrorDeploymentSpecificDeployment.json"
}
},
"x-ms-long-running-operation": true
},
"get": {
Expand Down
Loading