From 075de25673dc455e876dacdbfe47a013e7e7d3d2 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Fri, 23 Mar 2018 16:05:59 -0700 Subject: [PATCH 01/14] Adding new API spec for 2018-01-15 version --- .../2017-05-15-preview/definitions.json | 546 +++++++++- .../preview/2017-05-15-preview/job.json | 106 +- .../softwareUpdateConfiguration.json | 32 +- ...softwareUpdateConfigurationMachineRun.json | 16 +- .../softwareUpdateConfigurationRun.json | 16 +- .../2017-05-15-preview/sourceControl.json | 70 +- .../sourceControlSyncJob.json | 46 +- .../stable/2015-10-31/definitions.json | 112 ++- .../examples/getAgentRegistration.json | 22 + .../stable/2018-01-15/definitions.json | 150 +++ .../stable/2018-01-15/dscCompilationJob.json | 608 +++++++++++ .../stable/2018-01-15/dscNode.json | 946 ++++++++++++++++++ .../2018-01-15/dscNodeConfiguration.json | 408 ++++++++ .../compilationJobStreamByJobStreamId.json | 31 + .../examples/compilationJobStreamList.json | 90 ++ .../examples/createCompilationJob.json | 42 + .../createOrUpdateDscNodeConfiguration.json | 40 + .../2018-01-15/examples/deleteDscNode.json | 12 + .../examples/deleteDscNodeConfiguration.json | 13 + .../examples/getAgentRegistration.1.json | 22 + .../examples/getAgentRegistration.json | 22 + .../examples/getCompilationJob.json | 35 + .../2018-01-15/examples/getDscNode.json | 26 + .../examples/getDscNodeConfiguration.json | 23 + .../2018-01-15/examples/getDscNodeReport.json | 67 ++ .../listAllDscNodesByAutomationAccount.json | 29 + ...istCompilationJobsByAutomationAccount.json | 45 + .../examples/listDscNodeConfigurations.json | 26 + .../examples/listDscNodeReportsByNode.json | 253 +++++ .../regenerateAgentRegistrationKey.json | 25 + .../2018-01-15/examples/updateDscNode.json | 32 + .../automation/resource-manager/readme.md | 53 +- 32 files changed, 3722 insertions(+), 242 deletions(-) create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getAgentRegistration.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/regenerateAgentRegistrationKey.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json index fb93dc1da800..d5a622104760 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json @@ -17,7 +17,7 @@ "security": [ { "azure_auth": [ - "user_impersonation" + "user_impersonation" ] } ], @@ -28,55 +28,296 @@ "flow": "implicit", "description": "Azure Active Directory OAuth2 Flow", "scopes": { - "user_impersonation": "impersonate your user account" + "user_impersonation": "impersonate your user account" } } }, "paths": {}, "definitions": { + "AdvancedScheduleMonthlyOccurrence": { + "properties": { + "occurrence": { + "type": "integer", + "format": "int32", + "description": "Occurrence of the week within the month. Must be between 1 and 5" + }, + "day": { + "type": "string", + "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.", + "enum": [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "x-ms-enum": { + "name": "ScheduleDay", + "modelAsString": true + } + } + }, + "description": "The properties of the create advanced schedule monthly occurrence." + }, + "AdvancedSchedule": { + "properties": { + "weekDays": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Days of the week that the job should execute on." + }, + "monthDays": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + }, + "description": "Days of the month that the job should execute on. Must be between 1 and 31." + }, + "monthlyOccurrences": { + "type": "array", + "items": { + "$ref": "#/definitions/AdvancedScheduleMonthlyOccurrence" + }, + "description": "Occurrences of days within a month." + } + }, + "description": "The properties of the create Advanced Schedule." + }, "Job": { - "description": "Definition of the job.", + "description": "Definition of the job.", "x-ms-mutability": [ "read", "create" - ], - "properties": { + ], + "properties": { "properties": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/JobProperties", + "$ref": "#/definitions/JobProperties", "x-ms-client-flatten": true, "description": "The properties of the job." } }, "allOf": [ - { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ProxyResource" - } - ] + { + "$ref": "#/definitions/ProxyResource" + } + ] + }, + "JobProperties": { + "properties": { + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook." + }, + "startedBy": { + "type": "string", + "description": "Gets or sets the job started by." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." + }, + "jobId": { + "type": "string", + "format": "uuid", + "description": "Gets or sets the id of the job." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the job." + }, + "status": { + "type": "string", + "description": "Gets or sets the status of the job.", + "enum": [ + "New", + "Activating", + "Running", + "Completed", + "Failed", + "Stopped", + "Blocked", + "Suspended", + "Disconnected", + "Suspending", + "Stopping", + "Resuming", + "Removing" + ], + "x-ms-enum": { + "name": "JobStatus", + "modelAsString": true + } + }, + "statusDetails": { + "type": "string", + "description": "Gets or sets the status details of the job." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the job." + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the job." + }, + "exception": { + "type": "string", + "description": "Gets or sets the exception of the job." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time of the job." + }, + "lastStatusModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last status modified time of the job." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job." + }, + "provisioningState": { + "$ref": "#/definitions/JobProvisioningStateProperty", + "description": "The provisioning state of a resource." + } + }, + "description": "Definition of job properties." }, - "jobCollectionItem": { + "JobCollectionItem": { "description": "Job collection item properties.", "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, "description": "Job properties.", - "$ref": "#/definitions/jobCollectionItemProperties" + "$ref": "#/definitions/JobCollectionItemProperties" } }, "allOf": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ProxyResource" + "$ref": "#/definitions/ProxyResource" } ], "required": [ "properties" ] }, - "jobCollectionItemProperties": { + "JobStream": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "properties": { + "$ref": "./definitions.json#/definitions/JobStreamProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the id of the job stream." + } + }, + "description": "Definition of the job stream." + }, + "JobStreamProperties": { + "properties": { + "jobStreamId": { + "type": "string", + "description": "Gets or sets the id of the job stream." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the job." + }, + "streamType": { + "type": "string", + "description": "Gets or sets the stream type.", + "enum": [ + "Progress", + "Output", + "Warning", + "Error", + "Debug", + "Verbose", + "Any" + ], + "x-ms-enum": { + "name": "JobStreamType", + "modelAsString": true + } + }, + "streamText": { + "type": "string", + "description": "Gets or sets the stream text." + }, + "summary": { + "type": "string", + "description": "Gets or sets the summary." + }, + "value": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "Gets or sets the values of the job stream." + } + }, + "description": "Definition of the job stream." + }, + "JobStreamListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "./definitions.json#/definitions/JobStream" + }, + "description": "A list of job streams." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list job stream operation." + }, + "JobCreateParameters": { + "properties": { + "properties": { + "$ref": "./definitions.json#/definitions/JobCreateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the list of job properties." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create job operation." + }, + "RunbookAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the runbook." + } + }, + "description": "The runbook property associated with the entity." + }, + "JobCollectionItemProperties": { "description": "Job collection item properties.", - "properties": { + "properties": { "runbook": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/RunbookAssociationProperty", + "$ref": "#/definitions/RunbookAssociationProperty", "readOnly": true, "description": "The runbook association." }, @@ -135,17 +376,37 @@ "description": "The last modified time of the job." }, "provisioningState": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/JobProvisioningStateProperty", + "$ref": "#/definitions/JobProvisioningStateProperty", "description": "The current provisioning state of the job." - } + } } }, + "JobProvisioningStateProperty": { + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Failed", + "Succeeded", + "Suspended", + "Processing" + ], + "x-ms-enum": { + "name": "JobProvisioningState", + "modelAsString": true + } + } + }, + "description": "The provisioning state property." + }, "JobListResultV2": { "properties": { "value": { "type": "array", "items": { - "$ref": "./definitions.json#/definitions/jobCollectionItem", + "$ref": "./definitions.json#/definitions/JobCollectionItem", "readOnly": true }, "description": "List of jobs." @@ -167,7 +428,7 @@ }, "scheduleInfo": { "description": "Schedule information for the Software update configuration", - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ScheduleProperties" + "$ref": "#/definitions/ScheduleProperties" }, "provisioningState": { "type": "string", @@ -176,7 +437,7 @@ }, "error": { "description": "detailes of provisioning error", - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "#/definitions/ErrorResponse" }, "creationTime": { "type": "string", @@ -290,6 +551,21 @@ "properties" ] }, + "scheduleFrequency": { + "type": "string", + "description": "Gets or sets the frequency of the schedule.", + "enum": [ + "OneTime", + "Day", + "Hour", + "Week", + "Month" + ], + "x-ms-enum": { + "name": "ScheduleFrequency", + "modelAsString": true + } + }, "softwareUpdateConfigurationCollectionItemProperties": { "description": "Software update configuration collection item properties.", "properties": { @@ -300,7 +576,7 @@ "frequency": { "description": "execution frequency of the schedule associated with the software update configuration", "type": "string", - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/scheduleFrequency" + "$ref": "#/definitions/scheduleFrequency" }, "startTime": { "type": "string", @@ -466,6 +742,65 @@ } } }, + "Resource": { + "description": "The core properties of ARM resources", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "ProxyResource": { + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, "softwareUpdateConfigurationRunListResult": { "description": "result of listing all software update configuration runs", "properties": { @@ -978,15 +1313,15 @@ }, "SourceControlSyncJobById": { "properties": { - "id": { - "type": "string", - "description": "Gets the id of the job." - }, - "properties": { - "$ref": "#/definitions/SourceControlSyncJobByIdProperties", - "x-ms-client-flatten": true, - "description": "Gets the properties of the source control sync job." - } + "id": { + "type": "string", + "description": "Gets the id of the job." + }, + "properties": { + "$ref": "#/definitions/SourceControlSyncJobByIdProperties", + "x-ms-client-flatten": true, + "description": "Gets the properties of the source control sync job." + } }, "description": "Definition of the source control sync job." }, @@ -1051,16 +1386,163 @@ } }, "description": "Error details of the source control sync job." + }, + "ErrorResponse": { + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + }, + "description": "Error response of an operation failure" + }, + "ScheduleProperties": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the schedule." + }, + "startTimeOffsetMinutes": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "Gets the start time's offset in minutes." + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the schedule." + }, + "expiryTimeOffsetMinutes": { + "type": "number", + "format": "double", + "description": "Gets or sets the expiry time's offset in minutes." + }, + "isEnabled": { + "type": "boolean", + "default": false, + "description": "Gets or sets a value indicating whether this schedule is enabled." + }, + "nextRun": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the next run time of the schedule." + }, + "nextRunOffsetMinutes": { + "type": "number", + "format": "double", + "description": "Gets or sets the next run time's offset in minutes." + }, + "interval": { + "description": "Gets or sets the interval of the schedule." + }, + "frequency": { + "type": "string", + "description": "Gets or sets the frequency of the schedule.", + "enum": [ + "OneTime", + "Day", + "Hour", + "Week", + "Month" + ], + "x-ms-enum": { + "name": "ScheduleFrequency", + "modelAsString": true + } + }, + "timeZone": { + "type": "string", + "description": "Gets or sets the time zone of the schedule." + }, + "advancedSchedule": { + "$ref": "#/definitions/AdvancedSchedule", + "description": "Gets or sets the advanced schedule." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time." + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of schedule parameters." + }, + "JobCreateProperties": { + "properties": { + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." + } + } } }, "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "client", + "description": "Name of an Azure Resource group." + }, + "AutomationAccountNameParameter": { + "name": "automationAccountName", + "description": "The name of the automation account.", + "type": "string", + "required": true, + "in": "path", + "x-ms-parameter-location": "method" + }, "automationAccountName": { "name": "automationAccountName", "description": "The name of the automation account.", "type": "string", "required": true, "in": "path", - "x-ms-parameter-location": "client" + "x-ms-parameter-location": "method" }, "clientRequestId": { "name": "clientRequestId", diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json index 95534952e1c7..9c183dcf3e93 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json @@ -53,13 +53,13 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -69,7 +69,7 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -85,7 +85,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -111,13 +111,13 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -127,7 +127,7 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -143,7 +143,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -166,13 +166,13 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -182,7 +182,7 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -195,7 +195,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -218,10 +218,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -231,10 +231,10 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -247,7 +247,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -270,13 +270,13 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -286,7 +286,7 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -302,7 +302,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -323,13 +323,13 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -343,12 +343,12 @@ "in": "body", "required": true, "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/JobCreateParameters" + "$ref": "./definitions.json#/definitions/JobCreateParameters" }, "description": "The parameters supplied to the create job operation." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -364,7 +364,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -387,10 +387,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -400,10 +400,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -419,7 +419,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } }, @@ -445,10 +445,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -458,10 +458,10 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -474,7 +474,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -497,13 +497,13 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -520,7 +520,7 @@ "description": "The job stream id." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -530,13 +530,13 @@ "200": { "description": "OK", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/JobStream" + "$ref": "./definitions.json#/definitions/JobStream" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -559,10 +559,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -579,10 +579,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -592,13 +592,13 @@ "200": { "description": "OK", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/JobStreamListResult" + "$ref": "./definitions.json#/definitions/JobStreamListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json index 8670c08b6051..11c157b6f415 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json @@ -55,13 +55,13 @@ "operationId": "SoftwareUpdateConfigurations_Create", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "softwareUpdateConfigurationName", @@ -71,7 +71,7 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -126,13 +126,13 @@ "operationId": "SoftwareUpdateConfigurations_GetByName", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "softwareUpdateConfigurationName", @@ -142,7 +142,7 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -176,13 +176,13 @@ "operationId": "SoftwareUpdateConfigurations_Delete", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "softwareUpdateConfigurationName", @@ -192,7 +192,7 @@ "in": "path" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -231,16 +231,16 @@ "operationId": "SoftwareUpdateConfigurations_List", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json index eda4757bde78..bb1e68919ab6 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json @@ -55,13 +55,13 @@ "operationId": "SoftwareUpdateConfigurationMachineRuns_GetById", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "softwareUpdateConfigurationMachineRunId", @@ -72,7 +72,7 @@ "format": "uuid" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -111,16 +111,16 @@ "operationId": "SoftwareUpdateConfigurationMachineRuns_List", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json index b783d92b8648..f3d8e6de72aa 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json @@ -55,13 +55,13 @@ "operationId": "SoftwareUpdateConfigurationRuns_GetById", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "softwareUpdateConfigurationRunId", @@ -72,7 +72,7 @@ "format": "uuid" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" @@ -111,16 +111,16 @@ "operationId": "SoftwareUpdateConfigurationRuns_List", "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/automationAccountName" + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" }, { "$ref": "./definitions.json#/parameters/clientRequestId" diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControl.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControl.json index 0cfbdd61b77d..459fd09f0a77 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControl.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControl.json @@ -50,14 +50,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -76,10 +72,10 @@ "description": "The parameters supplied to the create or update source control operation." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -98,7 +94,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -119,14 +115,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -145,10 +137,10 @@ "description": "The parameters supplied to the update source control operation." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -161,7 +153,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -182,14 +174,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -199,10 +187,10 @@ "description": "The name of source control." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -212,7 +200,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -233,14 +221,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -250,10 +234,10 @@ "description": "The name of source control." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -266,7 +250,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -289,14 +273,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -306,10 +286,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -322,7 +302,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json index eed258a7ecd1..7accdd5adf9f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json @@ -50,14 +50,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -74,11 +70,11 @@ "format": "uuid", "description": "The source control sync job id." }, - { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -91,7 +87,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -112,14 +108,10 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -137,10 +129,10 @@ "description": "The source control sync job id." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -153,7 +145,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } } @@ -176,16 +168,12 @@ }, "parameters": [ { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" }, - { + { "name": "sourceControlName", "in": "path", "required": true, @@ -200,10 +188,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "../../stable/2015-10-31/definitions.json#/parameters/ApiVersionParameter" + "$ref": "./definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -216,7 +204,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "../../stable/2015-10-31/definitions.json#/definitions/ErrorResponse" + "$ref": "./definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json index 0d474b2e619f..a46faa6e074f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json @@ -185,7 +185,7 @@ }, "day": { "type": "string", - "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday,thursday, friday, saturday, sunday.", + "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.", "enum": [ "Monday", "Tuesday", @@ -390,7 +390,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Definition of the automation account type." @@ -525,7 +525,6 @@ "description": "Properties of the certificate." }, "Certificate": { - "x-ms-azure-resource": true, "properties": { "id": { "type": "string", @@ -548,6 +547,11 @@ "description": "Gets or sets the properties of the certificate." } }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], "description": "Definition of the certificate." }, "CertificateListResult": { @@ -664,7 +668,6 @@ "description": "Definition of the connection properties." }, "Connection": { - "x-ms-azure-resource": true, "properties": { "id": { "type": "string", @@ -687,6 +690,11 @@ "description": "Gets or sets the properties of the connection." } }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], "description": "Definition of the connection." }, "ConnectionListResult": { @@ -920,7 +928,11 @@ "description": "Definition of the credential properties" }, "Credential": { - "x-ms-azure-resource": true, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], "properties": { "id": { "type": "string", @@ -1343,7 +1355,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Definition of the configuration type." @@ -2311,7 +2323,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Definition of the module type." @@ -2406,60 +2418,63 @@ } }, "Resource": { + "description": "The core properties of ARM resources", "properties": { "id": { "readOnly": true, "type": "string", - "description": "Resource Id" + "description": "Fully qualified resource Id for the resource" }, "name": { "readOnly": true, "type": "string", - "description": "Resource name" + "description": "The name of the resource" }, "type": { "readOnly": true, "type": "string", - "description": "Resource type" - }, - "location": { - "type": "string", - "description": "Resource location" - }, + "description": "The type of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource", + "properties": { "tags": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Resource tags" + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region where the resource lives" } }, - "required": [ - "location" - ], - "description": "The Resource definition.", - "x-ms-azure-resource": true + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] }, "ProxyResource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type" + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", + "allOf": [ + { + "$ref": "#/definitions/Resource" } - }, - "description": "The Resource definition.", - "x-ms-azure-resource": true + ] }, "JobProvisioningStateProperty": { "properties": { @@ -2913,7 +2928,7 @@ }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/TrackedResource" } ], "description": "Definition of the runbook type." @@ -3478,7 +3493,11 @@ "description": "Definition of the varible properties" }, "Variable": { - "x-ms-azure-resource": true, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], "properties": { "id": { "type": "string", @@ -3674,7 +3693,11 @@ } }, "description": "Definition of the webhook type.", - "x-ms-azure-resource": true + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ] }, "WebhookListResult": { "properties": { @@ -3752,7 +3775,10 @@ "required": true, "type": "string", "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "client", + "description": "Name of an Azure Resource group." } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getAgentRegistration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getAgentRegistration.json new file mode 100644 index 000000000000..99012ee62a3e --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getAgentRegistration.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount18", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/agentRegistrationInformation/https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6", + "keys": { + "primary": "5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==", + "secondary": "rVp0000000000000000000000000000000000000000000000000000000000000000000000000000f8cbmrOA==" + }, + "endpoint": "https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6", + "dscMetaConfiguration": "\r\n\tinstance of MSFT_WebDownloadManager as $MSFT_WebDownloadManager1ref\r\n\t{\r\n\tResourceID = \"[ConfigurationRepositoryWeb]AzureAutomationDSC\";\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::20::9::ConfigurationRepositoryWeb\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t};\r\n\r\n\tinstance of MSFT_WebResourceManager as $MSFT_WebResourceManager1ref\r\n\t{\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::27::9::ResourceRepositoryWeb\";\r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t ResourceID = \"[ResourceRepositoryWeb]AzureAutomationDSC\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t};\r\n\r\n\tinstance of MSFT_WebReportManager as $MSFT_WebReportManager1ref\r\n\t{\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::34::9::ReportServerWeb\";\r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t ResourceID = \"[ReportServerWeb]AzureAutomationDSC\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t};\r\n\r\n\tinstance of MSFT_DSCMetaConfiguration as $MSFT_DSCMetaConfiguration1ref\r\n\t{\r\n\t RefreshMode = \"Pull\";\r\n\t AllowModuleOverwrite = False;\r\n\t ActionAfterReboot = \"ContinueConfiguration\";\r\n\t RefreshFrequencyMins = 30;\r\n\t RebootNodeIfNeeded = False;\r\n\t ConfigurationModeFrequencyMins = 15;\r\n\t ConfigurationMode = \"ApplyAndMonitor\";\r\n\r\n\t ResourceModuleManagers = {\r\n\t $MSFT_WebResourceManager1ref \r\n\t};\r\n\t ReportManagers = {\r\n\t $MSFT_WebReportManager1ref \r\n\t };\r\n\t ConfigurationDownloadManagers = {\r\n\t $MSFT_WebDownloadManager1ref \r\n\t };\r\n\t};\r\n\r\n\tinstance of OMI_ConfigurationDocument\r\n\t{\r\n\t Version=\"2.0.0\";\r\n\t MinimumCompatibleVersion = \"2.0.0\";\r\n\t CompatibleVersionAdditionalProperties= { \"MSFT_DSCMetaConfiguration:StatusRetentionTimeInDays\" };\r\n\t Author=\"azureautomation\";\r\n\t GenerationDate=\"04/17/2015 11:41:09\";\r\n\t GenerationHost=\"azureautomation-01\";\r\n\t Name=\"RegistrationMetaConfig\";\r\n\t};\r\n\t" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json new file mode 100644 index 000000000000..1100c20af792 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json @@ -0,0 +1,150 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2018-01-15", + "x-ms-code-generation-settings": { + "useDateTimeOffset": true, + "syncMethods": "None" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "ErrorResponse": { + "type": "object", + "properties": { + "code": { + "description": "Error code", + "type": "string" + }, + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" + } + }, + "description": "Error response of an operation failure" + }, + "Resource": { + "description": "The core properties of ARM resources", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource Id for the resource" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked top level resource", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region where the resource lives" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "ProxyResource": { + "description": "The resource model definition for a ARM proxy resource. It will have everything other than required location and tags", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "pattern": "^[-\\w\\._]+$", + "minLength": 1, + "maxLength": 90, + "x-ms-parameter-location": "client", + "description": "Name of an Azure Resource group." + }, + "AutomationAccountNameParameter": { + "name": "automationAccountName", + "description": "The name of the automation account.", + "type": "string", + "required": true, + "in": "path", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json new file mode 100644 index 000000000000..b8040b876d27 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json @@ -0,0 +1,608 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2018-01-15", + "x-ms-code-generation-settings": { + "useDateTimeOffset": true, + "syncMethods": "None" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}": { + "put": { + "tags": [ + "DscCompilationJob" + ], + "operationId": "DscCompilationJob_Create", + "x-ms-long-running-operation": true, + "description": "Creates the Dsc compilation job of the configuration.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscconfigurationcompilejoboperations" + }, + "x-ms-examples": { + "Create or update a DSC Compilation job": { + "$ref": "./examples/createCompilationJob.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "compilationJobName", + "in": "path", + "required": true, + "type": "string", + "description": "The the DSC configuration Id." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DscCompilationJobCreateParameters" + }, + "description": "The parameters supplied to the create compilation job operation." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/DscCompilationJob" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "DscCompilationJob" + ], + "operationId": "DscCompilationJob_Get", + "description": "Retrieve the Dsc configuration compilation job identified by job id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dsccompilationjoboperations" + }, + "x-ms-examples": { + "Get a DSC Compilation job": { + "$ref": "./examples/getCompilationJob.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "compilationJobName", + "in": "path", + "required": true, + "type": "string", + "description": "The the DSC configuration Id." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscCompilationJob" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs": { + "get": { + "tags": [ + "DscCompilationJob" + ], + "operationId": "DscCompilationJob_ListByAutomationAccount", + "description": "Retrieve a list of dsc compilation jobs.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/compilationjoboperations" + }, + "x-ms-examples": { + "List DSC Compilation job in Automation Account": { + "$ref": "./examples/listCompilationJobsByAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscCompilationJobListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/": { + "get": { + "tags": [ + "DscCompilationJob" + ], + "operationId": "DscCompilationJobStream_ListByJob", + "description": "Retrieve all the job streams for the compilation Job.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/jobstreamoperations" + }, + "x-ms-examples": { + "List DSC Compilation job streams": { + "$ref": "./examples/compilationJobStreamList.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "format": "uuid", + "description": "The job id." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JobStreamListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}": { + "get": { + "tags": [ + "DscCompilationJob" + ], + "operationId": "DscCompilationJob_GetStream", + "description": "Retrieve the job stream identified by job stream id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/jobstreamoperations" + }, + "x-ms-examples": { + "Get a DSC Compilation job stream by job stream id": { + "$ref": "./examples/compilationJobStreamByJobStreamId.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "jobId", + "in": "path", + "required": true, + "type": "string", + "format": "uuid", + "description": "The job id." + }, + { + "name": "jobStreamId", + "in": "path", + "required": true, + "type": "string", + "description": "The job stream id." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/JobStream" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "DscCompilationJob": { + "properties": { + "properties": { + "$ref": "#/definitions/DscCompilationJobProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the Dsc Compilation job." + } + }, + "allOf": [ + { + "$ref": "./definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the Dsc Compilation job." + }, + "DscCompilationJobCreateProperties": { + "properties": { + "configuration": { + "$ref": "#/definitions/DscConfigurationAssociationProperty", + "description": "Gets or sets the configuration." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job." + }, + "newNodeConfigurationBuildVersionRequired": { + "type": "boolean", + "description": "If a new build version of NodeConfiguration is required." + } + }, + "required": [ + "configuration" + ], + "description": "The parameters supplied to the create compilation job operation." + }, + "DscCompilationJobProperties": { + "properties": { + "configuration": { + "$ref": "#/definitions/DscConfigurationAssociationProperty", + "description": "Gets or sets the configuration." + }, + "startedBy": { + "type": "string", + "readOnly": true, + "description": "Gets the compilation job started by." + }, + "jobId": { + "type": "string", + "format": "uuid", + "readOnly": true, + "description": "Gets the id of the job." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time of the job." + }, + "provisioningState": { + "$ref": "#/definitions/JobProvisioningStateProperty", + "description": "The current provisioning state of the job." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." + }, + "status": { + "type": "string", + "description": "Gets or sets the status of the job.", + "enum": [ + "New", + "Activating", + "Running", + "Completed", + "Failed", + "Stopped", + "Blocked", + "Suspended", + "Disconnected", + "Suspending", + "Stopping", + "Resuming", + "Removing" + ], + "x-ms-enum": { + "name": "JobStatus", + "modelAsString": true + } + }, + "statusDetails": { + "type": "string", + "description": "Gets or sets the status details of the job." + }, + "startTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the start time of the job." + }, + "endTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the end time of the job." + }, + "exception": { + "type": "string", + "readOnly": true, + "description": "Gets the exception of the job." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last modified time of the job." + }, + "lastStatusModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last status modified time of the job." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job." + } + }, + "description": "Definition of Dsc Compilation job properties." + }, + "DscCompilationJobListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DscCompilationJob" + }, + "description": "Gets or sets a list of Dsc Compilation jobs." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list job operation." + }, + "DscCompilationJobCreateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/DscCompilationJobCreateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the list of compilation job properties." + }, + "name": { + "type": "string", + "description": "Gets or sets name of the resource." + }, + "location": { + "type": "string", + "description": "Gets or sets the location of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create compilation job operation." + }, + "DscConfigurationAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the Dsc configuration." + } + }, + "description": "The Dsc configuration property associated with the entity." + }, + "JobStream": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "properties": { + "$ref": "#/definitions/JobStreamProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the id of the job stream." + } + }, + "description": "Definition of the job stream." + }, + "JobStreamListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JobStream" + }, + "description": "A list of job streams." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list job stream operation." + }, + "JobStreamProperties": { + "properties": { + "jobStreamId": { + "type": "string", + "description": "Gets or sets the id of the job stream." + }, + "time": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the job." + }, + "streamType": { + "type": "string", + "description": "Gets or sets the stream type.", + "enum": [ + "Progress", + "Output", + "Warning", + "Error", + "Debug", + "Verbose", + "Any" + ], + "x-ms-enum": { + "name": "JobStreamType", + "modelAsString": true + } + }, + "streamText": { + "type": "string", + "description": "Gets or sets the stream text." + }, + "summary": { + "type": "string", + "description": "Gets or sets the summary." + }, + "value": { + "type": "object", + "additionalProperties": { + "type": "object" + }, + "description": "Gets or sets the values of the job stream." + } + }, + "description": "Definition of the job stream." + }, + "JobProvisioningStateProperty": { + "properties": { + "provisioningState": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Failed", + "Succeeded", + "Suspended", + "Processing" + ], + "x-ms-enum": { + "name": "JobProvisioningState", + "modelAsString": true + } + } + }, + "description": "The provisioning state property." + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json new file mode 100644 index 000000000000..e499a70703c1 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json @@ -0,0 +1,946 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2018-01-15", + "x-ms-code-generation-settings": { + "useDateTimeOffset": true, + "syncMethods": "None" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation": { + "get": { + "tags": [ + "AgentRegistrationInformation" + ], + "operationId": "AgentRegistrationInformation_Get", + "description": "Retrieve the automation agent registration information.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/agentregistrationoperations" + }, + "x-ms-examples": { + "Get the agent registration information": { + "$ref": "./examples/getAgentRegistration.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AgentRegistration" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey": { + "post": { + "tags": [ + "AgentRegistrationInformation" + ], + "operationId": "AgentRegistrationInformation_RegenerateKey", + "description": "Regenerate a primary or secondary agent registration key", + "x-ms-examples": { + "Regenerate registration key": { + "$ref": "./examples/regenerateAgentRegistrationKey.json" + } + }, + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/agentregistrationoperations" + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AgentRegistrationRegenerateKeyParameter" + }, + "description": "The name of the agent registration key to be regenerated" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AgentRegistration" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}": { + "delete": { + "tags": [ + "DscNode" + ], + "operationId": "DscNode_Delete", + "description": "Delete the dsc node identified by node id.", + "x-ms-examples": { + "Delete a DSC Node": { + "$ref": "./examples/deleteDscNode.json" + } + }, + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeoperations" + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The node id." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNode" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "DscNode" + ], + "operationId": "DscNode_Get", + "description": "Retrieve the dsc node identified by node id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeoperations" + }, + "x-ms-examples": { + "Get a node": { + "$ref": "./examples/getDscNode.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The node id." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNode" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "DscNode" + ], + "operationId": "DscNode_Update", + "description": "Update the dsc node.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeoperations" + }, + "x-ms-examples": { + "Update a node": { + "$ref": "./examples/updateDscNode.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "Parameters supplied to the update dsc node." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DscNodeUpdateParameters" + }, + "description": "Parameters supplied to the update dsc node." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNode" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes": { + "get": { + "tags": [ + "DscNode" + ], + "operationId": "DscNode_ListByAutomationAccount", + "description": "Retrieve a list of dsc nodes.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeoperations" + }, + "x-ms-examples": { + "List DSC nodes by Automation Account": { + "$ref": "./examples/listAllDscNodesByAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNodeListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports": { + "get": { + "tags": [ + "NodeReports" + ], + "operationId": "NodeReports_ListByNode", + "description": "Retrieve the Dsc node report list by node id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodereportoperations" + }, + "x-ms-examples": { + "List DSC reports by node id.": { + "$ref": "./examples/listDscNodeReportsByNode.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The parameters supplied to the list operation." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNodeReportListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}": { + "get": { + "tags": [ + "NodeReports" + ], + "operationId": "NodeReports_Get", + "description": "Retrieve the Dsc node report data by node id and report id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodereportoperations" + }, + "x-ms-examples": { + "Get Dsc node report data by node id and report id. ": { + "$ref": "./examples/getDscNodeReport.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The Dsc node id." + }, + { + "name": "reportId", + "in": "path", + "required": true, + "type": "string", + "description": "The report id." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNodeReport" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}/content": { + "get": { + "tags": [ + "NodeReports" + ], + "operationId": "NodeReports_GetContent", + "description": "Retrieve the Dsc node reports by node id and report id.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodereportoperations" + }, + "x-ms-examples": { + "List DSC reports by node id.": { + "$ref": "./examples/listDscNodeReportsByNode.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeId", + "in": "path", + "required": true, + "type": "string", + "description": "The Dsc node id." + }, + { + "name": "reportId", + "in": "path", + "required": true, + "type": "string", + "description": "The report id." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "file" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "DscNodeReportListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DscNodeReport" + }, + "description": "Gets or sets a list of dsc node reports." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list dsc nodes operation." + }, + "DscReportResourceNavigation": { + "properties": { + "resourceId": { + "type": "string", + "description": "Gets or sets the ID of the resource to navigate to." + } + }, + "description": "Navigation for DSC Report Resource." + }, + "DscMetaConfiguration": { + "properties": { + "configurationModeFrequencyMins": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the ConfigurationModeFrequencyMins value of the meta configuration." + }, + "rebootNodeIfNeeded": { + "type": "boolean", + "description": "Gets or sets the RebootNodeIfNeeded value of the meta configuration." + }, + "configurationMode": { + "type": "string", + "description": "Gets or sets the ConfigurationMode value of the meta configuration." + }, + "actionAfterReboot": { + "type": "string", + "description": "Gets or sets the ActionAfterReboot value of the meta configuration." + }, + "certificateId": { + "type": "string", + "description": "Gets or sets the CertificateId value of the meta configuration." + }, + "refreshFrequencyMins": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the RefreshFrequencyMins value of the meta configuration." + }, + "allowModuleOverwrite": { + "type": "boolean", + "description": "Gets or sets the AllowModuleOverwrite value of the meta configuration." + } + }, + "description": "Definition of the DSC Meta Configuration." + }, + "DscNodeReport": { + "properties": { + "endTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the node report." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the lastModifiedTime of the node report." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the node report." + }, + "type": { + "type": "string", + "description": "Gets or sets the type of the node report." + }, + "reportId": { + "type": "string", + "description": "Gets or sets the id of the node report." + }, + "status": { + "type": "string", + "description": "Gets or sets the status of the node report." + }, + "refreshMode": { + "type": "string", + "description": "Gets or sets the refreshMode of the node report." + }, + "rebootRequested": { + "type": "string", + "description": "Gets or sets the rebootRequested of the node report." + }, + "reportFormatVersion": { + "type": "string", + "description": "Gets or sets the reportFormatVersion of the node report." + }, + "configurationVersion": { + "type": "string", + "description": "Gets or sets the configurationVersion of the node report." + }, + "id": { + "type": "string", + "description": "Gets or sets the id." + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/definitions/DscReportError" + }, + "description": "Gets or sets the errors for the node report." + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/DscReportResource" + }, + "description": "Gets or sets the resource for the node report." + }, + "metaConfiguration": { + "$ref": "#/definitions/DscMetaConfiguration", + "description": "Gets or sets the metaConfiguration of the node at the time of the report." + }, + "hostName": { + "type": "string", + "description": "Gets or sets the hostname of the node that sent the report." + }, + "iPV4Addresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Gets or sets the IPv4 address of the node that sent the report." + }, + "iPV6Addresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Gets or sets the IPv6 address of the node that sent the report." + }, + "numberOfResources": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the number of resource in the node report." + }, + "rawErrors": { + "type": "string", + "description": "Gets or sets the unparsed errors for the node report." + } + }, + "description": "Definition of the dsc node report type." + }, + "DscReportResource": { + "properties": { + "resourceId": { + "type": "string", + "description": "Gets or sets the ID of the resource." + }, + "sourceInfo": { + "type": "string", + "description": "Gets or sets the source info of the resource." + }, + "dependsOn": { + "type": "array", + "items": { + "$ref": "#/definitions/DscReportResourceNavigation" + }, + "description": "Gets or sets the Resource Navigation values for resources the resource depends on." + }, + "moduleName": { + "type": "string", + "description": "Gets or sets the module name of the resource." + }, + "moduleVersion": { + "type": "string", + "description": "Gets or sets the module version of the resource." + }, + "resourceName": { + "type": "string", + "description": "Gets or sets the name of the resource." + }, + "error": { + "type": "string", + "description": "Gets or sets the error of the resource." + }, + "status": { + "type": "string", + "description": "Gets or sets the status of the resource." + }, + "durationInSeconds": { + "type": "number", + "format": "double", + "description": "Gets or sets the duration in seconds for the resource." + }, + "startDate": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start date of the resource." + } + }, + "description": "Definition of the DSC Report Resource." + }, + "DscReportError": { + "properties": { + "errorSource": { + "type": "string", + "description": "Gets or sets the source of the error." + }, + "resourceId": { + "type": "string", + "description": "Gets or sets the resource ID which generated the error." + }, + "errorCode": { + "type": "string", + "description": "Gets or sets the error code." + }, + "errorMessage": { + "type": "string", + "description": "Gets or sets the error message." + }, + "locale": { + "type": "string", + "description": "Gets or sets the locale of the error." + }, + "errorDetails": { + "type": "string", + "description": "Gets or sets the error details." + } + }, + "description": "Definition of the dsc node report error type." + }, + "AgentRegistration": { + "properties": { + "dscMetaConfiguration": { + "type": "string", + "description": "Gets or sets the dsc meta configuration." + }, + "endpoint": { + "type": "string", + "description": "Gets or sets the dsc server endpoint." + }, + "keys": { + "$ref": "#/definitions/AgentRegistrationKeys", + "description": "Gets or sets the agent registration keys." + }, + "id": { + "type": "string", + "description": "Gets or sets the id." + } + }, + "description": "Definition of the agent registration infomration type." + }, + "AgentRegistrationKeys": { + "properties": { + "primary": { + "type": "string", + "description": "Gets or sets the primary key." + }, + "secondary": { + "type": "string", + "description": "Gets or sets the secondary key." + } + }, + "description": "Definition of the agent registration keys." + }, + "DscNode": { + "description": "Definition of a DscNode", + "properties": { + "properties": { + "$ref": "#/definitions/DscNodeProperties", + "x-ms-client-flatten": true, + "description": "The properties of a DscNode." + } + }, + "allOf": [ + { + "$ref": "./definitions.json#/definitions/ProxyResource" + } + ] + }, + "DscNodeProperties": { + "description": "The properties of a DscNode", + "properties": { + "lastSeen": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last seen time of the node." + }, + "registrationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the registration time of the node." + }, + "ip": { + "type": "string", + "description": "Gets or sets the ip of the node." + }, + "accountId": { + "type": "string", + "description": "Gets or sets the account id of the node." + }, + "nodeConfiguration": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/DscNodeConfigurationAssociationProperty", + "description": "Gets or sets the configuration of the node." + }, + "status": { + "type": "string", + "description": "Gets or sets the status of the node." + }, + "nodeId": { + "type": "string", + "description": "Gets or sets the node id." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + }, + "extensionHandler": { + "type": "array", + "description": "Gets or sets the list of extensionHandler properties for a Node.", + "items": { + "$ref": "#/definitions/DscNodeExtensionHandlerAssociationProperty" + } + } + } + }, + "DscNodeExtensionHandlerAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the extension handler." + }, + "version": { + "type": "string", + "description": "Gets or sets the version of the extension handler." + } + }, + "description": "The dsc extensionHandler property associated with the node" + }, + "DscNodeConfigurationAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the dsc nodeconfiguration." + } + }, + "description": "The dsc nodeconfiguration property associated with the entity." + }, + "AgentRegistrationRegenerateKeyParameter": { + "properties": { + "keyName": { + "type": "string", + "description": "Gets or sets the agent registration key name - primary or secondary.", + "enum": [ + "primary", + "secondary" + ], + "x-ms-enum": { + "name": "AgentRegistrationKeyName", + "modelAsString": true + } + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the resource." + } + }, + "required": [ + "keyName" + ], + "description": "The parameters supplied to the regenerate keys operation." + }, + "DscNodeUpdateParameters": { + "properties": { + "nodeId": { + "type": "string", + "description": "Gets or sets the id of the dsc node." + }, + "nodeConfiguration": { + "$ref": "#/definitions/DscNodeConfigurationAssociationProperty", + "description": "Gets or sets the configuration of the node." + } + }, + "description": "The parameters supplied to the update dsc node operation." + }, + "DscNodeListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DscNode" + }, + "description": "Gets or sets a list of dsc nodes." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list dsc nodes operation." + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json new file mode 100644 index 000000000000..d27cc43a6411 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json @@ -0,0 +1,408 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2018-01-15", + "x-ms-code-generation-settings": { + "useDateTimeOffset": true, + "syncMethods": "None" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}": { + "delete": { + "tags": [ + "DscNodeConfiguration" + ], + "operationId": "DscNodeConfiguration_Delete", + "description": "Delete the Dsc node configurations by node configuration.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeconfigurations" + }, + "x-ms-examples": { + "Delete a DSC node configuration": { + "$ref": "./examples/deleteDscNodeConfiguration.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The Dsc node configuration name." + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "DscNodeConfiguration" + ], + "operationId": "DscNodeConfiguration_Get", + "description": "Retrieve the Dsc node configurations by node configuration.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeconfigurations" + }, + "x-ms-examples": { + "Get a DSC node configuration": { + "$ref": "./examples/getDscNodeConfiguration.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The Dsc node configuration name." + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNodeConfiguration" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "DscNodeConfiguration" + ], + "operationId": "DscNodeConfiguration_CreateOrUpdate", + "x-ms-long-running-operation": true, + "description": "Create the node configuration identified by node configuration name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeconfigurations" + }, + "x-ms-examples": { + "Get a DSC node configuration": { + "$ref": "./examples/createOrUpdateDscNodeConfiguration.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "nodeConfigurationName", + "in": "path", + "required": true, + "type": "string", + "description": "The Dsc node configuration name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DscNodeConfigurationCreateOrUpdateParametersProperties" + }, + "description": "The create or update parameters for configuration." + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNodeConfiguration" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/DscNodeConfiguration" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations": { + "get": { + "tags": [ + "DscNodeConfiguration" + ], + "operationId": "DscNodeConfiguration_ListByAutomationAccount", + "description": "Retrieve a list of dsc node configurations.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/dscnodeconfigurations" + }, + "x-ms-examples": { + "List DSC node configurations by Automation Account": { + "$ref": "./examples/listDscNodeConfigurations.json" + } + }, + "parameters": [ + { + "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "./definitions.json#/parameters/ApiVersionParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DscNodeConfigurationListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "./definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "ContentHash": { + "properties": { + "algorithm": { + "type": "string", + "description": "Gets or sets the content hash algorithm used to hash the content." + }, + "value": { + "type": "string", + "description": "Gets or sets expected hash value of the content." + } + }, + "required": [ + "algorithm", + "value" + ], + "description": "Definition of the runbook property type." + }, + "ContentSource": { + "properties": { + "hash": { + "$ref": "#/definitions/ContentHash", + "description": "Gets or sets the hash." + }, + "type": { + "type": "string", + "description": "Gets or sets the content source type.", + "enum": [ + "embeddedContent", + "uri" + ], + "x-ms-enum": { + "name": "ContentSourceType", + "modelAsString": true + } + }, + "value": { + "type": "string", + "description": "Gets or sets the value of the content. This is based on the content source type." + }, + "version": { + "type": "string", + "description": "Gets or sets the version of the content." + } + }, + "description": "Definition of the content source." + }, + "DscNodeConfiguration": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/DscNodeConfigurationProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the configuration properties." + } + }, + "allOf": [ + { + "$ref": "./definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the dsc node configuration." + }, + "DscNodeConfigurationProperties": { + "properties": { + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets creation time." + }, + "configuration": { + "$ref": "#/definitions/DscConfigurationAssociationProperty", + "description": "Gets or sets the configuration of the node." + } + } + }, + "DscNodeConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DscNodeConfiguration" + }, + "description": "Gets or sets a list of Dsc node configurations." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list job operation." + }, + "DscNodeExtensionHandlerAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the extension handler." + }, + "version": { + "type": "string", + "description": "Gets or sets the version of the extension handler." + } + }, + "description": "The dsc extensionHandler property associated with the node" + }, + "DscNodeConfigurationCreateOrUpdateParametersProperties": { + "properties": { + "source": { + "$ref": "#/definitions/ContentSource", + "description": "Gets or sets the source." + }, + "name": { + "type": "string", + "description": "Gets or sets the type of the parameter." + }, + "configuration": { + "$ref": "#/definitions/DscConfigurationAssociationProperty", + "description": "Gets or sets the configuration of the node." + }, + "newNodeConfigurationBuildVersionRequired": { + "type": "boolean", + "description": "If a new build version of NodeConfiguration is required." + } + }, + "required": [ + "source", + "name", + "configuration" + ], + "description": "The parameters supplied to the create or update node configuration operation." + }, + "DscConfigurationAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the Dsc configuration." + } + }, + "description": "The Dsc configuration property associated with the entity." + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json new file mode 100644 index 000000000000..a9b636593296 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2015-10-31", + "jobId": "836d4e06-2d88-46b4-8500-7febd4906838", + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838:00636481062421684835:00000000000000000001", + "summary": "", + "time": "2017-12-05T21:30:42.1684835+00:00", + "streamType": "Output", + "streamText": "", + "value": { + "value": "", + "PSComputerName": "localhost", + "PSShowComputerName": true, + "PSSourceJobInstanceId": "836d4e06-2d88-46b4-8500-7febd4906838" + } + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json new file mode 100644 index 000000000000..f60b807a8734 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json @@ -0,0 +1,90 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2015-10-31", + "jobId": "836d4e06-2d88-46b4-8500-7febd4906838" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062355996678_00000000000000000001", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062355996678_00000000000000000001", + "summary": "836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management' snap-in was already imported.", + "time": "2017-12-05T21:30:35.5996678+00:00", + "streamType": "Warning" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062380840740_00000000000000000002", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062380840740_00000000000000000002", + "summary": "836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The configuration 'NewDscConfiguration' is loading one or more built-in resources without explicitly importing associated modules. Add Import-DscResource –ModuleName 'PSDesiredStateConfiguration' to your configuration to avoid this message.", + "time": "2017-12-05T21:30:38.084074+00:00", + "streamType": "Warning" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062384590127_00000000000000000003", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062384590127_00000000000000000003", + "summary": "836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The 'Microsoft.PowerShell.Management' module was not imported because the 'Microsoft.PowerShell.Management' snap-in was already imported.", + "time": "2017-12-05T21:30:38.4590127+00:00", + "streamType": "Warning" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062387245395_00000000000000000004", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062387245395_00000000000000000004", + "summary": "836d4e06-2d88-46b4-8500-7febd4906838:[localhost]:The configuration 'NewDscConfiguration' is loading one or more built-in resources without explicitly importing associated modules. Add Import-DscResource –ModuleName 'PSDesiredStateConfiguration' to your configuration to avoid this message.", + "time": "2017-12-05T21:30:38.7245395+00:00", + "streamType": "Warning" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062417091181_00000000000000000005", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062417091181_00000000000000000005", + "summary": "", + "time": "2017-12-05T21:30:41.7091181+00:00", + "streamType": "Output" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062418809632_00000000000000000006", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062418809632_00000000000000000006", + "summary": "", + "time": "2017-12-05T21:30:41.8809632+00:00", + "streamType": "Output" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062420371712_00000000000000000007", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062420371712_00000000000000000007", + "summary": "", + "time": "2017-12-05T21:30:42.0371712+00:00", + "streamType": "Output" + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/836d4e06-2d88-46b4-8500-7febd4906838/streams/836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008", + "properties": { + "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008", + "summary": "", + "time": "2017-12-05T21:30:42.1684835+00:00", + "streamType": "Output" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json new file mode 100644 index 000000000000..759af74dc033 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "compilationJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "api-version": "2015-10-31", + "parameters": { + "properties": { + "configuration": { + "name": "SetupServer" + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "name": null, + "properties": { + "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "creationTime": "2017-03-28T23:14:26.903+00:00", + "provisioningState": "Processing", + "status": "New", + "statusDetails": "None", + "startTime": null, + "endTime": null, + "lastModifiedTime": "2017-03-28T23:14:26.903+00:00", + "lastStatusModifiedTime": "2017-03-28T23:14:26.903+00:00", + "exception": null, + "parameters": {}, + "configuration": { + "name": "SetupServer" + }, + "runOn": null + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json new file mode 100644 index 000000000000..f44418b4ec69 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount20", + "credentialName": "myCredential", + "api-version": "2015-10-31", + "nodeConfigurationName": "configName.nodeConfigName", + "parameters": { + "source": { + "hash": { + "algorithm": "sha256", + "value": "6DE256A57F01BFA29B88696D5E77A383D6E61484C7686E8DB955FA10ACE9FFE5" + }, + "type": "embeddedContent", + "value": "\r\ninstance of MSFT_RoleResource as $MSFT_RoleResource1ref\r\n{\r\nResourceID = \"[WindowsFeature]IIS\";\r\n Ensure = \"Present\";\r\n SourceInfo = \"::3::32::WindowsFeature\";\r\n Name = \"Web-Server\";\r\n ModuleName = \"PsDesiredStateConfiguration\";\r\n\r\nModuleVersion = \"1.0\";\r\r\n ConfigurationName = \"configName\";\r\r\n};\r\ninstance of OMI_ConfigurationDocument\r\n\r\r\n {\r\n Version=\"2.0.0\";\r\n \r\r\n MinimumCompatibleVersion = \"1.0.0\";\r\n \r\r\n CompatibleVersionAdditionalProperties= {\"Omi_BaseResource:ConfigurationName\"};\r\n \r\r\n Author=\"weijiel\";\r\n \r\r\n GenerationDate=\"03/30/2017 13:40:25\";\r\n \r\r\n GenerationHost=\"TEST-BACKEND\";\r\n \r\r\n Name=\"configName\";\r\n\r\r\n };\r\n", + "version": "1.0" + }, + "newNodeConfigurationBuildVersionRequired": true, + "name": "configName.nodeConfigName", + "configuration": { + "name": "configName" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount20/nodeConfigurations/nodeConfigName", + "configuration": { + "name": "configName" + }, + "creationTime": "2017-06-16T01:18:39.010771+00:00", + "lastModifiedTime": "2017-06-16T01:18:39.010771+00:00", + "name": "nodeConfigName" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json new file mode 100644 index 000000000000..a6ac74b7d326 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount9", + "api-version": "2015-10-31", + "nodeId": "e1243a76-a9bd-432f-bde3-ad8f317ee786" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json new file mode 100644 index 000000000000..48c7039e7037 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount20", + "credentialName": "myCredential", + "api-version": "2015-10-31", + "nodeConfigurationName": "configName.nodeConfigName" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json new file mode 100644 index 000000000000..c17b53c6395c --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount18", + "api-version": "2015-01-15" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/agentRegistrationInformation/https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6", + "keys": { + "primary": "5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==", + "secondary": "rVp0000000000000000000000000000000000000000000000000000000000000000000000000000f8cbmrOA==" + }, + "endpoint": "https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6", + "dscMetaConfiguration": "\r\n\tinstance of MSFT_WebDownloadManager as $MSFT_WebDownloadManager1ref\r\n\t{\r\n\tResourceID = \"[ConfigurationRepositoryWeb]AzureAutomationDSC\";\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::20::9::ConfigurationRepositoryWeb\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t};\r\n\r\n\tinstance of MSFT_WebResourceManager as $MSFT_WebResourceManager1ref\r\n\t{\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::27::9::ResourceRepositoryWeb\";\r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t ResourceID = \"[ResourceRepositoryWeb]AzureAutomationDSC\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t};\r\n\r\n\tinstance of MSFT_WebReportManager as $MSFT_WebReportManager1ref\r\n\t{\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::34::9::ReportServerWeb\";\r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t ResourceID = \"[ReportServerWeb]AzureAutomationDSC\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t};\r\n\r\n\tinstance of MSFT_DSCMetaConfiguration as $MSFT_DSCMetaConfiguration1ref\r\n\t{\r\n\t RefreshMode = \"Pull\";\r\n\t AllowModuleOverwrite = False;\r\n\t ActionAfterReboot = \"ContinueConfiguration\";\r\n\t RefreshFrequencyMins = 30;\r\n\t RebootNodeIfNeeded = False;\r\n\t ConfigurationModeFrequencyMins = 15;\r\n\t ConfigurationMode = \"ApplyAndMonitor\";\r\n\r\n\t ResourceModuleManagers = {\r\n\t $MSFT_WebResourceManager1ref \r\n\t};\r\n\t ReportManagers = {\r\n\t $MSFT_WebReportManager1ref \r\n\t };\r\n\t ConfigurationDownloadManagers = {\r\n\t $MSFT_WebDownloadManager1ref \r\n\t };\r\n\t};\r\n\r\n\tinstance of OMI_ConfigurationDocument\r\n\t{\r\n\t Version=\"2.0.0\";\r\n\t MinimumCompatibleVersion = \"2.0.0\";\r\n\t CompatibleVersionAdditionalProperties= { \"MSFT_DSCMetaConfiguration:StatusRetentionTimeInDays\" };\r\n\t Author=\"azureautomation\";\r\n\t GenerationDate=\"04/17/2015 11:41:09\";\r\n\t GenerationHost=\"azureautomation-01\";\r\n\t Name=\"RegistrationMetaConfig\";\r\n\t};\r\n\t" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json new file mode 100644 index 000000000000..c17b53c6395c --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount18", + "api-version": "2015-01-15" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/agentRegistrationInformation/https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6", + "keys": { + "primary": "5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==", + "secondary": "rVp0000000000000000000000000000000000000000000000000000000000000000000000000000f8cbmrOA==" + }, + "endpoint": "https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6", + "dscMetaConfiguration": "\r\n\tinstance of MSFT_WebDownloadManager as $MSFT_WebDownloadManager1ref\r\n\t{\r\n\tResourceID = \"[ConfigurationRepositoryWeb]AzureAutomationDSC\";\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::20::9::ConfigurationRepositoryWeb\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t};\r\n\r\n\tinstance of MSFT_WebResourceManager as $MSFT_WebResourceManager1ref\r\n\t{\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::27::9::ResourceRepositoryWeb\";\r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t ResourceID = \"[ResourceRepositoryWeb]AzureAutomationDSC\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t};\r\n\r\n\tinstance of MSFT_WebReportManager as $MSFT_WebReportManager1ref\r\n\t{\r\n\t SourceInfo = \"C:\\\\OaaS-RegistrationMetaConfig2.ps1::34::9::ReportServerWeb\";\r\n\t ServerURL = \"https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6\";\r\n\t ResourceID = \"[ReportServerWeb]AzureAutomationDSC\";\r\n\t RegistrationKey = \"5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==\"; \r\n\t};\r\n\r\n\tinstance of MSFT_DSCMetaConfiguration as $MSFT_DSCMetaConfiguration1ref\r\n\t{\r\n\t RefreshMode = \"Pull\";\r\n\t AllowModuleOverwrite = False;\r\n\t ActionAfterReboot = \"ContinueConfiguration\";\r\n\t RefreshFrequencyMins = 30;\r\n\t RebootNodeIfNeeded = False;\r\n\t ConfigurationModeFrequencyMins = 15;\r\n\t ConfigurationMode = \"ApplyAndMonitor\";\r\n\r\n\t ResourceModuleManagers = {\r\n\t $MSFT_WebResourceManager1ref \r\n\t};\r\n\t ReportManagers = {\r\n\t $MSFT_WebReportManager1ref \r\n\t };\r\n\t ConfigurationDownloadManagers = {\r\n\t $MSFT_WebDownloadManager1ref \r\n\t };\r\n\t};\r\n\r\n\tinstance of OMI_ConfigurationDocument\r\n\t{\r\n\t Version=\"2.0.0\";\r\n\t MinimumCompatibleVersion = \"2.0.0\";\r\n\t CompatibleVersionAdditionalProperties= { \"MSFT_DSCMetaConfiguration:StatusRetentionTimeInDays\" };\r\n\t Author=\"azureautomation\";\r\n\t GenerationDate=\"04/17/2015 11:41:09\";\r\n\t GenerationHost=\"azureautomation-01\";\r\n\t Name=\"RegistrationMetaConfig\";\r\n\t};\r\n\t" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json new file mode 100644 index 000000000000..355bdbf4b599 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "compilationJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "name": null, + "properties": { + "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "creationTime": "2017-03-28T23:14:26.903+00:00", + "provisioningState": "Processing", + "status": "New", + "statusDetails": "None", + "startTime": null, + "endTime": null, + "lastModifiedTime": "2017-03-28T23:14:26.903+00:00", + "lastStatusModifiedTime": "2017-03-28T23:14:26.903+00:00", + "exception": null, + "parameters": null, + "configuration": { + "name": "SetupServer" + }, + "runOn": null + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json new file mode 100644 index 000000000000..46695d68d516 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "nodeId": "nodeId", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId", + "lastSeen": "2017-03-28T23:16:30.3192468+00:00", + "registrationTime": "2017-03-28T20:19:24.7915026+00:00", + "name": "DSCCOMP", + "ip": "ip", + "nodeId": "nodeId", + "status": "Pending", + "nodeConfiguration": { + "name": "SetupServer.localhost" + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json new file mode 100644 index 000000000000..d6e0e3a7efdd --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "nodeConfigurationName": "SetupServer.localhost", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost", + "configuration": { + "name": "SetupServer" + }, + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "name": "SetupServer.localhost" + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json new file mode 100644 index 000000000000..4ec3e1f4edc1 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json @@ -0,0 +1,67 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "nodeId": "nodeId", + "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5ead-140c-11e7-a943-000d3a6140c9", + "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T23:16:27.587+00:00", + "endTime": "2017-03-28T23:16:27.587+00:00", + "lastModifiedTime": "2017-03-28T23:16:29.4440401+00:00", + "status": "Compliant", + "refreshMode": "Pull", + "rebootRequested": "False", + "reportFormatVersion": "2.0", + "configurationVersion": "2.0.0", + "errors": [], + "resources": [ + { + "resourceId": "[WindowsFeature]IIS", + "sourceInfo": "::4::32::WindowsFeature", + "dependsOn": [], + "moduleName": "PsDesiredStateConfiguration", + "moduleVersion": "1.1", + "resourceName": "WindowsFeature", + "error": null, + "status": "Compliant", + "durationInSeconds": 0.25, + "startDate": "2017-03-28T23:16:28.181+00:00" + } + ], + "metaConfiguration": { + "configurationModeFrequencyMins": 15, + "rebootNodeIfNeeded": false, + "configurationMode": "ApplyAndMonitor", + "actionAfterReboot": "ContinueConfiguration", + "certificateId": "certId", + "refreshFrequencyMins": 30, + "allowModuleOverwrite": false + }, + "hostName": "DSCCOMP", + "iPV4Addresses": [ + "172.16.2.5", + "127.0.0.1" + ], + "iPV6Addresses": [ + "fe80::4c51:9518:aa3c:256a%5", + "::2000:0:0:0", + "::1", + "::2000:0:0:0", + "2001:0:9d38:78cf:106b:130a:53ef:fdfa", + "fe80::106b:130a:53ef:fdfa%7" + ], + "numberOfResources": 1, + "rawErrors": null + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json new file mode 100644 index 000000000000..00a79283f3db --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId", + "name": "DSCCOMP", + "ip": "172.16.2.5;127.0.0.1;fe80::4c51:9518:aa3c:256a%5;::2000:0:0:0;::1;::2000:0:0:0;2001:0:9d38:78cf:106b:130a:53ef:fdfa;fe80::106b:1", + "lastSeen": "2017-03-28T23:16:30.3192468+00:00", + "registrationTime": "2017-03-28T20:19:24.7915026+00:00", + "nodeId": "nodeId", + "status": "Pending", + "nodeConfiguration": { + "name": "SetupServer.localhost" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json new file mode 100644 index 000000000000..f32fdc0bd568 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/e6e7fbab-183c-405a-afe6-9eb5db97921a", + "properties": { + "jobId": "e6e7fbab-183c-405a-afe6-9eb5db97921a", + "configuration": { + "name": "TestDscConfiguration" + }, + "status": "Suspended", + "creationTime": "2017-11-17T19:45:24.59+00:00", + "startTime": "2017-11-17T19:45:52.9833333+00:00", + "lastModifiedTime": "2017-11-17T19:45:58.5933333+00:00", + "endTime": null + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/111d4e06-2d88-46b4-8500-7febd4906838", + "properties": { + "jobId": "111d4e06-2d88-46b4-8500-7febd4906838", + "configuration": { + "name": "NewDscConfiguration" + }, + "status": "Completed", + "creationTime": "2017-12-05T21:29:07.74+00:00", + "startTime": "2017-12-05T21:30:26.48+00:00", + "lastModifiedTime": "2017-12-05T21:30:42.6+00:00", + "endTime": "2017-12-05T21:30:42.6+00:00" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json new file mode 100644 index 000000000000..b5654e77ffbb --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodeConfigurations/SetupServer.localhost", + "name": "SetupServer.localhost", + "creationTime": "2017-03-28T23:17:06.8901968+00:00", + "lastModifiedTime": "2017-03-28T23:17:06.8901968+00:00", + "configuration": { + "name": "SetupServer" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json new file mode 100644 index 000000000000..699ab382e978 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json @@ -0,0 +1,253 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "nodeId": "nodeId", + "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", + "api-version": "2015-10-31" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5ead-140c-11e7-a943-000d3a6140c9", + "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T23:16:27.587+00:00", + "endTime": "2017-03-28T23:16:27.587+00:00", + "lastModifiedTime": "2017-03-28T23:16:29.4440401+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/903a5eac-140c-11e7-a943-000d3a6140c9", + "reportId": "903a5eac-140c-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T23:16:26.015+00:00", + "endTime": "2017-03-28T23:16:27.015+00:00", + "lastModifiedTime": "2017-03-28T23:16:28.3813034+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/77c280c2-140a-11e7-a943-000d3a6140c9", + "reportId": "77c280c2-140a-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T23:01:25.986+00:00", + "endTime": "2017-03-28T23:01:26.986+00:00", + "lastModifiedTime": "2017-03-28T23:01:28.216963+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5382-1408-11e7-a943-000d3a6140c9", + "reportId": "5f4f5382-1408-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:46:27.668+00:00", + "endTime": "2017-03-28T22:46:28.668+00:00", + "lastModifiedTime": "2017-03-28T22:46:29.0439184+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/5f4f5381-1408-11e7-a943-000d3a6140c9", + "reportId": "5f4f5381-1408-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:46:25.957+00:00", + "endTime": "2017-03-28T22:46:26.957+00:00", + "lastModifiedTime": "2017-03-28T22:46:27.9498533+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/46d97d6a-1406-11e7-a943-000d3a6140c9", + "reportId": "46d97d6a-1406-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:31:25.941+00:00", + "endTime": "2017-03-28T22:31:26.941+00:00", + "lastModifiedTime": "2017-03-28T22:31:27.6825492+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/48c8e301-1404-11e7-a943-000d3a6140c9", + "reportId": "48c8e301-1404-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:17:10.163+00:00", + "endTime": "2017-03-28T22:17:10.163+00:00", + "lastModifiedTime": "2017-03-28T22:17:11.0040472+00:00", + "status": "Failed", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/2e63fdbc-1404-11e7-a943-000d3a6140c9", + "reportId": "2e63fdbc-1404-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:16:25.897+00:00", + "endTime": "2017-03-28T22:17:09.897+00:00", + "lastModifiedTime": "2017-03-28T22:16:27.3128731+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/15ee63e4-1402-11e7-a943-000d3a6140c9", + "reportId": "15ee63e4-1402-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T22:01:25.899+00:00", + "endTime": "2017-03-28T22:01:27.899+00:00", + "lastModifiedTime": "2017-03-28T22:01:26.6282252+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/0508f316-1400-11e7-a943-000d3a6140c9", + "reportId": "0508f316-1400-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:46:38.511+00:00", + "endTime": "2017-03-28T21:46:39.511+00:00", + "lastModifiedTime": "2017-03-28T21:46:40.577983+00:00", + "status": "Failed", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/fd799a51-13ff-11e7-a943-000d3a6140c9", + "reportId": "fd799a51-13ff-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:46:25.843+00:00", + "endTime": "2017-03-28T21:46:37.843+00:00", + "lastModifiedTime": "2017-03-28T21:46:28.4660077+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/e504ae1b-13fd-11e7-a943-000d3a6140c9", + "reportId": "e504ae1b-13fd-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:31:25.818+00:00", + "endTime": "2017-03-28T21:31:27.818+00:00", + "lastModifiedTime": "2017-03-28T21:31:28.1503168+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed224-13fb-11e7-a943-000d3a6140c9", + "reportId": "cd3ed224-13fb-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:16:35.538+00:00", + "endTime": "2017-03-28T21:16:59.538+00:00", + "lastModifiedTime": "2017-03-28T21:16:37.1768158+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/cd3ed223-13fb-11e7-a943-000d3a6140c9", + "reportId": "cd3ed223-13fb-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:16:26.956+00:00", + "endTime": "2017-03-28T21:16:34.956+00:00", + "lastModifiedTime": "2017-03-28T21:16:29.2370664+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/b6915efa-13f9-11e7-a943-000d3a6140c9", + "reportId": "b6915efa-13f9-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T21:01:29.916+00:00", + "endTime": "2017-03-28T21:02:02.916+00:00", + "lastModifiedTime": "2017-03-28T21:01:31.875597+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/a3560dca-13f7-11e7-a943-000d3a6140c9", + "reportId": "a3560dca-13f7-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T20:46:38.626+00:00", + "endTime": "2017-03-28T20:46:44.626+00:00", + "lastModifiedTime": "2017-03-28T20:46:39.749649+00:00", + "status": "Failed", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/9b9bb016-13f7-11e7-a943-000d3a6140c9", + "reportId": "9b9bb016-13f7-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T20:46:25.676+00:00", + "endTime": "2017-03-28T20:46:37.676+00:00", + "lastModifiedTime": "2017-03-28T20:46:27.2602881+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId/reports/833bd89b-13f5-11e7-a943-000d3a6140c9", + "reportId": "833bd89b-13f5-11e7-a943-000d3a6140c9", + "type": "Consistency", + "startTime": "2017-03-28T20:31:25.805+00:00", + "endTime": "2017-03-28T20:40:24.805+00:00", + "lastModifiedTime": "2017-03-28T20:31:27.1356547+00:00", + "status": "Compliant", + "configurationVersion": "2.0.0", + "rebootRequested": "False", + "refreshMode": "Pull", + "reportFormatVersion": "2.0" + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/regenerateAgentRegistrationKey.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/regenerateAgentRegistrationKey.json new file mode 100644 index 000000000000..654f33e46587 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/regenerateAgentRegistrationKey.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount18", + "api-version": "2018-01-15", + "AgentRegistrationRegenerateKeyParameter":{ + "keyName": "primary" + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": null, + "keys": { + "primary": "5ci0000000000000000000000000000000000000000000000000000000000000000000000000000Y5H/8wFg==", + "secondary": "rVp0000000000000000000000000000000000000000000000000000000000000000000000000000f8cbmrOA==" + }, + "endpoint": "https://eus2-agentservice-prod-1.azure-automation.net/accounts/bd8fac9e-0000-0000-0000-0000f474fbf6", + "dscMetaConfiguration": null + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json new file mode 100644 index 000000000000..25ff660a5cbc --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "nodeId": "nodeId", + "api-version": "2015-10-31", + "parameters": { + "nodeId": "nodeId", + "nodeConfiguration": { + "name": "SetupServer.localhost" + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/nodes/nodeId", + "lastSeen": "2017-03-28T23:16:30.3192468+00:00", + "registrationTime": "2017-03-28T20:19:24.7915026+00:00", + "name": "DSCCOMP", + "ip": "172.16.2.5;127.0.0.1;fe80::4c51:9518:aa3c:256a%5;::2000:0:0:0;::1;::2000:0:0:0;2001:0:9d38:78cf:106b:130a:53ef:fdfa;fe80::106b:1", + "nodeId": "nodeId", + "status": null, + "nodeConfiguration": { + "name": "SetupServer.localhost" + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index d50be8861359..e8d0316dd17e 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -4,8 +4,6 @@ This is the AutoRest configuration file for Automation. - - --- ## Getting Started To build the SDK for Automation, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: @@ -20,7 +18,6 @@ To see additional help and options, run: ## Configuration - ### Basic Information These are the global settings for the Automation API. @@ -28,10 +25,9 @@ These are the global settings for the Automation API. title: AutomationClient description: Automation Client openapi-type: arm -tag: package-2017-05-preview +tag: package-2018-01-preview ``` - ### Tag: package-2015-10 These settings apply only when `--tag=package-2015-10` is specified on the command line. @@ -84,6 +80,7 @@ input-file: - 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/preview/2017-05-15-preview/definitions.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 @@ -92,10 +89,43 @@ input-file: - Microsoft.Automation/preview/2017-05-15-preview/job.json ``` +### Tag: package-2018-01-preview + +These settings apply only when `--tag=package-2018-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2018-01-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/definitions.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/runbook.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/preview/2017-05-15-preview/definitions.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/job.json +- Microsoft.Automation/stable/2018-01-15/definitions.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 +``` + --- # Code Generation - ## Swagger to SDK This section describes what SDK should be generated by the automatic system. @@ -123,7 +153,6 @@ csharp: clear-output-folder: true ``` - ## Python These settings apply only when `--python` is specified on the command line. @@ -152,7 +181,6 @@ python: output-folder: $(python-sdks-folder)/azure-mgmt-automation ``` - ## Go These settings apply only when `--go` is specified on the command line. @@ -170,6 +198,7 @@ go: batch: - tag: package-2015-10 - tag: package-2017-05-preview + - tag: package-2018-01-preview ``` ### Tag: package-2015-10 and go @@ -190,6 +219,14 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-01-preview' && $(go) +output-folder: $(go-sdk-folder)/services/automation/mgmt/2018-01-15-preview +``` ## Java From 910ae6c550d026126507ff9ba5fc37ed725617e9 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Mon, 26 Mar 2018 14:57:39 -0700 Subject: [PATCH 02/14] Fixing the Examples API version --- .../examples/compilationJobStreamByJobStreamId.json | 2 +- .../2018-01-15/examples/compilationJobStreamList.json | 2 +- .../2018-01-15/examples/createCompilationJob.json | 8 ++++---- .../examples/createOrUpdateDscNodeConfiguration.json | 2 +- .../stable/2018-01-15/examples/deleteDscNode.json | 2 +- .../examples/deleteDscNodeConfiguration.json | 2 +- .../2018-01-15/examples/getAgentRegistration.1.json | 2 +- .../2018-01-15/examples/getAgentRegistration.json | 2 +- .../stable/2018-01-15/examples/getCompilationJob.json | 8 ++++---- .../stable/2018-01-15/examples/getDscNode.json | 2 +- .../2018-01-15/examples/getDscNodeConfiguration.json | 2 +- .../stable/2018-01-15/examples/getDscNodeReport.json | 2 +- .../2018-01-15/examples/getDscNodeReportContent.json | 2 +- .../examples/listAllDscNodesByAutomationAccount.json | 2 +- .../listCompilationJobsByAutomationAccount.json | 10 +++++++--- .../2018-01-15/examples/listDscNodeConfigurations.json | 2 +- .../2018-01-15/examples/listDscNodeReportsByNode.json | 2 +- .../stable/2018-01-15/examples/updateDscNode.json | 2 +- 18 files changed, 30 insertions(+), 26 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json index a9b636593296..17063a13f06d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamByJobStreamId.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "api-version": "2015-10-31", + "api-version": "2018-01-15", "jobId": "836d4e06-2d88-46b4-8500-7febd4906838", "jobStreamId": "836d4e06-2d88-46b4-8500-7febd4906838_00636481062421684835_00000000000000000008" }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json index f60b807a8734..6a45c2444c78 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/compilationJobStreamList.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "api-version": "2015-10-31", + "api-version": "2018-01-15", "jobId": "836d4e06-2d88-46b4-8500-7febd4906838" }, "responses": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json index 759af74dc033..88342c49bc23 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json @@ -3,8 +3,8 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "compilationJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", - "api-version": "2015-10-31", + "compilationJobName": "TestCompilationJob", + "api-version": "2018-01-15", "parameters": { "properties": { "configuration": { @@ -17,8 +17,8 @@ "201": { "headers": {}, "body": { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", - "name": null, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/TestCompilationJob", + "name": "TestCompilationJob", "properties": { "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json index f6038722b86b..2fab9714a210 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createOrUpdateDscNodeConfiguration.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount20", "credentialName": "myCredential", - "api-version": "2015-10-31", + "api-version": "2018-01-15", "nodeConfigurationName": "configName.nodeConfigName", "parameters": { "source": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json index a6ac74b7d326..52f5f5d46c56 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNode.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount9", - "api-version": "2015-10-31", + "api-version": "2018-01-15", "nodeId": "e1243a76-a9bd-432f-bde3-ad8f317ee786" }, "responses": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json index 48c7039e7037..0424573ba263 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/deleteDscNodeConfiguration.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount20", "credentialName": "myCredential", - "api-version": "2015-10-31", + "api-version": "2018-01-15", "nodeConfigurationName": "configName.nodeConfigName" }, "responses": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json index c17b53c6395c..8310cbab68cb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.1.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount18", - "api-version": "2015-01-15" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json index c17b53c6395c..8310cbab68cb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getAgentRegistration.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount18", - "api-version": "2015-01-15" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json index 355bdbf4b599..51c7d465a2fa 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json @@ -3,15 +3,15 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "compilationJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", - "api-version": "2015-10-31" + "compilationJobName": "TestCompilationJob", + "api-version": "2018-01-15" }, "responses": { "200": { "headers": {}, "body": { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", - "name": null, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/TestCompilationJob", + "name": "TestCompilationJob", "properties": { "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json index e46c7f780bf4..8bafdffa22bc 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNode.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", "nodeId": "nodeId", - "api-version": "2015-10-31" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json index aae2051b07d2..df1864a53de0 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeConfiguration.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", "nodeConfigurationName": "SetupServer.localhost", - "api-version": "2015-10-31" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json index 4ec3e1f4edc1..725ff674f3a8 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReport.json @@ -5,7 +5,7 @@ "automationAccountName": "myAutomationAccount33", "nodeId": "nodeId", "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", - "api-version": "2015-10-31" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReportContent.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReportContent.json index b7494318ac0b..9b2b0268d5a6 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReportContent.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getDscNodeReportContent.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", "nodeId": "nodeId", - "api-version": "2015-10-31", + "api-version": "2018-01-15", "reportId": "reportId" }, "responses": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json index 59607c6e622a..db3457c6cd30 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listAllDscNodesByAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "api-version": "2015-10-31" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json index f32fdc0bd568..b8b207aab653 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listCompilationJobsByAutomationAccount.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "api-version": "2015-10-31" + "api-version": "2018-01-15" }, "responses": { "200": { @@ -11,7 +11,9 @@ "body": { "value": [ { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/e6e7fbab-183c-405a-afe6-9eb5db97921a", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/", + "name": "CompilationConfiguration1", + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { "jobId": "e6e7fbab-183c-405a-afe6-9eb5db97921a", "configuration": { @@ -25,7 +27,9 @@ } }, { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/111d4e06-2d88-46b4-8500-7febd4906838", + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/", + "name": "CompilationConfiguration2", + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { "jobId": "111d4e06-2d88-46b4-8500-7febd4906838", "configuration": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json index 349525c91b3b..91fdef1e29aa 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeConfigurations.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "api-version": "2015-10-31" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json index 699ab382e978..72002d34a646 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/listDscNodeReportsByNode.json @@ -5,7 +5,7 @@ "automationAccountName": "myAutomationAccount33", "nodeId": "nodeId", "reportId": "903a5ead-140c-11e7-a943-000d3a6140c9", - "api-version": "2015-10-31" + "api-version": "2018-01-15" }, "responses": { "200": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json index 0e0612673fe9..c4ed360561b9 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/updateDscNode.json @@ -4,7 +4,7 @@ "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", "nodeId": "nodeId", - "api-version": "2015-10-31", + "api-version": "2018-01-15", "dscNodeUpdateParameters": { "nodeId": "nodeId", "properties": { From e49460c58866ccd3ec1e07496a7a61ffcda19dc9 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Mon, 26 Mar 2018 16:35:50 -0700 Subject: [PATCH 03/14] Updating the sourControlSyncJobs to fix the model validation issues --- .../createSourceControlSyncJob.json | 4 ++-- .../getAllSourceControlSyncJobs.json | 20 +++++++++---------- .../getSourceControlSyncJob.json | 10 +++++----- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json index 0c0ac452ee8f..89f504628c82 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/createSourceControlSyncJob.json @@ -16,8 +16,8 @@ "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00", "provisioningState": "Running", - "startTime": null, - "endTime": null, + "startTime": "2017-03-28T23:14:27.903+00:00", + "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json index 37e0e6238d82..4223fc7ba428 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getAllSourceControlSyncJobs.json @@ -17,8 +17,8 @@ "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a1a", "creationTime": "2017-03-28T23:14:26.903+00:00", "provisioningState": "Running", - "startTime": null, - "endTime": null, + "startTime": "2017-03-28T23:14:27.903+00:00", + "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" } }, @@ -28,8 +28,8 @@ "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a2a", "creationTime": "2017-03-28T23:14:26.903+00:00", "provisioningState": "Running", - "startTime": null, - "endTime": null, + "startTime": "2017-03-28T23:14:27.903+00:00", + "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" } }, @@ -39,8 +39,8 @@ "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a3a", "creationTime": "2017-03-28T23:14:26.903+00:00", "provisioningState": "Running", - "startTime": null, - "endTime": null, + "startTime": "2017-03-28T23:14:27.903+00:00", + "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" } }, @@ -50,8 +50,8 @@ "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a4a", "creationTime": "2017-03-28T23:14:26.903+00:00", "provisioningState": "Running", - "startTime": null, - "endTime": null, + "startTime": "2017-03-28T23:14:27.903+00:00", + "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" } }, @@ -61,8 +61,8 @@ "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a5a", "creationTime": "2017-03-28T23:14:26.903+00:00", "provisioningState": "Running", - "startTime": null, - "endTime": null, + "startTime": "2017-03-28T23:14:27.903+00:00", + "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1" } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getSourceControlSyncJob.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getSourceControlSyncJob.json index 662fde605a26..3e66b5911326 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getSourceControlSyncJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/sourceControlSyncJob/getSourceControlSyncJob.json @@ -15,13 +15,13 @@ "properties": { "sourceControlSyncJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00", - "provisioningState": "Running", - "startTime": null, - "endTime": null, + "provisioningState": "Completed", + "startTime": "2017-03-28T23:14:27.903+00:00", + "endTime": "2017-03-28T23:14:28.903+00:00", "startedBy": "User1", "errors": { - "code": null, - "message": null + "code": "0", + "message": "" } } } From 8d200bb273d0522a7ad78cc9520690a5c9454a75 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 27 Mar 2018 11:25:20 -0700 Subject: [PATCH 04/14] Fix the model issue with getContent --- .../Microsoft.Automation/stable/2018-01-15/dscNode.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json index 89d4a9f0bb3e..8fb59e2a8c8c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json @@ -521,7 +521,7 @@ "200": { "description": "OK", "schema": { - "type": "file" + "type": "object" } }, "default": { From 8b68d3738a2b38e865aaa3c5daa34cedcb4ace5b Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 27 Mar 2018 11:47:15 -0700 Subject: [PATCH 05/14] Updated SoftwareUpdateConfiguration examples --- .../createSoftwareUpdateConfiguration.json | 6 +++--- .../getSoftwareUpdateConfigurationByName.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json index 9752e1a8643e..908377e8c98a 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json @@ -15,7 +15,7 @@ "168934", "168973" ], - "includedUpdateClassifications": "Critical,Definition,FeaturePack,Security,ServicePack,Tools,UpdateRollup,Updates" + "includedUpdateClassifications": "Critical" }, "azureVirtualMachines": [ "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", @@ -53,7 +53,7 @@ "updateConfiguration": { "operatingSystem": "Windows", "windows": { - "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", + "includedUpdateClassifications": "Critical", "excludedKbNumbers": [ "168934", "168973" @@ -105,7 +105,7 @@ "updateConfiguration": { "operatingSystem": "Windows", "windows": { - "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", + "includedUpdateClassifications": "Critical", "excludedKbNumbers": [ "168934", "168973" diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json index ff5a8cc0a871..fa8ac20496fb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json @@ -17,7 +17,7 @@ "updateConfiguration": { "operatingSystem": "Windows", "windows": { - "includedUpdateClassifications": "Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates", + "includedUpdateClassifications": "Critical", "excludedKbNumbers": [ "168934", "168973" From 0f885ce92aa716cd78762820ee178f94d483072a Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 27 Mar 2018 13:55:35 -0700 Subject: [PATCH 06/14] Change the location scope of ResourceGroupNameParam --- .../preview/2017-05-15-preview/definitions.json | 2 +- .../Microsoft.Automation/stable/2015-10-31/definitions.json | 2 +- .../Microsoft.Automation/stable/2018-01-15/definitions.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json index a54a7f882851..5a8d196258f5 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json @@ -1525,7 +1525,7 @@ "pattern": "^[-\\w\\._]+$", "minLength": 1, "maxLength": 90, - "x-ms-parameter-location": "client", + "x-ms-parameter-location": "method", "description": "Name of an Azure Resource group." }, "AutomationAccountNameParameter": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json index 67c59f0dbea4..0901e7ae1e6e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json @@ -3841,7 +3841,7 @@ "pattern": "^[-\\w\\._]+$", "minLength": 1, "maxLength": 90, - "x-ms-parameter-location": "client", + "x-ms-parameter-location": "method", "description": "Name of an Azure Resource group." } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json index 1100c20af792..4673c1db6159 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json @@ -135,7 +135,7 @@ "pattern": "^[-\\w\\._]+$", "minLength": 1, "maxLength": 90, - "x-ms-parameter-location": "client", + "x-ms-parameter-location": "method", "description": "Name of an Azure Resource group." }, "AutomationAccountNameParameter": { From eea609999d374a196753a6fedee2cc660fb4bfe5 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 27 Mar 2018 15:51:14 -0700 Subject: [PATCH 07/14] Fix based on recent comments --- .../stable/2018-01-15/dscCompilationJob.json | 5 +++-- .../Microsoft.Automation/stable/2018-01-15/dscNode.json | 6 ++++-- .../stable/2018-01-15/dscNodeConfiguration.json | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json index b8040b876d27..f03c18acab69 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json @@ -201,10 +201,11 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" - } + }, + "x-ms-odata": "#/definitions/DscCompilationJob" } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams": { "get": { "tags": [ "DscCompilationJob" diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json index 8fb59e2a8c8c..9dfd305244cc 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNode.json @@ -350,7 +350,8 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" - } + }, + "x-ms-odata": "#/definitions/DscNode" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports": { @@ -412,7 +413,8 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" - } + }, + "x-ms-odata": "#/definitions/DscNodeReport" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json index ccb25b375482..11f28a86a633 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json @@ -251,7 +251,8 @@ }, "x-ms-pageable": { "nextLinkName": "nextLink" - } + }, + "x-ms-odata": "#/definitions/DscNodeConfiguration" } } }, From 668cb34d3777d3172353b5a1d60f758519e3736f Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 27 Mar 2018 16:36:29 -0700 Subject: [PATCH 08/14] Adding type for interval --- .../preview/2017-05-15-preview/definitions.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json index 5a8d196258f5..30b9da8cf16f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json @@ -1440,6 +1440,8 @@ "description": "Gets or sets the next run time's offset in minutes." }, "interval": { + "type": "integer", + "format": "byte", "description": "Gets or sets the interval of the schedule." }, "frequency": { From 537c78b977a7eb033779b4ce0e26ebf48072dc08 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Wed, 28 Mar 2018 11:10:49 -0700 Subject: [PATCH 09/14] Corrent the type for interval type --- .../preview/2017-05-15-preview/definitions.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json index 30b9da8cf16f..b9909b566088 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json @@ -1440,7 +1440,7 @@ "description": "Gets or sets the next run time's offset in minutes." }, "interval": { - "type": "integer", + "type": "string", "format": "byte", "description": "Gets or sets the interval of the schedule." }, @@ -1555,4 +1555,4 @@ "x-ms-parameter-location": "method" } } -} \ No newline at end of file +} From cf448425c7cfd222b5ecd89f6ebf5b25ecaf4f64 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Wed, 28 Mar 2018 11:49:59 -0700 Subject: [PATCH 10/14] Fixing model issues in SUC resources --- .../createSoftwareUpdateConfiguration.json | 324 +++++++++--------- .../getSoftwareUpdateConfigurationByName.json | 134 ++++---- 2 files changed, 229 insertions(+), 229 deletions(-) mode change 100644 => 100755 specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json mode change 100644 => 100755 specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json old mode 100644 new mode 100755 index 908377e8c98a..a89a27a84ead --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/createSoftwareUpdateConfiguration.json @@ -1,163 +1,163 @@ -{ - "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationName": "testpatch", - "api-version": "2017-05-15-preview", - "parameters": { - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "duration": "PT2H0M", - "windows": { - "excludedKbNumbers": [ - "168934", - "168973" - ], - "includedUpdateClassifications": "Critical" - }, - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": [ - "box1.contoso.com", - "box2.contoso.com" - ] - }, - "scheduleInfo": { - "frequency": "Hour", - "startTime": "2017-10-19T12:22:57+00:00", - "timeZone": "America/Los_Angeles", - "interval": 1, - "expiryTime": "2018-11-09T11:22:57+00:00", - "advancedSchedule": { - "weekDays": [ - "Monday", - "Thursday" - ] - } - } - } - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "name": "testpatch", - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical", - "excludedKbNumbers": [ - "168934", - "168973" - ] - }, - "linux": {}, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": [ - "box1.contoso.com", - "box2.contoso.com" - ] - }, - "scheduleInfo": { - "description": "", - "startTime": "2017-10-19T12:22:00-07:00", - "startTimeOffsetMinutes": -420.0, - "expiryTime": "2018-11-09T11:22:00-08:00", - "expiryTimeOffsetMinutes": -480.0, - "isEnabled": true, - "nextRun": "2017-10-19T12:22:00-07:00", - "nextRunOffsetMinutes": -420.0, - "interval": 1, - "frequency": "Week", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", - "timeZone": "America/Los_Angeles", - "advancedSchedule": {} - }, - "provisioningState": "Provisioning", - "error": {}, - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "createdBy": "adam@contoso.com", - "lastModifiedBy": "adam@contoso.com", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" - } - } - }, - "201": { - "headers": {}, - "body": { - "name": "testpatch", - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical", - "excludedKbNumbers": [ - "168934", - "168973" - ] - }, - "linux": {}, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": [ - "box1.contoso.com", - "box2.contoso.com" - ] - }, - "scheduleInfo": { - "description": "", - "startTime": "2017-10-19T12:22:00-07:00", - "startTimeOffsetMinutes": -420.0, - "expiryTime": "2018-11-09T11:22:00-08:00", - "expiryTimeOffsetMinutes": -480.0, - "isEnabled": true, - "nextRun": "2017-10-19T12:22:00-07:00", - "nextRunOffsetMinutes": -420.0, - "interval": 1, - "frequency": "Week", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", - "timeZone": "America/Los_Angeles", - "advancedSchedule": null - }, - "provisioningState": "Provisioning", - "error": {}, - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" - } - } - }, - "400": { - "code": "BadRequest", - "message": "{\"Message\":\"The request is invalid.\",\"ModelState\":{\"softwareUpdateConfiguration.properties.scheduleInfo\":[\"The scheduleInfo field is required.\"]}}" - }, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" - }, - "409": { - "code": "Conflict", - "message": "\"Software update configuration with the same name already exist.\"" - } - } +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationName": "testpatch", + "api-version": "2017-05-15-preview", + "parameters": { + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "duration": "PT2H0M", + "windows": { + "excludedKbNumbers": [ + "168934", + "168973" + ], + "includedUpdateClassifications": "Critical" + }, + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": [ + "box1.contoso.com", + "box2.contoso.com" + ] + }, + "scheduleInfo": { + "frequency": "Hour", + "startTime": "2017-10-19T12:22:57+00:00", + "timeZone": "America/Los_Angeles", + "interval": 1, + "expiryTime": "2018-11-09T11:22:57+00:00", + "advancedSchedule": { + "weekDays": [ + "Monday", + "Thursday" + ] + } + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "testpatch", + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical", + "excludedKbNumbers": [ + "168934", + "168973" + ] + }, + "linux": {}, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": [ + "box1.contoso.com", + "box2.contoso.com" + ] + }, + "scheduleInfo": { + "description": "", + "startTime": "2017-10-19T12:22:00-07:00", + "startTimeOffsetMinutes": -420.0, + "expiryTime": "2018-11-09T11:22:00-08:00", + "expiryTimeOffsetMinutes": -480.0, + "isEnabled": true, + "nextRun": "2017-10-19T12:22:00-07:00", + "nextRunOffsetMinutes": -420.0, + "interval": 1, + "frequency": "Week", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", + "timeZone": "America/Los_Angeles", + "advancedSchedule": {} + }, + "provisioningState": "Provisioning", + "error": {}, + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "createdBy": "adam@contoso.com", + "lastModifiedBy": "adam@contoso.com", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + } + } + }, + "201": { + "headers": {}, + "body": { + "name": "testpatch", + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical", + "excludedKbNumbers": [ + "168934", + "168973" + ] + }, + "linux": {}, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": [ + "box1.contoso.com", + "box2.contoso.com" + ] + }, + "scheduleInfo": { + "description": "", + "startTime": "2017-10-19T12:22:00-07:00", + "startTimeOffsetMinutes": -420.0, + "expiryTime": "2018-11-09T11:22:00-08:00", + "expiryTimeOffsetMinutes": -480.0, + "isEnabled": true, + "nextRun": "2017-10-19T12:22:00-07:00", + "nextRunOffsetMinutes": -420.0, + "interval": 1, + "frequency": "Week", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", + "timeZone": "America/Los_Angeles", + "advancedSchedule": null + }, + "provisioningState": "Provisioning", + "error": {}, + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + } + } + }, + "400": { + "code": "BadRequest", + "message": "{\"Message\":\"The request is invalid.\",\"ModelState\":{\"softwareUpdateConfiguration.properties.scheduleInfo\":[\"The scheduleInfo field is required.\"]}}" + }, + "404": { + "code": "NotFound", + "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" + }, + "409": { + "code": "Conflict", + "message": "\"Software update configuration with the same name already exist.\"" + } + } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json old mode 100644 new mode 100755 index fa8ac20496fb..a56c130e7a99 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/getSoftwareUpdateConfigurationByName.json @@ -1,68 +1,68 @@ -{ - "parameters": { - "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", - "resourceGroupName": "mygroup", - "automationAccountName": "myaccount", - "softwareUpdateConfigurationName": "mypatch", - "api-version": "2017-05-15-preview", - "body": {} - }, - "responses": { - "200": { - "headers": {}, - "body": { - "name": "testpatch", - "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", - "properties": { - "updateConfiguration": { - "operatingSystem": "Windows", - "windows": { - "includedUpdateClassifications": "Critical", - "excludedKbNumbers": [ - "168934", - "168973" - ] - }, - "linux": {}, - "duration": "PT2H", - "azureVirtualMachines": [ - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", - "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" - ], - "nonAzureComputerNames": [ - "box1.contoso.com", - "box2.contoso.com" - ] - }, - "scheduleInfo": { - "description": "", - "startTime": "2017-10-19T12:22:00-07:00", - "startTimeOffsetMinutes": -420.0, - "expiryTime": "2018-11-09T11:22:00-08:00", - "expiryTimeOffsetMinutes": -480.0, - "isEnabled": true, - "nextRun": "2017-10-19T12:22:00-07:00", - "nextRunOffsetMinutes": -420.0, - "interval": 1, - "frequency": "Week", - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", - "timeZone": "America/Los_Angeles", - "advancedSchedule": null - }, - "provisioningState": "Provisioning", - "createdBy": "eve@contoso.com", - "error": {}, - "creationTime": "2017-10-19T18:54:50.5233333+00:00", - "lastModifiedBy": "", - "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" - } - } - }, - "404": { - "code": "NotFound", - "message": "Software update configuration not found" - } - } +{ + "parameters": { + "subscriptionId": "51766542-3ed7-4a72-a187-0c8ab644ddab", + "resourceGroupName": "mygroup", + "automationAccountName": "myaccount", + "softwareUpdateConfigurationName": "mypatch", + "api-version": "2017-05-15-preview", + "body": {} + }, + "responses": { + "200": { + "headers": {}, + "body": { + "name": "testpatch", + "id": "/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurations/testpatch", + "properties": { + "updateConfiguration": { + "operatingSystem": "Windows", + "windows": { + "includedUpdateClassifications": "Critical", + "excludedKbNumbers": [ + "168934", + "168973" + ] + }, + "linux": {}, + "duration": "PT2H", + "azureVirtualMachines": [ + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-01", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-02", + "/subscriptions/5ae68d89-69a4-454f-b5ce-e443cc4e0067/resourceGroups/myresources/providers/Microsoft.Compute/virtualMachines/vm-03" + ], + "nonAzureComputerNames": [ + "box1.contoso.com", + "box2.contoso.com" + ] + }, + "scheduleInfo": { + "description": "", + "startTime": "2017-10-19T12:22:00-07:00", + "startTimeOffsetMinutes": -420.0, + "expiryTime": "2018-11-09T11:22:00-08:00", + "expiryTimeOffsetMinutes": -480.0, + "isEnabled": true, + "nextRun": "2017-10-19T12:22:00-07:00", + "nextRunOffsetMinutes": -420.0, + "interval": 1, + "frequency": "Week", + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedTime": "2017-10-19T18:54:50.5233333+00:00", + "timeZone": "America/Los_Angeles", + "advancedSchedule": null + }, + "provisioningState": "Provisioning", + "createdBy": "eve@contoso.com", + "error": {}, + "creationTime": "2017-10-19T18:54:50.5233333+00:00", + "lastModifiedBy": "", + "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" + } + } + }, + "404": { + "code": "NotFound", + "message": "Software update configuration not found" + } + } } \ No newline at end of file From 635ff077a4cbdad5b08d8031aab66984777078a5 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Wed, 28 Mar 2018 12:12:58 -0700 Subject: [PATCH 11/14] Fixed the interval type model issue --- .../preview/2017-05-15-preview/definitions.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json index b9909b566088..b086fbc3908f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json @@ -1440,8 +1440,7 @@ "description": "Gets or sets the next run time's offset in minutes." }, "interval": { - "type": "string", - "format": "byte", + "type": "integer", "description": "Gets or sets the interval of the schedule." }, "frequency": { From 5b83823d01ba4084b16da35c2a6e5f6245098ba9 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Thu, 29 Mar 2018 15:41:59 -0700 Subject: [PATCH 12/14] Change readme.md to remove new go build --- specification/automation/resource-manager/readme.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 3293965b2b3c..0685cbfe3c82 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -231,15 +231,6 @@ Please also specify `--go-sdk-folder=`. - -``` yaml $(tag) == 'package-2018-01-preview' && $(go) -output-folder: $(go-sdk-folder)/services/automation/mgmt/2018-01-15-preview -``` - ## Java These settings apply only when `--java` is specified on the command line. From 49e01dd30bfcd35658258c4a4cd9bec1eccd52fa Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Thu, 29 Mar 2018 16:03:13 -0700 Subject: [PATCH 13/14] Fix Proxy Resource Properties --- .../stable/2015-10-31/definitions.json | 95 ++----------------- 1 file changed, 10 insertions(+), 85 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json index 0901e7ae1e6e..f8a47629d909 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json @@ -526,21 +526,6 @@ }, "Certificate": { "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Gets the name of the certificate." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource type" - }, "properties": { "$ref": "#/definitions/CertificateProperties", "x-ms-client-flatten": true, @@ -669,21 +654,6 @@ }, "Connection": { "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Gets the name of the connection." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource type" - }, "properties": { "$ref": "#/definitions/ConnectionProperties", "x-ms-client-flatten": true, @@ -928,33 +898,18 @@ "description": "Definition of the credential properties" }, "Credential": { - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Gets the name of the credential." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource type" - }, "properties": { "$ref": "#/definitions/CredentialProperties", "x-ms-client-flatten": true, "description": "Gets or sets the properties of the credential." } }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], "description": "Definition of the credential." }, "CredentialListResult": { @@ -3557,33 +3512,18 @@ "description": "Definition of the varible properties" }, "Variable": { - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Gets the name of the variable." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource type" - }, "properties": { "$ref": "#/definitions/VariableProperties", "x-ms-client-flatten": true, "description": "Gets or sets the properties of the variable." } }, + "allOf": [ + { + "$ref": "#/definitions/ProxyResource" + } + ], "description": "Definition of the varible." }, "VariableListResult": { @@ -3735,21 +3675,6 @@ }, "Webhook": { "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Gets the name of the webhook." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Gets the type of the resource." - }, "properties": { "$ref": "#/definitions/WebhookProperties", "x-ms-client-flatten": true, From a4b37e767f42cdc45542216ed43704aecb4222c0 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Thu, 29 Mar 2018 16:55:29 -0700 Subject: [PATCH 14/14] Updating DSC Compilation Jobs examples --- .../stable/2015-10-31/examples/createCompilationJob.json | 9 +++++---- .../stable/2015-10-31/examples/getCompilationJob.json | 1 + .../examples/listCompilationJobsByAutomationAccount.json | 4 ++++ .../stable/2018-01-15/examples/createCompilationJob.json | 1 + .../stable/2018-01-15/examples/getCompilationJob.json | 1 + 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createCompilationJob.json index 759af74dc033..aa5009e6da93 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createCompilationJob.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount33", - "compilationJobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "compilationJobId": "111d4e06-2d88-46b4-8500-7febd4906838", "api-version": "2015-10-31", "parameters": { "properties": { @@ -17,10 +17,11 @@ "201": { "headers": {}, "body": { - "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", - "name": null, + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/111d4e06-2d88-46b4-8500-7febd4906838", + "name": "111d4e06-2d88-46b4-8500-7febd4906838", + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { - "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", + "jobId": "111d4e06-2d88-46b4-8500-7febd4906838", "creationTime": "2017-03-28T23:14:26.903+00:00", "provisioningState": "Processing", "status": "New", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getCompilationJob.json index 355bdbf4b599..93faf81e1116 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getCompilationJob.json @@ -12,6 +12,7 @@ "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "name": null, + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listCompilationJobsByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listCompilationJobsByAutomationAccount.json index f32fdc0bd568..95569e4ffd15 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listCompilationJobsByAutomationAccount.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/listCompilationJobsByAutomationAccount.json @@ -12,6 +12,8 @@ "value": [ { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/e6e7fbab-183c-405a-afe6-9eb5db97921a", + "name": "e6e7fbab-183c-405a-afe6-9eb5db97921a", + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { "jobId": "e6e7fbab-183c-405a-afe6-9eb5db97921a", "configuration": { @@ -26,6 +28,8 @@ }, { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/111d4e06-2d88-46b4-8500-7febd4906838", + "name": "111d4e06-2d88-46b4-8500-7febd4906838", + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { "jobId": "111d4e06-2d88-46b4-8500-7febd4906838", "configuration": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json index 88342c49bc23..1c0e87a4b530 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/createCompilationJob.json @@ -19,6 +19,7 @@ "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/TestCompilationJob", "name": "TestCompilationJob", + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json index 51c7d465a2fa..d4d3cfaa8c0e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/examples/getCompilationJob.json @@ -12,6 +12,7 @@ "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/compilationjobs/TestCompilationJob", "name": "TestCompilationJob", + "type": "Microsoft.Automation/AutomationAccounts/compilationjobs", "properties": { "jobId": "ce6fe3e3-9db3-4096-a6b4-82bfb4c10a9a", "creationTime": "2017-03-28T23:14:26.903+00:00",