-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Microsoft.Chaos - a few follow-up fixes after TypeSpec migration (#32119
) * removed provisioning state from a few models * fixed based on linting * built from main instead of client * feat: add 2025-01-01 API version with updated capability type properties * chore: fix properties * added back missing provisioningState in preview version * changed inline docs * fixing documentation * feat: add required role definition ids to capability type * Create sdk-suppressions.yaml --------- Co-authored-by: renzopretto <[email protected]> Co-authored-by: kazrael2119 <[email protected]>
- Loading branch information
1 parent
cc5e8fa
commit 2756f8f
Showing
60 changed files
with
5,332 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
specification/chaos/Chaos.Management/examples/2025-01-01/Capabilities_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-01-01", | ||
"resource": { | ||
"properties": {} | ||
}, | ||
"capabilityName": "Shutdown-1.0", | ||
"parentProviderNamespace": "Microsoft.Compute", | ||
"parentResourceName": "exampleVM", | ||
"parentResourceType": "virtualMachines", | ||
"resourceGroupName": "exampleRG", | ||
"subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", | ||
"targetName": "Microsoft-VirtualMachine" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "Shutdown-1.0", | ||
"type": "Microsoft.Chaos/targets/capabilities", | ||
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0", | ||
"properties": { | ||
"description": "Shutdown an Azure Virtual Machine for a defined period of time.", | ||
"parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", | ||
"publisher": "Microsoft", | ||
"targetType": "VirtualMachine", | ||
"urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-05-14T05:08:38.4662189Z", | ||
"lastModifiedAt": "2020-05-14T05:08:38.4662189Z" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "Shutdown-1.0", | ||
"type": "Microsoft.Chaos/targets/capabilities", | ||
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0", | ||
"properties": { | ||
"description": "Shutdown an Azure Virtual Machine for a defined period of time.", | ||
"parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", | ||
"publisher": "Microsoft", | ||
"targetType": "VirtualMachine", | ||
"urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-05-14T05:08:38.4662189Z", | ||
"lastModifiedAt": "2020-05-14T05:08:38.4662189Z" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Capabilities_CreateOrUpdate", | ||
"title": "Create/update a Capability that extends a virtual machine Target resource." | ||
} |
18 changes: 18 additions & 0 deletions
18
specification/chaos/Chaos.Management/examples/2025-01-01/Capabilities_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-01-01", | ||
"capabilityName": "Shutdown-1.0", | ||
"parentProviderNamespace": "Microsoft.Compute", | ||
"parentResourceName": "exampleVM", | ||
"parentResourceType": "virtualMachines", | ||
"resourceGroupName": "exampleRG", | ||
"subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", | ||
"targetName": "Microsoft-VirtualMachine" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
}, | ||
"operationId": "Capabilities_Delete", | ||
"title": "Delete a Capability that extends a virtual machine Target resource." | ||
} |
34 changes: 34 additions & 0 deletions
34
specification/chaos/Chaos.Management/examples/2025-01-01/Capabilities_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-01-01", | ||
"capabilityName": "Shutdown-1.0", | ||
"parentProviderNamespace": "Microsoft.Compute", | ||
"parentResourceName": "exampleVM", | ||
"parentResourceType": "virtualMachines", | ||
"resourceGroupName": "exampleRG", | ||
"subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", | ||
"targetName": "Microsoft-VirtualMachine" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "Shutdown-1.0", | ||
"type": "Microsoft.Chaos/targets/capabilities", | ||
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0", | ||
"properties": { | ||
"description": "Shutdown an Azure Virtual Machine for a defined period of time.", | ||
"parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", | ||
"publisher": "Microsoft", | ||
"targetType": "VirtualMachine", | ||
"urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-05-14T05:08:38.4662189Z", | ||
"lastModifiedAt": "2020-05-14T05:08:38.4662189Z" | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "Capabilities_Get", | ||
"title": "Get a Capability that extends a virtual machine Target resource." | ||
} |
38 changes: 38 additions & 0 deletions
38
specification/chaos/Chaos.Management/examples/2025-01-01/Capabilities_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-01-01", | ||
"parentProviderNamespace": "Microsoft.Compute", | ||
"parentResourceName": "exampleVM", | ||
"parentResourceType": "virtualMachines", | ||
"resourceGroupName": "exampleRG", | ||
"subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", | ||
"targetName": "Microsoft-VirtualMachine" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities?continuationToken=&api-version=2024-11-01-preview", | ||
"value": [ | ||
{ | ||
"name": "Shutdown-1.0", | ||
"type": "Microsoft.Chaos/targets/capabilities", | ||
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0", | ||
"properties": { | ||
"description": "Shutdown an Azure Virtual Machine for a defined period of time.", | ||
"parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", | ||
"publisher": "Microsoft", | ||
"targetType": "VirtualMachine", | ||
"urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0" | ||
}, | ||
"systemData": { | ||
"createdAt": "2020-05-14T05:08:38.4662189Z", | ||
"lastModifiedAt": "2020-05-14T05:08:38.4662189Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"operationId": "Capabilities_List", | ||
"title": "List all Capabilities that extend a virtual machine Target resource." | ||
} |
42 changes: 42 additions & 0 deletions
42
specification/chaos/Chaos.Management/examples/2025-01-01/CapabilityTypes_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-01-01", | ||
"capabilityTypeName": "Shutdown-1.0", | ||
"location": "westus2", | ||
"subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", | ||
"targetTypeName": "Microsoft-VirtualMachine" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "Shutdown-1.0", | ||
"type": "Microsoft.Chaos/locations/targetTypes/capabilityTypes", | ||
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes/Shutdown-1.0", | ||
"properties": { | ||
"description": "Shutdown an Azure Virtual Machine for a defined period of time.", | ||
"displayName": "Shutdown VM", | ||
"kind": "fault", | ||
"parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", | ||
"publisher": "Microsoft", | ||
"runtimeProperties": { | ||
"kind": "continuous" | ||
}, | ||
"targetType": "VirtualMachine", | ||
"urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0", | ||
"azureRbacActions": [ | ||
"Microsoft.Compute/virtualMachines/poweroff/action", | ||
"Microsoft.Compute/virtualMachines/start/action", | ||
"Microsoft.Compute/virtualMachines/instanceView/read", | ||
"Microsoft.Compute/virtualMachines/read", | ||
"Microsoft.Compute/locations/operations/read" | ||
], | ||
"requiredAzureRoleDefinitionIds": [ | ||
"acdd72a7-3385-48ef-bd42-f606fba81ae0" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"operationId": "CapabilityTypes_Get", | ||
"title": "Get a Capability Type for a virtual machine Target resource on westus2 location." | ||
} |
46 changes: 46 additions & 0 deletions
46
specification/chaos/Chaos.Management/examples/2025-01-01/CapabilityTypes_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-01-01", | ||
"location": "westus2", | ||
"subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291", | ||
"targetTypeName": "Microsoft-VirtualMachine" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes?continuationToken=&api-version=2024-11-01-preview", | ||
"value": [ | ||
{ | ||
"name": "Shutdown-1.0", | ||
"type": "Microsoft.Chaos/locations/targetTypes/capabilityTypes", | ||
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes/Shutdown-1.0", | ||
"properties": { | ||
"description": "Shutdown an Azure Virtual Machine for a defined period of time.", | ||
"displayName": "Shutdown VM", | ||
"kind": "fault", | ||
"parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json", | ||
"publisher": "Microsoft", | ||
"runtimeProperties": { | ||
"kind": "continuous" | ||
}, | ||
"targetType": "VirtualMachine", | ||
"urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0", | ||
"azureRbacActions": [ | ||
"Microsoft.Compute/virtualMachines/poweroff/action", | ||
"Microsoft.Compute/virtualMachines/start/action", | ||
"Microsoft.Compute/virtualMachines/instanceView/read", | ||
"Microsoft.Compute/virtualMachines/read", | ||
"Microsoft.Compute/locations/operations/read" | ||
], | ||
"requiredAzureRoleDefinitionIds": [ | ||
"acdd72a7-3385-48ef-bd42-f606fba81ae0" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"operationId": "CapabilityTypes_List", | ||
"title": "List all Capability Types for a virtual machine Target resource on westus2 location." | ||
} |
18 changes: 18 additions & 0 deletions
18
specification/chaos/Chaos.Management/examples/2025-01-01/Experiments_Cancel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2025-01-01", | ||
"experimentName": "exampleExperiment", | ||
"resourceGroupName": "exampleRG", | ||
"subscriptionId": "6b052e15-03d3-4f17-b2e1-be7f07588291" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationStatus/00000000-0000-0000-0000-000000000000?api-version=2024-11-01-preview", | ||
"Location": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/myResourceGroup/providers/Microsoft.Chaos/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2024-11-01-preview" | ||
} | ||
} | ||
}, | ||
"operationId": "Experiments_Cancel", | ||
"title": "Cancel a running Experiment." | ||
} |
Oops, something went wrong.