diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json index 5e556ca9615d..37ad42fc589c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdateRunbook.json @@ -86,10 +86,6 @@ "lastModifiedTime": "2017-03-28T21:04:46.6+00:00" } } - }, - "400": { - "code": "BadRequest", - "message": "{\"Message\":\"Cannot specify the content link for a published runbook and draft at the same time.\"}" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json index c3772a09b405..1cede6106253 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createRunbookAsDraft.json @@ -76,10 +76,6 @@ "lastModifiedTime": "2018-02-09T03:25:59.097+00:00" } } - }, - "400": { - "code": "BadRequest", - "message": "{\"Message\":\"Cannot specify the content link for a published runbook and draft at the same time.\"}" } } } \ No newline at end of file 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 95b9d20fd096..a18d9c144f58 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,6 +11,8 @@ "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":{} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json index 3a1406e54363..eebcd8be7a27 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json @@ -1095,6 +1095,7 @@ "description": "Gets or sets the values of the job stream." } }, + "x-ms-client-flatten": true, "description": "Definition of the job stream." }, "JobStreamListResult": { diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 1ca1624af60b..20c57685ca80 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -25,7 +25,7 @@ These are the global settings for the Automation API. title: AutomationClient description: Automation Client openapi-type: arm -tag: package-2018-01-preview +tag: package-2018-06-preview ``` ### Tag: package-2015-10 @@ -121,6 +121,40 @@ input-file: - Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json ``` +### Tag: package-2018-06-preview + +These settings apply only when `--tag=package-2018-06-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-06-preview' +input-file: +- Microsoft.Automation/stable/2015-10-31/account.json +- Microsoft.Automation/stable/2015-10-31/certificate.json +- Microsoft.Automation/stable/2015-10-31/connection.json +- Microsoft.Automation/stable/2015-10-31/connectionType.json +- Microsoft.Automation/stable/2015-10-31/credential.json +- Microsoft.Automation/stable/2015-10-31/dscConfiguration.json +- Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json +- Microsoft.Automation/stable/2015-10-31/jobSchedule.json +- Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json +- Microsoft.Automation/stable/2015-10-31/module.json +- Microsoft.Automation/stable/2015-10-31/schedule.json +- Microsoft.Automation/stable/2015-10-31/variable.json +- Microsoft.Automation/stable/2015-10-31/webhook.json +- Microsoft.Automation/stable/2015-10-31/watcher.json +- Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json +- Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json +- Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json +- Microsoft.Automation/preview/2017-05-15-preview/sourceControl.json +- Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json +- Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json +- Microsoft.Automation/preview/2017-05-15-preview/job.json +- Microsoft.Automation/stable/2018-01-15/dscNode.json +- Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json +- Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json +- Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json +- Microsoft.Automation/stable/2018-06-30/runbook.json +``` + --- ## Suppression ``` yaml @@ -143,6 +177,9 @@ directive: - suppress: LongRunningResponseStatusCode from: runbook.json where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/publish"].post["x-ms-long-running-operation"] + - suppress: LongRunningResponseStatusCode + from: runbook.json + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/publish"].post["x-ms-long-running-operation"] ``` --- @@ -192,7 +229,7 @@ python: payload-flattening-threshold: 2 namespace: azure.mgmt.automation package-name: azure-mgmt-automation - package-version: 0.2.0 + package-version: 0.3.0 clear-output-folder: true ``` ``` yaml $(python) && $(python-mode) == 'update' @@ -224,6 +261,7 @@ batch: - tag: package-2015-10 - tag: package-2017-05-preview - tag: package-2018-01-preview + - tag: package-2018-06-preview ``` ### Tag: package-2015-10 and go @@ -253,6 +291,15 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-06-preview' && $(go) +output-folder: $(go-sdk-folder)/services/preview/automation/mgmt/2018-06-preview/automation +``` + ## Java These settings apply only when `--java` is specified on the command line.