From cb24b30a43cc6e67d20c3ea02fee8066b718fad2 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 14 Oct 2022 11:48:23 +0530 Subject: [PATCH 1/8] Added Response Schema for Runbook Operation --- .../Microsoft.Automation/stable/2022-08-08/runbook.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json index 76fa2eb51e55..a9ba7fec9bd8 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json @@ -140,7 +140,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "type": "file" + } }, "202": { "description": "Accepted and the operation will complete asynchronously.", From 09f78697bb43bc125e3dc85818f721b9ef9c9d0e Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 14 Oct 2022 14:45:53 +0530 Subject: [PATCH 2/8] Update resopnse of Runbook Operation --- .../stable/2022-08-08/runbook.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json index a9ba7fec9bd8..e76ac14eb89d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json @@ -161,10 +161,7 @@ } } }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "location" - } + "x-ms-long-running-operation": true } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft": { @@ -313,7 +310,10 @@ ], "responses": { "200": { - "description": "OK" + "description": "OK", + "schema": { + "$ref": "#/definitions/RunbookDraftUndoEditResult" + } }, "default": { "description": "Automation error response describing why the operation failed.", From 404cf54ece4a68ec0403a6afb94a16de72d77cc3 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 14 Oct 2022 15:26:11 +0530 Subject: [PATCH 3/8] Updated example to fix Avacado errors --- .../examples/undoDraftEditToLastKnownPublishedState.json | 4 +++- .../2022-08-08/examples/replaceRunbookDraftContent.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json index 25db3cea3728..c493a2b56bd9 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/undoDraftEditToLastKnownPublishedState.json @@ -7,6 +7,8 @@ "api-version": "2018-06-30" }, "responses": { - "200": {} + "200": { + "body": {} + } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/replaceRunbookDraftContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/replaceRunbookDraftContent.json index 7662c3270b27..aba8ecc2658c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/replaceRunbookDraftContent.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/replaceRunbookDraftContent.json @@ -13,6 +13,8 @@ "Location": "https://management.azure.com/subscriptions/subid/resourcegroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/draft/content/operationResults/9bd70be2-cf73-49b4-9467-5261d48c2b3d?api-version=2019-06-01" } }, - "200": {} + "200": { + "body": {} + } } } From 96edee59a8529b98e621b26dccf217646d7b2359 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 14 Oct 2022 15:41:31 +0530 Subject: [PATCH 4/8] Update resopnse of Runbook Operation --- .../2018-06-30/examples/replaceRunbookDraftContent.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/replaceRunbookDraftContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/replaceRunbookDraftContent.json index e46d7b30ddf8..289ce4e33b72 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/replaceRunbookDraftContent.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/replaceRunbookDraftContent.json @@ -11,9 +11,10 @@ "202": { "headers": { "Location": "https://management.azure.com/subscriptions/subid/resourcegroups/rg/providers/Microsoft.Automation/automationAccounts/ContoseAutomationAccount/runbooks/Get-AzureVMTutorial/draft/content/operationResults/9bd70be2-cf73-49b4-9467-5261d48c2b3d?api-version=2015-10-31" - }, - "body": {} + } }, - "200": {} + "200": { + "body": {} + } } } From 3fc17beaf27eea739ebc584c79e1fcb4ffed4643 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 14 Oct 2022 15:48:52 +0530 Subject: [PATCH 5/8] Updated example to fix Avacado errors --- .../stable/2018-06-30/examples/updateRunbook.json | 3 ++- .../examples/undoDraftEditToLastKnownPublishedState.json | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json index b07209624795..89a16481dc7e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updateRunbook.json @@ -39,7 +39,8 @@ "creationTime": "2017-03-30T21:01:33.777+00:00", "lastModifiedBy": "myEmaild@microsoft.com", "lastModifiedTime": "2017-03-30T21:01:39.45+00:00" - } + }, + "body": {} } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/undoDraftEditToLastKnownPublishedState.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/undoDraftEditToLastKnownPublishedState.json index 91dcb89c34e2..e6a50bfcf42c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/undoDraftEditToLastKnownPublishedState.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/examples/undoDraftEditToLastKnownPublishedState.json @@ -7,6 +7,8 @@ "api-version": "2022-08-08" }, "responses": { - "200": {} + "200": { + "body": {} + } } } From d00eb6f32e44c41ea791905c20d768e3df02aec1 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Wed, 19 Oct 2022 12:46:12 +0530 Subject: [PATCH 6/8] Fix Lint diff errors --- .../stable/2022-08-08/runbook.json | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json index e76ac14eb89d..d1df2bda8eb0 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json @@ -161,7 +161,10 @@ } } }, - "x-ms-long-running-operation": true + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft": { @@ -1038,6 +1041,7 @@ }, "definitions": { "JobStream": { + "type": "object", "properties": { "id": { "type": "string", @@ -1052,6 +1056,7 @@ "description": "Definition of the job stream." }, "JobStreamProperties": { + "type": "object", "properties": { "jobStreamId": { "type": "string", @@ -1100,6 +1105,7 @@ "description": "Definition of the job stream." }, "JobStreamListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1152,6 +1158,7 @@ "description": "Definition of the content link." }, "RunbookProperties": { + "type": "object", "properties": { "runbookType": { "type": "string", @@ -1259,6 +1266,7 @@ "description": "Definition of the runbook property type." }, "Runbook": { + "type": "object", "properties": { "properties": { "$ref": "#/definitions/RunbookProperties", @@ -1278,6 +1286,7 @@ "description": "Definition of the runbook type." }, "RunbookListResult": { + "type": "object", "properties": { "value": { "type": "array", @@ -1294,6 +1303,7 @@ "description": "The response model for the list runbook operation." }, "RunbookCreateOrUpdateProperties": { + "type": "object", "properties": { "logVerbose": { "type": "boolean", @@ -1345,6 +1355,7 @@ "description": "The parameters supplied to the create or update runbook properties." }, "RunbookCreateOrUpdateParameters": { + "type": "object", "properties": { "properties": { "$ref": "#/definitions/RunbookCreateOrUpdateProperties", @@ -1373,6 +1384,7 @@ "description": "The parameters supplied to the create or update runbook operation." }, "RunbookUpdateProperties": { + "type": "object", "properties": { "description": { "type": "string", @@ -1395,6 +1407,7 @@ "description": "The parameters supplied to the update runbook properties." }, "RunbookUpdateParameters": { + "type": "object", "properties": { "properties": { "$ref": "#/definitions/RunbookUpdateProperties", @@ -1420,6 +1433,7 @@ "description": "The parameters supplied to the update runbook operation." }, "RunbookDraftUndoEditResult": { + "type": "object", "properties": { "statusCode": { "type": "string", @@ -1484,6 +1498,7 @@ "description": "The response model for the undo edit runbook operation." }, "RunbookDraft": { + "type": "object", "properties": { "inEdit": { "type": "boolean", @@ -1522,6 +1537,7 @@ } }, "RunbookParameter": { + "type": "object", "properties": { "type": { "type": "string", @@ -1544,6 +1560,7 @@ "description": "Definition of the runbook parameter type." }, "TestJobCreateParameters": { + "type": "object", "properties": { "parameters": { "type": "object", @@ -1560,6 +1577,7 @@ "description": "The parameters supplied to the create test job operation." }, "TestJob": { + "type": "object", "x-ms-mutability": [ "read", "create" @@ -1627,6 +1645,7 @@ "description": "Definition of the test job." }, "RunbookCreateOrUpdateDraftProperties": { + "type": "object", "properties": { "logVerbose": { "type": "boolean", @@ -1675,6 +1694,7 @@ "description": "The parameters supplied to the create or update draft runbook properties." }, "RunbookCreateOrUpdateDraftParameters": { + "type": "object", "properties": { "runbookContent": { "type": "string", From a70ff7321e7aa33dc51849be5ef96e4968c8c2df Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 28 Oct 2022 12:08:01 +0530 Subject: [PATCH 7/8] Fix Avacado errors --- .../stable/2022-08-08/runbook.json | 52 +++++++++++++------ .../automation/resource-manager/readme.md | 6 +-- 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json index d1df2bda8eb0..8e688f9879e1 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json @@ -69,7 +69,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -122,7 +123,9 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" + }, { "name": "runbookContent", @@ -197,7 +200,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -249,7 +253,8 @@ "in": "path", "required": true, "type": "string", - "description": "The parameters supplied to the publish runbook operation." + "description": "The parameters supplied to the publish runbook operation.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -305,7 +310,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -360,7 +366,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -412,7 +419,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -465,7 +473,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "name": "parameters", @@ -530,7 +539,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "name": "parameters", @@ -589,7 +599,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -689,7 +700,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "name": "jobStreamId", @@ -748,7 +760,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "name": "$filter", @@ -810,7 +823,8 @@ "in": "path", "required": true, "type": "string", - "description": "The parameters supplied to the create test job operation." + "description": "The parameters supplied to the create test job operation.", + "pattern": "^[a-z][a-z0-9]*$" }, { "name": "parameters", @@ -869,7 +883,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -921,7 +936,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -970,7 +986,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -1019,7 +1036,8 @@ "in": "path", "required": true, "type": "string", - "description": "The runbook name." + "description": "The runbook name.", + "pattern": "^[a-z][a-z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index f512cc5ea217..f364eb650c83 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -366,7 +366,6 @@ input-file: - Microsoft.Automation/stable/2019-06-01/softwareUpdateConfiguration.json - Microsoft.Automation/stable/2015-10-31/webhook.json - Microsoft.Automation/stable/2022-01-31/deletedAutomationAccount.json -- Microsoft.Automation/stable/2022-08-08/python3package.json - Microsoft.Automation/stable/2022-08-08/account.json - Microsoft.Automation/stable/2022-08-08/certificate.json - Microsoft.Automation/stable/2022-08-08/connection.json @@ -402,7 +401,6 @@ directive: where: $.definitions.TestJob - suppress: BodyTopLevelProperties from: runbook.json - where: $.definitions.TestJob.properties - suppress: DefinitionsPropertiesNamesCamelCase from: account.json where: $.definitions.Key.properties.KeyName @@ -499,7 +497,9 @@ directive: - suppress: DefaultErrorResponseSchema from: variable.json reason: This error format is already part of the previous api, cannot change it as it will result in breaking change. - + - suppress: DefaultErrorResponseSchema + from: runbook.json + reason: This error format is already part of the previous api, cannot change it as it will result in breaking change. - suppress: DeleteOperationResponses from: credential.json reason: This error format is already part of the previous api, cannot change it as it will result in breaking change. From 6d4365eb6ead06264dd06ab636e3cbf84c41edf7 Mon Sep 17 00:00:00 2001 From: Sushil Upadhyay Date: Fri, 28 Oct 2022 12:53:50 +0530 Subject: [PATCH 8/8] Fix Avacado errors --- .../stable/2022-08-08/runbook.json | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json index 8e688f9879e1..acaab06af79b 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2022-08-08/runbook.json @@ -70,7 +70,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -124,8 +124,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" - + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "name": "runbookContent", @@ -201,7 +200,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -254,7 +253,7 @@ "required": true, "type": "string", "description": "The parameters supplied to the publish runbook operation.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -311,7 +310,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -367,7 +366,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -420,7 +419,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -474,7 +473,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "name": "parameters", @@ -540,7 +539,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "name": "parameters", @@ -600,7 +599,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -701,7 +700,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "name": "jobStreamId", @@ -761,7 +760,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "name": "$filter", @@ -824,7 +823,7 @@ "required": true, "type": "string", "description": "The parameters supplied to the create test job operation.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "name": "parameters", @@ -884,7 +883,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -937,7 +936,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -987,7 +986,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" @@ -1037,7 +1036,7 @@ "required": true, "type": "string", "description": "The runbook name.", - "pattern": "^[a-z][a-z0-9]*$" + "pattern": "^[a-zA-Z]*-*[a-zA-Z0-9]*$" }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"