|
71 | 71 | }
|
72 | 72 | }
|
73 | 73 | }
|
| 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 | + } |
74 | 128 | }
|
75 | 129 | },
|
76 | 130 | "definitions": {
|
|
222 | 276 | "description": "The display name of the dimension."
|
223 | 277 | }
|
224 | 278 | }
|
| 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 | + } |
225 | 321 | }
|
226 | 322 | }
|
227 | 323 | }
|
0 commit comments