Skip to content

Commit 0f161c7

Browse files
sushil490023Sushil Upadhyay
and
Sushil Upadhyay
authored
Created New Stable API Version for python3 Runbook APIs (#19771)
* Adding new API swagger for Python3 APIs * Adding new API swagger for Python3 APIs * Fixed Ref versioning from v1 to v3 in API Version 2022-08-08 * Reverting Ref versioning from v3 to v1 in API Version 2022-08-08 * Fixed Lint Diff errors * Fixed Lint Diff errors * Fixed Model Verification error * Unified ModuleProperties Def in API 2022-08-08 * Fixed Model Verification errors * Fixed Model Verification errors. * Fixed Model Verification errors.. * Fixed Model Verification errors... * Fixed Model Verification errors.... * Fixed Model Verification errors.... * Fixed Model Verification error.. * Fixed Lint diff Verification error. * Add Operation API Swagger.. * Fixed Lint diff Verification error... * Add Operation API Swagger examples.. * Fixed Lint diff Verification error... * Add Missing API Swaggers * Fixed Lint diff Verification error... * Add Missing API Swaggers * Fixed Lint diff Verification error... * Fixed Avocado Errors * Fixed Avocado Errors Co-authored-by: Sushil Upadhyay <[email protected]>
1 parent de0f7de commit 0f161c7

File tree

164 files changed

+35610
-1
lines changed

Some content is hidden

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

164 files changed

+35610
-1
lines changed

specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/account.json

+964
Large diffs are not rendered by default.

specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/certificate.json

+452
Large diffs are not rendered by default.

specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/connection.json

+466
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,387 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "AutomationManagement",
5+
"version": "2022-08-08",
6+
"x-ms-code-generation-settings": {
7+
"useDateTimeOffset": true
8+
}
9+
},
10+
"host": "management.azure.com",
11+
"schemes": [
12+
"https"
13+
],
14+
"consumes": [
15+
"application/json"
16+
],
17+
"produces": [
18+
"application/json"
19+
],
20+
"security": [
21+
{
22+
"azure_auth": [
23+
"user_impersonation"
24+
]
25+
}
26+
],
27+
"securityDefinitions": {
28+
"azure_auth": {
29+
"type": "oauth2",
30+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
31+
"flow": "implicit",
32+
"description": "Azure Active Directory OAuth2 Flow",
33+
"scopes": {
34+
"user_impersonation": "impersonate your user account"
35+
}
36+
}
37+
},
38+
"paths": {
39+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}": {
40+
"delete": {
41+
"tags": [
42+
"ConnectionType"
43+
],
44+
"operationId": "ConnectionType_Delete",
45+
"description": "Delete the connection type.",
46+
"externalDocs": {
47+
"url": "http://aka.ms/azureautomationsdk/connectiontypeoperations"
48+
},
49+
"x-ms-examples": {
50+
"Delete an existing connection type": {
51+
"$ref": "./examples/deleteConnectionType.json"
52+
}
53+
},
54+
"parameters": [
55+
{
56+
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
57+
},
58+
{
59+
"$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter"
60+
},
61+
{
62+
"name": "connectionTypeName",
63+
"in": "path",
64+
"required": true,
65+
"type": "string",
66+
"description": "The name of connection type."
67+
},
68+
{
69+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
70+
},
71+
{
72+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
73+
}
74+
],
75+
"responses": {
76+
"200": {
77+
"description": "OK"
78+
},
79+
"204": {
80+
"description": "No Content"
81+
},
82+
"default": {
83+
"description": "Automation error response describing why the operation failed.",
84+
"schema": {
85+
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
86+
}
87+
}
88+
}
89+
},
90+
"get": {
91+
"tags": [
92+
"ConnectionType"
93+
],
94+
"operationId": "ConnectionType_Get",
95+
"description": "Retrieve the connection type identified by connection type name.",
96+
"externalDocs": {
97+
"url": "http://aka.ms/azureautomationsdk/connectiontypeoperations"
98+
},
99+
"x-ms-examples": {
100+
"Get connection type": {
101+
"$ref": "./examples/getConnectionType.json"
102+
}
103+
},
104+
"parameters": [
105+
{
106+
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
107+
},
108+
{
109+
"$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter"
110+
},
111+
{
112+
"name": "connectionTypeName",
113+
"in": "path",
114+
"required": true,
115+
"type": "string",
116+
"description": "The name of connection type."
117+
},
118+
{
119+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
120+
},
121+
{
122+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
123+
}
124+
],
125+
"responses": {
126+
"200": {
127+
"description": "OK",
128+
"schema": {
129+
"$ref": "#/definitions/ConnectionType"
130+
}
131+
},
132+
"default": {
133+
"description": "Automation error response describing why the operation failed.",
134+
"schema": {
135+
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
136+
}
137+
}
138+
}
139+
},
140+
"put": {
141+
"tags": [
142+
"ConnectionType"
143+
],
144+
"operationId": "ConnectionType_CreateOrUpdate",
145+
"description": "Create a connection type.",
146+
"externalDocs": {
147+
"url": "http://aka.ms/azureautomationsdk/connectiontypeoperations"
148+
},
149+
"x-ms-examples": {
150+
"Create or update connection type": {
151+
"$ref": "./examples/createOrUpdateConnectionType.json"
152+
}
153+
},
154+
"parameters": [
155+
{
156+
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
157+
},
158+
{
159+
"$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter"
160+
},
161+
{
162+
"name": "connectionTypeName",
163+
"in": "path",
164+
"required": true,
165+
"type": "string",
166+
"description": "The parameters supplied to the create or update connection type operation."
167+
},
168+
{
169+
"name": "parameters",
170+
"in": "body",
171+
"required": true,
172+
"schema": {
173+
"$ref": "#/definitions/ConnectionTypeCreateOrUpdateParameters"
174+
},
175+
"description": "The parameters supplied to the create or update connection type operation."
176+
},
177+
{
178+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
179+
},
180+
{
181+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
182+
}
183+
],
184+
"responses": {
185+
"201": {
186+
"description": "Created",
187+
"schema": {
188+
"$ref": "#/definitions/ConnectionType"
189+
}
190+
},
191+
"default": {
192+
"description": "Automation error response describing why the operation failed.",
193+
"schema": {
194+
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
195+
}
196+
}
197+
}
198+
}
199+
},
200+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes": {
201+
"get": {
202+
"tags": [
203+
"ConnectionType"
204+
],
205+
"operationId": "ConnectionType_ListByAutomationAccount",
206+
"description": "Retrieve a list of connection types.",
207+
"externalDocs": {
208+
"url": "http://aka.ms/azureautomationsdk/connectiontypeoperations"
209+
},
210+
"x-ms-examples": {
211+
"Get connection types, first 100": {
212+
"$ref": "./examples/getAllConnectionTypes_First100.json"
213+
},
214+
"Get connection types, next 100": {
215+
"$ref": "./examples/getAllConnectionTypes_Next100.json"
216+
}
217+
},
218+
"parameters": [
219+
{
220+
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
221+
},
222+
{
223+
"$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter"
224+
},
225+
{
226+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
227+
},
228+
{
229+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
230+
}
231+
],
232+
"responses": {
233+
"200": {
234+
"description": "OK",
235+
"schema": {
236+
"$ref": "#/definitions/ConnectionTypeListResult"
237+
}
238+
},
239+
"default": {
240+
"description": "Automation error response describing why the operation failed.",
241+
"schema": {
242+
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
243+
}
244+
}
245+
},
246+
"x-ms-pageable": {
247+
"nextLinkName": "nextLink"
248+
}
249+
}
250+
}
251+
},
252+
"definitions": {
253+
"FieldDefinition": {
254+
"properties": {
255+
"isEncrypted": {
256+
"type": "boolean",
257+
"description": "Gets or sets the isEncrypted flag of the connection field definition."
258+
},
259+
"isOptional": {
260+
"type": "boolean",
261+
"description": "Gets or sets the isOptional flag of the connection field definition."
262+
},
263+
"type": {
264+
"type": "string",
265+
"description": "Gets or sets the type of the connection field definition."
266+
}
267+
},
268+
"required": [
269+
"type"
270+
],
271+
"description": "Definition of the connection fields."
272+
},
273+
"ConnectionTypeProperties": {
274+
"properties": {
275+
"isGlobal": {
276+
"type": "boolean",
277+
"description": "Gets or sets a Boolean value to indicate if the connection type is global."
278+
},
279+
"fieldDefinitions": {
280+
"type": "object",
281+
"additionalProperties": {
282+
"$ref": "#/definitions/FieldDefinition"
283+
},
284+
"readOnly": true,
285+
"description": "Gets the field definitions of the connection type."
286+
},
287+
"creationTime": {
288+
"type": "string",
289+
"format": "date-time",
290+
"readOnly": true,
291+
"description": "Gets the creation time.",
292+
"x-nullable": false
293+
},
294+
"lastModifiedTime": {
295+
"type": "string",
296+
"format": "date-time",
297+
"description": "Gets or sets the last modified time.",
298+
"x-nullable": false
299+
},
300+
"description": {
301+
"type": "string",
302+
"description": "Gets or sets the description."
303+
}
304+
},
305+
"description": "Properties of the connection type."
306+
},
307+
"ConnectionType": {
308+
"properties": {
309+
"id": {
310+
"type": "string",
311+
"readOnly": true,
312+
"description": "Gets the id of the resource."
313+
},
314+
"name": {
315+
"type": "string",
316+
"readOnly": true,
317+
"description": "Gets the name of the connection type."
318+
},
319+
"type": {
320+
"type": "string",
321+
"readOnly": true,
322+
"description": "Resource type"
323+
},
324+
"properties": {
325+
"$ref": "#/definitions/ConnectionTypeProperties",
326+
"x-ms-client-flatten": true,
327+
"description": "Gets or sets the properties of the connection type."
328+
}
329+
},
330+
"description": "Definition of the connection type."
331+
},
332+
"ConnectionTypeListResult": {
333+
"properties": {
334+
"value": {
335+
"type": "array",
336+
"items": {
337+
"$ref": "#/definitions/ConnectionType"
338+
},
339+
"description": "Gets or sets a list of connection types."
340+
},
341+
"nextLink": {
342+
"type": "string",
343+
"description": "Gets or sets the next link."
344+
}
345+
},
346+
"description": "The response model for the list connection type operation."
347+
},
348+
"ConnectionTypeCreateOrUpdateParameters": {
349+
"properties": {
350+
"name": {
351+
"type": "string",
352+
"description": "Gets or sets the name of the connection type."
353+
},
354+
"properties": {
355+
"$ref": "#/definitions/ConnectionTypeCreateOrUpdateProperties",
356+
"x-ms-client-flatten": true,
357+
"description": "Gets or sets the value of the connection type."
358+
}
359+
},
360+
"required": [
361+
"name",
362+
"properties"
363+
],
364+
"description": "The parameters supplied to the create or update connection type operation."
365+
},
366+
"ConnectionTypeCreateOrUpdateProperties": {
367+
"properties": {
368+
"isGlobal": {
369+
"type": "boolean",
370+
"description": "Gets or sets a Boolean value to indicate if the connection type is global."
371+
},
372+
"fieldDefinitions": {
373+
"type": "object",
374+
"additionalProperties": {
375+
"$ref": "#/definitions/FieldDefinition"
376+
},
377+
"description": "Gets or sets the field definitions of the connection type."
378+
}
379+
},
380+
"required": [
381+
"fieldDefinitions"
382+
],
383+
"description": "The properties of the create connection type."
384+
}
385+
},
386+
"parameters": {}
387+
}

0 commit comments

Comments
 (0)