Skip to content

Commit

Permalink
🧹 Update ARM Specs
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencegripper committed Oct 30, 2023
1 parent 8ef67c2 commit 8da668d
Show file tree
Hide file tree
Showing 27 changed files with 2,067 additions and 438 deletions.
139 changes: 84 additions & 55 deletions internal/pkg/expanders/swagger-armspecs.generated.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"addition_input_file_paths": [], "input_files": ["Microsoft.AzureLargeInstance/preview/2023-07-20-preview/azurelargeinstance.json"], "name": "package-2023-07-20-preview"}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Chaos Management",
"description": "Azure Chaos Resource Provider REST API",
"version": "2023-04-15-preview"
"version": "2023-11-01"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -140,7 +140,7 @@
},
"x-ms-examples": {
"Get a Capability that extends a virtual machine Target resource.": {
"$ref": "./examples/GetACapability.json"
"$ref": "./examples/GetCapability.json"
}
}
},
Expand Down Expand Up @@ -192,7 +192,7 @@
},
"x-ms-examples": {
"Delete a Capability that extends a virtual machine Target resource.": {
"$ref": "./examples/DeleteACapability.json"
"$ref": "./examples/DeleteCapability.json"
}
}
},
Expand Down Expand Up @@ -253,7 +253,7 @@
},
"x-ms-examples": {
"Create/update a Capability that extends a virtual machine Target resource.": {
"$ref": "./examples/CreateOrUpdateACapability.json"
"$ref": "./examples/CreateUpdateCapability.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Chaos Management",
"description": "Azure Chaos Resource Provider REST API",
"version": "2023-04-15-preview"
"version": "2023-11-01"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -122,7 +122,7 @@
},
"x-ms-examples": {
"Get a Capability Type for a virtual machine Target resource on westus2 location.": {
"$ref": "./examples/GetACapabilityType.json"
"$ref": "./examples/GetCapabilityType.json"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Chaos Management",
"description": "Azure Chaos Resource Provider REST API",
"version": "2023-04-15-preview"
"version": "2023-11-01"
},
"host": "management.azure.com",
"schemes": [
Expand Down Expand Up @@ -149,11 +149,8 @@
}
],
"responses": {
"200": {
"description": "Request was successful."
},
"204": {
"description": "Request was successful."
"202": {
"description": "Asynchronous delete operation."
},
"default": {
"description": "Error response returned if request was unsuccessful.",
Expand All @@ -162,9 +159,13 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Delete a Experiment in a resource group.": {
"$ref": "./examples/DeleteAExperiment.json"
"$ref": "./examples/DeleteExperiment.json"
}
}
},
Expand Down Expand Up @@ -204,7 +205,7 @@
},
"x-ms-examples": {
"Get a Experiment in a resource group.": {
"$ref": "./examples/GetAExperiment.json"
"$ref": "./examples/GetExperiment.json"
}
}
},
Expand Down Expand Up @@ -238,8 +239,14 @@
}
],
"responses": {
"201": {
"description": "Long running create experiment operation.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experiment"
}
},
"200": {
"description": "Experiment resource returned if request was successful.",
"description": "Long running replace experiment operation.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experiment"
}
Expand All @@ -251,9 +258,13 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "azure-async-operation"
},
"x-ms-examples": {
"Create/update a Experiment in a resource group.": {
"$ref": "./examples/CreateOrUpdateAExperiment.json"
"$ref": "./examples/CreateUpdateExperiment.json"
}
}
},
Expand Down Expand Up @@ -287,8 +298,8 @@
}
],
"responses": {
"200": {
"description": "Experiment resource returned if request was successful.",
"202": {
"description": "Long running update operation.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experiment"
}
Expand All @@ -300,9 +311,13 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Patch an Experiment in a resource group.": {
"$ref": "./examples/PatchExperiment.json"
"Update an Experiment in a resource group.": {
"$ref": "./examples/UpdateExperiment.json"
}
}
}
Expand Down Expand Up @@ -330,10 +345,7 @@
],
"responses": {
"202": {
"description": "Operation result returned if request was successful.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experimentCancelOperationResult"
}
"description": "Long running cancel operation."
},
"default": {
"description": "Error response returned if request was unsuccessful.",
Expand All @@ -342,9 +354,13 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Cancel a running Experiment.": {
"$ref": "./examples/CancelAExperiment.json"
"$ref": "./examples/CancelExperiment.json"
}
}
}
Expand Down Expand Up @@ -372,10 +388,7 @@
],
"responses": {
"202": {
"description": "Operation result returned if request was successful.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experimentStartOperationResult"
}
"description": "Long running start experiment operation."
},
"default": {
"description": "Error response returned if request was unsuccessful.",
Expand All @@ -384,20 +397,24 @@
}
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Start a Experiment.": {
"$ref": "./examples/StartAExperiment.json"
"$ref": "./examples/StartExperiment.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/statuses": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions": {
"get": {
"description": "Get a list of statuses of a Experiment resource.",
"description": "Get a list of executions of an Experiment resource.",
"tags": [
"Experiments"
],
"operationId": "Experiments_ListAllStatuses",
"operationId": "Experiments_ListAllExecutions",
"parameters": [
{
"$ref": "./types/common.json#/parameters/apiVersion"
Expand All @@ -414,9 +431,9 @@
],
"responses": {
"200": {
"description": "List of statuses returned if request was successful.",
"description": "List of executions returned if request was successful.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experimentStatusListResult"
"$ref": "./types/experiments.json#/definitions/experimentExecutionListResult"
}
},
"default": {
Expand All @@ -430,19 +447,19 @@
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List all statuses of a Experiment.": {
"$ref": "./examples/ListExperimentStatuses.json"
"List all executions of an Experiment.": {
"$ref": "./examples/ListExperimentExecutions.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/statuses/{statusId}": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions/{executionId}": {
"get": {
"description": "Get a status of a Experiment resource.",
"description": "Get an execution of an Experiment resource.",
"tags": [
"Experiments"
],
"operationId": "Experiments_GetStatus",
"operationId": "Experiments_GetExecution",
"parameters": [
{
"$ref": "./types/common.json#/parameters/apiVersion"
Expand All @@ -457,56 +474,14 @@
"$ref": "./types/experiments.json#/parameters/experimentName"
},
{
"$ref": "./types/experiments.json#/parameters/statusId"
}
],
"responses": {
"200": {
"description": "Status returned if request was successful.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experimentStatus"
}
},
"default": {
"description": "Error response returned if request was unsuccessful.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"Get the status of a Experiment.": {
"$ref": "./examples/GetAExperimentStatus.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executionDetails": {
"get": {
"tags": [
"Experiments"
],
"description": "Get a list of execution details of a Experiment resource.",
"operationId": "Experiments_ListExecutionDetails",
"parameters": [
{
"$ref": "./types/common.json#/parameters/apiVersion"
},
{
"$ref": "./types/common.json#/parameters/subscriptionId"
},
{
"$ref": "./types/common.json#/parameters/resourceGroupName"
},
{
"$ref": "./types/experiments.json#/parameters/experimentName"
"$ref": "./types/experiments.json#/parameters/executionId"
}
],
"responses": {
"200": {
"description": "Execution detail if request was successful.",
"description": "Execution returned if request was successful.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experimentExecutionDetailsListResult"
"$ref": "./types/experiments.json#/definitions/experimentExecution"
}
},
"default": {
Expand All @@ -516,23 +491,20 @@
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"List experiment executions details": {
"$ref": "./examples/ListExperimentExecutionsDetails.json"
"Get the execution of a Experiment.": {
"$ref": "./examples/GetExperimentExecution.json"
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executionDetails/{executionDetailsId}": {
"get": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/experiments/{experimentName}/executions/{executionId}/getExecutionDetails": {
"post": {
"description": "Execution details of an experiment resource.",
"tags": [
"Experiments"
],
"description": "Get an execution detail of a Experiment resource.",
"operationId": "Experiments_GetExecutionDetails",
"operationId": "Experiments_ExecutionDetails",
"parameters": [
{
"$ref": "./types/common.json#/parameters/apiVersion"
Expand All @@ -547,12 +519,12 @@
"$ref": "./types/experiments.json#/parameters/experimentName"
},
{
"$ref": "./types/experiments.json#/parameters/executionDetailsId"
"$ref": "./types/experiments.json#/parameters/executionId"
}
],
"responses": {
"200": {
"description": "List of execution details in request was successful.",
"description": "Get experiment execution details.",
"schema": {
"$ref": "./types/experiments.json#/definitions/experimentExecutionDetails"
}
Expand All @@ -565,8 +537,8 @@
}
},
"x-ms-examples": {
"Get experiment execution details": {
"$ref": "./examples/GetAExperimentExecutionDetails.json"
"Get experiment execution details.": {
"$ref": "./examples/DetailsExperiment.json"
}
}
}
Expand Down
Loading

0 comments on commit 8da668d

Please sign in to comment.