Skip to content

Commit 5e492b9

Browse files
author
Sushil Upadhyay
committed
Fixed Avocado Errors
1 parent f43eb6c commit 5e492b9

File tree

1 file changed

+96
-0
lines changed
  • specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08

1 file changed

+96
-0
lines changed

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

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,60 @@
7171
}
7272
}
7373
}
74+
},
75+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent": {
76+
"post": {
77+
"tags": [
78+
"Operations"
79+
],
80+
"description": "Post operation to serialize or deserialize GraphRunbookContent",
81+
"operationId": "convertGraphRunbookContent",
82+
"x-ms-examples": {
83+
"Get Graphical raw runbook content from graphical runbook JSON object": {
84+
"$ref": "./examples/serializeGraphRunbookContent.json"
85+
},
86+
"Get Graphical runbook content from raw content": {
87+
"$ref": "./examples/deserializeGraphRunbookContent.json"
88+
}
89+
},
90+
"parameters": [
91+
{
92+
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
93+
},
94+
{
95+
"$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter"
96+
},
97+
{
98+
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
99+
},
100+
{
101+
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
102+
},
103+
{
104+
"name": "parameters",
105+
"in": "body",
106+
"description": "Input data describing the graphical runbook.",
107+
"required": true,
108+
"schema": {
109+
"$ref": "#/definitions/GraphicalRunbookContent"
110+
}
111+
}
112+
],
113+
"responses": {
114+
"200": {
115+
"description": "OK",
116+
"schema": {
117+
"$ref": "#/definitions/GraphicalRunbookContent"
118+
}
119+
},
120+
"default": {
121+
"description": "Automation error response describing why the operation failed.",
122+
"schema": {
123+
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
124+
}
125+
}
126+
}
127+
}
74128
}
75129
},
76130
"definitions": {
@@ -222,6 +276,48 @@
222276
"description": "The display name of the dimension."
223277
}
224278
}
279+
},
280+
"GraphicalRunbookContent": {
281+
"type": "object",
282+
"description": "Graphical Runbook Content",
283+
"properties": {
284+
"rawContent": {
285+
"x-nullable": true,
286+
"description": "Raw graphical Runbook content.",
287+
"$ref": "#/definitions/RawGraphicalRunbookContent"
288+
},
289+
"graphRunbookJson": {
290+
"type": "string",
291+
"x-nullable": true,
292+
"description": "Graphical Runbook content as JSON"
293+
}
294+
}
295+
},
296+
"RawGraphicalRunbookContent": {
297+
"type": "object",
298+
"description": "Raw Graphical Runbook content",
299+
"properties": {
300+
"schemaVersion": {
301+
"type": "string",
302+
"description": "Schema version of the serializer."
303+
},
304+
"runbookDefinition": {
305+
"type": "string",
306+
"description": "Serialized Graphical runbook"
307+
},
308+
"runbookType": {
309+
"type": "string",
310+
"description": "Runbook Type",
311+
"enum": [
312+
"GraphPowerShell",
313+
"GraphPowerShellWorkflow"
314+
],
315+
"x-ms-enum": {
316+
"name": "GraphRunbookType",
317+
"modelAsString": true
318+
}
319+
}
320+
}
225321
}
226322
}
227323
}

0 commit comments

Comments
 (0)