Skip to content

Commit 5263f0b

Browse files
authored
Release chaos microsoft.chaos 2022 10 01 preview (#20610)
* Adds base for updating Microsoft.Chaos from version preview/2022-07-01-preview to version 2022-10-01-preview * Updates readme * Updates API version in new specs and examples * Updated experiment type * added newline at end of file * added suppression for patch not implemented * added supportedResourceFilters * syntax fix * removed supported filters from capabilityType * updated filter schema * PR fixes * changed modelAsString to true * updated createUpdateExperiment example
1 parent dad16c7 commit 5263f0b

36 files changed

+3714
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Chaos Management",
5+
"description": "Azure Chaos Resource Provider REST API",
6+
"version": "2022-10-01-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "Impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {
37+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities": {
38+
"get": {
39+
"description": "Get a list of Capability resources that extend a Target resource..",
40+
"tags": [
41+
"Capabilities"
42+
],
43+
"operationId": "Capabilities_List",
44+
"parameters": [
45+
{
46+
"$ref": "./types/common.json#/parameters/apiVersion"
47+
},
48+
{
49+
"$ref": "./types/common.json#/parameters/subscriptionId"
50+
},
51+
{
52+
"$ref": "./types/common.json#/parameters/resourceGroupName"
53+
},
54+
{
55+
"$ref": "./types/common.json#/parameters/parentProviderNamespace"
56+
},
57+
{
58+
"$ref": "./types/common.json#/parameters/parentResourceType"
59+
},
60+
{
61+
"$ref": "./types/common.json#/parameters/parentResourceName"
62+
},
63+
{
64+
"$ref": "./types/common.json#/parameters/targetName"
65+
},
66+
{
67+
"$ref": "./types/common.json#/parameters/continuationToken"
68+
}
69+
],
70+
"responses": {
71+
"200": {
72+
"description": "List of Capability resources returned if request was successful.",
73+
"schema": {
74+
"$ref": "./types/capabilities.json#/definitions/capabilityListResult"
75+
}
76+
},
77+
"default": {
78+
"description": "Error response returned if request was unsuccessful.",
79+
"schema": {
80+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
81+
}
82+
}
83+
},
84+
"x-ms-pageable": {
85+
"nextLinkName": "nextLink"
86+
},
87+
"x-ms-examples": {
88+
"List all Capabilities that extend a virtual machine Target resource.": {
89+
"$ref": "./examples/ListCapabilities.json"
90+
}
91+
}
92+
}
93+
},
94+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}": {
95+
"get": {
96+
"description": "Get a Capability resource that extends a Target resource.",
97+
"tags": [
98+
"Capabilities"
99+
],
100+
"operationId": "Capabilities_Get",
101+
"parameters": [
102+
{
103+
"$ref": "./types/common.json#/parameters/apiVersion"
104+
},
105+
{
106+
"$ref": "./types/common.json#/parameters/subscriptionId"
107+
},
108+
{
109+
"$ref": "./types/common.json#/parameters/resourceGroupName"
110+
},
111+
{
112+
"$ref": "./types/common.json#/parameters/parentProviderNamespace"
113+
},
114+
{
115+
"$ref": "./types/common.json#/parameters/parentResourceType"
116+
},
117+
{
118+
"$ref": "./types/common.json#/parameters/parentResourceName"
119+
},
120+
{
121+
"$ref": "./types/common.json#/parameters/targetName"
122+
},
123+
{
124+
"$ref": "./types/common.json#/parameters/capabilityName"
125+
}
126+
],
127+
"responses": {
128+
"200": {
129+
"description": "Capability resource returned if request was successful.",
130+
"schema": {
131+
"$ref": "./types/capabilities.json#/definitions/capability"
132+
}
133+
},
134+
"default": {
135+
"description": "Error response returned if request was unsuccessful.",
136+
"schema": {
137+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
138+
}
139+
}
140+
},
141+
"x-ms-examples": {
142+
"Get a Capability that extends a virtual machine Target resource.": {
143+
"$ref": "./examples/GetACapability.json"
144+
}
145+
}
146+
},
147+
"delete": {
148+
"description": "Delete a Capability that extends a Target resource.",
149+
"tags": [
150+
"Capabilities"
151+
],
152+
"operationId": "Capabilities_Delete",
153+
"parameters": [
154+
{
155+
"$ref": "./types/common.json#/parameters/apiVersion"
156+
},
157+
{
158+
"$ref": "./types/common.json#/parameters/subscriptionId"
159+
},
160+
{
161+
"$ref": "./types/common.json#/parameters/resourceGroupName"
162+
},
163+
{
164+
"$ref": "./types/common.json#/parameters/parentProviderNamespace"
165+
},
166+
{
167+
"$ref": "./types/common.json#/parameters/parentResourceType"
168+
},
169+
{
170+
"$ref": "./types/common.json#/parameters/parentResourceName"
171+
},
172+
{
173+
"$ref": "./types/common.json#/parameters/targetName"
174+
},
175+
{
176+
"$ref": "./types/common.json#/parameters/capabilityName"
177+
}
178+
],
179+
"responses": {
180+
"200": {
181+
"description": "Capability resource deletion was successful."
182+
},
183+
"204": {
184+
"description": "Capability resource deletion was successful."
185+
},
186+
"default": {
187+
"description": "Error response returned if request was unsuccessful.",
188+
"schema": {
189+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
190+
}
191+
}
192+
},
193+
"x-ms-examples": {
194+
"Delete a Capability that extends a virtual machine Target resource.": {
195+
"$ref": "./examples/DeleteACapability.json"
196+
}
197+
}
198+
},
199+
"put": {
200+
"description": "Create or update a Capability resource that extends a Target resource.",
201+
"tags": [
202+
"Capabilities"
203+
],
204+
"operationId": "Capabilities_CreateOrUpdate",
205+
"parameters": [
206+
{
207+
"$ref": "./types/common.json#/parameters/apiVersion"
208+
},
209+
{
210+
"$ref": "./types/common.json#/parameters/subscriptionId"
211+
},
212+
{
213+
"$ref": "./types/common.json#/parameters/resourceGroupName"
214+
},
215+
{
216+
"$ref": "./types/common.json#/parameters/parentProviderNamespace"
217+
},
218+
{
219+
"$ref": "./types/common.json#/parameters/parentResourceType"
220+
},
221+
{
222+
"$ref": "./types/common.json#/parameters/parentResourceName"
223+
},
224+
{
225+
"$ref": "./types/common.json#/parameters/targetName"
226+
},
227+
{
228+
"$ref": "./types/common.json#/parameters/capabilityName"
229+
},
230+
{
231+
"name": "capability",
232+
"description": "Capability resource to be created or updated.",
233+
"in": "body",
234+
"required": true,
235+
"schema": {
236+
"$ref": "./types/capabilities.json#/definitions/capability"
237+
}
238+
}
239+
],
240+
"responses": {
241+
"200": {
242+
"description": "Capability resource returned if request was successful.",
243+
"schema": {
244+
"$ref": "./types/capabilities.json#/definitions/capability"
245+
}
246+
},
247+
"default": {
248+
"description": "Error response returned if request was unsuccessful.",
249+
"schema": {
250+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
251+
}
252+
}
253+
},
254+
"x-ms-examples": {
255+
"Create/update a Capability that extends a virtual machine Target resource.": {
256+
"$ref": "./examples/CreateOrUpdateACapability.json"
257+
}
258+
}
259+
}
260+
}
261+
}
262+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Chaos Management",
5+
"description": "Azure Chaos Resource Provider REST API",
6+
"version": "2022-10-01-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "Impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {
37+
"/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes": {
38+
"get": {
39+
"description": "Get a list of Capability Type resources for given Target Type and location.",
40+
"tags": [
41+
"CapabilityTypes"
42+
],
43+
"operationId": "CapabilityTypes_List",
44+
"parameters": [
45+
{
46+
"$ref": "./types/common.json#/parameters/apiVersion"
47+
},
48+
{
49+
"$ref": "./types/common.json#/parameters/subscriptionId"
50+
},
51+
{
52+
"$ref": "./types/common.json#/parameters/locationName"
53+
},
54+
{
55+
"$ref": "./types/common.json#/parameters/targetTypeName"
56+
},
57+
{
58+
"$ref": "./types/common.json#/parameters/continuationToken"
59+
}
60+
],
61+
"responses": {
62+
"200": {
63+
"description": "List of Capability Type resources returned if request was successful.",
64+
"schema": {
65+
"$ref": "./types/capabilityTypes.json#/definitions/capabilityTypeListResult"
66+
}
67+
},
68+
"default": {
69+
"description": "Error response returned if request was unsuccessful.",
70+
"schema": {
71+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
72+
}
73+
}
74+
},
75+
"x-ms-pageable": {
76+
"nextLinkName": "nextLink"
77+
},
78+
"x-ms-examples": {
79+
"List all Capability Types for a virtual machine Target resource on westus2 location.": {
80+
"$ref": "./examples/ListCapabilityTypes.json"
81+
}
82+
}
83+
}
84+
},
85+
"/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{locationName}/targetTypes/{targetTypeName}/capabilityTypes/{capabilityTypeName}": {
86+
"get": {
87+
"description": "Get a Capability Type resource for given Target Type and location.",
88+
"tags": [
89+
"Capabilities"
90+
],
91+
"operationId": "CapabilityTypes_Get",
92+
"parameters": [
93+
{
94+
"$ref": "./types/common.json#/parameters/apiVersion"
95+
},
96+
{
97+
"$ref": "./types/common.json#/parameters/subscriptionId"
98+
},
99+
{
100+
"$ref": "./types/common.json#/parameters/locationName"
101+
},
102+
{
103+
"$ref": "./types/common.json#/parameters/targetTypeName"
104+
},
105+
{
106+
"$ref": "./types/common.json#/parameters/capabilityTypeName"
107+
}
108+
],
109+
"responses": {
110+
"200": {
111+
"description": "Capability Type resource returned if request was successful.",
112+
"schema": {
113+
"$ref": "./types/capabilityTypes.json#/definitions/capabilityType"
114+
}
115+
},
116+
"default": {
117+
"description": "Error response returned if request was unsuccessful.",
118+
"schema": {
119+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
120+
}
121+
}
122+
},
123+
"x-ms-examples": {
124+
"Get a Capability Type for a virtual machine Target resource on westus2 location.": {
125+
"$ref": "./examples/GetACapabilityType.json"
126+
}
127+
}
128+
}
129+
}
130+
}
131+
}

0 commit comments

Comments
 (0)