|
69 | 69 | "in": "path",
|
70 | 70 | "required": true,
|
71 | 71 | "type": "string",
|
72 |
| - "description": "The runbook name." |
| 72 | + "description": "The runbook name.", |
| 73 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
73 | 74 | },
|
74 | 75 | {
|
75 | 76 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
122 | 123 | "in": "path",
|
123 | 124 | "required": true,
|
124 | 125 | "type": "string",
|
125 |
| - "description": "The runbook name." |
| 126 | + "description": "The runbook name.", |
| 127 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
126 | 128 | },
|
127 | 129 | {
|
128 | 130 | "name": "runbookContent",
|
|
140 | 142 | ],
|
141 | 143 | "responses": {
|
142 | 144 | "200": {
|
143 |
| - "description": "OK" |
| 145 | + "description": "OK", |
| 146 | + "schema": { |
| 147 | + "type": "file" |
| 148 | + } |
144 | 149 | },
|
145 | 150 | "202": {
|
146 | 151 | "description": "Accepted and the operation will complete asynchronously.",
|
|
160 | 165 | },
|
161 | 166 | "x-ms-long-running-operation": true,
|
162 | 167 | "x-ms-long-running-operation-options": {
|
163 |
| - "final-state-via": "location" |
| 168 | + "final-state-via": "azure-async-operation" |
164 | 169 | }
|
165 | 170 | }
|
166 | 171 | },
|
|
194 | 199 | "in": "path",
|
195 | 200 | "required": true,
|
196 | 201 | "type": "string",
|
197 |
| - "description": "The runbook name." |
| 202 | + "description": "The runbook name.", |
| 203 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
198 | 204 | },
|
199 | 205 | {
|
200 | 206 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
246 | 252 | "in": "path",
|
247 | 253 | "required": true,
|
248 | 254 | "type": "string",
|
249 |
| - "description": "The parameters supplied to the publish runbook operation." |
| 255 | + "description": "The parameters supplied to the publish runbook operation.", |
| 256 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
250 | 257 | },
|
251 | 258 | {
|
252 | 259 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
302 | 309 | "in": "path",
|
303 | 310 | "required": true,
|
304 | 311 | "type": "string",
|
305 |
| - "description": "The runbook name." |
| 312 | + "description": "The runbook name.", |
| 313 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
306 | 314 | },
|
307 | 315 | {
|
308 | 316 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
309 | 317 | }
|
310 | 318 | ],
|
311 | 319 | "responses": {
|
312 | 320 | "200": {
|
313 |
| - "description": "OK" |
| 321 | + "description": "OK", |
| 322 | + "schema": { |
| 323 | + "$ref": "#/definitions/RunbookDraftUndoEditResult" |
| 324 | + } |
314 | 325 | },
|
315 | 326 | "default": {
|
316 | 327 | "description": "Automation error response describing why the operation failed.",
|
|
354 | 365 | "in": "path",
|
355 | 366 | "required": true,
|
356 | 367 | "type": "string",
|
357 |
| - "description": "The runbook name." |
| 368 | + "description": "The runbook name.", |
| 369 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
358 | 370 | },
|
359 | 371 | {
|
360 | 372 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
406 | 418 | "in": "path",
|
407 | 419 | "required": true,
|
408 | 420 | "type": "string",
|
409 |
| - "description": "The runbook name." |
| 421 | + "description": "The runbook name.", |
| 422 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
410 | 423 | },
|
411 | 424 | {
|
412 | 425 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
459 | 472 | "in": "path",
|
460 | 473 | "required": true,
|
461 | 474 | "type": "string",
|
462 |
| - "description": "The runbook name." |
| 475 | + "description": "The runbook name.", |
| 476 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
463 | 477 | },
|
464 | 478 | {
|
465 | 479 | "name": "parameters",
|
|
524 | 538 | "in": "path",
|
525 | 539 | "required": true,
|
526 | 540 | "type": "string",
|
527 |
| - "description": "The runbook name." |
| 541 | + "description": "The runbook name.", |
| 542 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
528 | 543 | },
|
529 | 544 | {
|
530 | 545 | "name": "parameters",
|
|
583 | 598 | "in": "path",
|
584 | 599 | "required": true,
|
585 | 600 | "type": "string",
|
586 |
| - "description": "The runbook name." |
| 601 | + "description": "The runbook name.", |
| 602 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
587 | 603 | },
|
588 | 604 | {
|
589 | 605 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
683 | 699 | "in": "path",
|
684 | 700 | "required": true,
|
685 | 701 | "type": "string",
|
686 |
| - "description": "The runbook name." |
| 702 | + "description": "The runbook name.", |
| 703 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
687 | 704 | },
|
688 | 705 | {
|
689 | 706 | "name": "jobStreamId",
|
|
742 | 759 | "in": "path",
|
743 | 760 | "required": true,
|
744 | 761 | "type": "string",
|
745 |
| - "description": "The runbook name." |
| 762 | + "description": "The runbook name.", |
| 763 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
746 | 764 | },
|
747 | 765 | {
|
748 | 766 | "name": "$filter",
|
|
804 | 822 | "in": "path",
|
805 | 823 | "required": true,
|
806 | 824 | "type": "string",
|
807 |
| - "description": "The parameters supplied to the create test job operation." |
| 825 | + "description": "The parameters supplied to the create test job operation.", |
| 826 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
808 | 827 | },
|
809 | 828 | {
|
810 | 829 | "name": "parameters",
|
|
863 | 882 | "in": "path",
|
864 | 883 | "required": true,
|
865 | 884 | "type": "string",
|
866 |
| - "description": "The runbook name." |
| 885 | + "description": "The runbook name.", |
| 886 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
867 | 887 | },
|
868 | 888 | {
|
869 | 889 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
915 | 935 | "in": "path",
|
916 | 936 | "required": true,
|
917 | 937 | "type": "string",
|
918 |
| - "description": "The runbook name." |
| 938 | + "description": "The runbook name.", |
| 939 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
919 | 940 | },
|
920 | 941 | {
|
921 | 942 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
964 | 985 | "in": "path",
|
965 | 986 | "required": true,
|
966 | 987 | "type": "string",
|
967 |
| - "description": "The runbook name." |
| 988 | + "description": "The runbook name.", |
| 989 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
968 | 990 | },
|
969 | 991 | {
|
970 | 992 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
1013 | 1035 | "in": "path",
|
1014 | 1036 | "required": true,
|
1015 | 1037 | "type": "string",
|
1016 |
| - "description": "The runbook name." |
| 1038 | + "description": "The runbook name.", |
| 1039 | + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" |
1017 | 1040 | },
|
1018 | 1041 | {
|
1019 | 1042 | "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
|
|
1035 | 1058 | },
|
1036 | 1059 | "definitions": {
|
1037 | 1060 | "JobStream": {
|
| 1061 | + "type": "object", |
1038 | 1062 | "properties": {
|
1039 | 1063 | "id": {
|
1040 | 1064 | "type": "string",
|
|
1049 | 1073 | "description": "Definition of the job stream."
|
1050 | 1074 | },
|
1051 | 1075 | "JobStreamProperties": {
|
| 1076 | + "type": "object", |
1052 | 1077 | "properties": {
|
1053 | 1078 | "jobStreamId": {
|
1054 | 1079 | "type": "string",
|
|
1097 | 1122 | "description": "Definition of the job stream."
|
1098 | 1123 | },
|
1099 | 1124 | "JobStreamListResult": {
|
| 1125 | + "type": "object", |
1100 | 1126 | "properties": {
|
1101 | 1127 | "value": {
|
1102 | 1128 | "type": "array",
|
|
1149 | 1175 | "description": "Definition of the content link."
|
1150 | 1176 | },
|
1151 | 1177 | "RunbookProperties": {
|
| 1178 | + "type": "object", |
1152 | 1179 | "properties": {
|
1153 | 1180 | "runbookType": {
|
1154 | 1181 | "type": "string",
|
|
1256 | 1283 | "description": "Definition of the runbook property type."
|
1257 | 1284 | },
|
1258 | 1285 | "Runbook": {
|
| 1286 | + "type": "object", |
1259 | 1287 | "properties": {
|
1260 | 1288 | "properties": {
|
1261 | 1289 | "$ref": "#/definitions/RunbookProperties",
|
|
1275 | 1303 | "description": "Definition of the runbook type."
|
1276 | 1304 | },
|
1277 | 1305 | "RunbookListResult": {
|
| 1306 | + "type": "object", |
1278 | 1307 | "properties": {
|
1279 | 1308 | "value": {
|
1280 | 1309 | "type": "array",
|
|
1291 | 1320 | "description": "The response model for the list runbook operation."
|
1292 | 1321 | },
|
1293 | 1322 | "RunbookCreateOrUpdateProperties": {
|
| 1323 | + "type": "object", |
1294 | 1324 | "properties": {
|
1295 | 1325 | "logVerbose": {
|
1296 | 1326 | "type": "boolean",
|
|
1342 | 1372 | "description": "The parameters supplied to the create or update runbook properties."
|
1343 | 1373 | },
|
1344 | 1374 | "RunbookCreateOrUpdateParameters": {
|
| 1375 | + "type": "object", |
1345 | 1376 | "properties": {
|
1346 | 1377 | "properties": {
|
1347 | 1378 | "$ref": "#/definitions/RunbookCreateOrUpdateProperties",
|
|
1370 | 1401 | "description": "The parameters supplied to the create or update runbook operation."
|
1371 | 1402 | },
|
1372 | 1403 | "RunbookUpdateProperties": {
|
| 1404 | + "type": "object", |
1373 | 1405 | "properties": {
|
1374 | 1406 | "description": {
|
1375 | 1407 | "type": "string",
|
|
1392 | 1424 | "description": "The parameters supplied to the update runbook properties."
|
1393 | 1425 | },
|
1394 | 1426 | "RunbookUpdateParameters": {
|
| 1427 | + "type": "object", |
1395 | 1428 | "properties": {
|
1396 | 1429 | "properties": {
|
1397 | 1430 | "$ref": "#/definitions/RunbookUpdateProperties",
|
|
1417 | 1450 | "description": "The parameters supplied to the update runbook operation."
|
1418 | 1451 | },
|
1419 | 1452 | "RunbookDraftUndoEditResult": {
|
| 1453 | + "type": "object", |
1420 | 1454 | "properties": {
|
1421 | 1455 | "statusCode": {
|
1422 | 1456 | "type": "string",
|
|
1481 | 1515 | "description": "The response model for the undo edit runbook operation."
|
1482 | 1516 | },
|
1483 | 1517 | "RunbookDraft": {
|
| 1518 | + "type": "object", |
1484 | 1519 | "properties": {
|
1485 | 1520 | "inEdit": {
|
1486 | 1521 | "type": "boolean",
|
|
1519 | 1554 | }
|
1520 | 1555 | },
|
1521 | 1556 | "RunbookParameter": {
|
| 1557 | + "type": "object", |
1522 | 1558 | "properties": {
|
1523 | 1559 | "type": {
|
1524 | 1560 | "type": "string",
|
|
1541 | 1577 | "description": "Definition of the runbook parameter type."
|
1542 | 1578 | },
|
1543 | 1579 | "TestJobCreateParameters": {
|
| 1580 | + "type": "object", |
1544 | 1581 | "properties": {
|
1545 | 1582 | "parameters": {
|
1546 | 1583 | "type": "object",
|
|
1557 | 1594 | "description": "The parameters supplied to the create test job operation."
|
1558 | 1595 | },
|
1559 | 1596 | "TestJob": {
|
| 1597 | + "type": "object", |
1560 | 1598 | "x-ms-mutability": [
|
1561 | 1599 | "read",
|
1562 | 1600 | "create"
|
|
1624 | 1662 | "description": "Definition of the test job."
|
1625 | 1663 | },
|
1626 | 1664 | "RunbookCreateOrUpdateDraftProperties": {
|
| 1665 | + "type": "object", |
1627 | 1666 | "properties": {
|
1628 | 1667 | "logVerbose": {
|
1629 | 1668 | "type": "boolean",
|
|
1672 | 1711 | "description": "The parameters supplied to the create or update draft runbook properties."
|
1673 | 1712 | },
|
1674 | 1713 | "RunbookCreateOrUpdateDraftParameters": {
|
| 1714 | + "type": "object", |
1675 | 1715 | "properties": {
|
1676 | 1716 | "runbookContent": {
|
1677 | 1717 | "type": "string",
|
|
0 commit comments