Skip to content

Commit 202149c

Browse files
ruslanyxwang971erich-wangJuliehzlmichaelkira
authored
Adding Microsoft.App stable version 2022-03-01 (Azure#18356)
* Adds base for updating Microsoft.App from version preview/2022-01-01-preview to version 2022-03-01 * Updates readme * Updates API version in new specs and examples * refactore properties (Azure#18137) * [Non Break Change]Update to use easy auth v2 same as Web App (Azure#18143) (Azure#18217) * Update auth config to use the same auth config in App Service * Update for spell check * Remove TokenStore/ConfigFilePath as not supported for ContainerApp * Copy AuthConfig from previous version (Azure#18221) * Copy updated AuthConfig from previous version * Add suppression * Add API for checkNameAvailability in 2022-03-01 (Azure#18204) * add API * update * fix * update * update * Add label property (Azure#18280) * Add label property * fix prettier Co-authored-by: Juliehzl <[email protected]> * refactor sc properties in 03-01 (Azure#18343) * refactor sc properties in 03-01 * Revert "refactore properties (Azure#18137)" This reverts commit 4fe86bce74ae6a3566388d0a1037cb35be8a23e7. * add odata query (Azure#18364) * Updating patch spec. (Azure#18354) * Updating patch spec. * Fix linter * prettier fix * Adding x-ms-long-running-operation Co-authored-by: Ruslan Yakushev 🚴 <[email protected]> Co-authored-by: Xingjian Wang <[email protected]> Co-authored-by: erich-wang <[email protected]> Co-authored-by: Zunli Hu <[email protected]> Co-authored-by: Michael Dai <[email protected]> Co-authored-by: Vaclav Turecek <[email protected]>
1 parent c277c1b commit 202149c

File tree

55 files changed

+7170
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+7170
-4
lines changed

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/AuthConfigs.json

Lines changed: 980 additions & 0 deletions
Large diffs are not rendered by default.

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/CommonDefinitions.json

Lines changed: 548 additions & 0 deletions
Large diffs are not rendered by default.

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerApps.json

Lines changed: 862 additions & 0 deletions
Large diffs are not rendered by default.

specification/app/resource-manager/Microsoft.App/stable/2022-03-01/ContainerAppsRevisions.json

Lines changed: 596 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 356 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,356 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2022-03-01",
5+
"title": "ContainerApps API Client"
6+
},
7+
"host": "management.azure.com",
8+
"schemes": [
9+
"https"
10+
],
11+
"consumes": [
12+
"application/json"
13+
],
14+
"produces": [
15+
"application/json"
16+
],
17+
"paths": {
18+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents": {
19+
"get": {
20+
"tags": [
21+
"DaprComponents"
22+
],
23+
"summary": "Get the Dapr Components for a managed environment.",
24+
"operationId": "DaprComponents_List",
25+
"parameters": [
26+
{
27+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
28+
},
29+
{
30+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
31+
},
32+
{
33+
"name": "environmentName",
34+
"in": "path",
35+
"description": "Name of the Managed Environment.",
36+
"required": true,
37+
"type": "string"
38+
},
39+
{
40+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
41+
}
42+
],
43+
"responses": {
44+
"200": {
45+
"description": "OK",
46+
"schema": {
47+
"$ref": "#/definitions/DaprComponentsCollection"
48+
}
49+
},
50+
"default": {
51+
"description": "Common error response.",
52+
"schema": {
53+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
54+
}
55+
}
56+
},
57+
"x-ms-examples": {
58+
"List Dapr Components": {
59+
"$ref": "./examples/DaprComponents_List.json"
60+
}
61+
},
62+
"x-ms-pageable": {
63+
"nextLinkName": "nextLink"
64+
}
65+
}
66+
},
67+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}": {
68+
"get": {
69+
"tags": [
70+
"DaprComponents"
71+
],
72+
"summary": "Get a dapr component.",
73+
"operationId": "DaprComponents_Get",
74+
"parameters": [
75+
{
76+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
77+
},
78+
{
79+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
80+
},
81+
{
82+
"name": "environmentName",
83+
"in": "path",
84+
"description": "Name of the Managed Environment.",
85+
"required": true,
86+
"type": "string"
87+
},
88+
{
89+
"name": "name",
90+
"in": "path",
91+
"description": "Name of the Dapr Component.",
92+
"required": true,
93+
"type": "string"
94+
},
95+
{
96+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
97+
}
98+
],
99+
"responses": {
100+
"200": {
101+
"description": "OK",
102+
"schema": {
103+
"$ref": "#/definitions/DaprComponent"
104+
}
105+
},
106+
"default": {
107+
"description": "Common error response.",
108+
"schema": {
109+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
110+
}
111+
}
112+
},
113+
"x-ms-examples": {
114+
"Get Dapr Component": {
115+
"$ref": "./examples/DaprComponents_Get.json"
116+
}
117+
}
118+
},
119+
"put": {
120+
"tags": [
121+
"DaprComponents"
122+
],
123+
"summary": "Creates or updates a Dapr Component.",
124+
"description": "Creates or updates a Dapr Component in a Managed Environment.",
125+
"operationId": "DaprComponents_CreateOrUpdate",
126+
"parameters": [
127+
{
128+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
129+
},
130+
{
131+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
132+
},
133+
{
134+
"name": "environmentName",
135+
"in": "path",
136+
"description": "Name of the Managed Environment.",
137+
"required": true,
138+
"type": "string"
139+
},
140+
{
141+
"name": "name",
142+
"in": "path",
143+
"description": "Name of the Dapr Component.",
144+
"required": true,
145+
"type": "string"
146+
},
147+
{
148+
"name": "daprComponentEnvelope",
149+
"in": "body",
150+
"description": "Configuration details of the Dapr Component.",
151+
"required": true,
152+
"schema": {
153+
"$ref": "#/definitions/DaprComponent"
154+
}
155+
},
156+
{
157+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
158+
}
159+
],
160+
"responses": {
161+
"200": {
162+
"description": "OK",
163+
"schema": {
164+
"$ref": "#/definitions/DaprComponent"
165+
}
166+
},
167+
"default": {
168+
"description": "Common error response.",
169+
"schema": {
170+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
171+
}
172+
}
173+
},
174+
"x-ms-long-running-operation": false,
175+
"x-ms-examples": {
176+
"Create or update dapr component": {
177+
"$ref": "./examples/DaprComponents_CreateOrUpdate.json"
178+
}
179+
}
180+
},
181+
"delete": {
182+
"tags": [
183+
"DaprComponents"
184+
],
185+
"summary": "Delete a Dapr Component.",
186+
"description": "Delete a Dapr Component from a Managed Environment.",
187+
"operationId": "DaprComponents_Delete",
188+
"parameters": [
189+
{
190+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
191+
},
192+
{
193+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
194+
},
195+
{
196+
"name": "environmentName",
197+
"in": "path",
198+
"description": "Name of the Managed Environment.",
199+
"required": true,
200+
"type": "string"
201+
},
202+
{
203+
"name": "name",
204+
"in": "path",
205+
"description": "Name of the Dapr Component.",
206+
"required": true,
207+
"type": "string"
208+
},
209+
{
210+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
211+
}
212+
],
213+
"responses": {
214+
"200": {
215+
"description": "Delete operation completed"
216+
},
217+
"204": {
218+
"description": "Environment does not exist"
219+
},
220+
"default": {
221+
"description": "Common error response.",
222+
"schema": {
223+
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
224+
}
225+
}
226+
},
227+
"x-ms-examples": {
228+
"Delete dapr component": {
229+
"$ref": "./examples/DaprComponents_Delete.json"
230+
}
231+
},
232+
"x-ms-long-running-operation": false
233+
}
234+
}
235+
},
236+
"definitions": {
237+
"DaprComponentsCollection": {
238+
"description": "Dapr Components ARM resource.",
239+
"required": [
240+
"value"
241+
],
242+
"type": "object",
243+
"properties": {
244+
"value": {
245+
"description": "Collection of resources.",
246+
"type": "array",
247+
"items": {
248+
"$ref": "#/definitions/DaprComponent"
249+
}
250+
},
251+
"nextLink": {
252+
"description": "Link to next page of resources.",
253+
"type": "string",
254+
"readOnly": true
255+
}
256+
}
257+
},
258+
"DaprComponent": {
259+
"description": "Dapr Component.",
260+
"type": "object",
261+
"allOf": [
262+
{
263+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
264+
}
265+
],
266+
"properties": {
267+
"properties": {
268+
"description": "Dapr Component resource specific properties",
269+
"type": "object",
270+
"properties": {
271+
"componentType": {
272+
"description": "Component type",
273+
"type": "string"
274+
},
275+
"version": {
276+
"description": "Component version",
277+
"type": "string"
278+
},
279+
"ignoreErrors": {
280+
"description": "Boolean describing if the component errors are ignores",
281+
"type": "boolean"
282+
},
283+
"initTimeout": {
284+
"description": "Initialization timeout",
285+
"type": "string"
286+
},
287+
"secrets": {
288+
"description": "Collection of secrets used by a Dapr component",
289+
"type": "array",
290+
"items": {
291+
"$ref": "./CommonDefinitions.json#/definitions/Secret"
292+
},
293+
"x-ms-identifiers": [
294+
"name"
295+
]
296+
},
297+
"metadata": {
298+
"description": "Component metadata",
299+
"type": "array",
300+
"items": {
301+
"$ref": "#/definitions/DaprMetadata"
302+
},
303+
"x-ms-identifiers": [
304+
"name"
305+
]
306+
},
307+
"scopes": {
308+
"description": "Names of container apps that can use this Dapr component",
309+
"type": "array",
310+
"items": {
311+
"type": "string"
312+
}
313+
}
314+
},
315+
"x-ms-client-flatten": true
316+
}
317+
}
318+
},
319+
"DaprMetadata": {
320+
"description": "Dapr component metadata.",
321+
"type": "object",
322+
"properties": {
323+
"name": {
324+
"description": "Metadata property name.",
325+
"type": "string"
326+
},
327+
"value": {
328+
"description": "Metadata property value.",
329+
"type": "string"
330+
},
331+
"secretRef": {
332+
"description": "Name of the Dapr Component secret from which to pull the metadata property value.",
333+
"type": "string"
334+
}
335+
}
336+
}
337+
},
338+
"securityDefinitions": {
339+
"azure_auth": {
340+
"type": "oauth2",
341+
"description": "Azure Active Directory OAuth2 Flow",
342+
"flow": "implicit",
343+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
344+
"scopes": {
345+
"user_impersonation": "impersonate your user account"
346+
}
347+
}
348+
},
349+
"security": [
350+
{
351+
"azure_auth": [
352+
"user_impersonation"
353+
]
354+
}
355+
]
356+
}

0 commit comments

Comments
 (0)