From 7eb76dd8c9945d26333853b90eb4109cb3672b9c Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Mon, 4 Jun 2018 10:16:23 -0700 Subject: [PATCH 01/15] Adding new common definitions file --- .../common/v1/definitions.json | 130 ++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json diff --git a/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json new file mode 100644 index 000000000000..d1e12435dd10 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json @@ -0,0 +1,130 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0", + "title": "Common types" + }, + "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", + "type":"object", + "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", + "type":"object", + "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":"ARM proxy resource.", + "type":"object", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties":{} + } + }, + "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": "method", + "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" + }, + "clientRequestId": { + "name": "clientRequestId", + "description": "Identifies this specific client request.", + "type": "string", + "required": false, + "in": "header", + "x-ms-parameter-location": "method" + } + } +} \ No newline at end of file From cf70daa6286e791991719865edc67272f9aaf702 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Wed, 6 Jun 2018 18:43:22 -0700 Subject: [PATCH 02/15] Refactoring Automation Resources --- .../common/v1/definitions.json | 1 - .../2017-05-15-preview/definitions.json | 1656 +---------------- .../preview/2017-05-15-preview/job.json | 485 ++++- .../softwareUpdateConfiguration.json | 542 +++++- ...softwareUpdateConfigurationMachineRun.json | 180 +- .../softwareUpdateConfigurationRun.json | 149 +- .../2017-05-15-preview/sourceControl.json | 50 +- .../sourceControlSyncJob.json | 233 ++- .../sourceControlSyncJobStreams.json | 148 +- .../stable/2015-10-31/account.json | 162 +- .../stable/2015-10-31/certificate.json | 70 +- .../stable/2015-10-31/connection.json | 70 +- .../stable/2015-10-31/connectionType.json | 56 +- .../stable/2015-10-31/credential.json | 68 +- .../stable/2015-10-31/definitions.json | 274 +-- .../stable/2015-10-31/dscCompilationJob.json | 70 +- .../stable/2015-10-31/dscConfiguration.json | 84 +- .../stable/2015-10-31/dscNode.json | 122 +- .../2015-10-31/dscNodeConfiguration.json | 58 +- .../2015-10-31/hybridRunbookWorkerGroup.json | 50 +- .../stable/2015-10-31/job.json | 140 +- .../stable/2015-10-31/jobSchedule.json | 56 +- .../stable/2015-10-31/linkedWorkspace.json | 14 +- .../stable/2015-10-31/module.json | 140 +- .../stable/2015-10-31/runbook.json | 252 +-- .../stable/2015-10-31/schedule.json | 70 +- .../stable/2015-10-31/variable.json | 210 ++- .../stable/2015-10-31/watcher.json | 956 +++++----- .../stable/2015-10-31/webhook.json | 84 +- .../stable/2018-01-15/definitions.json | 149 -- .../stable/2018-01-15/dscCompilationJob.json | 52 +- .../stable/2018-01-15/dscNode.json | 92 +- .../2018-01-15/dscNodeConfiguration.json | 42 +- .../stable/2018-01-15/dscNodeCounts.json | 15 +- .../automation/resource-manager/readme.md | 1 - 35 files changed, 3044 insertions(+), 3757 deletions(-) delete mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json diff --git a/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json index d1e12435dd10..02fc3addf5eb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json @@ -4,7 +4,6 @@ "version": "1.0", "title": "Common types" }, - "paths": {}, "definitions": { "ErrorResponse": { "type": "object", 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 ddad9adaf64e..0750c6ea3256 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 @@ -37,464 +37,155 @@ }, "paths": {}, "definitions": { - "AdvancedScheduleMonthlyOccurrence": { + "RunbookAssociationProperty": { "properties": { - "occurrence": { - "type": "integer", - "format": "int32", - "description": "Occurrence of the week within the month. Must be between 1 and 5" - }, - "day": { + "name": { "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", - "x-nullable": false - }, - "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.", - "x-ms-mutability": [ - "read", - "create" - ], - "properties": { - "properties": { - "$ref": "#/definitions/JobProperties", - "x-ms-client-flatten": true, - "description": "The properties of the job." + "description": "Gets or sets the name of the runbook." } }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ] + "description": "The runbook property associated with the entity." }, - "JobProperties": { + "JobProvisioningStateProperty": { "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.", - "x-nullable": false - }, - "creationTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Gets or sets the creation time of the job." - }, - "status": { + "provisioningState": { + "readOnly": true, "type": "string", - "description": "Gets or sets the status of the job.", + "description": "The provisioning state of the resource.", "enum": [ - "New", - "Activating", - "Running", - "Completed", "Failed", - "Stopped", - "Blocked", + "Succeeded", "Suspended", - "Disconnected", - "Suspending", - "Stopping", - "Resuming", - "Removing" + "Processing" ], "x-ms-enum": { - "name": "JobStatus", + "name": "JobProvisioningState", "modelAsString": true } - }, - "statusDetails": { - "type": "string", - "description": "Gets or sets the status details of the job." - }, - "startTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "description": "Gets or sets the start time of the job." - }, - "endTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "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", - "x-nullable": true, - "description": "Gets or sets the last modified time of the job." - }, - "lastStatusModifiedTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "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": { - "type": "string", - "description": "The provisioning state of a resource.", - "readOnly": true - } - }, - "description": "Definition of job properties." - }, - "JobCollectionItem": { - "description": "Job collection item properties.", - "type": "object", - "properties": { - "properties": { - "x-ms-client-flatten": true, - "description": "Job properties.", - "$ref": "#/definitions/JobCollectionItemProperties" } }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ], - "required": [ - "properties" - ] + "description": "The provisioning state property." }, - "JobStream": { + "SourceControlCreateOrUpdateProperties": { "properties": { - "id": { + "repoUrl": { "type": "string", - "description": "Gets or sets the id of the resource." + "maxLength": 2000, + "description": "Gets or sets the repo url of the source control." }, - "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": { + "branch": { "type": "string", - "description": "Gets or sets the id of the job stream." + "maxLength": 255, + "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." }, - "time": { + "folderPath": { "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Gets or sets the creation time of the job." + "maxLength": 255, + "description": "Gets or sets the folder path of the source control. Path must be relative." + }, + "autoSync": { + "type": "boolean", + "description": "Gets or sets auto async of the source control. Default is false." + }, + "publishRunbook": { + "type": "boolean", + "description": "Gets or sets the auto publish of the source control. Default is true." }, - "streamType": { + "sourceType": { "type": "string", - "description": "Gets or sets the stream type.", + "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.", "enum": [ - "Progress", - "Output", - "Warning", - "Error", - "Debug", - "Verbose", - "Any" + "VsoGit", + "VsoTfvc", + "GitHub" ], "x-ms-enum": { - "name": "JobStreamType", + "name": "sourceType", "modelAsString": true } }, - "streamText": { - "type": "string", - "description": "Gets or sets the stream text." - }, - "summary": { + "securityToken": { "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." + "maxLength": 1024, + "description": "Gets or sets the authorization token for the repo of the source control." }, - "nextLink": { + "description": { "type": "string", - "description": "Gets or sets the next link." + "maxLength": 512, + "description": "Gets or sets the user description of the source control." } }, - "description": "The response model for the list job stream operation." + "description": "The properties of the create source control operation." }, - "JobCreateParameters": { + "SourceControlCreateOrUpdateParameters": { "properties": { "properties": { - "$ref": "./definitions.json#/definitions/JobCreateProperties", + "$ref": "#/definitions/SourceControlCreateOrUpdateProperties", "x-ms-client-flatten": true, - "description": "Gets or sets the list of job properties." + "description": "Gets or sets the properties of the source control." } }, "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." + "description": "The parameters supplied to the create or update source control operation." }, - "JobCollectionItemProperties": { - "description": "Job collection item properties.", + "SourceControlProperties": { "properties": { - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "readOnly": true, - "description": "The runbook association." - }, - "jobId": { - "type": "string", - "format": "uuid", - "readOnly": true, - "description": "The id of the job.", - "x-nullable": false - }, - "creationTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "readOnly": true, - "description": "The creation time of the job." - }, - "status": { + "repoUrl": { "type": "string", - "readOnly": true, - "description": "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 - } + "description": "Gets or sets the repo url of the source control." }, - "startTime": { + "branch": { "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "The start time of the job." + "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." }, - "endTime": { + "folderPath": { "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "The end time of the job." + "description": "Gets or sets the folder path of the source control." }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "The last modified time of the job." + "autoSync": { + "type": "boolean", + "description": "Gets or sets auto async of the source control. Default is false." }, - "provisioningState": { - "type": "string", - "description": "The provisioning state of a resource.", - "readOnly": true + "publishRunbook": { + "type": "boolean", + "description": "Gets or sets the auto publish of the source control. Default is true." }, - "runOn": { - "type": "string", - "description": "Specifies the runOn group name where the job was executed." - } - } - }, - "JobProvisioningStateProperty": { - "properties": { - "provisioningState": { - "readOnly": true, + "sourceType": { "type": "string", - "description": "The provisioning state of the resource.", + "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub.", "enum": [ - "Failed", - "Succeeded", - "Suspended", - "Processing" + "VsoGit", + "VsoTfvc", + "GitHub" ], "x-ms-enum": { - "name": "JobProvisioningState", + "name": "sourceType", "modelAsString": true } - } - }, - "description": "The provisioning state property." - }, - "JobListResultV2": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "./definitions.json#/definitions/JobCollectionItem", - "readOnly": true - }, - "description": "List of jobs." - }, - "nextLink": { - "type": "string", - "readOnly": true, - "description": "The link to the next page." - } - }, - "description": "The response model for the list job operation." - }, - "softwareUpdateConfigurationProperties": { - "description": "Software update configuration properties.", - "properties": { - "updateConfiguration": { - "description": "update specific properties for the Software update configuration", - "$ref": "#/definitions/updateConfiguration" }, - "scheduleInfo": { - "description": "Schedule information for the Software update configuration", - "$ref": "#/definitions/ScheduleProperties" - }, - "provisioningState": { + "description": { "type": "string", - "description": "Provisioning state for the software update configuration, which only appears in the response.", - "readOnly": true - }, - "error": { - "description": "detailes of provisioning error", - "$ref": "#/definitions/ErrorResponse" + "description": "Gets or sets the description." }, "creationTime": { "type": "string", - "description": "Creation time of theresource, which only appears in the response.", "format": "date-time", "x-nullable": false, - "readOnly": true - }, - "createdBy": { - "type": "string", - "description": "createdBy property, which only appears in the response.", - "readOnly": true + "description": "Gets or sets the creation time." }, "lastModifiedTime": { "type": "string", - "description": "Last time resource was modified, which only appears in the response.", "format": "date-time", "x-nullable": false, - "readOnly": true - }, - "lastModifiedBy": { - "type": "string", - "description": "lastModifiedBy property, which only appears in the response.", - "readOnly": true + "description": "Gets or sets the last modified time." } }, - "required": [ - "updateConfiguration", - "scheduleInfo" - ] + "description": "Definition of the source control properties" }, - "softwareUpdateConfiguration": { + "SourceControl": { "x-ms-azure-resource": true, - "description": "Software update configuration properties.", - "type": "object", "properties": { "name": { "readOnly": true, @@ -509,1215 +200,70 @@ "type": { "readOnly": true, "type": "string", - "description": "Resource type" + "description": "Resource type." }, "properties": { + "$ref": "#/definitions/SourceControlProperties", "x-ms-client-flatten": true, - "description": "Software update configuration properties.", - "$ref": "#/definitions/softwareUpdateConfigurationProperties" + "description": "Gets or sets the properties of the source control." } }, - "required": [ - "properties" - ] + "description": "Definition of the source control." }, - "softwareUpdateConfigurationListResult": { - "description": "result of listing all software update configuration", - "properties": { - "value": { - "description": "outer object returned when listing all software update configurations", - "type": "array", - "items": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationCollectionItem" - } - } - } - }, - "collectionItemUpdateConfiguration": { - "description": "object returned when requesting a collection of software update configuration", - "properties": { - "azureVirtualMachines": { - "type": "array", - "description": "List of azure resource Ids for azure virtual machines targeted by the software update configuration.", - "items": { - "type": "string", - "description": "Azure Resource Manager Id for a virtual machine." - } - }, - "duration": { - "type": "string", - "format": "duration", - "description": "Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601" - } - } - }, - "softwareUpdateConfigurationCollectionItem": { - "description": "Software update configuration collection item properties.", - "type": "object", - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Name of the software update configuration." - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id of the software update configuration" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Software update configuration properties.", - "$ref": "#/definitions/softwareUpdateConfigurationCollectionItemProperties" - } - }, - "required": [ - "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": { - "updateConfiguration": { - "description": "Update specific properties of the software update configuration.", - "$ref": "#/definitions/collectionItemUpdateConfiguration" - }, - "frequency": { - "description": "execution frequency of the schedule associated with the software update configuration", - "type": "string", - "$ref": "#/definitions/scheduleFrequency" - }, - "startTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "the start time of the update." - }, - "creationTime": { - "type": "string", - "description": "Creation time of the software update configuration, which only appears in the response.", - "format": "date-time", - "x-nullable": false, - "readOnly": true - }, - "lastModifiedTime": { - "type": "string", - "description": "Last time software update configuration was modified, which only appears in the response.", - "format": "date-time", - "x-nullable": false, - "readOnly": true - }, - "provisioningState": { - "type": "string", - "description": "Provisioning state for the software update configuration, which only appears in the response.", - "readOnly": true - }, - "nextRun": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "description": "ext run time of the update." - } - } - }, - "operatingSystemType": { - "type": "string", - "description": "Target operating system for the software update configuration.", - "enum": [ - "Windows", - "Linux" - ], - "x-ms-enum": { - "modelAsString": false, - "name": "OperatingSystemType" - } - }, - "updateConfiguration": { - "type": "object", - "description": "Update specifc properties of the software update configuration.", - "properties": { - "operatingSystem": { - "description": "operating system of target machines", - "$ref": "#/definitions/operatingSystemType" - }, - "windows": { - "description": "Windows specific update configuration.", - "$ref": "#/definitions/WindowsProperties" - }, - "linux": { - "description": "Linux specific update configuration.", - "$ref": "#/definitions/LinuxProperties" - }, - "duration": { - "type": "string", - "format": "duration", - "description": "Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601" - }, - "azureVirtualMachines": { - "type": "array", - "description": "List of azure resource Ids for azure virtual machines targeted by the software update configuration.", - "items": { - "type": "string", - "description": "Azure Resource Manager Id for a virtual machine." - } - }, - "nonAzureComputerNames": { - "type": "array", - "description": "List of names of non-azure machines targeted by the software update configuration.", - "items": { - "type": "string", - "description": "Name of Non-Azure OMS Computer." - } - } - }, - "required": [ - "operatingSystem" - ] - }, - "WindowsProperties": { - "type": "object", - "description": "Windows specific update configuration.", - "properties": { - "includedUpdateClassifications": { - "description": "Update classification included in the software update configuration. A comma separated string with required values", - "type": "string", - "enum": [ - "Unclassified", - "Critical", - "Security", - "UpdateRollup", - "FeaturePack", - "ServicePack", - "Definition", - "Tools", - "Updates" - ], - "x-ms-enum": { - "name": "WindowsUpdateClasses", - "modelAsString": true - } - }, - "excludedKbNumbers": { - "type": "array", - "description": "KB numbers excluded from the software update configuration.", - "items": { - "type": "string" - } - }, - "includedKbNumbers": { - "type": "array", - "description": "KB numbers included from the software update configuration.", - "items": { - "type": "string" - } - }, - "rebootSetting": { - "description": "Reboot setting for the software update configuration.", - "type": "string" - } - } - }, - "LinuxProperties": { - "type": "object", - "description": "Linux specific update configuration.", - "properties": { - "includedPackageClassifications": { - "description": "Update classifications included in the software update configuration.", - "type": "string", - "enum": [ - "Unclassified", - "Critical", - "Security", - "Other" - ], - "x-ms-enum": { - "name": "LinuxUpdateClasses", - "modelAsString": true - } - }, - "excludedPackageNameMasks": { - "type": "array", - "description": "packages excluded from the software update configuration.", - "items": { - "type": "string" - } - }, - "includedPackageNameMasks": { - "type": "array", - "description": "packages included from the software update configuration.", - "items": { - "type": "string" - } - }, - "rebootSetting": { - "description": "Reboot setting for the software update configuration.", - "type": "string" - } - } - }, - "updateConfigurationNavigation": { - "description": "Software update configuration Run Navigation model.", - "type": "object", - "properties": { - "name": { - "description": "Name of the software update configuration triggered the software update configuration run", - "type": "string", - "readOnly": true - } - } - }, - "jobNavigation": { - "description": "Software update configuration machine run job navigation properties.", - "type": "object", - "properties": { - "id": { - "description": "Id of the job associated with the software update configuration run", - "type": "string", - "readOnly": true - } - } - }, - "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": { - "value": { - "description": "outer object returned when listing all software update configuration runs", - "type": "array", - "items": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationRun" - } - }, - "nextLink": { - "type": "string", - "description": "link to next page of results." - } - } - }, - "softwareUpdateConfigurationRun": { - "description": "Software update configuration Run properties.", - "x-ms-azure-resource": false, - "type": "object", - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Name of the software update configuration run." - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id of the software update configuration run" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Software update configuration Run properties.", - "$ref": "#/definitions/softwareUpdateConfigurationRunProperties" - } - } - }, - "softwareUpdateConfigurationRunProperties": { - "description": "Software update configuration properties.", - "properties": { - "softwareUpdateConfiguration": { - "description": "software update configuration triggered this run", - "$ref": "#/definitions/updateConfigurationNavigation" - }, - "status": { - "type": "string", - "description": "Status of the software update configuration run.", - "readOnly": true - }, - "configuredDuration": { - "type": "string", - "description": "configured duration for the software update configuration run.", - "readOnly": true - }, - "osType": { - "type": "string", - "description": "Operating system target of the software update configuration triggered this run", - "readOnly": true - }, - "startTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Etart time of the software update configuration run.", - "readOnly": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "description": "End time of the software update configuration run.", - "readOnly": true - }, - "computerCount": { - "type": "integer", - "description": "Number of computers in the software update configuration run.", - "readOnly": true - }, - "failedCount": { - "type": "integer", - "description": "Number of computers with failed status.", - "readOnly": true - }, - "creationTime": { - "type": "string", - "description": "Creation time of theresource, which only appears in the response.", - "format": "date-time", - "x-nullable": false, - "readOnly": true - }, - "createdBy": { - "type": "string", - "description": "createdBy property, which only appears in the response.", - "readOnly": true - }, - "lastModifiedTime": { - "type": "string", - "description": "Last time resource was modified, which only appears in the response.", - "format": "date-time", - "x-nullable": false, - "readOnly": true - }, - "lastModifiedBy": { - "type": "string", - "description": "lastModifiedBy property, which only appears in the response.", - "readOnly": true - } - } - }, - "softwareUpdateConfigurationMachineRunListResult": { - "description": "result of listing all software update configuration machine runs", - "properties": { - "value": { - "description": "outer object returned when listing all software update configuration machine runs", - "type": "array", - "items": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationMachineRun" - } - }, - "nextLink": { - "type": "string", - "description": "link to next page of results." - } - } - }, - "updateConfigurationMachineRunProperties": { - "description": "Software update configuration machine run properties.", - "properties": { - "targetComputer": { - "type": "string", - "description": "name of the updated computer", - "readOnly": true - }, - "targetComputerType": { - "type": "string", - "description": "type of the updated computer.", - "readOnly": true - }, - "softwareUpdateConfiguration": { - "description": "software update configuration triggered this run", - "$ref": "#/definitions/updateConfigurationNavigation" - }, - "status": { - "type": "string", - "description": "Status of the software update configuration machine run.", - "readOnly": true - }, - "osType": { - "type": "string", - "description": "Operating system target of the software update configuration triggered this run", - "readOnly": true - }, - "correlationId": { - "type": "string", - "format": "uuid", - "description": "correlation id of the software update configuration machine run", - "readOnly": true - }, - "sourceComputerId": { - "type": "string", - "format": "uuid", - "description": "source computer id of the software update configuration machine run", - "readOnly": true - }, - "startTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Start time of the software update configuration machine run.", - "readOnly": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "description": "End time of the software update configuration machine run.", - "readOnly": true - }, - "configuredDuration": { - "type": "string", - "description": "configured duration for the software update configuration run.", - "readOnly": true - }, - "job": { - "description": "Job associated with the software update configuration machine run", - "$ref": "#/definitions/jobNavigation" - }, - "creationTime": { - "type": "string", - "description": "Creation time of theresource, which only appears in the response.", - "format": "date-time", - "x-nullable": false, - "readOnly": true - }, - "createdBy": { - "type": "string", - "description": "createdBy property, which only appears in the response.", - "readOnly": true - }, - "lastModifiedTime": { - "type": "string", - "description": "Last time resource was modified, which only appears in the response.", - "format": "date-time", - "x-nullable": false, - "readOnly": true - }, - "lastModifiedBy": { - "type": "string", - "description": "lastModifiedBy property, which only appears in the response.", - "readOnly": true - } - } - }, - "softwareUpdateConfigurationMachineRun": { - "description": "Software update configuration machine run model.", - "x-ms-azure-resource": false, - "type": "object", - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Name of the software update configuration machine run" - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id of the software update configuration machine run" - }, - "properties": { - "x-ms-client-flatten": true, - "description": "Software update configuration machine run properties.", - "$ref": "#/definitions/updateConfigurationMachineRunProperties" - } - } - }, - "SourceControlCreateOrUpdateProperties": { - "properties": { - "repoUrl": { - "type": "string", - "maxLength": 2000, - "description": "Gets or sets the repo url of the source control." - }, - "branch": { - "type": "string", - "maxLength": 255, - "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." - }, - "folderPath": { - "type": "string", - "maxLength": 255, - "description": "Gets or sets the folder path of the source control. Path must be relative." - }, - "autoSync": { - "type": "boolean", - "description": "Gets or sets auto async of the source control. Default is false." - }, - "publishRunbook": { - "type": "boolean", - "description": "Gets or sets the auto publish of the source control. Default is true." - }, - "sourceType": { - "type": "string", - "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.", - "enum": [ - "VsoGit", - "VsoTfvc", - "GitHub" - ], - "x-ms-enum": { - "name": "sourceType", - "modelAsString": true - } - }, - "securityToken": { - "type": "string", - "maxLength": 1024, - "description": "Gets or sets the authorization token for the repo of the source control." - }, - "description": { - "type": "string", - "maxLength": 512, - "description": "Gets or sets the user description of the source control." - } - }, - "description": "The properties of the create source control operation." - }, - "SourceControlCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/SourceControlCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the source control." - } - }, - "required": [ - "properties" - ], - "description": "The parameters supplied to the create or update source control operation." - }, - "SourceControlProperties": { - "properties": { - "repoUrl": { - "type": "string", - "description": "Gets or sets the repo url of the source control." - }, - "branch": { - "type": "string", - "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." - }, - "folderPath": { - "type": "string", - "description": "Gets or sets the folder path of the source control." - }, - "autoSync": { - "type": "boolean", - "description": "Gets or sets auto async of the source control. Default is false." - }, - "publishRunbook": { - "type": "boolean", - "description": "Gets or sets the auto publish of the source control. Default is true." - }, - "sourceType": { - "type": "string", - "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub.", - "enum": [ - "VsoGit", - "VsoTfvc", - "GitHub" - ], - "x-ms-enum": { - "name": "sourceType", - "modelAsString": true - } - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Gets or sets the creation time." - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Gets or sets the last modified time." - } - }, - "description": "Definition of the source control properties" - }, - "SourceControl": { - "x-ms-azure-resource": true, - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "properties": { - "$ref": "#/definitions/SourceControlProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the source control." - } - }, - "description": "Definition of the source control." - }, - "SourceControlListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SourceControl" - }, - "description": "Gets or sets a list of souce controls." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list source controls operation." - }, - "SourceControlUpdateProperties": { - "properties": { - "branch": { - "type": "string", - "description": "Gets or sets the repo branch of the source control." - }, - "folderPath": { - "type": "string", - "description": "Gets or sets the folder path of the source control. Path must be relative." - }, - "autoSync": { - "type": "boolean", - "description": "Gets or sets auto async of the source control. Default is false." - }, - "publishRunbook": { - "type": "boolean", - "description": "Gets or sets the auto publish of the source control. Default is true." - }, - "securityToken": { - "type": "string", - "description": "Gets or sets the authorization token for the repo of the source control." - }, - "description": { - "type": "string", - "description": "Gets or sets the user description of the source control." - } - }, - "description": "The properties of the update source control" - }, - "SourceControlUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/SourceControlUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the value of the source control." - } - }, - "description": "The parameters supplied to the update source control operation." - }, - "SourceControlSyncJob": { - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Resource id." - }, - "properties": { - "$ref": "#/definitions/SourceControlSyncJobProperties", - "x-ms-client-flatten": true, - "description": "Gets the properties of the source control sync job." - } - }, - "description": "Definition of the source control sync job." - }, - "SourceControlSyncJobProperties": { - "properties": { - "syncJobId": { - "type": "string", - "description": "Gets the source control sync job id." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "readOnly": true, - "description": "Gets the creation time of the job." - }, - "provisioningState": { - "type": "string", - "description": "Gets the provisioning state of the job.", - "enum": [ - "Completed", - "Failed", - "Running" - ], - "x-ms-enum": { - "name": "provisioningState", - "modelAsString": true - } - }, - "startTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "Gets the start time of the job." - }, - "endTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "Gets the end time of the job." - }, - "startType": { - "type": "string", - "description": "Gets the type of start for the sync job.", - "enum": [ - "AutoSync", - "ManualSync" - ], - "x-ms-enum": { - "name": "startType", - "modelAsString": true - } - } - }, - "description": "Definition of source control sync job properties." - }, - "SourceControlSyncJobCreateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/SourceControlSyncJobCreateProperties", - "x-ms-client-flatten": true, - "description": "Sets the properties of the source control sync job." - } - }, - "required": [ - "properties" - ], - "description": "The parameters supplied to the create source control sync job operation." - }, - "SourceControlSyncJobCreateProperties": { - "properties": { - "commitId": { - "type": "string", - "description": "Sets the commit id of the source control sync job." - } - }, - "description": "Definition of create source control sync job properties." - }, - "SourceControlSyncJobListResult": { + "SourceControlListResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/SourceControlSyncJob" + "$ref": "#/definitions/SourceControl" }, - "description": "Gets a list of source control sync jobs." + "description": "Gets or sets a list of souce controls." }, "nextLink": { "type": "string", "description": "Gets or sets the next link." } }, - "description": "The response model for the list source control sync jobs operation." - }, - "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." - } - }, - "description": "Definition of the source control sync job." + "description": "The response model for the list source controls operation." }, - "SourceControlSyncJobByIdProperties": { + "SourceControlUpdateProperties": { "properties": { - "syncJobId": { - "type": "string", - "description": "Gets the source control sync job id." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "readOnly": true, - "description": "Gets the creation time of the job." - }, - "provisioningState": { - "type": "string", - "description": "Gets the provisioning state of the job.", - "enum": [ - "Completed", - "Failed", - "Running" - ], - "x-ms-enum": { - "name": "provisioningState", - "modelAsString": true - } - }, - "startTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "Gets the start time of the job." - }, - "endTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "Gets the end time of the job." - }, - "startType": { - "type": "string", - "description": "Gets the type of start for the sync job.", - "enum": [ - "AutoSync", - "ManualSync" - ], - "x-ms-enum": { - "name": "startType", - "modelAsString": true - } - }, - "exception": { + "branch": { "type": "string", - "description": "Gets the exceptions that occured while running the sync job." - } - }, - "description": "Definition of source control sync job properties." - }, - "SourceControlSyncJobStreamsListBySyncJob": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SourceControlSyncJobStream" - }, - "description": "Gets a list of source control sync job streams." + "description": "Gets or sets the repo branch of the source control." }, - "nextLink": { - "type": "string", - "readOnly": true, - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list source control sync job streams operation." - }, - "SourceControlSyncJobStream": { - "properties": { - "id": { - "readOnly": true, + "folderPath": { "type": "string", - "description": "Resource id." + "description": "Gets or sets the folder path of the source control. Path must be relative." }, - "properties": { - "$ref": "#/definitions/SourceControlSyncJobStreamProperties", - "x-ms-client-flatten": true, - "description": "Gets the properties of the source control sync job stream." - } - }, - "description": "Definition of the source control sync job stream." - }, - "SourceControlSyncJobStreamProperties": { - "properties": { - "syncJobStreamId": { - "type": "string", - "description": "Gets the sync job stream id." + "autoSync": { + "type": "boolean", + "description": "Gets or sets auto async of the source control. Default is false." }, - "summary": { - "type": "string", - "description": "Gets the summary of the sync job stream." + "publishRunbook": { + "type": "boolean", + "description": "Gets or sets the auto publish of the source control. Default is true." }, - "time": { + "securityToken": { "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "Gets the time of the sync job stream." + "description": "Gets or sets the authorization token for the repo of the source control." }, - "streamType": { + "description": { "type": "string", - "description": "Gets the type of the sync job stream.", - "enum": [ - "Error", - "Output" - ], - "x-ms-enum": { - "name": "streamType", - "modelAsString": true - } + "description": "Gets or sets the user description of the source control." } }, - "description": "Definition of source control sync job stream properties." + "description": "The properties of the update source control" }, - "SourceControlSyncJobStreamById": { + "SourceControlUpdateParameters": { "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource id." - }, "properties": { - "$ref": "#/definitions/SourceControlSyncJobStreamByIdProperties", + "$ref": "#/definitions/SourceControlUpdateProperties", "x-ms-client-flatten": true, - "description": "Gets the properties of the source control sync job stream." - } - }, - "description": "Definition of the source control sync job stream by id." - }, - "SourceControlSyncJobStreamByIdProperties": { - "properties": { - "syncJobStreamId": { - "type": "string", - "description": "Gets the sync job stream id." - }, - "summary": { - "type": "string", - "description": "Gets the summary of the sync job stream." - }, - "time": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "readOnly": true, - "description": "Gets the time of the sync job stream." - }, - "streamType": { - "type": "string", - "description": "Gets the type of the sync job stream.", - "enum": [ - "Error", - "Output" - ], - "x-ms-enum": { - "name": "streamType", - "modelAsString": true - } - }, - "streamText": { - "type": "string", - "description": "Gets the text of the sync job stream." - }, - "value": { - "type": "string", - "description": "Gets the value of the sync job stream." - } - }, - "description": "Definition of source control sync job stream by id properties." - }, - "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", - "x-nullable": false, - "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.", - "x-nullable": false - }, - "expiryTime": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "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.", - "x-nullable": false - }, - "isEnabled": { - "type": "boolean", - "default": false, - "description": "Gets or sets a value indicating whether this schedule is enabled." - }, - "nextRun": { - "type": "string", - "format": "date-time", - "x-nullable": true, - "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.", - "x-nullable": false - }, - "interval": { - "type": "integer", - "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", - "x-nullable": false, - "description": "Gets or sets the creation time." - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Gets or sets the last modified time." - }, - "description": { - "type": "string", - "description": "Gets or sets the description." + "description": "Gets or sets the value of the source control." } }, - "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." - } - } + "description": "The parameters supplied to the update source control operation." } }, "parameters": { @@ -1771,4 +317,4 @@ "x-ms-parameter-location": "method" } } -} +} \ No newline at end of file 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 885cdf1e9e91..6ce3c11bee02 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 @@ -56,13 +56,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -72,10 +72,10 @@ "in": "path" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { @@ -88,7 +88,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -114,13 +114,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -130,10 +130,10 @@ "in": "path" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { @@ -146,7 +146,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -169,13 +169,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -185,10 +185,10 @@ "in": "path" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { @@ -198,7 +198,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -221,10 +221,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -234,13 +234,13 @@ "in": "path" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { @@ -250,7 +250,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -273,13 +273,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -289,23 +289,23 @@ "in": "path" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Job" + "$ref": "#/definitions/Job" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -326,13 +326,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -346,28 +346,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/JobCreateParameters" + "$ref": "#/definitions/JobCreateParameters" }, "description": "The parameters supplied to the create job operation." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Job" + "$ref": "#/definitions/Job" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -390,10 +390,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -403,33 +403,33 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobListResultV2" + "$ref": "#/definitions/JobListResultV2" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./definitions.json#/definitions/JobCollectionItem" + "x-ms-odata": "#/definitions/JobCollectionItem" } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/resume": { @@ -449,10 +449,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -462,13 +462,13 @@ "in": "path" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { @@ -478,7 +478,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -501,13 +501,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -524,23 +524,23 @@ "description": "The job stream id." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobStream" + "$ref": "#/definitions/JobStream" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -563,10 +563,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobName", @@ -583,26 +583,26 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobStreamListResult" + "$ref": "#/definitions/JobStreamListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -612,6 +612,355 @@ } } }, - "definitions": {}, + "definitions": { + "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." + }, + "JobStreamProperties": { + "properties": { + "jobStreamId": { + "type": "string", + "description": "Gets or sets the id of the job stream." + }, + "time": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "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/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." + }, + "Job": { + "description": "Definition of the job.", + "x-ms-mutability": [ + "read", + "create" + ], + "properties": { + "properties": { + "$ref": "#/definitions/JobProperties", + "x-ms-client-flatten": true, + "description": "The properties of the job." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ] + }, + "JobListResultV2": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JobCollectionItem", + "readOnly": true + }, + "description": "List of jobs." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "The link to the next page." + } + }, + "description": "The response model for the list job operation." + }, + "JobCollectionItem": { + "description": "Job collection item properties.", + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "description": "Job properties.", + "$ref": "#/definitions/JobCollectionItemProperties" + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "required": [ + "properties" + ] + }, + "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.", + "x-nullable": false + }, + "creationTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "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", + "x-nullable": true, + "description": "Gets or sets the start time of the job." + }, + "endTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "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", + "x-nullable": true, + "description": "Gets or sets the last modified time of the job." + }, + "lastStatusModifiedTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "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": { + "type": "string", + "description": "The provisioning state of a resource.", + "readOnly": true + } + }, + "description": "Definition of job properties." + }, + "RunbookAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the runbook." + } + }, + "description": "The runbook property associated with the entity." + }, + "JobCreateParameters": { + "properties": { + "properties": { + "$ref": "#/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." + }, + "JobCollectionItemProperties": { + "description": "Job collection item properties.", + "properties": { + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "readOnly": true, + "description": "The runbook association." + }, + "jobId": { + "type": "string", + "format": "uuid", + "readOnly": true, + "description": "The id of the job.", + "x-nullable": false + }, + "creationTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "readOnly": true, + "description": "The creation time of the job." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "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 + } + }, + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "The start time of the job." + }, + "endTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "The end time of the job." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "The last modified time of the job." + }, + "provisioningState": { + "type": "string", + "description": "The provisioning state of a resource.", + "readOnly": true + }, + "runOn": { + "type": "string", + "description": "Specifies the runOn group name where the job was executed." + } + } + }, + "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": {} } 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 4770f383bf82..5c21edb38e39 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 @@ -7,7 +7,7 @@ "name": "Mohamed Enein" }, "version": "2017-05-15-preview", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -58,26 +58,26 @@ "operationId": "SoftwareUpdateConfigurations_Create", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "name": "softwareUpdateConfigurationName", + "name": "softwareUpdateConfigurationName", "description": "The name of the software update configuration to be created.", "type": "string", "required": true, "in": "path" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" }, { "name": "parameters", @@ -85,7 +85,7 @@ "required": true, "in": "body", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfiguration" + "$ref": "#/definitions/softwareUpdateConfiguration" } } ], @@ -93,19 +93,19 @@ "200": { "description": "Software update configuration with the same name and properties already exists.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfiguration" + "$ref": "#/definitions/softwareUpdateConfiguration" } }, "201": { "description": "Software update configuration is created.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfiguration" + "$ref": "#/definitions/softwareUpdateConfiguration" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -126,33 +126,33 @@ "operationId": "SoftwareUpdateConfigurations_GetByName", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "name": "softwareUpdateConfigurationName", + "name": "softwareUpdateConfigurationName", "description": "The name of the software update configuration to be created.", "type": "string", "required": true, "in": "path" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "200": { "description": "A single software update configuration.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfiguration" + "$ref": "#/definitions/softwareUpdateConfiguration" } }, "404": { @@ -161,7 +161,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -182,26 +182,26 @@ "operationId": "SoftwareUpdateConfigurations_Delete", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "name": "softwareUpdateConfigurationName", + "name": "softwareUpdateConfigurationName", "description": "The name of the software update configuration to be created.", "type": "string", "required": true, "in": "path" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { @@ -214,7 +214,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -240,19 +240,19 @@ "operationId": "SoftwareUpdateConfigurations_List", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" }, { "name": "$filter", @@ -266,7 +266,7 @@ "200": { "description": "Return list of software update configurations.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationListResult" + "$ref": "#/definitions/softwareUpdateConfigurationListResult" } }, "404": { @@ -275,11 +275,487 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } } } + }, + "definitions": { + "softwareUpdateConfiguration": { + "x-ms-azure-resource": true, + "description": "Software update configuration properties.", + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Software update configuration properties.", + "$ref": "#/definitions/softwareUpdateConfigurationProperties" + } + }, + "required": [ + "properties" + ] + }, + "softwareUpdateConfigurationProperties": { + "description": "Software update configuration properties.", + "properties": { + "updateConfiguration": { + "description": "update specific properties for the Software update configuration", + "$ref": "#/definitions/updateConfiguration" + }, + "scheduleInfo": { + "description": "Schedule information for the Software update configuration", + "$ref": "#/definitions/ScheduleProperties" + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state for the software update configuration, which only appears in the response.", + "readOnly": true + }, + "error": { + "description": "detailes of provisioning error", + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + }, + "creationTime": { + "type": "string", + "description": "Creation time of theresource, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "createdBy": { + "type": "string", + "description": "createdBy property, which only appears in the response.", + "readOnly": true + }, + "lastModifiedTime": { + "type": "string", + "description": "Last time resource was modified, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "lastModifiedBy": { + "type": "string", + "description": "lastModifiedBy property, which only appears in the response.", + "readOnly": true + } + }, + "required": [ + "updateConfiguration", + "scheduleInfo" + ] + }, + "WindowsProperties": { + "type": "object", + "description": "Windows specific update configuration.", + "properties": { + "includedUpdateClassifications": { + "description": "Update classification included in the software update configuration. A comma separated string with required values", + "type": "string", + "enum": [ + "Unclassified", + "Critical", + "Security", + "UpdateRollup", + "FeaturePack", + "ServicePack", + "Definition", + "Tools", + "Updates" + ], + "x-ms-enum": { + "name": "WindowsUpdateClasses", + "modelAsString": true + } + }, + "excludedKbNumbers": { + "type": "array", + "description": "KB numbers excluded from the software update configuration.", + "items": { + "type": "string" + } + }, + "includedKbNumbers": { + "type": "array", + "description": "KB numbers included from the software update configuration.", + "items": { + "type": "string" + } + }, + "rebootSetting": { + "description": "Reboot setting for the software update configuration.", + "type": "string" + } + } + }, + "operatingSystemType": { + "type": "string", + "description": "Target operating system for the software update configuration.", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "modelAsString": false, + "name": "OperatingSystemType" + } + }, + "updateConfiguration": { + "type": "object", + "description": "Update specifc properties of the software update configuration.", + "properties": { + "operatingSystem": { + "description": "operating system of target machines", + "$ref": "#/definitions/operatingSystemType" + }, + "windows": { + "description": "Windows specific update configuration.", + "$ref": "#/definitions/WindowsProperties" + }, + "linux": { + "description": "Linux specific update configuration.", + "$ref": "#/definitions/LinuxProperties" + }, + "duration": { + "type": "string", + "format": "duration", + "description": "Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601" + }, + "azureVirtualMachines": { + "type": "array", + "description": "List of azure resource Ids for azure virtual machines targeted by the software update configuration.", + "items": { + "type": "string", + "description": "Azure Resource Manager Id for a virtual machine." + } + }, + "nonAzureComputerNames": { + "type": "array", + "description": "List of names of non-azure machines targeted by the software update configuration.", + "items": { + "type": "string", + "description": "Name of Non-Azure OMS Computer." + } + } + }, + "required": [ + "operatingSystem" + ] + }, + "LinuxProperties": { + "type": "object", + "description": "Linux specific update configuration.", + "properties": { + "includedPackageClassifications": { + "description": "Update classifications included in the software update configuration.", + "type": "string", + "enum": [ + "Unclassified", + "Critical", + "Security", + "Other" + ], + "x-ms-enum": { + "name": "LinuxUpdateClasses", + "modelAsString": true + } + }, + "excludedPackageNameMasks": { + "type": "array", + "description": "packages excluded from the software update configuration.", + "items": { + "type": "string" + } + }, + "includedPackageNameMasks": { + "type": "array", + "description": "packages included from the software update configuration.", + "items": { + "type": "string" + } + }, + "rebootSetting": { + "description": "Reboot setting for the software update configuration.", + "type": "string" + } + } + }, + "ScheduleProperties": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "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.", + "x-nullable": false + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "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.", + "x-nullable": false + }, + "isEnabled": { + "type": "boolean", + "default": false, + "description": "Gets or sets a value indicating whether this schedule is enabled." + }, + "nextRun": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "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.", + "x-nullable": false + }, + "interval": { + "type": "integer", + "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", + "x-nullable": false, + "description": "Gets or sets the creation time." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "description": "Gets or sets the last modified time." + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of schedule parameters." + }, + "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", + "x-nullable": false + }, + "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." + }, + "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." + }, + "softwareUpdateConfigurationListResult": { + "description": "result of listing all software update configuration", + "properties": { + "value": { + "description": "outer object returned when listing all software update configurations", + "type": "array", + "items": { + "$ref": "#/definitions/softwareUpdateConfigurationCollectionItem" + } + } + } + }, + "softwareUpdateConfigurationCollectionItem": { + "description": "Software update configuration collection item properties.", + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Name of the software update configuration." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id of the software update configuration" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Software update configuration properties.", + "$ref": "#/definitions/softwareUpdateConfigurationCollectionItemProperties" + } + }, + "required": [ + "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 + } + }, + "collectionItemUpdateConfiguration": { + "description": "object returned when requesting a collection of software update configuration", + "properties": { + "azureVirtualMachines": { + "type": "array", + "description": "List of azure resource Ids for azure virtual machines targeted by the software update configuration.", + "items": { + "type": "string", + "description": "Azure Resource Manager Id for a virtual machine." + } + }, + "duration": { + "type": "string", + "format": "duration", + "description": "Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601" + } + } + }, + "softwareUpdateConfigurationCollectionItemProperties": { + "description": "Software update configuration collection item properties.", + "properties": { + "updateConfiguration": { + "description": "Update specific properties of the software update configuration.", + "$ref": "#/definitions/collectionItemUpdateConfiguration" + }, + "frequency": { + "description": "execution frequency of the schedule associated with the software update configuration", + "type": "string", + "$ref": "#/definitions/scheduleFrequency" + }, + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "description": "the start time of the update." + }, + "creationTime": { + "type": "string", + "description": "Creation time of the software update configuration, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "lastModifiedTime": { + "type": "string", + "description": "Last time software update configuration was modified, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state for the software update configuration, which only appears in the response.", + "readOnly": true + }, + "nextRun": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "description": "ext run time of the update." + } + } + } } } \ No newline at end of file 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 a1afc2f3d588..7c2e68369baf 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 @@ -7,7 +7,7 @@ "name": "Mohamed Enein" }, "version": "2017-05-15-preview", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -58,13 +58,13 @@ "operationId": "SoftwareUpdateConfigurationMachineRuns_GetById", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "softwareUpdateConfigurationMachineRunId", @@ -75,17 +75,17 @@ "format": "uuid" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "200": { "description": "A single software update configuration machine run.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationMachineRun" + "$ref": "#/definitions/softwareUpdateConfigurationMachineRun" } }, "404": { @@ -94,7 +94,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -120,19 +120,19 @@ "operationId": "SoftwareUpdateConfigurationMachineRuns_List", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" }, { "name": "$filter", @@ -160,7 +160,7 @@ "200": { "description": "Return list of software update configuration machine runs.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationMachineRunListResult" + "$ref": "#/definitions/softwareUpdateConfigurationMachineRunListResult" } }, "404": { @@ -169,11 +169,161 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } } } + }, + "definitions": { + "softwareUpdateConfigurationMachineRun": { + "description": "Software update configuration machine run model.", + "x-ms-azure-resource": false, + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Name of the software update configuration machine run" + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id of the software update configuration machine run" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Software update configuration machine run properties.", + "$ref": "#/definitions/updateConfigurationMachineRunProperties" + } + } + }, + "softwareUpdateConfigurationMachineRunListResult": { + "description": "result of listing all software update configuration machine runs", + "properties": { + "value": { + "description": "outer object returned when listing all software update configuration machine runs", + "type": "array", + "items": { + "$ref": "#/definitions/softwareUpdateConfigurationMachineRun" + } + }, + "nextLink": { + "type": "string", + "description": "link to next page of results." + } + } + }, + "updateConfigurationMachineRunProperties": { + "description": "Software update configuration machine run properties.", + "properties": { + "targetComputer": { + "type": "string", + "description": "name of the updated computer", + "readOnly": true + }, + "targetComputerType": { + "type": "string", + "description": "type of the updated computer.", + "readOnly": true + }, + "softwareUpdateConfiguration": { + "description": "software update configuration triggered this run", + "$ref": "#/definitions/updateConfigurationNavigation" + }, + "status": { + "type": "string", + "description": "Status of the software update configuration machine run.", + "readOnly": true + }, + "osType": { + "type": "string", + "description": "Operating system target of the software update configuration triggered this run", + "readOnly": true + }, + "correlationId": { + "type": "string", + "format": "uuid", + "description": "correlation id of the software update configuration machine run", + "readOnly": true + }, + "sourceComputerId": { + "type": "string", + "format": "uuid", + "description": "source computer id of the software update configuration machine run", + "readOnly": true + }, + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "description": "Start time of the software update configuration machine run.", + "readOnly": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "description": "End time of the software update configuration machine run.", + "readOnly": true + }, + "configuredDuration": { + "type": "string", + "description": "configured duration for the software update configuration run.", + "readOnly": true + }, + "job": { + "description": "Job associated with the software update configuration machine run", + "$ref": "#/definitions/jobNavigation" + }, + "creationTime": { + "type": "string", + "description": "Creation time of theresource, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "createdBy": { + "type": "string", + "description": "createdBy property, which only appears in the response.", + "readOnly": true + }, + "lastModifiedTime": { + "type": "string", + "description": "Last time resource was modified, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "lastModifiedBy": { + "type": "string", + "description": "lastModifiedBy property, which only appears in the response.", + "readOnly": true + } + } + }, + "updateConfigurationNavigation": { + "description": "Software update configuration Run Navigation model.", + "type": "object", + "properties": { + "name": { + "description": "Name of the software update configuration triggered the software update configuration run", + "type": "string", + "readOnly": true + } + } + }, + "jobNavigation": { + "description": "Software update configuration machine run job navigation properties.", + "type": "object", + "properties": { + "id": { + "description": "Id of the job associated with the software update configuration run", + "type": "string", + "readOnly": true + } + } + } } } \ No newline at end of file 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 377b726909f7..cf801426f943 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 @@ -58,13 +58,13 @@ "operationId": "SoftwareUpdateConfigurationRuns_GetById", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "softwareUpdateConfigurationRunId", @@ -75,17 +75,17 @@ "format": "uuid" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" } ], "responses": { "200": { "description": "A single software update configuration Run.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationRun" + "$ref": "#/definitions/softwareUpdateConfigurationRun" } }, "404": { @@ -94,7 +94,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -120,19 +120,19 @@ "operationId": "SoftwareUpdateConfigurationRuns_List", "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { - "$ref": "./definitions.json#/parameters/clientRequestId" + "$ref": "../../common/v1/definitions.json#/parameters/clientRequestId" }, { "name": "$filter", @@ -169,11 +169,134 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } } } + }, + "definitions": { + "softwareUpdateConfigurationRun": { + "description": "Software update configuration Run properties.", + "x-ms-azure-resource": false, + "type": "object", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Name of the software update configuration run." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id of the software update configuration run" + }, + "properties": { + "x-ms-client-flatten": true, + "description": "Software update configuration Run properties.", + "$ref": "#/definitions/softwareUpdateConfigurationRunProperties" + } + } + }, + "softwareUpdateConfigurationRunProperties": { + "description": "Software update configuration properties.", + "properties": { + "softwareUpdateConfiguration": { + "description": "software update configuration triggered this run", + "$ref": "#/definitions/updateConfigurationNavigation" + }, + "status": { + "type": "string", + "description": "Status of the software update configuration run.", + "readOnly": true + }, + "configuredDuration": { + "type": "string", + "description": "configured duration for the software update configuration run.", + "readOnly": true + }, + "osType": { + "type": "string", + "description": "Operating system target of the software update configuration triggered this run", + "readOnly": true + }, + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "description": "Etart time of the software update configuration run.", + "readOnly": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "description": "End time of the software update configuration run.", + "readOnly": true + }, + "computerCount": { + "type": "integer", + "description": "Number of computers in the software update configuration run.", + "readOnly": true + }, + "failedCount": { + "type": "integer", + "description": "Number of computers with failed status.", + "readOnly": true + }, + "creationTime": { + "type": "string", + "description": "Creation time of theresource, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "createdBy": { + "type": "string", + "description": "createdBy property, which only appears in the response.", + "readOnly": true + }, + "lastModifiedTime": { + "type": "string", + "description": "Last time resource was modified, which only appears in the response.", + "format": "date-time", + "x-nullable": false, + "readOnly": true + }, + "lastModifiedBy": { + "type": "string", + "description": "lastModifiedBy property, which only appears in the response.", + "readOnly": true + } + } + }, + "updateConfigurationNavigation": { + "description": "Software update configuration Run Navigation model.", + "type": "object", + "properties": { + "name": { + "description": "Name of the software update configuration triggered the software update configuration run", + "type": "string", + "readOnly": true + } + } + }, + "softwareUpdateConfigurationRunListResult": { + "description": "result of listing all software update configuration runs", + "properties": { + "value": { + "description": "outer object returned when listing all software update configuration runs", + "type": "array", + "items": { + "$ref": "#/definitions/softwareUpdateConfigurationRun" + } + }, + "nextLink": { + "type": "string", + "description": "link to next page of results." + } + } + } } } \ No newline at end of file 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 82427c6ede57..9e7aa6956e88 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 @@ -53,10 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -75,10 +75,10 @@ "description": "The parameters supplied to the create or update source control operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -97,7 +97,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -118,10 +118,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -140,10 +140,10 @@ "description": "The parameters supplied to the update source control operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -156,7 +156,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -177,10 +177,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -190,10 +190,10 @@ "description": "The name of source control." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -203,7 +203,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -224,10 +224,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -237,10 +237,10 @@ "description": "The name of source control." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -253,7 +253,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -276,10 +276,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -289,10 +289,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -305,7 +305,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/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 260a8a4f8f71..9b0c17794233 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 @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2017-05-15-preview", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -53,10 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -78,28 +78,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/SourceControlSyncJobCreateParameters" + "$ref": "#/definitions/SourceControlSyncJobCreateParameters" }, "description": "The parameters supplied to the create source control sync job operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/SourceControlSyncJob" + "$ref": "#/definitions/SourceControlSyncJob" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -120,10 +120,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -141,23 +141,23 @@ "description": "The source control sync job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControlSyncJobById" + "$ref": "#/definitions/SourceControlSyncJobById" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -180,10 +180,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -200,23 +200,23 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControlSyncJobListResult" + "$ref": "#/definitions/SourceControlSyncJobListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -225,5 +225,198 @@ } } } + }, + "definitions": { + "SourceControlSyncJobListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SourceControlSyncJob" + }, + "description": "Gets a list of source control sync jobs." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list source control sync jobs operation." + }, + "SourceControlSyncJobCreateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/SourceControlSyncJobCreateProperties", + "x-ms-client-flatten": true, + "description": "Sets the properties of the source control sync job." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create source control sync job operation." + }, + "SourceControlSyncJobCreateProperties": { + "properties": { + "commitId": { + "type": "string", + "description": "Sets the commit id of the source control sync job." + } + }, + "description": "Definition of create source control sync job properties." + }, + "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." + } + }, + "description": "Definition of the source control sync job." + }, + "SourceControlSyncJobByIdProperties": { + "properties": { + "syncJobId": { + "type": "string", + "description": "Gets the source control sync job id." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "readOnly": true, + "description": "Gets the creation time of the job." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the job.", + "enum": [ + "Completed", + "Failed", + "Running" + ], + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true + } + }, + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "Gets the start time of the job." + }, + "endTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "Gets the end time of the job." + }, + "startType": { + "type": "string", + "description": "Gets the type of start for the sync job.", + "enum": [ + "AutoSync", + "ManualSync" + ], + "x-ms-enum": { + "name": "startType", + "modelAsString": true + } + }, + "exception": { + "type": "string", + "description": "Gets the exceptions that occured while running the sync job." + } + }, + "description": "Definition of source control sync job properties." + }, + "SourceControlSyncJob": { + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "Resource id." + }, + "properties": { + "$ref": "#/definitions/SourceControlSyncJobProperties", + "x-ms-client-flatten": true, + "description": "Gets the properties of the source control sync job." + } + }, + "description": "Definition of the source control sync job." + }, + "SourceControlSyncJobProperties": { + "properties": { + "syncJobId": { + "type": "string", + "description": "Gets the source control sync job id." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "readOnly": true, + "description": "Gets the creation time of the job." + }, + "provisioningState": { + "type": "string", + "description": "Gets the provisioning state of the job.", + "enum": [ + "Completed", + "Failed", + "Running" + ], + "x-ms-enum": { + "name": "provisioningState", + "modelAsString": true + } + }, + "startTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "Gets the start time of the job." + }, + "endTime": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "Gets the end time of the job." + }, + "startType": { + "type": "string", + "description": "Gets the type of start for the sync job.", + "enum": [ + "AutoSync", + "ManualSync" + ], + "x-ms-enum": { + "name": "startType", + "modelAsString": true + } + } + }, + "description": "Definition of source control sync job properties." + } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json index f20edd6991c6..6673f57e315e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2017-05-15-preview", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -53,10 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -81,23 +81,23 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControlSyncJobStreamsListBySyncJob" + "$ref": "#/definitions/SourceControlSyncJobStreamsListBySyncJob" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -123,10 +123,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "sourceControlName", @@ -150,29 +150,149 @@ "type": "string", "description": "The id of the sync job stream." }, - { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControlSyncJobStreamById" + "$ref": "#/definitions/SourceControlSyncJobStreamById" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } } } + }, + "definitions": { + "SourceControlSyncJobStreamsListBySyncJob": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SourceControlSyncJobStream" + }, + "description": "Gets a list of source control sync job streams." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list source control sync job streams operation." + }, + "SourceControlSyncJobStream": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource id." + }, + "properties": { + "$ref": "#/definitions/SourceControlSyncJobStreamProperties", + "x-ms-client-flatten": true, + "description": "Gets the properties of the source control sync job stream." + } + }, + "description": "Definition of the source control sync job stream." + }, + "SourceControlSyncJobStreamProperties": { + "properties": { + "syncJobStreamId": { + "type": "string", + "description": "Gets the sync job stream id." + }, + "summary": { + "type": "string", + "description": "Gets the summary of the sync job stream." + }, + "time": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "Gets the time of the sync job stream." + }, + "streamType": { + "type": "string", + "description": "Gets the type of the sync job stream.", + "enum": [ + "Error", + "Output" + ], + "x-ms-enum": { + "name": "streamType", + "modelAsString": true + } + } + }, + "description": "Definition of source control sync job stream properties." + }, + "SourceControlSyncJobStreamById": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource id." + }, + "properties": { + "$ref": "#/definitions/SourceControlSyncJobStreamByIdProperties", + "x-ms-client-flatten": true, + "description": "Gets the properties of the source control sync job stream." + } + }, + "description": "Definition of the source control sync job stream by id." + }, + "SourceControlSyncJobStreamByIdProperties": { + "properties": { + "syncJobStreamId": { + "type": "string", + "description": "Gets the sync job stream id." + }, + "summary": { + "type": "string", + "description": "Gets the summary of the sync job stream." + }, + "time": { + "type": "string", + "format": "date-time", + "x-nullable": true, + "readOnly": true, + "description": "Gets the time of the sync job stream." + }, + "streamType": { + "type": "string", + "description": "Gets the type of the sync job stream.", + "enum": [ + "Error", + "Output" + ], + "x-ms-enum": { + "name": "streamType", + "modelAsString": true + } + }, + "streamText": { + "type": "string", + "description": "Gets the text of the sync job stream." + }, + "value": { + "type": "string", + "description": "Gets the value of the sync job stream." + } + }, + "description": "Definition of source control sync job stream by id properties." + } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json index 6635d889de8a..a09a6e3a441a 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json @@ -53,19 +53,10 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "Automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "parameters", @@ -77,23 +68,23 @@ "description": "Parameters supplied to the update automation account." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccount" + "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -114,19 +105,10 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "Parameters supplied to the create or update automation account." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "parameters", @@ -138,29 +120,29 @@ "description": "Parameters supplied to the create or update automation account." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccount" + "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" } }, "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccount" + "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -181,25 +163,16 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "Automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -212,7 +185,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -233,38 +206,29 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccount" + "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -287,18 +251,16 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -311,7 +273,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -329,7 +291,7 @@ "operationId": "Operations_List", "parameters": [ { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -342,7 +304,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -366,10 +328,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -382,7 +344,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -408,19 +370,10 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -430,10 +383,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -446,7 +399,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -472,25 +425,16 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -503,7 +447,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -526,20 +470,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -552,7 +492,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json index 48b046e34e27..6566d1abfa8f 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "certificateName", @@ -70,10 +66,10 @@ "description": "The name of certificate." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -83,7 +79,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -104,14 +100,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "certificateName", @@ -121,10 +113,10 @@ "description": "The name of certificate." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -137,7 +129,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -158,14 +150,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "certificateName", @@ -184,10 +172,10 @@ "description": "The parameters supplied to the create or update certificate operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -206,7 +194,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -227,14 +215,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "certificateName", @@ -253,10 +237,10 @@ "description": "The parameters supplied to the update certificate operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -269,7 +253,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -292,20 +276,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -318,7 +298,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json index 0ebb3e04ea7e..0f14b9763054 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "connectionName", @@ -70,10 +66,10 @@ "description": "The name of connection." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -89,7 +85,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -110,14 +106,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "connectionName", @@ -127,10 +119,10 @@ "description": "The name of connection." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -143,7 +135,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -164,14 +156,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "connectionName", @@ -190,10 +178,10 @@ "description": "The parameters supplied to the create or update connection operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -212,7 +200,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -233,14 +221,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "connectionName", @@ -259,10 +243,10 @@ "description": "The parameters supplied to the update a connection operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -275,7 +259,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -301,20 +285,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -327,7 +307,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json index c942e4ca92ad..5ea71194e224 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "connectionTypeName", @@ -70,10 +66,10 @@ "description": "The name of connectiontype." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -86,7 +82,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -107,14 +103,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "connectionTypeName", @@ -124,10 +116,10 @@ "description": "The name of connectiontype." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -140,7 +132,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -161,14 +153,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "connectionTypeName", @@ -187,10 +175,10 @@ "description": "The parameters supplied to the create or update connectiontype operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -209,7 +197,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -235,20 +223,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -261,7 +245,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json index ebe7585730c2..d3c5c5d3cc46 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "credentialName", @@ -70,10 +66,10 @@ "description": "The name of credential." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -83,7 +79,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -104,14 +100,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "credentialName", @@ -121,10 +113,10 @@ "description": "The name of credential." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -137,7 +129,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -158,14 +150,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "credentialName", @@ -184,10 +172,10 @@ "description": "The parameters supplied to the create or update credential operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -206,7 +194,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -227,14 +215,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "credentialName", @@ -253,10 +237,10 @@ "description": "The parameters supplied to the Update credential operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -269,7 +253,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -295,20 +279,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { 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 8d619afe74b0..852ceb03bb05 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 @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -398,7 +398,7 @@ }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" } ], "description": "Definition of the automation account type." @@ -547,7 +547,7 @@ }, "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the certificate." @@ -677,7 +677,7 @@ }, "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the connection." @@ -926,7 +926,7 @@ }, "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the credential." @@ -1283,7 +1283,7 @@ }, "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the Dsc Compilation job." @@ -1420,7 +1420,7 @@ }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" } ], "description": "Definition of the configuration type." @@ -2030,7 +2030,7 @@ }, "description": "The response model for the list job schedule operation." }, - "Key":{ + "Key": { "properties": { "keyName": { "type": "string", @@ -2062,7 +2062,7 @@ }, "description": "Automation key which is used to register a DSC Node" }, - "KeyListResult":{ + "KeyListResult": { "properties": { "value": { "type": "array", @@ -2223,7 +2223,7 @@ }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" } ], "description": "Definition of the module type." @@ -2317,65 +2317,6 @@ } } }, - "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" - } - ] - }, "JobProvisioningStateProperty": { "properties": { "provisioningState": { @@ -2832,7 +2773,7 @@ }, "allOf": [ { - "$ref": "#/definitions/TrackedResource" + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" } ], "description": "Definition of the runbook type." @@ -3351,41 +3292,6 @@ }, "description": "The response model for the get usage operation." }, - "VariableCreateOrUpdateProperties": { - "properties": { - "value": { - "type": "string", - "description": "Gets or sets the value of the variable." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the variable." - }, - "isEncrypted": { - "type": "boolean", - "description": "Gets or sets the encrypted flag of the variable." - } - }, - "description": "The properties of the create variable operation." - }, - "VariableCreateOrUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the variable." - }, - "properties": { - "$ref": "#/definitions/VariableCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the variable." - } - }, - "required": [ - "name", - "properties" - ], - "description": "The parameters supplied to the create or update variable operation." - }, "VariableProperties": { "properties": { "value": { @@ -3426,54 +3332,11 @@ }, "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the varible." }, - "VariableListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Variable" - }, - "description": "Gets or sets a list of variables." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list variables operation." - }, - "VariableUpdateProperties": { - "properties": { - "value": { - "type": "string", - "description": "Gets or sets the value of the variable." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the variable." - } - }, - "description": "The properties of the update variable" - }, - "VariableUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the variable." - }, - "properties": { - "$ref": "#/definitions/VariableUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the value of the variable." - } - }, - "description": "The parameters supplied to the update variable operation." - }, "WebhookCreateOrUpdateProperties": { "properties": { "isEnabled": { @@ -3598,7 +3461,7 @@ "description": "Definition of the webhook type.", "allOf": [ { - "$ref": "#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ] }, @@ -3655,117 +3518,6 @@ } }, "description": "The parameters supplied to the update webhook operation." - }, - "WatcherProperties": { - "properties": { - "executionFrequencyInSeconds": { - "type": "integer", - "format": "int64", - "description": "Gets or sets the frequency at which the watcher is invoked." - }, - "scriptName": { - "type": "string", - "description": "Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook." - }, - "scriptParameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the script." - }, - "scriptRunOn": { - "type": "string", - "description": "Gets or sets the name of the hybrid worker group the watcher will run on." - }, - "status": { - "type": "string", - "readOnly": true, - "description": "Gets the current status of the watcher." - }, - "creationTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "readOnly": true, - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "lastModifiedBy": { - "type": "string", - "readOnly": true, - "description": "Details of the user who last modified the watcher." - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the watcher properties" - }, - "Watcher": { - "properties": { - "properties": { - "$ref": "#/definitions/WatcherProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the watcher properties." - }, - "etag": { - "type": "string", - "description": "Gets or sets the etag of the resource." - } - }, - "description": "Definition of the watcher type.", - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ] - }, - "WatcherListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Watcher" - }, - "description": "Gets or sets a list of watchers." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list watcher operation." - }, - "WatcherUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/WatcherUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the watcher update properties." - }, - "name": { - "type": "string", - "description": "Gets or sets the name of the resource." - } - } - }, - "WatcherUpdateProperties": { - "properties": { - "executionFrequencyInSeconds": { - "type": "integer", - "format": "int64", - "description": "Gets or sets the frequency at which the watcher is invoked." - } - }, - "description": "The properties of the update watcher operation." } }, "parameters": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json index ed729ccda50c..e4c2cd51f10a 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "compilationJobId", @@ -80,10 +76,10 @@ "description": "The parameters supplied to the create compilation job operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -96,7 +92,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -117,14 +113,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "compilationJobId", @@ -135,10 +127,10 @@ "description": "The Dsc configuration compilation job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -151,7 +143,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -174,14 +166,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -191,10 +179,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -207,7 +195,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -233,14 +221,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -251,10 +235,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -267,7 +251,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -290,14 +274,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -315,10 +295,10 @@ "description": "The job stream id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -331,7 +311,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json index dd6dcf695bc1..9b9d6b5c30d6 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json @@ -55,14 +55,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "configurationName", @@ -72,10 +68,10 @@ "description": "The configuration name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -88,7 +84,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -109,14 +105,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "configurationName", @@ -126,10 +118,10 @@ "description": "The configuration name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -142,7 +134,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -163,14 +155,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "configurationName", @@ -189,10 +177,10 @@ "description": "The create or update parameters for configuration." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -211,7 +199,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -232,14 +220,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "configurationName", @@ -257,10 +241,10 @@ "description": "The create or update parameters for configuration." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -273,7 +257,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -296,14 +280,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "configurationName", @@ -313,10 +293,10 @@ "description": "The configuration name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -329,7 +309,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -358,20 +338,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { "name": "$filter", @@ -412,7 +388,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json index 9e444fcd66cd..8eda5f4fefd7 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json @@ -53,20 +53,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -79,7 +75,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -102,14 +98,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "parameters", @@ -121,10 +113,10 @@ "description": "The name of the agent registration key to be regenerated" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -137,7 +129,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -160,7 +152,7 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { "name": "automationAccountName", @@ -177,10 +169,10 @@ "description": "The node id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -193,7 +185,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -214,14 +206,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -231,10 +219,10 @@ "description": "The node id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -247,7 +235,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -268,14 +256,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -294,10 +278,10 @@ "description": "Parameters supplied to the update dsc node." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -310,7 +294,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -333,14 +317,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -350,10 +330,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -366,7 +346,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -392,14 +372,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -416,10 +392,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -432,7 +408,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -458,14 +434,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -482,10 +454,10 @@ "description": "The report id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -498,7 +470,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -521,14 +493,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -545,10 +513,10 @@ "description": "The report id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -561,7 +529,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -617,7 +585,7 @@ }, "allOf": [ { - "$ref": "./definitions.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the dsc node type." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json index bab1fbb565d2..b48ed917e10c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeConfigurationName", @@ -70,10 +66,10 @@ "description": "The Dsc node configuration name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -83,7 +79,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -104,14 +100,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeConfigurationName", @@ -121,10 +113,10 @@ "description": "The Dsc node configuration name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -137,7 +129,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -158,14 +150,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeConfigurationName", @@ -184,10 +172,10 @@ "description": "The create or update parameters for configuration." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -200,7 +188,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -223,14 +211,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -240,10 +224,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -256,7 +240,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -288,7 +272,7 @@ }, "allOf": [ { - "$ref": "./definitions.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the dsc node configuration." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json index 37ea3a25c122..9bf6fe9ad840 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json @@ -53,7 +53,7 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { "name": "automationAccountName", @@ -70,10 +70,10 @@ "description": "The hybrid runbook worker group name" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -83,7 +83,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -104,14 +104,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "hybridRunbookWorkerGroupName", @@ -121,10 +117,10 @@ "description": "The hybrid runbook worker group name" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -137,7 +133,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -158,14 +154,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "hybridRunbookWorkerGroupName", @@ -184,10 +176,10 @@ "description": "The hybrid runbook worker group" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -200,7 +192,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -223,14 +215,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -240,10 +228,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -256,7 +244,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json index f06bcc73a6c6..145155606371 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -70,10 +66,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -86,7 +82,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -104,14 +100,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -121,10 +113,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -137,7 +129,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -160,14 +152,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -178,10 +166,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -191,7 +179,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -214,14 +202,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -232,10 +216,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -245,7 +229,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -263,14 +247,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -281,10 +261,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -297,7 +277,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -318,14 +298,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -345,10 +321,10 @@ "description": "The parameters supplied to the create job operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -361,7 +337,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -384,14 +360,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -401,10 +373,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -417,7 +389,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -443,14 +415,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -461,10 +429,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -474,7 +442,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -492,14 +460,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -516,10 +480,10 @@ "description": "The job stream id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -532,7 +496,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -550,14 +514,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -574,10 +534,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -590,7 +550,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json index 8336ea6d7047..8ee699bae4aa 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobScheduleId", @@ -71,10 +67,10 @@ "description": "The job schedule name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -84,7 +80,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -105,14 +101,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobScheduleId", @@ -123,10 +115,10 @@ "description": "The job schedule name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -139,7 +131,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -160,14 +152,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobScheduleId", @@ -187,10 +175,10 @@ "description": "The parameters supplied to the create job schedule operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -203,7 +191,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -226,14 +214,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -243,10 +227,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -259,7 +243,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json index 503fa041b5c0..05dff8d54600 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json @@ -53,20 +53,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -79,7 +75,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json index 56cced0356ab..2a8ee92fddb8 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -77,10 +73,10 @@ "description": "The name of activity." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -93,7 +89,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -116,14 +112,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -133,10 +125,10 @@ "description": "The name of module." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -149,7 +141,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -175,14 +167,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -192,10 +180,10 @@ "description": "The module name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -205,7 +193,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -226,14 +214,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -243,10 +227,10 @@ "description": "The module name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -259,7 +243,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -280,14 +264,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -306,10 +286,10 @@ "description": "The create or update parameters for module." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -328,7 +308,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -349,14 +329,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -375,10 +351,10 @@ "description": "The update parameters for module." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -391,7 +367,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -414,20 +390,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -440,7 +412,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -466,14 +438,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -490,10 +458,10 @@ "description": "The name of type." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -506,7 +474,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -532,14 +500,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "typeName", @@ -549,10 +513,10 @@ "description": "The name of type." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -565,7 +529,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -591,14 +555,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "moduleName", @@ -615,10 +575,10 @@ "description": "The name of type." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -631,7 +591,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json index 7f2d17c6528c..f939f0bb5d8d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json @@ -56,17 +56,13 @@ ], "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -76,7 +72,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -89,7 +85,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -113,17 +109,13 @@ ], "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -142,7 +134,7 @@ "description": "The runbook draft content." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -164,7 +156,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -188,17 +180,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -208,7 +196,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -221,7 +209,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -244,17 +232,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -264,7 +248,7 @@ "description": "The parameters supplied to the publish runbook operation." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -286,7 +270,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -310,17 +294,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -330,7 +310,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -343,7 +323,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -369,17 +349,13 @@ ], "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -389,7 +365,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -402,7 +378,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -425,17 +401,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -445,7 +417,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -458,7 +430,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -482,17 +454,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -511,7 +479,7 @@ "description": "The create or update parameters for runbook. Provide either content link for a published runbook or draft, not both." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -533,7 +501,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -554,17 +522,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -583,7 +547,7 @@ "description": "The update parameters for runbook." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -596,7 +560,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -617,17 +581,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -637,7 +597,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -650,7 +610,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -673,20 +633,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -699,7 +655,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -725,17 +681,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -752,7 +704,7 @@ "description": "The job stream id." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -765,7 +717,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -788,17 +740,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -815,7 +763,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -828,7 +776,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -854,17 +802,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -883,7 +827,7 @@ "description": "The parameters supplied to the create test job operation." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -896,7 +840,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -917,17 +861,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -937,7 +877,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -950,7 +890,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -973,17 +913,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -993,7 +929,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1003,7 +939,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -1026,17 +962,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -1046,7 +978,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1056,7 +988,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -1079,17 +1011,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "runbookName", @@ -1099,7 +1027,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1109,7 +1037,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json index 927eeaf20039..24596ca42e33 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "scheduleName", @@ -79,10 +75,10 @@ "description": "The parameters supplied to the create or update schedule operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -98,7 +94,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -119,14 +115,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "scheduleName", @@ -145,10 +137,10 @@ "description": "The parameters supplied to the update schedule operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -161,7 +153,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -182,14 +174,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "scheduleName", @@ -199,10 +187,10 @@ "description": "The schedule name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -215,7 +203,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -236,14 +224,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "scheduleName", @@ -253,10 +237,10 @@ "description": "The schedule name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -269,7 +253,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -295,20 +279,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -321,7 +301,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/variable.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/variable.json index ca1a7fdb0935..29c3074579ee 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/variable.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/variable.json @@ -53,14 +53,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "variableName", @@ -74,34 +70,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/VariableCreateOrUpdateParameters" + "$ref": "#/definitions/VariableCreateOrUpdateParameters" }, "description": "The parameters supplied to the create or update variable operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Variable" + "$ref": "#/definitions/Variable" } }, "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Variable" + "$ref": "#/definitions/Variable" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -122,14 +118,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "variableName", @@ -143,28 +135,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/VariableUpdateParameters" + "$ref": "#/definitions/VariableUpdateParameters" }, "description": "The parameters supplied to the update variable operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Variable" + "$ref": "#/definitions/Variable" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -185,14 +177,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "variableName", @@ -202,10 +190,10 @@ "description": "The name of variable." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -215,7 +203,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -236,14 +224,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "variableName", @@ -253,23 +237,23 @@ "description": "The name of variable." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Variable" + "$ref": "#/definitions/Variable" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -295,33 +279,29 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/VariableListResult" + "$ref": "#/definitions/VariableListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -331,6 +311,130 @@ } } }, - "definitions": {}, + "definitions": { + "VariableCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the variable." + }, + "properties": { + "$ref": "#/definitions/VariableCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the variable." + } + }, + "required": [ + "name", + "properties" + ], + "description": "The parameters supplied to the create or update variable operation." + }, + "VariableCreateOrUpdateProperties": { + "properties": { + "value": { + "type": "string", + "description": "Gets or sets the value of the variable." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the variable." + }, + "isEncrypted": { + "type": "boolean", + "description": "Gets or sets the encrypted flag of the variable." + } + }, + "description": "The properties of the create variable operation." + }, + "Variable": { + "properties": { + "properties": { + "$ref": "#/definitions/VariableProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the variable." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the varible." + }, + "VariableListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Variable" + }, + "description": "Gets or sets a list of variables." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list variables operation." + }, + "VariableUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the variable." + }, + "properties": { + "$ref": "#/definitions/VariableUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the value of the variable." + } + }, + "description": "The parameters supplied to the update variable operation." + }, + "VariableUpdateProperties": { + "properties": { + "value": { + "type": "string", + "description": "Gets or sets the value of the variable." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the variable." + } + }, + "description": "The properties of the update variable" + }, + "VariableProperties": { + "properties": { + "value": { + "type": "string", + "description": "Gets or sets the value of the variable." + }, + "isEncrypted": { + "type": "boolean", + "description": "Gets or sets the encrypted flag of the variable.", + "x-nullable": true + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the varible properties" + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/watcher.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/watcher.json index d91028d8d1b9..4b23c4859aaf 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/watcher.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/watcher.json @@ -1,447 +1,531 @@ { - "swagger": "2.0", - "info": { - "title": "AutomationManagement", - "version": "2015-10-31", - "x-ms-code-generation-settings": { - "useDateTimeOffset": true + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2015-10-31", + "x-ms-code-generation-settings": { + "useDateTimeOffset": true + } + }, + "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" } - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}": { + "put": { + "tags": [ + "Watcher" + ], + "operationId": "Watcher_CreateOrUpdate", + "description": "Create the watcher identified by watcher name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/watcheroperations" + }, + "x-ms-examples": { + "Create or update watcher": { + "$ref": "./examples/createOrUpdateWatcher.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "watcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The watcher name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Watcher" + }, + "description": "The create or update parameters for watcher." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Watcher" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Watcher" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "get": { + "tags": [ + "Watcher" + ], + "operationId": "Watcher_Get", + "description": "Retrieve the watcher identified by watcher name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/watcheroperations" + }, + "x-ms-examples": { + "Get watcher": { + "$ref": "./examples/getWatcher.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "watcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The watcher name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Watcher" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Watcher" + ], + "operationId": "Watcher_Update", + "description": "Update the watcher identified by watcher name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/watcheroperations" + }, + "x-ms-examples": { + "Update watcher": { + "$ref": "./examples/updateWatcher.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "watcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The watcher name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WatcherUpdateParameters" + }, + "description": "The update parameters for watcher." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Watcher" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Watcher" + ], + "operationId": "Watcher_Delete", + "description": "Delete the watcher by name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/watcheroperations" + }, + "x-ms-examples": { + "Delete watcher": { + "$ref": "./examples/deleteWatcher.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "watcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The watcher name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } } - ], - "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" + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/start": { + "post": { + "tags": [ + "Watcher" + ], + "operationId": "Watcher_Start", + "description": "Resume the watcher identified by watcher name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/watcheroperations" + }, + "x-ms-examples": { + "Start Watcher": { + "$ref": "./examples/startWatcher.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "watcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The watcher name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } } } }, - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}": { - "put": { - "tags": [ - "Watcher" - ], - "operationId": "Watcher_CreateOrUpdate", - "description": "Create the watcher identified by watcher name.", - "externalDocs": { - "url": "http://aka.ms/azureautomationsdk/watcheroperations" - }, - "x-ms-examples": { - "Create or update watcher": { - "$ref": "./examples/createOrUpdateWatcher.json" - } - }, - "parameters": [ - { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." - }, - { - "name": "watcherName", - "in": "path", - "required": true, - "type": "string", - "description": "The watcher name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "./definitions.json#/definitions/Watcher" - }, - "description": "The create or update parameters for watcher." - }, - { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "./definitions.json#/definitions/Watcher" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "./definitions.json#/definitions/Watcher" - } - }, - "default": { - "description": "Automation error response describing why the operation failed.", - "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" - } - } - } - }, - "get": { - "tags": [ - "Watcher" - ], - "operationId": "Watcher_Get", - "description": "Retrieve the watcher identified by watcher name.", - "externalDocs": { - "url": "http://aka.ms/azureautomationsdk/watcheroperations" - }, - "x-ms-examples": { - "Get watcher": { - "$ref": "./examples/getWatcher.json" - } - }, - "parameters": [ - { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." - }, - { - "name": "watcherName", - "in": "path", - "required": true, - "type": "string", - "description": "The watcher name." - }, - { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "./definitions.json#/definitions/Watcher" - } - }, - "default": { - "description": "Automation error response describing why the operation failed.", - "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" - } - } - } - }, - "patch": { - "tags": [ - "Watcher" - ], - "operationId": "Watcher_Update", - "description": "Update the watcher identified by watcher name.", - "externalDocs": { - "url": "http://aka.ms/azureautomationsdk/watcheroperations" - }, - "x-ms-examples": { - "Update watcher": { - "$ref": "./examples/updateWatcher.json" - } - }, - "parameters": [ - { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." - }, - { - "name": "watcherName", - "in": "path", - "required": true, - "type": "string", - "description": "The watcher name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "./definitions.json#/definitions/WatcherUpdateParameters" - }, - "description": "The update parameters for watcher." - }, - { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "./definitions.json#/definitions/Watcher" - } - }, - "default": { - "description": "Automation error response describing why the operation failed.", - "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" - } - } - } - }, - "delete": { - "tags": [ - "Watcher" - ], - "operationId": "Watcher_Delete", - "description": "Delete the watcher by name.", - "externalDocs": { - "url": "http://aka.ms/azureautomationsdk/watcheroperations" - }, - "x-ms-examples": { - "Delete watcher": { - "$ref": "./examples/deleteWatcher.json" - } - }, - "parameters": [ - { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." - }, - { - "name": "watcherName", - "in": "path", - "required": true, - "type": "string", - "description": "The watcher name." - }, - { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" - }, - { - "$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" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/start": { - "post": { - "tags": [ - "Watcher" - ], - "operationId": "Watcher_Start", - "description": "Resume the watcher identified by watcher name.", - "externalDocs": { - "url": "http://aka.ms/azureautomationsdk/watcheroperations" - }, - "x-ms-examples": { - "Start Watcher": { - "$ref": "./examples/startWatcher.json" - } - }, - "parameters": [ - { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." - }, - { - "name": "watcherName", - "in": "path", - "required": true, - "type": "string", - "description": "The watcher name." - }, - { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" - }, - { - "$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" - } - } - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/stop": { + "post": { + "tags": [ + "Watcher" + ], + "operationId": "Watcher_Stop", + "description": "Resume the watcher identified by watcher name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/watcheroperations" + }, + "x-ms-examples": { + "Start Watcher": { + "$ref": "./examples/stopWatcher.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "watcherName", + "in": "path", + "required": true, + "type": "string", + "description": "The watcher name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/stop": { - "post": { - "tags": [ - "Watcher" - ], - "operationId": "Watcher_Stop", - "description": "Resume the watcher identified by watcher name.", - "externalDocs": { - "url": "http://aka.ms/azureautomationsdk/watcheroperations" - }, - "x-ms-examples": { - "Start Watcher": { - "$ref": "./examples/stopWatcher.json" - } - }, - "parameters": [ - { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." - }, - { - "name": "watcherName", - "in": "path", - "required": true, - "type": "string", - "description": "The watcher name." - }, - { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" - }, - { - "$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" - } - } - } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers": { + "get": { + "tags": [ + "Watcher" + ], + "operationId": "Watcher_ListByAutomationAccount", + "description": "Retrieve a list of watchers.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/watcheroperations" + }, + "x-ms-examples": { + "List watchers by Automation Account": { + "$ref": "./examples/listWatchersByAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/WatcherListResult" } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers": { - "get": { - "tags": [ - "Watcher" - ], - "operationId": "Watcher_ListByAutomationAccount", - "description": "Retrieve a list of watchers.", - "externalDocs": { - "url": "http://aka.ms/azureautomationsdk/watcheroperations" - }, - "x-ms-examples": { - "List watchers by Automation Account": { - "$ref": "./examples/listWatchersByAutomationAccount.json" - } - }, - "parameters": [ - { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" - }, - { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." - }, - { - "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.json#/definitions/WatcherListResult" - } - }, - "default": { - "description": "Automation error response describing why the operation failed.", - "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - }, - "x-ms-odata": "./definitions.json#/definitions/Watcher" + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/Watcher" + } + } + }, + "definitions": { + "Watcher": { + "properties": { + "properties": { + "$ref": "#/definitions/WatcherProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the watcher properties." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + } + }, + "description": "Definition of the watcher type.", + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" } + ] }, - "definitions": {}, - "parameters": {} -} + "WatcherProperties": { + "properties": { + "executionFrequencyInSeconds": { + "type": "integer", + "format": "int64", + "description": "Gets or sets the frequency at which the watcher is invoked." + }, + "scriptName": { + "type": "string", + "description": "Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook." + }, + "scriptParameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the script." + }, + "scriptRunOn": { + "type": "string", + "description": "Gets or sets the name of the hybrid worker group the watcher will run on." + }, + "status": { + "type": "string", + "readOnly": true, + "description": "Gets the current status of the watcher." + }, + "creationTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "lastModifiedBy": { + "type": "string", + "readOnly": true, + "description": "Details of the user who last modified the watcher." + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the watcher properties" + }, + "WatcherUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/WatcherUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the watcher update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the resource." + } + } + }, + "WatcherUpdateProperties": { + "properties": { + "executionFrequencyInSeconds": { + "type": "integer", + "format": "int64", + "description": "Gets or sets the frequency at which the watcher is invoked." + } + }, + "description": "The properties of the update watcher operation." + }, + "WatcherListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Watcher" + }, + "description": "Gets or sets a list of watchers." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list watcher operation." + } + }, + "parameters": {} +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json index b7fc4cfaf3e8..7e6f2300d6ce 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json @@ -53,20 +53,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -79,7 +75,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -102,14 +98,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "webhookName", @@ -119,10 +111,10 @@ "description": "The webhook name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -132,7 +124,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -153,14 +145,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "webhookName", @@ -170,10 +158,10 @@ "description": "The webhook name." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -186,7 +174,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -207,14 +195,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "webhookName", @@ -233,10 +217,10 @@ "description": "The create or update parameters for webhook." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -255,7 +239,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -276,14 +260,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "webhookName", @@ -302,10 +282,10 @@ "description": "The update parameters for webhook." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -318,7 +298,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -341,14 +321,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -358,10 +334,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -374,7 +350,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, 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 deleted file mode 100644 index 9edd1bc6458d..000000000000 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/definitions.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "AutomationManagement", - "version": "2018-01-15", - "x-ms-code-generation-settings": { - "useDateTimeOffset": true - } - }, - "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": "method", - "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 index 7bee84851d42..b8c60a1cbf4a 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 @@ -54,10 +54,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "compilationJobName", @@ -76,10 +76,10 @@ "description": "The parameters supplied to the create compilation job operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -92,7 +92,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -113,10 +113,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "compilationJobName", @@ -126,10 +126,10 @@ "description": "The the DSC configuration Id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -142,7 +142,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -165,10 +165,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -178,10 +178,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -194,7 +194,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -221,10 +221,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -235,10 +235,10 @@ "description": "The job id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -251,7 +251,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -274,10 +274,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "jobId", @@ -295,10 +295,10 @@ "description": "The job stream id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -311,7 +311,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -329,7 +329,7 @@ }, "allOf": [ { - "$ref": "./definitions.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the Dsc Compilation job." 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 bf76140b1551..a569b4507507 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 @@ -54,16 +54,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -76,7 +76,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -99,13 +99,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "parameters", @@ -117,7 +117,7 @@ "description": "The name of the agent registration key to be regenerated" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -130,7 +130,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -153,10 +153,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -166,10 +166,10 @@ "description": "The node id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -182,7 +182,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -203,10 +203,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -216,10 +216,10 @@ "description": "The node id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -232,7 +232,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -253,10 +253,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -275,10 +275,10 @@ "description": "Parameters supplied to the update dsc node." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -291,7 +291,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -335,10 +335,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "$filter", @@ -369,10 +369,10 @@ "description": "Return total rows." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -385,7 +385,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -412,10 +412,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -432,10 +432,10 @@ "description": "The filter to apply on the operation." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -448,7 +448,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -475,10 +475,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -495,10 +495,10 @@ "description": "The report id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -511,7 +511,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -534,10 +534,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -554,10 +554,10 @@ "description": "The report id." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -570,7 +570,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -863,7 +863,7 @@ }, "allOf": [ { - "$ref": "./definitions.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ] }, 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 394d5162eb92..f81a73b5f6fb 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 @@ -53,13 +53,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeConfigurationName", @@ -69,7 +69,7 @@ "description": "The Dsc node configuration name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -79,7 +79,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -100,13 +100,13 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeConfigurationName", @@ -116,7 +116,7 @@ "description": "The Dsc node configuration name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -129,7 +129,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -151,10 +151,10 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeConfigurationName", @@ -173,10 +173,10 @@ "description": "The create or update parameters for configuration." }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -192,7 +192,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -221,16 +221,16 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$ref": "./definitions.json#/parameters/AutomationAccountNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" }, { "name": "$filter", @@ -271,7 +271,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -340,7 +340,7 @@ }, "allOf": [ { - "$ref": "./definitions.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the dsc node configuration." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json index 13552a598ae3..d7088a77385e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json @@ -56,23 +56,19 @@ }, "parameters": [ { - "$ref": "./definitions.json#/parameters/ResourceGroupNameParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "The automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "$ref": "#/parameters/CountTypeParameter" }, { - "$ref": "./definitions.json#/parameters/SubscriptionIdParameter" + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -85,7 +81,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -110,6 +106,7 @@ "description": "Gets the count of nodes by count type" }, "NodeCount": { + "description": "Number of nodes based on the Filter", "properties": { "name": { "description": "Gets the name of a count type", diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 331bec4f2156..c0234b508450 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -119,7 +119,6 @@ input-file: - Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json - Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json - Microsoft.Automation/preview/2017-05-15-preview/job.json -- Microsoft.Automation/stable/2018-01-15/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 From 358420b3d6634378907dd34f4766202c1edb27cc Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Thu, 7 Jun 2018 15:30:31 -0700 Subject: [PATCH 03/15] Fix 2017 resources and remove definitions.json --- .../2017-05-15-preview/definitions.json | 320 ------------------ .../softwareUpdateConfigurationRun.json | 2 +- .../2017-05-15-preview/sourceControl.json | 204 ++++++++++- .../automation/resource-manager/readme.md | 2 +- 4 files changed, 199 insertions(+), 329 deletions(-) delete mode 100644 specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.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 deleted file mode 100644 index 0750c6ea3256..000000000000 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "AutomationManagement", - "version": "2017-05-15-preview", - "x-ms-code-generation-settings": { - "useDateTimeOffset": true - } - }, - "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": { - "RunbookAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the runbook." - } - }, - "description": "The runbook property associated with the entity." - }, - "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." - }, - "SourceControlCreateOrUpdateProperties": { - "properties": { - "repoUrl": { - "type": "string", - "maxLength": 2000, - "description": "Gets or sets the repo url of the source control." - }, - "branch": { - "type": "string", - "maxLength": 255, - "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." - }, - "folderPath": { - "type": "string", - "maxLength": 255, - "description": "Gets or sets the folder path of the source control. Path must be relative." - }, - "autoSync": { - "type": "boolean", - "description": "Gets or sets auto async of the source control. Default is false." - }, - "publishRunbook": { - "type": "boolean", - "description": "Gets or sets the auto publish of the source control. Default is true." - }, - "sourceType": { - "type": "string", - "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.", - "enum": [ - "VsoGit", - "VsoTfvc", - "GitHub" - ], - "x-ms-enum": { - "name": "sourceType", - "modelAsString": true - } - }, - "securityToken": { - "type": "string", - "maxLength": 1024, - "description": "Gets or sets the authorization token for the repo of the source control." - }, - "description": { - "type": "string", - "maxLength": 512, - "description": "Gets or sets the user description of the source control." - } - }, - "description": "The properties of the create source control operation." - }, - "SourceControlCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/SourceControlCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the source control." - } - }, - "required": [ - "properties" - ], - "description": "The parameters supplied to the create or update source control operation." - }, - "SourceControlProperties": { - "properties": { - "repoUrl": { - "type": "string", - "description": "Gets or sets the repo url of the source control." - }, - "branch": { - "type": "string", - "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." - }, - "folderPath": { - "type": "string", - "description": "Gets or sets the folder path of the source control." - }, - "autoSync": { - "type": "boolean", - "description": "Gets or sets auto async of the source control. Default is false." - }, - "publishRunbook": { - "type": "boolean", - "description": "Gets or sets the auto publish of the source control. Default is true." - }, - "sourceType": { - "type": "string", - "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub.", - "enum": [ - "VsoGit", - "VsoTfvc", - "GitHub" - ], - "x-ms-enum": { - "name": "sourceType", - "modelAsString": true - } - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Gets or sets the creation time." - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "x-nullable": false, - "description": "Gets or sets the last modified time." - } - }, - "description": "Definition of the source control properties" - }, - "SourceControl": { - "x-ms-azure-resource": true, - "properties": { - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name." - }, - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id." - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type." - }, - "properties": { - "$ref": "#/definitions/SourceControlProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the source control." - } - }, - "description": "Definition of the source control." - }, - "SourceControlListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/SourceControl" - }, - "description": "Gets or sets a list of souce controls." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list source controls operation." - }, - "SourceControlUpdateProperties": { - "properties": { - "branch": { - "type": "string", - "description": "Gets or sets the repo branch of the source control." - }, - "folderPath": { - "type": "string", - "description": "Gets or sets the folder path of the source control. Path must be relative." - }, - "autoSync": { - "type": "boolean", - "description": "Gets or sets auto async of the source control. Default is false." - }, - "publishRunbook": { - "type": "boolean", - "description": "Gets or sets the auto publish of the source control. Default is true." - }, - "securityToken": { - "type": "string", - "description": "Gets or sets the authorization token for the repo of the source control." - }, - "description": { - "type": "string", - "description": "Gets or sets the user description of the source control." - } - }, - "description": "The properties of the update source control" - }, - "SourceControlUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/SourceControlUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the value of the source control." - } - }, - "description": "The parameters supplied to the update source control operation." - } - }, - "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": "method", - "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": "method" - }, - "clientRequestId": { - "name": "clientRequestId", - "description": "Identifies this specific client request.", - "type": "string", - "required": false, - "in": "header", - "x-ms-parameter-location": "method" - } - } -} \ No newline at end of file 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 cf801426f943..224b97b85f1e 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 @@ -160,7 +160,7 @@ "200": { "description": "Return list of software update configurations runs.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationRunListResult" + "$ref": "#/definitions/softwareUpdateConfigurationRunListResult" } }, "404": { 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 9e7aa6956e88..b903ce1436a7 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 @@ -70,7 +70,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/SourceControlCreateOrUpdateParameters" + "$ref": "#/definitions/SourceControlCreateOrUpdateParameters" }, "description": "The parameters supplied to the create or update source control operation." }, @@ -85,13 +85,13 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "default": { @@ -135,7 +135,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/SourceControlUpdateParameters" + "$ref": "#/definitions/SourceControlUpdateParameters" }, "description": "The parameters supplied to the update source control operation." }, @@ -150,7 +150,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "default": { @@ -247,7 +247,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "default": { @@ -299,7 +299,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControlListResult" + "$ref": "#/definitions/SourceControlListResult" } }, "default": { @@ -314,5 +314,195 @@ } } } + }, + "definitions": { + "SourceControlListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SourceControl" + }, + "description": "Gets or sets a list of souce controls." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list source controls operation." + }, + "SourceControlUpdateProperties": { + "properties": { + "branch": { + "type": "string", + "description": "Gets or sets the repo branch of the source control." + }, + "folderPath": { + "type": "string", + "description": "Gets or sets the folder path of the source control. Path must be relative." + }, + "autoSync": { + "type": "boolean", + "description": "Gets or sets auto async of the source control. Default is false." + }, + "publishRunbook": { + "type": "boolean", + "description": "Gets or sets the auto publish of the source control. Default is true." + }, + "securityToken": { + "type": "string", + "description": "Gets or sets the authorization token for the repo of the source control." + }, + "description": { + "type": "string", + "description": "Gets or sets the user description of the source control." + } + }, + "description": "The properties of the update source control" + }, + "SourceControlUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/SourceControlUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the value of the source control." + } + }, + "description": "The parameters supplied to the update source control operation." + }, + "SourceControl": { + "properties": { + "properties": { + "$ref": "#/definitions/SourceControlProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the source control." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the source control." + }, + "SourceControlProperties": { + "properties": { + "repoUrl": { + "type": "string", + "description": "Gets or sets the repo url of the source control." + }, + "branch": { + "type": "string", + "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." + }, + "folderPath": { + "type": "string", + "description": "Gets or sets the folder path of the source control." + }, + "autoSync": { + "type": "boolean", + "description": "Gets or sets auto async of the source control. Default is false." + }, + "publishRunbook": { + "type": "boolean", + "description": "Gets or sets the auto publish of the source control. Default is true." + }, + "sourceType": { + "type": "string", + "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub.", + "enum": [ + "VsoGit", + "VsoTfvc", + "GitHub" + ], + "x-ms-enum": { + "name": "sourceType", + "modelAsString": true + } + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "description": "Gets or sets the creation time." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "description": "Gets or sets the last modified time." + } + }, + "description": "Definition of the source control properties" + }, + "SourceControlCreateOrUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/SourceControlCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the source control." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create or update source control operation." + }, + "SourceControlCreateOrUpdateProperties": { + "properties": { + "repoUrl": { + "type": "string", + "maxLength": 2000, + "description": "Gets or sets the repo url of the source control." + }, + "branch": { + "type": "string", + "maxLength": 255, + "description": "Gets or sets the repo branch of the source control. Include branch as empty string for VsoTfvc." + }, + "folderPath": { + "type": "string", + "maxLength": 255, + "description": "Gets or sets the folder path of the source control. Path must be relative." + }, + "autoSync": { + "type": "boolean", + "description": "Gets or sets auto async of the source control. Default is false." + }, + "publishRunbook": { + "type": "boolean", + "description": "Gets or sets the auto publish of the source control. Default is true." + }, + "sourceType": { + "type": "string", + "description": "The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.", + "enum": [ + "VsoGit", + "VsoTfvc", + "GitHub" + ], + "x-ms-enum": { + "name": "sourceType", + "modelAsString": true + } + }, + "securityToken": { + "type": "string", + "maxLength": 1024, + "description": "Gets or sets the authorization token for the repo of the source control." + }, + "description": { + "type": "string", + "maxLength": 512, + "description": "Gets or sets the user description of the source control." + } + }, + "description": "The properties of the create source control operation." + } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index c0234b508450..026159075b8d 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -96,6 +96,7 @@ These settings apply only when `--tag=package-2018-01-preview` is specified on t ``` yaml $(tag) == 'package-2018-01-preview' input-file: +- Microsoft.Automation/common/v1/definitions.json - Microsoft.Automation/stable/2015-10-31/account.json - Microsoft.Automation/stable/2015-10-31/certificate.json - Microsoft.Automation/stable/2015-10-31/connection.json @@ -111,7 +112,6 @@ 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 From 30f27399c1c797dc44cdff66346523b8e3d3c1a5 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Thu, 7 Jun 2018 23:16:20 -0700 Subject: [PATCH 04/15] 2018 Resources refactored --- .../common/v1/definitions.json | 1 + .../preview/2017-05-15-preview/job.json | 20 +- .../stable/2015-10-31/account.json | 389 +++++- .../stable/2015-10-31/definitions.json | 1230 ++--------------- .../stable/2015-10-31/dscCompilationJob.json | 302 +++- .../stable/2015-10-31/linkedWorkspace.json | 15 +- .../stable/2015-10-31/module.json | 421 +++++- .../stable/2018-01-15/dscCompilationJob.json | 31 +- 8 files changed, 1273 insertions(+), 1136 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json index 02fc3addf5eb..a0015aac0072 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json @@ -4,6 +4,7 @@ "version": "1.0", "title": "Common types" }, + "paths":{}, "definitions": { "ErrorResponse": { "type": "object", 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 6ce3c11bee02..a1447a2c5449 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 @@ -835,9 +835,8 @@ "description": "Gets or sets the parameters of the job." }, "provisioningState": { - "type": "string", - "description": "The provisioning state of a resource.", - "readOnly": true + "$ref": "#/definitions/JobProvisioningStateProperty", + "description": "The current provisioning state of the job." } }, "description": "Definition of job properties." @@ -960,6 +959,21 @@ "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." } } + }, + "JobProvisioningStateProperty": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Failed", + "Succeeded", + "Suspended", + "Processing" + ], + "x-ms-enum": { + "name": "JobProvisioningState", + "modelAsString": true + } } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json index a09a6e3a441a..21b9afdd54fa 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json @@ -63,7 +63,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccountUpdateParameters" + "$ref": "#/definitions/AutomationAccountUpdateParameters" }, "description": "Parameters supplied to the update automation account." }, @@ -78,7 +78,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" + "$ref": "#/definitions/AutomationAccount" } }, "default": { @@ -115,7 +115,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccountCreateOrUpdateParameters" + "$ref": "#/definitions/AutomationAccountCreateOrUpdateParameters" }, "description": "Parameters supplied to the create or update automation account." }, @@ -130,13 +130,13 @@ "201": { "description": "Created", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" + "$ref": "#/definitions/AutomationAccount" } }, "200": { "description": "OK", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" + "$ref": "#/definitions/AutomationAccount" } }, "default": { @@ -222,7 +222,7 @@ "200": { "description": "OK", "schema": { - "$ref": "../../common/v1/definitions.json#/definitions/AutomationAccount" + "$ref": "#/definitions/AutomationAccount" } }, "default": { @@ -267,7 +267,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccountListResult" + "$ref": "#/definitions/AutomationAccountListResult" } }, "default": { @@ -298,7 +298,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/OperationListResult" + "$ref": "#/definitions/OperationListResult" } }, "default": { @@ -338,7 +338,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccountListResult" + "$ref": "#/definitions/AutomationAccountListResult" } }, "default": { @@ -393,7 +393,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/StatisticsListResult" + "$ref": "#/definitions/StatisticsListResult" } }, "default": { @@ -441,7 +441,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/UsageListResult" + "$ref": "#/definitions/UsageListResult" } }, "default": { @@ -486,7 +486,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/KeyListResult" + "$ref": "#/definitions/KeyListResult" } }, "default": { @@ -502,6 +502,369 @@ } } }, - "definitions": {}, + "definitions": { + "AutomationAccount": { + "properties": { + "properties": { + "$ref": "#/definitions/AutomationAccountProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the automation account properties." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" + } + ], + "description": "Definition of the automation account type." + }, + "AutomationAccountProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "Gets or sets the SKU of account." + }, + "lastModifiedBy": { + "type": "string", + "description": "Gets or sets the last modified by." + }, + "state": { + "type": "string", + "readOnly": true, + "description": "Gets status of account.", + "enum": [ + "Ok", + "Unavailable", + "Suspended" + ], + "x-ms-enum": { + "name": "AutomationAccountState", + "modelAsString": true + } + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the account property." + }, + "Sku": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the SKU name of the account.", + "enum": [ + "Free", + "Basic" + ], + "x-ms-enum": { + "name": "SkuNameEnum", + "modelAsString": true + } + }, + "family": { + "type": "string", + "description": "Gets or sets the SKU family." + }, + "capacity": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the SKU capacity." + } + }, + "required": [ + "name" + ], + "description": "The account SKU." + }, + "AutomationAccountCreateOrUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/AutomationAccountCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets account create or update 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." + } + }, + "description": "The parameters supplied to the create or update automation account operation." + }, + "AutomationAccountCreateOrUpdateProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "Gets or sets account SKU." + } + }, + "description": "The parameters supplied to the create or update account properties." + }, + "AutomationAccountListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/AutomationAccount" + }, + "description": "Gets or sets list of accounts." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list account operation." + }, + "OperationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Automation operations supported by the Automation resource provider." + } + }, + "description": "The response model for the list of Automation operations" + }, + "Operation": { + "description": "Automation REST API operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "properties": { + "provider": { + "description": "Service provider: Microsoft.Automation", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Runbooks, Jobs etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + }, + "description": "Provider, Resource and Operation values" + } + } + }, + "Statistics": { + "properties": { + "counterProperty": { + "type": "string", + "readOnly": true, + "description": "Gets the property value of the statistic." + }, + "counterValue": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "Gets the value of the statistic." + }, + "startTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the startTime of the statistic.", + "x-nullable": false + }, + "endTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the endTime of the statistic.", + "x-nullable": true + }, + "id": { + "type": "string", + "readOnly": true, + "description": "Gets the id." + } + }, + "description": "Definition of the statistic." + }, + "StatisticsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Statistics" + }, + "description": "Gets or sets a list of statistics." + } + }, + "description": "The response model for the list statistics operation." + }, + "Usage": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "name": { + "$ref": "#/definitions/UsageCounterName", + "description": "Gets or sets the usage counter name." + }, + "unit": { + "type": "string", + "description": "Gets or sets the usage unit name." + }, + "currentValue": { + "type": "number", + "format": "double", + "description": "Gets or sets the current usage value." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "Gets or sets max limit. -1 for unlimited" + }, + "throttleStatus": { + "type": "string", + "description": "Gets or sets the throttle status." + } + }, + "description": "Definition of Usage." + }, + "UsageCounterName": { + "properties": { + "value": { + "type": "string", + "description": "Gets or sets the usage counter name." + }, + "localizedValue": { + "type": "string", + "description": "Gets or sets the localized usage counter name." + } + }, + "description": "Definition of usage counter name." + }, + "UsageListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Usage" + }, + "description": "Gets or sets usage." + } + }, + "description": "The response model for the get usage operation." + }, + "Key": { + "properties": { + "keyName": { + "type": "string", + "description": "Automation key name.", + "enum": [ + "primary", + "secondary" + ], + "x-ms-enum": { + "name": "AutomationKeyName", + "modelAsString": true + } + }, + "permissions": { + "type": "string", + "description": "Automation key permissions.", + "enum": [ + "Full" + ], + "x-ms-enum": { + "name": "AutomationKeyPermissions", + "modelAsString": true + } + }, + "value": { + "type": "string", + "description": "Value of the Automation Key used for registration." + } + }, + "description": "Automation key which is used to register a DSC Node" + }, + "KeyListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Key" + }, + "description": "Lists the automation keys." + } + } + }, + "AutomationAccountUpdateProperties": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku", + "description": "Gets or sets account SKU." + } + }, + "description": "The parameters supplied to the update account properties." + }, + "AutomationAccountUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/AutomationAccountUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets account update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the 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." + } + }, + "description": "The parameters supplied to the update automation account operation." + } + }, "parameters": {} } 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 852ceb03bb05..09df3f7e5f89 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 @@ -41,146 +41,6 @@ }, "paths": {}, "definitions": { - "ActivityParameter": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the activity parameter." - }, - "type": { - "type": "string", - "description": "Gets or sets the type of the activity parameter." - }, - "isMandatory": { - "type": "boolean", - "description": "Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional." - }, - "isDynamic": { - "type": "boolean", - "description": "Gets or sets a Boolean value that indicates true if the parameter is dynamic." - }, - "position": { - "type": "boolean", - "description": "Gets or sets the position of the activity parameter." - }, - "valueFromPipeline": { - "type": "boolean", - "description": "Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object." - }, - "valueFromPipelineByPropertyName": { - "type": "boolean", - "description": "Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name. " - }, - "valueFromRemainingArguments": { - "type": "boolean", - "description": "Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values." - } - }, - "description": "Definition of the activity parameter." - }, - "ActivityParameterSet": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the activity parameter set." - }, - "parameters": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityParameter" - }, - "description": "Gets or sets the parameters of the activity parameter set." - } - }, - "description": "Definition of the activity parameter set." - }, - "ActivityOutputType": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the activity output type." - }, - "type": { - "type": "string", - "description": "Gets or sets the type of the activity output type." - } - }, - "description": "Definition of the activity output type." - }, - "ActivityProperties": { - "properties": { - "definition": { - "type": "string", - "description": "Gets or sets the user name of the activity." - }, - "parameterSets": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityParameterSet" - }, - "description": "Gets or sets the parameter sets of the activity." - }, - "outputTypes": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityOutputType" - }, - "description": "Gets or sets the output types of the activity." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Properties of the activity." - }, - "Activity": { - "properties": { - "id": { - "type": "string", - "description": "Gets or sets the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Gets the name of the activity." - }, - "properties": { - "$ref": "#/definitions/ActivityProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the activity." - } - }, - "description": "Definition of the activity." - }, - "ActivityListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Activity" - }, - "description": "Gets or sets a list of activities." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list activity operation." - }, "AdvancedScheduleMonthlyOccurrence": { "properties": { "occurrence": { @@ -305,154 +165,6 @@ ], "description": "The parameters supplied to the regenerate keys operation." }, - "AutomationAccountUpdateProperties": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "Gets or sets account SKU." - } - }, - "description": "The parameters supplied to the update account properties." - }, - "AutomationAccountProperties": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "Gets or sets the SKU of account." - }, - "lastModifiedBy": { - "type": "string", - "description": "Gets or sets the last modified by." - }, - "state": { - "type": "string", - "readOnly": true, - "description": "Gets status of account.", - "enum": [ - "Ok", - "Unavailable", - "Suspended" - ], - "x-ms-enum": { - "name": "AutomationAccountState", - "modelAsString": true - } - }, - "creationTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the account property." - }, - "AutomationAccountUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/AutomationAccountUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets account update properties." - }, - "name": { - "type": "string", - "description": "Gets or sets the 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." - } - }, - "description": "The parameters supplied to the update automation account operation." - }, - "AutomationAccount": { - "properties": { - "properties": { - "$ref": "#/definitions/AutomationAccountProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the automation account properties." - }, - "etag": { - "type": "string", - "description": "Gets or sets the etag of the resource." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" - } - ], - "description": "Definition of the automation account type." - }, - "AutomationAccountCreateOrUpdateProperties": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku", - "description": "Gets or sets account SKU." - } - }, - "description": "The parameters supplied to the create or update account properties." - }, - "AutomationAccountCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/AutomationAccountCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets account create or update 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." - } - }, - "description": "The parameters supplied to the create or update automation account operation." - }, - "AutomationAccountListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AutomationAccount" - }, - "description": "Gets or sets list of accounts." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list account operation." - }, "CertificateCreateOrUpdateProperties": { "properties": { "base64Value": { @@ -978,40 +690,6 @@ }, "description": "The parameters supplied to the Update credential operation." }, - "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." - }, - "ContentLink": { - "properties": { - "uri": { - "type": "string", - "description": "Gets or sets the uri of the runbook content." - }, - "contentHash": { - "$ref": "#/definitions/ContentHash", - "description": "Gets or sets the hash." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the content." - } - }, - "description": "Definition of the content link." - }, "ContentSource": { "properties": { "hash": { @@ -1041,63 +719,12 @@ }, "description": "Definition of the content source." }, - "DscCompilationJobCreateProperties": { + "JobStreamListResult": { "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." - }, - "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." - }, - "JobStreamListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/JobStream" + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JobStream" }, "description": "A list of job streams." }, @@ -1170,148 +797,39 @@ "x-ms-client-flatten": true, "description": "Definition of the job stream." }, - "DscCompilationJobProperties": { + "ContentHash": { "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.", - "x-nullable": false - }, - "creationTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the creation time of the job.", - "x-nullable": false - }, - "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.", - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the end time of the job.", - "x-nullable": true - }, - "exception": { - "type": "string", - "readOnly": true, - "description": "Gets the exception of the job." - }, - "lastModifiedTime": { + "algorithm": { "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the last modified time of the job.", - "x-nullable": false + "description": "Gets or sets the content hash algorithm used to hash the content." }, - "lastStatusModifiedTime": { + "value": { "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the last status modified time of the job.", - "x-nullable": true - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the job." - } - }, - "description": "Definition of Dsc Compilation job properties." - }, - "DscCompilationJob": { - "properties": { - "properties": { - "$ref": "#/definitions/DscCompilationJobProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the Dsc Compilation job." + "description": "Gets or sets expected hash value of the content." } }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" - } + "required": [ + "algorithm", + "value" ], - "description": "Definition of the Dsc Compilation job." + "description": "Definition of the runbook property type." }, - "DscCompilationJobListResult": { + "ContentLink": { "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DscCompilationJob" - }, - "description": "Gets or sets a list of Dsc Compilation jobs." - }, - "nextLink": { + "uri": { "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list job operation." - }, - "DscConfigurationAssociationProperty": { - "properties": { - "name": { + "description": "Gets or sets the uri of the runbook content." + }, + "contentHash": { + "$ref": "#/definitions/ContentHash", + "description": "Gets or sets the hash." + }, + "version": { "type": "string", - "description": "Gets or sets the name of the Dsc configuration." + "description": "Gets or sets the version of the content." } }, - "description": "The Dsc configuration property associated with the entity." + "description": "Definition of the content link." }, "DscConfigurationParameter": { "properties": { @@ -1872,470 +1390,178 @@ "hybridRunbookWorkers": { "type": "array", "items": { - "$ref": "#/definitions/HybridRunbookWorker" - }, - "description": "Gets or sets the list of hybrid runbook workers." - }, - "credential": { - "$ref": "#/definitions/RunAsCredentialAssociationProperty", - "description": "Sets the credential of a worker group." - }, - "groupType": { - "type": "string", - "description": "Type of the HybridWorkerGroup.", - "enum": [ - "User", - "System" - ], - "x-ms-enum": { - "name": "GroupTypeEnum", - "modelAsString": true - } - } - }, - "description": "Definition of hybrid runbook worker group." - }, - "HybridRunbookWorkerGroupsListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/HybridRunbookWorkerGroup" - }, - "description": "Gets or sets a list of hybrid runbook worker groups." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list hybrid runbook worker groups." - }, - "HybridRunbookWorkerGroupUpdateParameters": { - "properties": { - "credential": { - "$ref": "#/definitions/RunAsCredentialAssociationProperty", - "description": "Sets the credential of a worker group." - } - }, - "description": "Parameters supplied to the update operation." - }, - "JobScheduleCreateProperties": { - "properties": { - "schedule": { - "$ref": "#/definitions/ScheduleAssociationProperty", - "description": "Gets or sets the schedule." - }, - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the hybrid worker group that the scheduled job should run on." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets a list of job properties." - } - }, - "required": [ - "schedule", - "runbook" - ], - "description": "The parameters supplied to the create job schedule operation." - }, - "JobScheduleCreateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/JobScheduleCreateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the list of job schedule properties." - } - }, - "required": [ - "properties" - ], - "description": "The parameters supplied to the create job schedule operation." - }, - "JobScheduleProperties": { - "properties": { - "jobScheduleId": { - "type": "string", - "description": "Gets or sets the id of job schedule." - }, - "schedule": { - "$ref": "#/definitions/ScheduleAssociationProperty", - "description": "Gets or sets the schedule." - }, - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the hybrid worker group that the scheduled job should run on." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the job schedule." - } - }, - "description": "Definition of job schedule parameters." - }, - "JobSchedule": { - "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/JobScheduleProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the job schedule." - } - }, - "description": "Definition of the job schedule." - }, - "JobScheduleListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/JobSchedule" - }, - "description": "Gets or sets a list of job schedules." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list job schedule operation." - }, - "Key": { - "properties": { - "keyName": { - "type": "string", - "description": "Automation key name.", - "enum": [ - "primary", - "secondary" - ], - "x-ms-enum": { - "name": "AutomationKeyName", - "modelAsString": true - } - }, - "permissions": { - "type": "string", - "description": "Automation key permissions.", - "enum": [ - "Full" - ], - "x-ms-enum": { - "name": "AutomationKeyPermissions", - "modelAsString": true - } - }, - "value": { - "type": "string", - "description": "Value of the Automation Key used for registration." - } - }, - "description": "Automation key which is used to register a DSC Node" - }, - "KeyListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Key" - }, - "description": "Lists the automation keys." - } - } - }, - "LinkedWorkspace": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id of the linked workspace." - } - }, - "description": "Definition of the linked workspace." - }, - "ModuleCreateOrUpdateProperties": { - "properties": { - "contentLink": { - "$ref": "#/definitions/ContentLink", - "description": "Gets or sets the module content link." - } - }, - "required": [ - "contentLink" - ], - "description": "The parameters supplied to the create or update module properties." - }, - "ModuleCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/ModuleCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the module create 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 or update module operation." - }, - "ModuleErrorInfo": { - "properties": { - "code": { - "type": "string", - "description": "Gets or sets the error code." - }, - "message": { - "type": "string", - "description": "Gets or sets the error message." - } - }, - "description": "Definition of the module error info type." - }, - "ModuleProperties": { - "properties": { - "isGlobal": { - "type": "boolean", - "description": "Gets or sets the isGlobal flag of the module." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the module." - }, - "sizeInBytes": { - "type": "integer", - "format": "int64", - "description": "Gets or sets the size in bytes of the module." - }, - "activityCount": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the activity count of the module." - }, - "provisioningState": { - "type": "string", - "description": "Gets or sets the provisioning state of the module.", - "enum": [ - "Created", - "Creating", - "StartingImportModuleRunbook", - "RunningImportModuleRunbook", - "ContentRetrieved", - "ContentDownloaded", - "ContentValidated", - "ConnectionTypeImported", - "ContentStored", - "ModuleDataStored", - "ActivitiesStored", - "ModuleImportRunbookComplete", - "Succeeded", - "Failed", - "Cancelled", - "Updating" - ], - "x-ms-enum": { - "name": "ModuleProvisioningState", - "modelAsString": false - } - }, - "contentLink": { - "$ref": "#/definitions/ContentLink", - "description": "Gets or sets the contentLink of the module." - }, - "error": { - "$ref": "#/definitions/ModuleErrorInfo", - "description": "Gets or sets the error info of the module." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false + "$ref": "#/definitions/HybridRunbookWorker" + }, + "description": "Gets or sets the list of hybrid runbook workers." }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the module property type." - }, - "Module": { - "properties": { - "properties": { - "$ref": "#/definitions/ModuleProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the module properties." + "credential": { + "$ref": "#/definitions/RunAsCredentialAssociationProperty", + "description": "Sets the credential of a worker group." }, - "etag": { + "groupType": { "type": "string", - "description": "Gets or sets the etag of the resource." + "description": "Type of the HybridWorkerGroup.", + "enum": [ + "User", + "System" + ], + "x-ms-enum": { + "name": "GroupTypeEnum", + "modelAsString": true + } } }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" - } - ], - "description": "Definition of the module type." + "description": "Definition of hybrid runbook worker group." }, - "ModuleListResult": { + "HybridRunbookWorkerGroupsListResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/Module" + "$ref": "#/definitions/HybridRunbookWorkerGroup" }, - "description": "Gets or sets a list of modules." + "description": "Gets or sets a list of hybrid runbook worker groups." }, "nextLink": { "type": "string", "description": "Gets or sets the next link." } }, - "description": "The response model for the list module operation." + "description": "The response model for the list hybrid runbook worker groups." }, - "ModuleUpdateProperties": { + "HybridRunbookWorkerGroupUpdateParameters": { "properties": { - "contentLink": { - "$ref": "#/definitions/ContentLink", - "description": "Gets or sets the module content link." + "credential": { + "$ref": "#/definitions/RunAsCredentialAssociationProperty", + "description": "Sets the credential of a worker group." } }, - "description": "The parameters supplied to the update properties." + "description": "Parameters supplied to the update operation." }, - "ModuleUpdateParameters": { + "JobScheduleCreateProperties": { "properties": { - "properties": { - "$ref": "#/definitions/ModuleUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the module update properties." + "schedule": { + "$ref": "#/definitions/ScheduleAssociationProperty", + "description": "Gets or sets the schedule." }, - "name": { - "type": "string", - "description": "Gets or sets name of the resource." + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook." }, - "location": { + "runOn": { "type": "string", - "description": "Gets or sets the location of the resource." + "description": "Gets or sets the hybrid worker group that the scheduled job should run on." }, - "tags": { + "parameters": { "type": "object", "additionalProperties": { "type": "string" }, - "description": "Gets or sets the tags attached to the resource." + "description": "Gets or sets a list of job properties." } }, - "description": "The parameters supplied to the update module operation." + "required": [ + "schedule", + "runbook" + ], + "description": "The parameters supplied to the create job schedule operation." }, - "OperationListResult": { + "JobScheduleCreateParameters": { "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - }, - "description": "List of Automation operations supported by the Automation resource provider." + "properties": { + "$ref": "#/definitions/JobScheduleCreateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the list of job schedule properties." } }, - "description": "The response model for the list of Automation operations" + "required": [ + "properties" + ], + "description": "The parameters supplied to the create job schedule operation." }, - "Operation": { - "description": "Automation REST API operation", - "type": "object", + "JobScheduleProperties": { "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}", - "type": "string" + "jobScheduleId": { + "type": "string", + "description": "Gets or sets the id of job schedule." + }, + "schedule": { + "$ref": "#/definitions/ScheduleAssociationProperty", + "description": "Gets or sets the schedule." + }, + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook." }, - "display": { - "properties": { - "provider": { - "description": "Service provider: Microsoft.Automation", - "type": "string" - }, - "resource": { - "description": "Resource on which the operation is performed: Runbooks, Jobs etc.", - "type": "string" - }, - "operation": { - "description": "Operation type: Read, write, delete, etc.", - "type": "string" - } + "runOn": { + "type": "string", + "description": "Gets or sets the hybrid worker group that the scheduled job should run on." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "description": "Provider, Resource and Operation values" + "description": "Gets or sets the parameters of the job schedule." } - } + }, + "description": "Definition of job schedule parameters." }, - "JobProvisioningStateProperty": { + "JobSchedule": { "properties": { - "provisioningState": { + "id": { + "type": "string", "readOnly": true, + "description": "Gets the id of the resource." + }, + "name": { "type": "string", - "description": "The provisioning state of the resource.", - "enum": [ - "Failed", - "Succeeded", - "Suspended", - "Processing" - ], - "x-ms-enum": { - "name": "JobProvisioningState", - "modelAsString": true - } + "readOnly": true, + "description": "Gets the name of the variable." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "properties": { + "$ref": "#/definitions/JobScheduleProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the job schedule." + } + }, + "description": "Definition of the job schedule." + }, + "JobScheduleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JobSchedule" + }, + "description": "Gets or sets a list of job schedules." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." } }, - "description": "The provisioning state property." + "description": "The response model for the list job schedule operation." + }, + "JobProvisioningStateProperty": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Failed", + "Succeeded", + "Suspended", + "Processing" + ], + "x-ms-enum": { + "name": "JobProvisioningState", + "modelAsString": true + } }, "RunAsCredentialAssociationProperty": { "properties": { @@ -3042,82 +2268,7 @@ }, "description": "The schedule property associated with the entity." }, - "Sku": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the SKU name of the account.", - "enum": [ - "Free", - "Basic" - ], - "x-ms-enum": { - "name": "SkuNameEnum", - "modelAsString": true - } - }, - "family": { - "type": "string", - "description": "Gets or sets the SKU family." - }, - "capacity": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the SKU capacity." - } - }, - "required": [ - "name" - ], - "description": "The account SKU." - }, - "Statistics": { - "properties": { - "counterProperty": { - "type": "string", - "readOnly": true, - "description": "Gets the property value of the statistic." - }, - "counterValue": { - "type": "integer", - "format": "int64", - "readOnly": true, - "description": "Gets the value of the statistic." - }, - "startTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the startTime of the statistic.", - "x-nullable": false - }, - "endTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the endTime of the statistic.", - "x-nullable": true - }, - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id." - } - }, - "description": "Definition of the statistic." - }, - "StatisticsListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Statistics" - }, - "description": "Gets or sets a list of statistics." - } - }, - "description": "The response model for the list statistics operation." - }, + "SubResource": { "properties": { "id": { @@ -3211,87 +2362,6 @@ }, "description": "Definition of the test job." }, - "TypeField": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the field." - }, - "type": { - "type": "string", - "description": "Gets or sets the type of the field." - } - }, - "description": "Information about a field of a type." - }, - "TypeFieldListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/TypeField" - }, - "description": "Gets or sets a list of fields." - } - }, - "description": "The response model for the list fields operation." - }, - "Usage": { - "properties": { - "id": { - "type": "string", - "description": "Gets or sets the id of the resource." - }, - "name": { - "$ref": "#/definitions/UsageCounterName", - "description": "Gets or sets the usage counter name." - }, - "unit": { - "type": "string", - "description": "Gets or sets the usage unit name." - }, - "currentValue": { - "type": "number", - "format": "double", - "description": "Gets or sets the current usage value." - }, - "limit": { - "type": "integer", - "format": "int64", - "description": "Gets or sets max limit. -1 for unlimited" - }, - "throttleStatus": { - "type": "string", - "description": "Gets or sets the throttle status." - } - }, - "description": "Definition of Usage." - }, - "UsageCounterName": { - "properties": { - "value": { - "type": "string", - "description": "Gets or sets the usage counter name." - }, - "localizedValue": { - "type": "string", - "description": "Gets or sets the localized usage counter name." - } - }, - "description": "Definition of usage counter name." - }, - "UsageListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Usage" - }, - "description": "Gets or sets usage." - } - }, - "description": "The response model for the get usage operation." - }, "VariableProperties": { "properties": { "value": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json index e4c2cd51f10a..e3f87ad1b68e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json @@ -71,7 +71,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/DscCompilationJobCreateParameters" + "$ref": "#/definitions/DscCompilationJobCreateParameters" }, "description": "The parameters supplied to the create compilation job operation." }, @@ -86,7 +86,7 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/DscCompilationJob" + "$ref": "#/definitions/DscCompilationJob" } }, "default": { @@ -137,7 +137,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscCompilationJob" + "$ref": "#/definitions/DscCompilationJob" } }, "default": { @@ -189,7 +189,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscCompilationJobListResult" + "$ref": "#/definitions/DscCompilationJobListResult" } }, "default": { @@ -245,7 +245,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobStreamListResult" + "$ref": "#/definitions/JobStreamListResult" } }, "default": { @@ -305,7 +305,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobStream" + "$ref": "#/definitions/JobStream" } }, "default": { @@ -318,6 +318,294 @@ } } }, - "definitions": {}, + "definitions": { + "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." + }, + "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.", + "x-nullable": false + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time of the job.", + "x-nullable": false + }, + "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.", + "x-nullable": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the end time of the job.", + "x-nullable": true + }, + "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.", + "x-nullable": false + }, + "lastStatusModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last status modified time of the job.", + "x-nullable": true + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job." + } + }, + "description": "Definition of Dsc Compilation job properties." + }, + "JobProvisioningStateProperty": { + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Failed", + "Succeeded", + "Suspended", + "Processing" + ], + "x-ms-enum": { + "name": "JobProvisioningState", + "modelAsString": true + } + }, + "DscCompilationJob": { + "properties": { + "properties": { + "$ref": "#/definitions/DscCompilationJobProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the Dsc Compilation job." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the Dsc Compilation job." + }, + "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." + }, + "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." + }, + "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." + }, + "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.", + "x-nullable": false + }, + "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." + } + }, + "x-ms-client-flatten": true, + "description": "Definition of the job stream." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json index 05dff8d54600..400b515979a5 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json @@ -69,7 +69,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/LinkedWorkspace" + "$ref": "#/definitions/LinkedWorkspace" } }, "default": { @@ -82,6 +82,17 @@ } } }, - "definitions": {}, + "definitions": { + "LinkedWorkspace": { + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Gets the id of the linked workspace." + } + }, + "description": "Definition of the linked workspace." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json index 2a8ee92fddb8..94630d1877e7 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json @@ -83,7 +83,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Activity" + "$ref": "#/definitions/Activity" } }, "default": { @@ -135,7 +135,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ActivityListResult" + "$ref": "#/definitions/ActivityListResult" } }, "default": { @@ -237,7 +237,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Module" + "$ref": "#/definitions/Module" } }, "default": { @@ -281,7 +281,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ModuleCreateOrUpdateParameters" + "$ref": "#/definitions/ModuleCreateOrUpdateParameters" }, "description": "The create or update parameters for module." }, @@ -296,13 +296,13 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Module" + "$ref": "#/definitions/Module" } }, "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Module" + "$ref": "#/definitions/Module" } }, "default": { @@ -346,7 +346,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ModuleUpdateParameters" + "$ref": "#/definitions/ModuleUpdateParameters" }, "description": "The update parameters for module." }, @@ -361,7 +361,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Module" + "$ref": "#/definitions/Module" } }, "default": { @@ -406,7 +406,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ModuleListResult" + "$ref": "#/definitions/ModuleListResult" } }, "default": { @@ -468,7 +468,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TypeFieldListResult" + "$ref": "#/definitions/TypeFieldListResult" } }, "default": { @@ -523,7 +523,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TypeFieldListResult" + "$ref": "#/definitions/TypeFieldListResult" } }, "default": { @@ -585,7 +585,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TypeFieldListResult" + "$ref": "#/definitions/TypeFieldListResult" } }, "default": { @@ -601,6 +601,401 @@ } } }, - "definitions": {}, + "definitions": { + "ActivityParameter": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the activity parameter." + }, + "type": { + "type": "string", + "description": "Gets or sets the type of the activity parameter." + }, + "isMandatory": { + "type": "boolean", + "description": "Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional." + }, + "isDynamic": { + "type": "boolean", + "description": "Gets or sets a Boolean value that indicates true if the parameter is dynamic." + }, + "position": { + "type": "boolean", + "description": "Gets or sets the position of the activity parameter." + }, + "valueFromPipeline": { + "type": "boolean", + "description": "Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object." + }, + "valueFromPipelineByPropertyName": { + "type": "boolean", + "description": "Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name. " + }, + "valueFromRemainingArguments": { + "type": "boolean", + "description": "Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values." + } + }, + "description": "Definition of the activity parameter." + }, + "ActivityParameterSet": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the activity parameter set." + }, + "parameters": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityParameter" + }, + "description": "Gets or sets the parameters of the activity parameter set." + } + }, + "description": "Definition of the activity parameter set." + }, + "ActivityOutputType": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the activity output type." + }, + "type": { + "type": "string", + "description": "Gets or sets the type of the activity output type." + } + }, + "description": "Definition of the activity output type." + }, + "ActivityProperties": { + "properties": { + "definition": { + "type": "string", + "description": "Gets or sets the user name of the activity." + }, + "parameterSets": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityParameterSet" + }, + "description": "Gets or sets the parameter sets of the activity." + }, + "outputTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityOutputType" + }, + "description": "Gets or sets the output types of the activity." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Properties of the activity." + }, + "Activity": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Gets the name of the activity." + }, + "properties": { + "$ref": "#/definitions/ActivityProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the activity." + } + }, + "description": "Definition of the activity." + }, + "ActivityListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Activity" + }, + "description": "Gets or sets a list of activities." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list activity operation." + }, + "ModuleErrorInfo": { + "properties": { + "code": { + "type": "string", + "description": "Gets or sets the error code." + }, + "message": { + "type": "string", + "description": "Gets or sets the error message." + } + }, + "description": "Definition of the module error info type." + }, + "ModuleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Module" + }, + "description": "Gets or sets a list of modules." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list module operation." + }, + "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." + }, + "ContentLink": { + "properties": { + "uri": { + "type": "string", + "description": "Gets or sets the uri of the runbook content." + }, + "contentHash": { + "$ref": "#/definitions/ContentHash", + "description": "Gets or sets the hash." + }, + "version": { + "type": "string", + "description": "Gets or sets the version of the content." + } + }, + "description": "Definition of the content link." + }, + "ModuleCreateOrUpdateProperties": { + "properties": { + "contentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the module content link." + } + }, + "required": [ + "contentLink" + ], + "description": "The parameters supplied to the create or update module properties." + }, + "ModuleCreateOrUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/ModuleCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the module create 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 or update module operation." + }, + "ModuleProperties": { + "properties": { + "isGlobal": { + "type": "boolean", + "description": "Gets or sets the isGlobal flag of the module." + }, + "version": { + "type": "string", + "description": "Gets or sets the version of the module." + }, + "sizeInBytes": { + "type": "integer", + "format": "int64", + "description": "Gets or sets the size in bytes of the module." + }, + "activityCount": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the activity count of the module." + }, + "provisioningState": { + "type": "string", + "description": "Gets or sets the provisioning state of the module.", + "enum": [ + "Created", + "Creating", + "StartingImportModuleRunbook", + "RunningImportModuleRunbook", + "ContentRetrieved", + "ContentDownloaded", + "ContentValidated", + "ConnectionTypeImported", + "ContentStored", + "ModuleDataStored", + "ActivitiesStored", + "ModuleImportRunbookComplete", + "Succeeded", + "Failed", + "Cancelled", + "Updating" + ], + "x-ms-enum": { + "name": "ModuleProvisioningState", + "modelAsString": false + } + }, + "contentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the contentLink of the module." + }, + "error": { + "$ref": "#/definitions/ModuleErrorInfo", + "description": "Gets or sets the error info of the module." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the module property type." + }, + "ModuleUpdateProperties": { + "properties": { + "contentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the module content link." + } + }, + "description": "The parameters supplied to the update properties." + }, + "ModuleUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/ModuleUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the module update 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." + } + }, + "description": "The parameters supplied to the update module operation." + }, + "Module": { + "properties": { + "properties": { + "$ref": "#/definitions/ModuleProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the module properties." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" + } + ], + "description": "Definition of the module type." + }, + "TypeField": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the field." + }, + "type": { + "type": "string", + "description": "Gets or sets the type of the field." + } + }, + "description": "Information about a field of a type." + }, + "TypeFieldListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/TypeField" + }, + "description": "Gets or sets a list of fields." + } + }, + "description": "The response model for the list fields operation." + } + }, "parameters": {} } 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 b8c60a1cbf4a..3046545bbc80 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 @@ -591,24 +591,19 @@ "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." + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Failed", + "Succeeded", + "Suspended", + "Processing" + ], + "x-ms-enum": { + "name": "JobProvisioningState", + "modelAsString": true + } } }, "parameters": {} From 3f4969b31a0383db0b711164d945a40bc54534ff Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Fri, 8 Jun 2018 22:00:04 -0700 Subject: [PATCH 05/15] Refactoring 2015-10-31 Resources --- .../stable/2015-10-31/account.json | 3 - .../stable/2015-10-31/certificate.json | 155 +- .../stable/2015-10-31/connection.json | 165 +- .../stable/2015-10-31/connectionType.json | 149 +- .../stable/2015-10-31/credential.json | 146 +- .../stable/2015-10-31/definitions.json | 1923 ++--------------- .../stable/2015-10-31/dscNode.json | 350 ++- .../examples/createOrUpdateSchedule.json | 2 +- .../2015-10-31/hybridRunbookWorkerGroup.json | 114 +- .../stable/2015-10-31/job.json | 18 +- .../stable/2015-10-31/runbook.json | 82 +- .../stable/2015-10-31/schedule.json | 133 +- .../stable/2015-10-31/webhook.json | 214 +- 13 files changed, 1675 insertions(+), 1779 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json index 21b9afdd54fa..18bdb59af6d3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json @@ -253,9 +253,6 @@ { "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, - { - "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" - }, { "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json index 6566d1abfa8f..d6b63aa47b21 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/certificate.json @@ -123,7 +123,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Certificate" + "$ref": "#/definitions/Certificate" } }, "default": { @@ -167,7 +167,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CertificateCreateOrUpdateParameters" + "$ref": "#/definitions/CertificateCreateOrUpdateParameters" }, "description": "The parameters supplied to the create or update certificate operation." }, @@ -182,13 +182,13 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Certificate" + "$ref": "#/definitions/Certificate" } }, "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Certificate" + "$ref": "#/definitions/Certificate" } }, "default": { @@ -232,7 +232,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CertificateUpdateParameters" + "$ref": "#/definitions/CertificateUpdateParameters" }, "description": "The parameters supplied to the update certificate operation." }, @@ -247,7 +247,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Certificate" + "$ref": "#/definitions/Certificate" } }, "default": { @@ -292,7 +292,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/CertificateListResult" + "$ref": "#/definitions/CertificateListResult" } }, "default": { @@ -308,6 +308,145 @@ } } }, - "definitions": {}, + "definitions": { + "CertificateCreateOrUpdateProperties": { + "properties": { + "base64Value": { + "type": "string", + "description": "Gets or sets the base64 encoded value of the certificate." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the certificate." + }, + "thumbprint": { + "type": "string", + "description": "Gets or sets the thumbprint of the certificate." + }, + "isExportable": { + "type": "boolean", + "description": "Gets or sets the is exportable flag of the certificate.", + "x-nullable": false + } + }, + "required": [ + "base64Value" + ], + "description": "The properties of the create certificate operation." + }, + "CertificateCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the certificate." + }, + "properties": { + "$ref": "#/definitions/CertificateCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the certificate." + } + }, + "required": [ + "name", + "properties" + ], + "description": "The parameters supplied to the create or update or replace certificate operation." + }, + "CertificateProperties": { + "properties": { + "thumbprint": { + "type": "string", + "readOnly": true, + "description": "Gets the thumbprint of the certificate." + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the expiry time of the certificate.", + "x-nullable": false + }, + "isExportable": { + "type": "boolean", + "readOnly": true, + "description": "Gets the is exportable flag of the certificate.", + "x-nullable": false + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Properties of the certificate." + }, + "Certificate": { + "properties": { + "properties": { + "$ref": "#/definitions/CertificateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the certificate." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the certificate." + }, + "CertificateListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Certificate" + }, + "description": "Gets or sets a list of certificates." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list certificate operation." + }, + "CertificateUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Gets or sets the description of the certificate." + } + }, + "description": "The properties of the update certificate operation" + }, + "CertificateUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the certificate." + }, + "properties": { + "$ref": "#/definitions/CertificateUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the certificate." + } + }, + "description": "The parameters supplied to the update certificate operation." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json index 0f14b9763054..c91fe8946bbb 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connection.json @@ -76,7 +76,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "204": { @@ -129,7 +129,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "default": { @@ -173,7 +173,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ConnectionCreateOrUpdateParameters" + "$ref": "#/definitions/ConnectionCreateOrUpdateParameters" }, "description": "The parameters supplied to the create or update connection operation." }, @@ -188,13 +188,13 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "default": { @@ -238,7 +238,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ConnectionUpdateParameters" + "$ref": "#/definitions/ConnectionUpdateParameters" }, "description": "The parameters supplied to the update a connection operation." }, @@ -253,7 +253,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "default": { @@ -301,7 +301,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ConnectionListResult" + "$ref": "#/definitions/ConnectionListResult" } }, "default": { @@ -317,6 +317,153 @@ } } }, - "definitions": {}, + "definitions": { + "ConnectionCreateOrUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Gets or sets the description of the connection." + }, + "connectionType": { + "$ref": "#/definitions/ConnectionTypeAssociationProperty", + "description": "Gets or sets the connectionType of the connection." + }, + "fieldDefinitionValues": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the field definition properties of the connection." + } + }, + "required": [ + "connectionType" + ], + "description": "The properties of the create connection properties" + }, + "ConnectionCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the connection." + }, + "properties": { + "$ref": "#/definitions/ConnectionCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the connection." + } + }, + "required": [ + "name", + "properties" + ], + "description": "The parameters supplied to the create or update connection operation." + }, + "ConnectionProperties": { + "properties": { + "connectionType": { + "$ref": "#/definitions/ConnectionTypeAssociationProperty", + "description": "Gets or sets the connectionType of the connection." + }, + "fieldDefinitionValues": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "readOnly": true, + "description": "Gets the field definition values of the connection." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the connection properties." + }, + "Connection": { + "properties": { + "properties": { + "$ref": "#/definitions/ConnectionProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the connection." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the connection." + }, + "ConnectionListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Connection" + }, + "description": "Gets or sets a list of connection." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list connection operation." + }, + "ConnectionUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Gets or sets the description of the connection." + }, + "fieldDefinitionValues": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the field definition values of the connection." + } + }, + "description": "The properties of the update connection operation." + }, + "ConnectionUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the connection." + }, + "properties": { + "$ref": "#/definitions/ConnectionUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the connection." + } + }, + "description": "The parameters supplied to the update connection operation." + }, + "ConnectionTypeAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the connection type." + } + }, + "description": "The connection type property associated with the entity." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json index 5ea71194e224..86ce028c111b 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/connectionType.json @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -126,7 +126,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ConnectionType" + "$ref": "#/definitions/ConnectionType" } }, "default": { @@ -170,7 +170,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ConnectionTypeCreateOrUpdateParameters" + "$ref": "#/definitions/ConnectionTypeCreateOrUpdateParameters" }, "description": "The parameters supplied to the create or update connectiontype operation." }, @@ -185,13 +185,13 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/ConnectionType" + "$ref": "#/definitions/ConnectionType" } }, "409": { "description": "Conflict", "schema": { - "$ref": "./definitions.json#/definitions/ConnectionType" + "$ref": "#/definitions/ConnectionType" } }, "default": { @@ -239,7 +239,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ConnectionTypeListResult" + "$ref": "#/definitions/ConnectionTypeListResult" } }, "default": { @@ -255,6 +255,139 @@ } } }, - "definitions": {}, + "definitions": { + "FieldDefinition": { + "properties": { + "isEncrypted": { + "type": "boolean", + "description": "Gets or sets the isEncrypted flag of the connection field definition." + }, + "isOptional": { + "type": "boolean", + "description": "Gets or sets the isOptional flag of the connection field definition." + }, + "type": { + "type": "string", + "description": "Gets or sets the type of the connection field definition." + } + }, + "required": [ + "type" + ], + "description": "Definition of the connection fields." + }, + "ConnectionTypeProperties": { + "properties": { + "isGlobal": { + "type": "boolean", + "description": "Gets or sets a Boolean value to indicate if the connection type is global." + }, + "fieldDefinitions": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/FieldDefinition" + }, + "readOnly": true, + "description": "Gets the field definitions of the connection type." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Properties of the connection type." + }, + "ConnectionType": { + "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": { + "type": "string", + "readOnly": true, + "description": "Resource type" + }, + "properties": { + "$ref": "#/definitions/ConnectionTypeProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the connection type." + } + }, + "description": "Definition of the connection type." + }, + "ConnectionTypeListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConnectionType" + }, + "description": "Gets or sets a list of connection types." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list connection type operation." + }, + "ConnectionTypeCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the connection type." + }, + "properties": { + "$ref": "#/definitions/ConnectionTypeCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the value of the connection type." + } + }, + "required": [ + "name", + "properties" + ], + "description": "The parameters supplied to the create or update connection type operation." + }, + "ConnectionTypeCreateOrUpdateProperties": { + "properties": { + "isGlobal": { + "type": "boolean", + "description": "Gets or sets a Boolean value to indicate if the connection type is global." + }, + "fieldDefinitions": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/FieldDefinition" + }, + "description": "Gets or sets the field definitions of the connection type." + } + }, + "required": [ + "fieldDefinitions" + ], + "description": "The properties of the create connection type." + } + }, "parameters": {} -} +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json index d3c5c5d3cc46..3a76d4e4fe6b 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json @@ -123,7 +123,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Credential" + "$ref": "#/definitions/Credential" } }, "default": { @@ -167,7 +167,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CredentialCreateOrUpdateParameters" + "$ref": "#/definitions/CredentialCreateOrUpdateParameters" }, "description": "The parameters supplied to the create or update credential operation." }, @@ -182,13 +182,13 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Credential" + "$ref": "#/definitions/Credential" } }, "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Credential" + "$ref": "#/definitions/Credential" } }, "default": { @@ -232,7 +232,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CredentialUpdateParameters" + "$ref": "#/CredentialUpdateParameters" }, "description": "The parameters supplied to the Update credential operation." }, @@ -247,7 +247,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Credential" + "$ref": "#/definitions/Credential" } }, "default": { @@ -295,7 +295,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/CredentialListResult" + "$ref": "#/definitions/CredentialListResult" } } }, @@ -305,6 +305,136 @@ } } }, - "definitions": {}, + "definitions": { + "CredentialCreateOrUpdateProperties": { + "properties": { + "userName": { + "type": "string", + "description": "Gets or sets the user name of the credential." + }, + "password": { + "type": "string", + "description": "Gets or sets the password of the credential." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the credential." + } + }, + "required": [ + "userName", + "password" + ], + "description": "The properties of the create cerdential operation." + }, + "CredentialCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the credential." + }, + "properties": { + "$ref": "#/definitions/CredentialCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the credential." + } + }, + "required": [ + "name", + "properties" + ], + "description": "The parameters supplied to the create or update credential operation." + }, + "CredentialProperties": { + "properties": { + "userName": { + "type": "string", + "readOnly": true, + "description": "Gets the user name of the credential." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Gets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the credential properties" + }, + "Credential": { + "properties": { + "properties": { + "$ref": "#/definitions/CredentialProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the credential." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the credential." + }, + "CredentialListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Credential" + }, + "description": "Gets or sets a list of credentials." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list credential operation." + }, + "CredentialUpdateProperties": { + "properties": { + "userName": { + "type": "string", + "description": "Gets or sets the user name of the credential." + }, + "password": { + "type": "string", + "description": "Gets or sets the password of the credential." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the credential." + } + }, + "description": "The properties of the Update credential" + }, + "CredentialUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the credential." + }, + "properties": { + "$ref": "#/definitions/CredentialUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the variable." + } + }, + "description": "The parameters supplied to the Update credential operation." + } + }, "parameters": {} } 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 09df3f7e5f89..1078f38ea281 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 @@ -41,1402 +41,326 @@ }, "paths": {}, "definitions": { - "AdvancedScheduleMonthlyOccurrence": { + + + "ContentSource": { "properties": { - "occurrence": { - "type": "integer", - "format": "int32", - "description": "Occurrence of the week within the month. Must be between 1 and 5" + "hash": { + "$ref": "#/definitions/ContentHash", + "description": "Gets or sets the hash." }, - "day": { + "type": { "type": "string", - "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.", + "description": "Gets or sets the content source type.", "enum": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" + "embeddedContent", + "uri" ], "x-ms-enum": { - "name": "ScheduleDay", + "name": "ContentSourceType", "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", - "x-nullable": false - }, - "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." - }, - "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." - }, - "AgentRegistration": { - "properties": { - "dscMetaConfiguration": { - "type": "string", - "description": "Gets or sets the dsc meta configuration." }, - "endpoint": { + "value": { "type": "string", - "description": "Gets or sets the dsc server endpoint." - }, - "keys": { - "$ref": "#/definitions/AgentRegistrationKeys", - "description": "Gets or sets the agent registration keys." + "description": "Gets or sets the value of the content. This is based on the content source type." }, - "id": { + "version": { "type": "string", - "description": "Gets or sets the id." + "description": "Gets or sets the version of the content." } }, - "description": "Definition of the agent registration infomration type." + "description": "Definition of the content source." }, - "AgentRegistrationRegenerateKeyParameter": { + "ContentHash": { "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": { + "algorithm": { "type": "string", - "description": "Gets or sets the name of the resource." + "description": "Gets or sets the content hash algorithm used to hash the content." }, - "location": { + "value": { "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." + "description": "Gets or sets expected hash value of the content." } }, "required": [ - "keyName" + "algorithm", + "value" ], - "description": "The parameters supplied to the regenerate keys operation." + "description": "Definition of the runbook property type." }, - "CertificateCreateOrUpdateProperties": { + "ContentLink": { "properties": { - "base64Value": { - "type": "string", - "description": "Gets or sets the base64 encoded value of the certificate." - }, - "description": { + "uri": { "type": "string", - "description": "Gets or sets the description of the certificate." + "description": "Gets or sets the uri of the runbook content." }, - "thumbprint": { - "type": "string", - "description": "Gets or sets the thumbprint of the certificate." + "contentHash": { + "$ref": "#/definitions/ContentHash", + "description": "Gets or sets the hash." }, - "isExportable": { - "type": "boolean", - "description": "Gets or sets the is exportable flag of the certificate.", - "x-nullable": false - } - }, - "required": [ - "base64Value" - ], - "description": "The properties of the create certificate operation." - }, - "CertificateCreateOrUpdateParameters": { - "properties": { - "name": { + "version": { "type": "string", - "description": "Gets or sets the name of the certificate." - }, - "properties": { - "$ref": "#/definitions/CertificateCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the certificate." + "description": "Gets or sets the version of the content." } }, - "required": [ - "name", - "properties" - ], - "description": "The parameters supplied to the create or update or replace certificate operation." + "description": "Definition of the content link." }, - "CertificateProperties": { + "DscConfigurationParameter": { "properties": { - "thumbprint": { - "type": "string", - "readOnly": true, - "description": "Gets the thumbprint of the certificate." - }, - "expiryTime": { + "type": { "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the expiry time of the certificate.", - "x-nullable": false + "description": "Gets or sets the type of the parameter." }, - "isExportable": { + "isMandatory": { "type": "boolean", - "readOnly": true, - "description": "Gets the is exportable flag of the certificate.", - "x-nullable": false - }, - "creationTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Properties of the certificate." - }, - "Certificate": { - "properties": { - "properties": { - "$ref": "#/definitions/CertificateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the certificate." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" - } - ], - "description": "Definition of the certificate." - }, - "CertificateListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Certificate" - }, - "description": "Gets or sets a list of certificates." + "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list certificate operation." - }, - "CertificateUpdateProperties": { - "properties": { - "description": { - "type": "string", - "description": "Gets or sets the description of the certificate." - } - }, - "description": "The properties of the update certificate operation" - }, - "CertificateUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the certificate." + "position": { + "type": "integer", + "format": "int32", + "description": "Get or sets the position of the parameter." }, - "properties": { - "$ref": "#/definitions/CertificateUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the certificate." - } - }, - "description": "The parameters supplied to the update certificate operation." - }, - "ConnectionCreateOrUpdateProperties": { - "properties": { - "description": { + "defaultValue": { "type": "string", - "description": "Gets or sets the description of the connection." - }, - "connectionType": { - "$ref": "#/definitions/ConnectionTypeAssociationProperty", - "description": "Gets or sets the connectionType of the connection." - }, - "fieldDefinitionValues": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the field definition properties of the connection." + "description": "Gets or sets the default value of parameter." } }, - "required": [ - "connectionType" - ], - "description": "The properties of the create connection properties" + "description": "Definition of the configuration parameter type." }, - "ConnectionCreateOrUpdateParameters": { + "DscConfigurationProperties": { "properties": { - "name": { + "provisioningState": { "type": "string", - "description": "Gets or sets the name of the connection." + "description": "Gets or sets the provisioning state of the configuration.", + "enum": [ + "Succeeded" + ], + "x-ms-enum": { + "name": "DscConfigurationProvisioningState", + "modelAsString": false + } }, - "properties": { - "$ref": "#/definitions/ConnectionCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the connection." - } - }, - "required": [ - "name", - "properties" - ], - "description": "The parameters supplied to the create or update connection operation." - }, - "ConnectionProperties": { - "properties": { - "connectionType": { - "$ref": "#/definitions/ConnectionTypeAssociationProperty", - "description": "Gets or sets the connectionType of the connection." + "jobCount": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the job count of the configuration." }, - "fieldDefinitionValues": { + "parameters": { "type": "object", "additionalProperties": { - "type": "string" - }, - "readOnly": true, - "description": "Gets the field definition values of the connection." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the connection properties." - }, - "Connection": { - "properties": { - "properties": { - "$ref": "#/definitions/ConnectionProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the connection." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" - } - ], - "description": "Definition of the connection." - }, - "ConnectionListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Connection" - }, - "description": "Gets or sets a list of connection." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list connection operation." - }, - "ConnectionUpdateProperties": { - "properties": { - "description": { - "type": "string", - "description": "Gets or sets the description of the connection." - }, - "fieldDefinitionValues": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the field definition values of the connection." - } - }, - "description": "The properties of the update connection operation." - }, - "ConnectionUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the connection." - }, - "properties": { - "$ref": "#/definitions/ConnectionUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the connection." - } - }, - "description": "The parameters supplied to the update connection operation." - }, - "ConnectionTypeAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the connection type." - } - }, - "description": "The connection type property associated with the entity." - }, - "ConnectionTypeCreateOrUpdateProperties": { - "properties": { - "isGlobal": { - "type": "boolean", - "description": "Gets or sets a Boolean value to indicate if the connection type is global." - }, - "fieldDefinitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/FieldDefinition" - }, - "description": "Gets or sets the field definitions of the connection type." - } - }, - "required": [ - "fieldDefinitions" - ], - "description": "The properties of the create connection type." - }, - "ConnectionTypeCreateOrUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the connection type." - }, - "properties": { - "$ref": "#/definitions/ConnectionTypeCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the value of the connection type." - } - }, - "required": [ - "name", - "properties" - ], - "description": "The parameters supplied to the create or update connection type operation." - }, - "ConnectionTypeProperties": { - "properties": { - "isGlobal": { - "type": "boolean", - "description": "Gets or sets a Boolean value to indicate if the connection type is global." - }, - "fieldDefinitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/FieldDefinition" - }, - "readOnly": true, - "description": "Gets the field definitions of the connection type." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Properties of the connection type." - }, - "ConnectionType": { - "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": { - "type": "string", - "readOnly": true, - "description": "Resource type" - }, - "properties": { - "$ref": "#/definitions/ConnectionTypeProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the connection type." - } - }, - "description": "Definition of the connection type." - }, - "ConnectionTypeListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ConnectionType" - }, - "description": "Gets or sets a list of connection types." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list connection type operation." - }, - "CredentialCreateOrUpdateProperties": { - "properties": { - "userName": { - "type": "string", - "description": "Gets or sets the user name of the credential." - }, - "password": { - "type": "string", - "description": "Gets or sets the password of the credential." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the credential." - } - }, - "required": [ - "userName", - "password" - ], - "description": "The properties of the create cerdential operation." - }, - "CredentialCreateOrUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the credential." - }, - "properties": { - "$ref": "#/definitions/CredentialCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the credential." - } - }, - "required": [ - "name", - "properties" - ], - "description": "The parameters supplied to the create or update credential operation." - }, - "CredentialProperties": { - "properties": { - "userName": { - "type": "string", - "readOnly": true, - "description": "Gets the user name of the credential." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "readOnly": true, - "description": "Gets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the credential properties" - }, - "Credential": { - "properties": { - "properties": { - "$ref": "#/definitions/CredentialProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the credential." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" - } - ], - "description": "Definition of the credential." - }, - "CredentialListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Credential" - }, - "description": "Gets or sets a list of credentials." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list credential operation." - }, - "CredentialUpdateProperties": { - "properties": { - "userName": { - "type": "string", - "description": "Gets or sets the user name of the credential." - }, - "password": { - "type": "string", - "description": "Gets or sets the password of the credential." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the credential." - } - }, - "description": "The properties of the Update credential" - }, - "CredentialUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the credential." - }, - "properties": { - "$ref": "#/definitions/CredentialUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the variable." - } - }, - "description": "The parameters supplied to the Update credential operation." - }, - "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." - }, - "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." - }, - "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." - }, - "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.", - "x-nullable": false - }, - "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." - } - }, - "x-ms-client-flatten": true, - "description": "Definition of the job stream." - }, - "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." - }, - "ContentLink": { - "properties": { - "uri": { - "type": "string", - "description": "Gets or sets the uri of the runbook content." - }, - "contentHash": { - "$ref": "#/definitions/ContentHash", - "description": "Gets or sets the hash." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the content." - } - }, - "description": "Definition of the content link." - }, - "DscConfigurationParameter": { - "properties": { - "type": { - "type": "string", - "description": "Gets or sets the type of the parameter." - }, - "isMandatory": { - "type": "boolean", - "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." - }, - "position": { - "type": "integer", - "format": "int32", - "description": "Get or sets the position of the parameter." - }, - "defaultValue": { - "type": "string", - "description": "Gets or sets the default value of parameter." - } - }, - "description": "Definition of the configuration parameter type." - }, - "DscConfigurationProperties": { - "properties": { - "provisioningState": { - "type": "string", - "description": "Gets or sets the provisioning state of the configuration.", - "enum": [ - "Succeeded" - ], - "x-ms-enum": { - "name": "DscConfigurationProvisioningState", - "modelAsString": false - } - }, - "jobCount": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the job count of the configuration." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/DscConfigurationParameter" - }, - "description": "Gets or sets the configuration parameters." - }, - "source": { - "$ref": "#/definitions/ContentSource", - "description": "Gets or sets the source." - }, - "state": { - "type": "string", - "description": "Gets or sets the state of the configuration.", - "enum": [ - "New", - "Edit", - "Published" - ], - "x-ms-enum": { - "name": "DscConfigurationState", - "modelAsString": true - } - }, - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "nodeConfigurationCount": { - "type": "integer", - "description": "Gets the number of compiled node configurations.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the configuration property type." - }, - "DscConfiguration": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/DscConfigurationProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the configuration properties." - }, - "etag": { - "type": "string", - "description": "Gets or sets the etag of the resource." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" - } - ], - "description": "Definition of the configuration type." - }, - "DscConfigurationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DscConfiguration" - }, - "description": "Gets or sets a list of configurations." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - }, - "totalCount": { - "type": "integer", - "description": "Gets the total number of configurations matching filter criteria." - } - }, - "description": "The response model for the list configuration operation." - }, - "DscConfigurationCreateOrUpdateProperties": { - "properties": { - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "logProgress": { - "type": "boolean", - "description": "Gets or sets progress log option." - }, - "source": { - "$ref": "#/definitions/ContentSource", - "description": "Gets or sets the source." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/DscConfigurationParameter" + "$ref": "#/definitions/DscConfigurationParameter" }, "description": "Gets or sets the configuration parameters." }, - "description": { - "type": "string", - "description": "Gets or sets the description of the configuration." - } - }, - "required": [ - "source" - ], - "description": "The properties to create or update configuration." - }, - "DscConfigurationCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets configuration create or update 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 or update configuration operation." - }, - "DscConfigurationUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets configuration create or update properties." - }, - "name": { - "type": "string", - "description": "Gets or sets name of the resource." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the tags attached to the resource." - } - }, - "description": "The parameters supplied to the create or update configuration operation." - }, - "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." - }, - "DscNodeConfigurationAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the dsc nodeconfiguration." - } - }, - "description": "The dsc nodeconfiguration property associated with the entity." - }, - "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" - }, - "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." - }, - "DscNodeReport": { - "properties": { - "endTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the end time of the node report.", - "x-nullable": true - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the lastModifiedTime of the node report.", - "x-nullable": false - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the start time of the node report.", - "x-nullable": true - }, - "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." - }, - "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." - }, - "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." - }, - "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." + "source": { + "$ref": "#/definitions/ContentSource", + "description": "Gets or sets the source." }, - "moduleVersion": { + "state": { "type": "string", - "description": "Gets or sets the module version of the resource." + "description": "Gets or sets the state of the configuration.", + "enum": [ + "New", + "Edit", + "Published" + ], + "x-ms-enum": { + "name": "DscConfigurationState", + "modelAsString": true + } }, - "resourceName": { - "type": "string", - "description": "Gets or sets the name of the resource." + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." }, - "error": { + "creationTime": { "type": "string", - "description": "Gets or sets the error of the resource." + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false }, - "status": { + "lastModifiedTime": { "type": "string", - "description": "Gets or sets the status of the resource." + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false }, - "durationInSeconds": { - "type": "number", - "format": "double", - "description": "Gets or sets the duration in seconds for the resource." + "nodeConfigurationCount": { + "type": "integer", + "description": "Gets the number of compiled node configurations.", + "x-nullable": false }, - "startDate": { + "description": { "type": "string", - "format": "date-time", - "description": "Gets or sets the start date of the resource.", - "x-nullable": false + "description": "Gets or sets the description." } }, - "description": "Definition of the DSC Report Resource." + "description": "Definition of the configuration property type." }, - "DscReportResourceNavigation": { + "DscConfiguration": { + "type": "object", "properties": { - "resourceId": { + "properties": { + "$ref": "#/definitions/DscConfigurationProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the configuration properties." + }, + "etag": { "type": "string", - "description": "Gets or sets the ID of the resource to navigate to." + "description": "Gets or sets the etag of the resource." } }, - "description": "Navigation for DSC Report Resource." + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" + } + ], + "description": "Definition of the configuration type." }, - "ErrorResponse": { - "type": "object", + "DscConfigurationListResult": { "properties": { - "code": { - "description": "Error code", - "type": "string" + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DscConfiguration" + }, + "description": "Gets or sets a list of configurations." }, - "message": { - "description": "Error message indicating why the operation failed.", - "type": "string" + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + }, + "totalCount": { + "type": "integer", + "description": "Gets the total number of configurations matching filter criteria." } }, - "description": "Error response of an operation failure" + "description": "The response model for the list configuration operation." }, - "FieldDefinition": { + "DscConfigurationCreateOrUpdateProperties": { "properties": { - "isEncrypted": { + "logVerbose": { "type": "boolean", - "description": "Gets or sets the isEncrypted flag of the connection field definition." + "description": "Gets or sets verbose log option." }, - "isOptional": { + "logProgress": { "type": "boolean", - "description": "Gets or sets the isOptional flag of the connection field definition." + "description": "Gets or sets progress log option." }, - "type": { + "source": { + "$ref": "#/definitions/ContentSource", + "description": "Gets or sets the source." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/DscConfigurationParameter" + }, + "description": "Gets or sets the configuration parameters." + }, + "description": { "type": "string", - "description": "Gets or sets the type of the connection field definition." + "description": "Gets or sets the description of the configuration." } }, "required": [ - "type" + "source" ], - "description": "Definition of the connection fields." + "description": "The properties to create or update configuration." }, - "HybridRunbookWorker": { + "DscConfigurationCreateOrUpdateParameters": { "properties": { - "name": { - "type": "string", - "description": "Gets or sets the worker machine name." + "properties": { + "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets configuration create or update properties." }, - "ip": { + "name": { "type": "string", - "description": "Gets or sets the assigned machine IP address." + "description": "Gets or sets name of the resource." }, - "registrationTime": { + "location": { "type": "string", - "format": "date-time", - "description": "Gets or sets the registration time of the worker machine.", - "x-nullable": false + "description": "Gets or sets the location of the resource." }, - "lastSeenDateTime": { - "type": "string", - "format": "date-time", - "description": "Last Heartbeat from the Worker", - "x-nullable": false + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." } }, - "description": "Definition of hybrid runbook worker." + "required": [ + "properties" + ], + "description": "The parameters supplied to the create or update configuration operation." }, - "HybridRunbookWorkerGroup": { + "DscConfigurationUpdateParameters": { "properties": { - "id": { - "type": "string", - "description": "Gets or sets the id of the resource." + "properties": { + "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets configuration create or update properties." }, "name": { "type": "string", - "description": "Gets or sets the name of the group." + "description": "Gets or sets name of the resource." }, - "hybridRunbookWorkers": { - "type": "array", - "items": { - "$ref": "#/definitions/HybridRunbookWorker" + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" }, - "description": "Gets or sets the list of hybrid runbook workers." - }, - "credential": { - "$ref": "#/definitions/RunAsCredentialAssociationProperty", - "description": "Sets the credential of a worker group." + "description": "Gets or sets the tags attached to the resource." + } + }, + "description": "The parameters supplied to the create or update configuration operation." + }, + + "DscNodeExtensionHandlerAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the extension handler." }, - "groupType": { + "version": { "type": "string", - "description": "Type of the HybridWorkerGroup.", - "enum": [ - "User", - "System" - ], - "x-ms-enum": { - "name": "GroupTypeEnum", - "modelAsString": true - } + "description": "Gets or sets the version of the extension handler." } }, - "description": "Definition of hybrid runbook worker group." + "description": "The dsc extensionHandler property associated with the node" }, - "HybridRunbookWorkerGroupsListResult": { + + + + + + + "ErrorResponse": { + "type": "object", "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/HybridRunbookWorkerGroup" - }, - "description": "Gets or sets a list of hybrid runbook worker groups." + "code": { + "description": "Error code", + "type": "string" }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." + "message": { + "description": "Error message indicating why the operation failed.", + "type": "string" } }, - "description": "The response model for the list hybrid runbook worker groups." + "description": "Error response of an operation failure" }, - "HybridRunbookWorkerGroupUpdateParameters": { + + "ScheduleAssociationProperty": { "properties": { - "credential": { - "$ref": "#/definitions/RunAsCredentialAssociationProperty", - "description": "Sets the credential of a worker group." + "name": { + "type": "string", + "description": "Gets or sets the name of the schedule." } }, - "description": "Parameters supplied to the update operation." + "description": "The schedule property associated with the entity." }, "JobScheduleCreateProperties": { "properties": { @@ -1563,15 +487,7 @@ "modelAsString": true } }, - "RunAsCredentialAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the credential." - } - }, - "description": "Definition of runas credential to use for hybrid worker." - }, + "RunbookParameter": { "properties": { "type": { @@ -2019,88 +935,29 @@ } }, "description": "The response model for the list runbook operation." - }, - "RunbookAssociationProperty": { + },"RunbookAssociationProperty": { "properties": { "name": { "type": "string", "description": "Gets or sets the name of the runbook." } }, - "description": "The runbook property associated with the entity." - }, - "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 - } - }, - "ScheduleCreateOrUpdateProperties": { - "properties": { - "description": { - "type": "string", - "description": "Gets or sets the description of the schedule." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the start time of the schedule.", - "x-nullable": false - }, - "expiryTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the end time of the schedule.", - "x-nullable": true - }, - "interval": { - "description": "Gets or sets the interval of the schedule." - }, - "frequency": { - "type": "string", - "$ref": "#/definitions/scheduleFrequency" - }, - "timeZone": { - "type": "string", - "description": "Gets or sets the time zone of the schedule." - }, - "advancedSchedule": { - "$ref": "#/definitions/AdvancedSchedule", - "description": "Gets or sets the AdvancedSchedule." - } - }, - "required": [ - "startTime", - "frequency" - ], - "description": "The parameters supplied to the create or update schedule operation." - }, - "ScheduleCreateOrUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the schedule." - }, - "properties": { - "$ref": "#/definitions/ScheduleCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the list of schedule properties." - } - }, - "required": [ - "name", - "properties" + "description": "The runbook property associated with the entity." + }, + "scheduleFrequency": { + "type": "string", + "description": "Gets or sets the frequency of the schedule.", + "enum": [ + "OneTime", + "Day", + "Hour", + "Week", + "Month" ], - "description": "The parameters supplied to the create or update schedule operation." + "x-ms-enum": { + "name": "ScheduleFrequency", + "modelAsString": true + } }, "ScheduleProperties": { "properties": { @@ -2190,85 +1047,7 @@ } }, "description": "Definition of schedule parameters." - }, - "Schedule": { - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Gets the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Gets name of the schedule." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Resource type" - }, - "properties": { - "$ref": "#/definitions/ScheduleProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the schedule." - } - }, - "description": "Definition of the schedule." - }, - "ScheduleUpdateProperties": { - "properties": { - "description": { - "type": "string", - "description": "Gets or sets the description of the schedule." - }, - "isEnabled": { - "type": "boolean", - "description": "Gets or sets a value indicating whether this schedule is enabled." - } - }, - "description": "The parameters supplied to the update schedule operation." - }, - "ScheduleUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the schedule." - }, - "properties": { - "$ref": "#/definitions/ScheduleUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the list of schedule properties." - } - }, - "description": "The parameters supplied to the update schedule operation." - }, - "ScheduleListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Schedule" - }, - "description": "Gets or sets a list of schedules." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list schedule operation." - }, - "ScheduleAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the schedule." - } - }, - "description": "The schedule property associated with the entity." - }, - + }, "SubResource": { "properties": { "id": { @@ -2361,260 +1140,8 @@ } }, "description": "Definition of the test job." - }, - "VariableProperties": { - "properties": { - "value": { - "type": "string", - "description": "Gets or sets the value of the variable." - }, - "isEncrypted": { - "type": "boolean", - "description": "Gets or sets the encrypted flag of the variable.", - "x-nullable": true - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the varible properties" - }, - "Variable": { - "properties": { - "properties": { - "$ref": "#/definitions/VariableProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the variable." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" - } - ], - "description": "Definition of the varible." - }, - "WebhookCreateOrUpdateProperties": { - "properties": { - "isEnabled": { - "type": "boolean", - "description": "Gets or sets the value of the enabled flag of webhook." - }, - "uri": { - "type": "string", - "description": "Gets or sets the uri." - }, - "expiryTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the expiry time.", - "x-nullable": false - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the job." - }, - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the name of the hybrid worker group the webhook job will run on." - } - }, - "description": "The properties of the create webhook operation." - }, - "WebhookCreateOrUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the webhook." - }, - "properties": { - "$ref": "#/definitions/WebhookCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the webhook." - } - }, - "required": [ - "name", - "properties" - ], - "description": "The parameters supplied to the create or update webhook operation." - }, - "WebhookProperties": { - "properties": { - "isEnabled": { - "type": "boolean", - "default": false, - "description": "Gets or sets the value of the enabled flag of the webhook." - }, - "uri": { - "type": "string", - "description": "Gets or sets the webhook uri." - }, - "expiryTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the expiry time.", - "x-nullable": false - }, - "lastInvokedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last invoked time.", - "x-nullable": true - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with." - }, - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook the webhook is associated with." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the name of the hybrid worker group the webhook job will run on." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "lastModifiedBy": { - "type": "string", - "description": "Details of the user who last modified the Webhook" - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the webhook properties" - }, - "Webhook": { - "properties": { - "properties": { - "$ref": "#/definitions/WebhookProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the webhook properties." - } - }, - "description": "Definition of the webhook type.", - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" - } - ] - }, - "WebhookListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Webhook" - }, - "description": "Gets or sets a list of webhooks." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list webhook operation." - }, - "WebhookUpdateProperties": { - "properties": { - "isEnabled": { - "type": "boolean", - "description": "Gets or sets the value of the enabled flag of webhook." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the name of the hybrid worker group the webhook job will run on." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the job." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the webhook." - } - }, - "description": "The properties of the update webhook." - }, - "WebhookUpdateParameters": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the webhook." - }, - "properties": { - "$ref": "#/definitions/WebhookUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the value of the webhook." - } - }, - "description": "The parameters supplied to the update webhook operation." } }, "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": "method", - "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/dscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json index 8eda5f4fefd7..7c773a21ea8e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json @@ -69,7 +69,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AgentRegistration" + "$ref": "#/definitions/AgentRegistration" } }, "default": { @@ -108,7 +108,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/AgentRegistrationRegenerateKeyParameter" + "$ref": "#/definitions/AgentRegistrationRegenerateKeyParameter" }, "description": "The name of the agent registration key to be regenerated" }, @@ -123,7 +123,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AgentRegistration" + "$ref": "#/definitions/AgentRegistration" } }, "default": { @@ -155,11 +155,7 @@ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "Automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -273,7 +269,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/DscNodeUpdateParameters" + "$ref": "#/definitions/DscNodeUpdateParameters" }, "description": "Parameters supplied to the update dsc node." }, @@ -402,7 +398,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscNodeReportListResult" + "$ref": "#/definitions/DscNodeReportListResult" } }, "default": { @@ -464,7 +460,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscNodeReport" + "$ref": "#/definitions/DscNodeReport" } }, "default": { @@ -537,6 +533,338 @@ } }, "definitions": { + "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." + }, + "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": [ + "keyName" + ], + "description": "The parameters supplied to the regenerate keys operation." + }, + "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." + }, + "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." + }, + + "DscNodeConfigurationAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the dsc nodeconfiguration." + } + }, + "description": "The dsc nodeconfiguration property associated with the entity." + }, + "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." + }, + "DscNodeReport": { + "properties": { + "endTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the node report.", + "x-nullable": true + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the lastModifiedTime of the node report.", + "x-nullable": false + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the node report.", + "x-nullable": true + }, + "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." + }, + "DscReportResourceNavigation": { + "properties": { + "resourceId": { + "type": "string", + "description": "Gets or sets the ID of the resource to navigate to." + } + }, + "description": "Navigation for 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." + }, + "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.", + "x-nullable": false + } + }, + "description": "Definition of the 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." + }, + "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." + }, "DscNode": { "properties": { "lastSeen": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json index 78a9ff0b5d44..d69d606944f4 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json @@ -18,7 +18,7 @@ } }, "responses": { - "201": { + "200": { "headers": {}, "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json index 9bf6fe9ad840..258cff1dad94 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json @@ -56,11 +56,7 @@ "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "name": "automationAccountName", - "in": "path", - "required": true, - "type": "string", - "description": "Automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "hybridRunbookWorkerGroupName", @@ -127,7 +123,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/HybridRunbookWorkerGroup" + "$ref": "#/definitions/HybridRunbookWorkerGroup" } }, "default": { @@ -171,7 +167,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/HybridRunbookWorkerGroupUpdateParameters" + "$ref": "#/definitions/HybridRunbookWorkerGroupUpdateParameters" }, "description": "The hybrid runbook worker group" }, @@ -186,7 +182,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/HybridRunbookWorkerGroup" + "$ref": "#/definitions/HybridRunbookWorkerGroup" } }, "default": { @@ -238,7 +234,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/HybridRunbookWorkerGroupsListResult" + "$ref": "#/definitions/HybridRunbookWorkerGroupsListResult" } }, "default": { @@ -251,10 +247,106 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./definitions.json#/definitions/HybridRunbookWorkerGroup" + "x-ms-odata": "#/definitions/HybridRunbookWorkerGroup" } } }, - "definitions": {}, + "definitions": { + "RunAsCredentialAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the credential." + } + }, + "description": "Definition of runas credential to use for hybrid worker." + }, + "HybridRunbookWorker": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the worker machine name." + }, + "ip": { + "type": "string", + "description": "Gets or sets the assigned machine IP address." + }, + "registrationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the registration time of the worker machine.", + "x-nullable": false + }, + "lastSeenDateTime": { + "type": "string", + "format": "date-time", + "description": "Last Heartbeat from the Worker", + "x-nullable": false + } + }, + "description": "Definition of hybrid runbook worker." + }, + "HybridRunbookWorkerGroup": { + "properties": { + "id": { + "type": "string", + "description": "Gets or sets the id of the resource." + }, + "name": { + "type": "string", + "description": "Gets or sets the name of the group." + }, + "hybridRunbookWorkers": { + "type": "array", + "items": { + "$ref": "#/definitions/HybridRunbookWorker" + }, + "description": "Gets or sets the list of hybrid runbook workers." + }, + "credential": { + "$ref": "#/definitions/RunAsCredentialAssociationProperty", + "description": "Sets the credential of a worker group." + }, + "groupType": { + "type": "string", + "description": "Type of the HybridWorkerGroup.", + "enum": [ + "User", + "System" + ], + "x-ms-enum": { + "name": "GroupTypeEnum", + "modelAsString": true + } + } + }, + "description": "Definition of hybrid runbook worker group." + }, + "HybridRunbookWorkerGroupsListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/HybridRunbookWorkerGroup" + }, + "description": "Gets or sets a list of hybrid runbook worker groups." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list hybrid runbook worker groups." + }, + "HybridRunbookWorkerGroupUpdateParameters": { + "properties": { + "credential": { + "$ref": "#/definitions/RunAsCredentialAssociationProperty", + "description": "Sets the credential of a worker group." + } + }, + "description": "Parameters supplied to the update operation." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json index 145155606371..7060a497ac8a 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json @@ -544,7 +544,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobStreamListResult" + "$ref": "#/definitions/JobStreamListResult" } }, "default": { @@ -812,6 +812,22 @@ }, "x-ms-client-flatten": true, "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." } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json index f939f0bb5d8d..e036f0ef4653 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json @@ -770,7 +770,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobStreamListResult" + "$ref": "#/definitions/JobStreamListResult" } }, "default": { @@ -1044,6 +1044,84 @@ } } }, - "definitions": {}, + "definitions": { + "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." + }, + "JobStreamProperties": { + "properties": { + "jobStreamId": { + "type": "string", + "description": "Gets or sets the id of the job stream." + }, + "time": { + "type": "string", + "format": "date-time", + "x-nullable": false, + "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/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." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json index 24596ca42e33..cb0e3f7df77e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json @@ -70,7 +70,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ScheduleCreateOrUpdateParameters" + "$ref": "#/definitions/ScheduleCreateOrUpdateParameters" }, "description": "The parameters supplied to the create or update schedule operation." }, @@ -82,10 +82,10 @@ } ], "responses": { - "201": { + "200": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Schedule" + "$ref": "#/definitions/Schedule" } }, "409": { @@ -132,7 +132,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ScheduleUpdateParameters" + "$ref": "#/definitions/ScheduleUpdateParameters" }, "description": "The parameters supplied to the update schedule operation." }, @@ -147,7 +147,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Schedule" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -197,7 +197,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Schedule" + "$ref": "#/definitions/Schedule" } }, "default": { @@ -295,7 +295,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ScheduleListResult" + "$ref": "#/definitions/ScheduleListResult" } }, "default": { @@ -311,6 +311,123 @@ } } }, - "definitions": {}, + "definitions": { + "ScheduleCreateOrUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Gets or sets the description of the schedule." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the schedule.", + "x-nullable": false + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the schedule.", + "x-nullable": true + }, + "interval": { + "description": "Gets or sets the interval of the schedule." + }, + "frequency": { + "type": "string", + "$ref": "#/definitions/scheduleFrequency" + }, + "timeZone": { + "type": "string", + "description": "Gets or sets the time zone of the schedule." + }, + "advancedSchedule": { + "$ref": "#/definitions/AdvancedSchedule", + "description": "Gets or sets the AdvancedSchedule." + } + }, + "required": [ + "startTime", + "frequency" + ], + "description": "The parameters supplied to the create or update schedule operation." + }, + "ScheduleCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the schedule." + }, + "properties": { + "$ref": "#/definitions/ScheduleCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the list of schedule properties." + } + }, + "required": [ + "name", + "properties" + ], + "description": "The parameters supplied to the create or update schedule operation." + }, + "Schedule": { + "properties": { + "properties": { + "$ref": "#/definitions/ScheduleProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the schedule." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ], + "description": "Definition of the schedule." + }, + "ScheduleUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Gets or sets the description of the schedule." + }, + "isEnabled": { + "type": "boolean", + "description": "Gets or sets a value indicating whether this schedule is enabled." + } + }, + "description": "The parameters supplied to the update schedule operation." + }, + "ScheduleUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the schedule." + }, + "properties": { + "$ref": "#/definitions/ScheduleUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the list of schedule properties." + } + }, + "description": "The parameters supplied to the update schedule operation." + }, + "ScheduleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Schedule" + }, + "description": "Gets or sets a list of schedules." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list schedule operation." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json index 7e6f2300d6ce..d4c205bf3718 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagementClient", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -168,7 +168,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Webhook" + "$ref": "#/definitions/Webhook" } }, "default": { @@ -212,7 +212,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/WebhookCreateOrUpdateParameters" + "$ref": "#/definitions/WebhookCreateOrUpdateParameters" }, "description": "The create or update parameters for webhook." }, @@ -227,13 +227,13 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Webhook" + "$ref": "#/definitions/Webhook" } }, "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Webhook" + "$ref": "#/definitions/Webhook" } }, "default": { @@ -277,7 +277,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/WebhookUpdateParameters" + "$ref": "#/definitions/WebhookUpdateParameters" }, "description": "The update parameters for webhook." }, @@ -292,7 +292,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Webhook" + "$ref": "#/definitions/Webhook" } }, "default": { @@ -344,7 +344,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/WebhookListResult" + "$ref": "#/definitions/WebhookListResult" } }, "default": { @@ -357,10 +357,202 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./definitions.json#/definitions/Webhook" + "x-ms-odata": "#/definitions/Webhook" } } }, - "definitions": {}, + "definitions": { + "WebhookProperties": { + "properties": { + "isEnabled": { + "type": "boolean", + "default": false, + "description": "Gets or sets the value of the enabled flag of the webhook." + }, + "uri": { + "type": "string", + "description": "Gets or sets the webhook uri." + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the expiry time.", + "x-nullable": false + }, + "lastInvokedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last invoked time.", + "x-nullable": true + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with." + }, + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook the webhook is associated with." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the name of the hybrid worker group the webhook job will run on." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "lastModifiedBy": { + "type": "string", + "description": "Details of the user who last modified the Webhook" + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the webhook properties" + }, + "Webhook": { + "properties": { + "properties": { + "$ref": "#/definitions/WebhookProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the webhook properties." + } + }, + "description": "Definition of the webhook type.", + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" + } + ] + }, + "WebhookListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Webhook" + }, + "description": "Gets or sets a list of webhooks." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list webhook operation." + }, + "WebhookUpdateProperties": { + "properties": { + "isEnabled": { + "type": "boolean", + "description": "Gets or sets the value of the enabled flag of webhook." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the name of the hybrid worker group the webhook job will run on." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the webhook." + } + }, + "description": "The properties of the update webhook." + }, + "WebhookUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the webhook." + }, + "properties": { + "$ref": "#/definitions/WebhookUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the value of the webhook." + } + }, + "description": "The parameters supplied to the update webhook operation." + }, + "RunbookAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the runbook." + } + }, + "description": "The runbook property associated with the entity." + }, + "WebhookCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the webhook." + }, + "properties": { + "$ref": "#/definitions/WebhookCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the webhook." + } + }, + "required": [ + "name", + "properties" + ], + "description": "The parameters supplied to the create or update webhook operation." + }, + "WebhookCreateOrUpdateProperties": { + "properties": { + "isEnabled": { + "type": "boolean", + "description": "Gets or sets the value of the enabled flag of webhook." + }, + "uri": { + "type": "string", + "description": "Gets or sets the uri." + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the expiry time.", + "x-nullable": false + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job." + }, + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the name of the hybrid worker group the webhook job will run on." + } + }, + "description": "The properties of the create webhook operation." + } + }, "parameters": {} -} +} \ No newline at end of file From 5e0944c5a28faa562065a11e67ef493f8ece6f6f Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Fri, 8 Jun 2018 23:45:22 -0700 Subject: [PATCH 06/15] Correcting some more 2015 resources --- .../common/v1/definitions.json | 34 +- .../stable/2015-10-31/account.json | 15 +- .../stable/2015-10-31/credential.json | 2 +- .../stable/2015-10-31/definitions.json | 1147 ----------------- .../stable/2015-10-31/dscConfiguration.json | 277 +++- .../stable/2015-10-31/dscNode.json | 26 +- .../2015-10-31/dscNodeConfiguration.json | 13 +- .../stable/2015-10-31/job.json | 31 +- .../stable/2015-10-31/jobSchedule.json | 141 +- .../stable/2015-10-31/runbook.json | 591 ++++++++- .../stable/2015-10-31/schedule.json | 104 ++ .../automation/resource-manager/readme.md | 6 +- 12 files changed, 1170 insertions(+), 1217 deletions(-) delete mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json diff --git a/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json index a0015aac0072..886b42d66fc2 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json +++ b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json @@ -1,10 +1,28 @@ { "swagger": "2.0", + "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" + } + } + }, "info": { - "version": "1.0", + "version": "2018-06-10", "title": "Common types" }, - "paths":{}, + "paths": {}, "definitions": { "ErrorResponse": { "type": "object", @@ -22,7 +40,7 @@ }, "Resource": { "description": "The core properties of ARM resources", - "type":"object", + "type": "object", "properties": { "id": { "readOnly": true, @@ -44,9 +62,9 @@ }, "TrackedResource": { "description": "The resource model definition for a ARM tracked top level resource", - "type":"object", + "type": "object", "properties": { - "tags": { + "tags": { "type": "object", "additionalProperties": { "type": "string" @@ -74,14 +92,14 @@ ] }, "ProxyResource": { - "description":"ARM proxy resource.", - "type":"object", + "description": "ARM proxy resource.", + "type": "object", "allOf": [ { "$ref": "#/definitions/Resource" } ], - "properties":{} + "properties": {} } }, "parameters": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json index 18bdb59af6d3..af7c5f2071e5 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json @@ -461,7 +461,7 @@ "operationId": "Keys_ListByAutomationAccount", "description": "Retrieve the automation keys for an account.", "x-ms-examples": { - "Get usages of an automation account": { + "Get lists of an automation account": { "$ref": "./examples/listAutomationAccountKeys.json" } }, @@ -492,9 +492,6 @@ "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } - }, - "x-ms-pageable": { - "nextLinkName": null } } } @@ -788,11 +785,12 @@ "Key": { "properties": { "keyName": { + "readOnly": true, "type": "string", "description": "Automation key name.", "enum": [ - "primary", - "secondary" + "Primary", + "Secondary" ], "x-ms-enum": { "name": "AutomationKeyName", @@ -800,9 +798,11 @@ } }, "permissions": { + "readOnly": true, "type": "string", "description": "Automation key permissions.", "enum": [ + "Read", "Full" ], "x-ms-enum": { @@ -811,6 +811,7 @@ } }, "value": { + "readOnly": true, "type": "string", "description": "Value of the Automation Key used for registration." } @@ -819,7 +820,7 @@ }, "KeyListResult": { "properties": { - "value": { + "keys": { "type": "array", "items": { "$ref": "#/definitions/Key" diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json index 3a76d4e4fe6b..48c5a28eaaf7 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/credential.json @@ -232,7 +232,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/CredentialUpdateParameters" + "$ref": "#/definitions/CredentialUpdateParameters" }, "description": "The parameters supplied to the Update credential operation." }, 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 deleted file mode 100644 index 1078f38ea281..000000000000 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json +++ /dev/null @@ -1,1147 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "AutomationManagement", - "version": "2015-10-31", - "x-ms-code-generation-settings": { - "useDateTimeOffset": true - } - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json", - "text/plain", - "text/powershell", - "application/graph-runbook", - "application/octet-stream" - ], - "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": { - - - "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." - }, - "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." - }, - "ContentLink": { - "properties": { - "uri": { - "type": "string", - "description": "Gets or sets the uri of the runbook content." - }, - "contentHash": { - "$ref": "#/definitions/ContentHash", - "description": "Gets or sets the hash." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the content." - } - }, - "description": "Definition of the content link." - }, - "DscConfigurationParameter": { - "properties": { - "type": { - "type": "string", - "description": "Gets or sets the type of the parameter." - }, - "isMandatory": { - "type": "boolean", - "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." - }, - "position": { - "type": "integer", - "format": "int32", - "description": "Get or sets the position of the parameter." - }, - "defaultValue": { - "type": "string", - "description": "Gets or sets the default value of parameter." - } - }, - "description": "Definition of the configuration parameter type." - }, - "DscConfigurationProperties": { - "properties": { - "provisioningState": { - "type": "string", - "description": "Gets or sets the provisioning state of the configuration.", - "enum": [ - "Succeeded" - ], - "x-ms-enum": { - "name": "DscConfigurationProvisioningState", - "modelAsString": false - } - }, - "jobCount": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the job count of the configuration." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/DscConfigurationParameter" - }, - "description": "Gets or sets the configuration parameters." - }, - "source": { - "$ref": "#/definitions/ContentSource", - "description": "Gets or sets the source." - }, - "state": { - "type": "string", - "description": "Gets or sets the state of the configuration.", - "enum": [ - "New", - "Edit", - "Published" - ], - "x-ms-enum": { - "name": "DscConfigurationState", - "modelAsString": true - } - }, - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "nodeConfigurationCount": { - "type": "integer", - "description": "Gets the number of compiled node configurations.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the configuration property type." - }, - "DscConfiguration": { - "type": "object", - "properties": { - "properties": { - "$ref": "#/definitions/DscConfigurationProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the configuration properties." - }, - "etag": { - "type": "string", - "description": "Gets or sets the etag of the resource." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" - } - ], - "description": "Definition of the configuration type." - }, - "DscConfigurationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/DscConfiguration" - }, - "description": "Gets or sets a list of configurations." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - }, - "totalCount": { - "type": "integer", - "description": "Gets the total number of configurations matching filter criteria." - } - }, - "description": "The response model for the list configuration operation." - }, - "DscConfigurationCreateOrUpdateProperties": { - "properties": { - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "logProgress": { - "type": "boolean", - "description": "Gets or sets progress log option." - }, - "source": { - "$ref": "#/definitions/ContentSource", - "description": "Gets or sets the source." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/DscConfigurationParameter" - }, - "description": "Gets or sets the configuration parameters." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the configuration." - } - }, - "required": [ - "source" - ], - "description": "The properties to create or update configuration." - }, - "DscConfigurationCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets configuration create or update 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 or update configuration operation." - }, - "DscConfigurationUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets configuration create or update properties." - }, - "name": { - "type": "string", - "description": "Gets or sets name of the resource." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the tags attached to the resource." - } - }, - "description": "The parameters supplied to the create or update configuration 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" - }, - - - - - - - "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" - }, - - "ScheduleAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the schedule." - } - }, - "description": "The schedule property associated with the entity." - }, - "JobScheduleCreateProperties": { - "properties": { - "schedule": { - "$ref": "#/definitions/ScheduleAssociationProperty", - "description": "Gets or sets the schedule." - }, - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the hybrid worker group that the scheduled job should run on." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets a list of job properties." - } - }, - "required": [ - "schedule", - "runbook" - ], - "description": "The parameters supplied to the create job schedule operation." - }, - "JobScheduleCreateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/JobScheduleCreateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the list of job schedule properties." - } - }, - "required": [ - "properties" - ], - "description": "The parameters supplied to the create job schedule operation." - }, - "JobScheduleProperties": { - "properties": { - "jobScheduleId": { - "type": "string", - "description": "Gets or sets the id of job schedule." - }, - "schedule": { - "$ref": "#/definitions/ScheduleAssociationProperty", - "description": "Gets or sets the schedule." - }, - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the hybrid worker group that the scheduled job should run on." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the job schedule." - } - }, - "description": "Definition of job schedule parameters." - }, - "JobSchedule": { - "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/JobScheduleProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the job schedule." - } - }, - "description": "Definition of the job schedule." - }, - "JobScheduleListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/JobSchedule" - }, - "description": "Gets or sets a list of job schedules." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list job schedule operation." - }, - "JobProvisioningStateProperty": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the resource.", - "enum": [ - "Failed", - "Succeeded", - "Suspended", - "Processing" - ], - "x-ms-enum": { - "name": "JobProvisioningState", - "modelAsString": true - } - }, - - "RunbookParameter": { - "properties": { - "type": { - "type": "string", - "description": "Gets or sets the type of the parameter." - }, - "isMandatory": { - "type": "boolean", - "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." - }, - "position": { - "type": "integer", - "format": "int32", - "description": "Get or sets the position of the parameter." - }, - "defaultValue": { - "type": "string", - "description": "Gets or sets the default value of parameter." - } - }, - "description": "Definition of the runbook parameter type." - }, - "RunbookDraft": { - "properties": { - "inEdit": { - "type": "boolean", - "description": "Gets or sets whether runbook is in edit mode." - }, - "draftContentLink": { - "$ref": "#/definitions/ContentLink", - "description": "Gets or sets the draft runbook content link." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time of the runbook draft.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time of the runbook draft.", - "x-nullable": false - }, - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/RunbookParameter" - }, - "description": "Gets or sets the runbook draft parameters." - }, - "outputTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Gets or sets the runbook output types." - } - }, - "description": "Definition of the runbook type." - }, - "RunbookDraftUndoEditResult": { - "properties": { - "statusCode": { - "type": "string", - "enum": [ - "Continue", - "SwitchingProtocols", - "OK", - "Created", - "Accepted", - "NonAuthoritativeInformation", - "NoContent", - "ResetContent", - "PartialContent", - "MultipleChoices", - "Ambiguous", - "MovedPermanently", - "Moved", - "Found", - "Redirect", - "SeeOther", - "RedirectMethod", - "NotModified", - "UseProxy", - "Unused", - "TemporaryRedirect", - "RedirectKeepVerb", - "BadRequest", - "Unauthorized", - "PaymentRequired", - "Forbidden", - "NotFound", - "MethodNotAllowed", - "NotAcceptable", - "ProxyAuthenticationRequired", - "RequestTimeout", - "Conflict", - "Gone", - "LengthRequired", - "PreconditionFailed", - "RequestEntityTooLarge", - "RequestUriTooLong", - "UnsupportedMediaType", - "RequestedRangeNotSatisfiable", - "ExpectationFailed", - "UpgradeRequired", - "InternalServerError", - "NotImplemented", - "BadGateway", - "ServiceUnavailable", - "GatewayTimeout", - "HttpVersionNotSupported" - ], - "x-ms-enum": { - "name": "HttpStatusCode", - "modelAsString": false - } - }, - "requestId": { - "type": "string" - } - }, - "description": "The response model for the undoedit runbook operation." - }, - "RunbookCreateOrUpdateProperties": { - "properties": { - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "logProgress": { - "type": "boolean", - "description": "Gets or sets progress log option." - }, - "runbookType": { - "type": "string", - "description": "Gets or sets the type of the runbook.", - "enum": [ - "Script", - "Graph", - "PowerShellWorkflow", - "PowerShell", - "GraphPowerShellWorkflow", - "GraphPowerShell" - ], - "x-ms-enum": { - "name": "RunbookTypeEnum", - "modelAsString": true - } - }, - "draft": { - "$ref": "#/definitions/RunbookDraft", - "description": "Gets or sets the draft runbook properties." - }, - "publishContentLink": { - "$ref": "#/definitions/ContentLink", - "description": "Gets or sets the published runbook content link." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the runbook." - }, - "logActivityTrace": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the activity-level tracing options of the runbook." - } - }, - "required": [ - "runbookType" - ], - "description": "The parameters supplied to the create or update runbook properties." - }, - "RunbookCreateOrUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/RunbookCreateOrUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets runbook create or update properties." - }, - "name": { - "type": "string", - "description": "Gets or sets the 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 or update runbook operation." - }, - "RunbookCreateOrUpdateDraftProperties": { - "properties": { - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "logProgress": { - "type": "boolean", - "description": "Gets or sets progress log option." - }, - "runbookType": { - "type": "string", - "description": "Gets or sets the type of the runbook.", - "enum": [ - "Script", - "Graph", - "PowerShellWorkflow", - "PowerShell", - "GraphPowerShellWorkflow", - "GraphPowerShell" - ], - "x-ms-enum": { - "name": "RunbookTypeEnum", - "modelAsString": true - } - }, - "draft": { - "$ref": "#/definitions/RunbookDraft", - "description": "Gets or sets the draft runbook properties." - }, - "description": { - "type": "string", - "description": "Gets or sets the description of the runbook." - }, - "logActivityTrace": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the activity-level tracing options of the runbook." - } - }, - "required": [ - "runbookType", - "draft" - ], - "description": "The parameters supplied to the create or update dratft runbook properties." - }, - "RunbookCreateOrUpdateDraftParameters": { - "properties": { - "runbookContent": { - "type": "string", - "description": "Content of the Runbook." - } - }, - "x-ms-client-flatten": true, - "required": [ - "runbookContent" - ], - "description": "The parameters supplied to the create or update runbook operation." - }, - "RunbookUpdateProperties": { - "properties": { - "description": { - "type": "string", - "description": "Gets or sets the description of the runbook." - }, - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "logProgress": { - "type": "boolean", - "description": "Gets or sets progress log option." - }, - "logActivityTrace": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the activity-level tracing options of the runbook." - } - }, - "description": "The parameters supplied to the update runbook properties." - }, - "RunbookUpdateParameters": { - "properties": { - "properties": { - "$ref": "#/definitions/RunbookUpdateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the runbook update properties." - }, - "name": { - "type": "string", - "description": "Gets or sets the 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." - } - }, - "description": "The parameters supplied to the update runbook operation." - }, - "RunbookProperties": { - "properties": { - "runbookType": { - "type": "string", - "description": "Gets or sets the type of the runbook.", - "enum": [ - "Script", - "Graph", - "PowerShellWorkflow", - "PowerShell", - "GraphPowerShellWorkflow", - "GraphPowerShell" - ], - "x-ms-enum": { - "name": "RunbookTypeEnum", - "modelAsString": true - } - }, - "publishContentLink": { - "$ref": "#/definitions/ContentLink", - "description": "Gets or sets the published runbook content link." - }, - "state": { - "type": "string", - "description": "Gets or sets the state of the runbook.", - "enum": [ - "New", - "Edit", - "Published" - ], - "x-ms-enum": { - "name": "RunbookState", - "modelAsString": true - } - }, - "logVerbose": { - "type": "boolean", - "description": "Gets or sets verbose log option." - }, - "logProgress": { - "type": "boolean", - "description": "Gets or sets progress log option." - }, - "logActivityTrace": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the option to log activity trace of the runbook." - }, - "jobCount": { - "type": "integer", - "format": "int32", - "description": "Gets or sets the job count of the runbook." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/RunbookParameter" - }, - "description": "Gets or sets the runbook parameters." - }, - "outputTypes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Gets or sets the runbook output types." - }, - "draft": { - "$ref": "#/definitions/RunbookDraft", - "description": "Gets or sets the draft runbook properties." - }, - "provisioningState": { - "type": "string", - "description": "Gets or sets the provisioning state of the runbook.", - "enum": [ - "Succeeded" - ], - "x-ms-enum": { - "name": "RunbookProvisioningState", - "modelAsString": false - } - }, - "lastModifiedBy": { - "type": "string", - "description": "Gets or sets the last modified by." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of the runbook property type." - }, - "Runbook": { - "properties": { - "properties": { - "$ref": "#/definitions/RunbookProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the runbook properties." - }, - "etag": { - "type": "string", - "description": "Gets or sets the etag of the resource." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" - } - ], - "description": "Definition of the runbook type." - }, - "RunbookListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Runbook" - }, - "description": "Gets or sets a list of runbooks." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list runbook operation." - },"RunbookAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the runbook." - } - }, - "description": "The runbook property associated with the entity." - }, - "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 - } - }, - "ScheduleProperties": { - "properties": { - "startTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the start time of the schedule.", - "x-nullable": false - }, - "startTimeOffsetMinutes": { - "readOnly": true, - "type": "number", - "format": "double", - "description": "Gets the start time's offset in minutes.", - "x-nullable": false - }, - "expiryTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the end time of the schedule.", - "x-nullable": true - }, - "expiryTimeOffsetMinutes": { - "type": "number", - "format": "double", - "description": "Gets or sets the expiry time's offset in minutes.", - "x-nullable": false - }, - "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.", - "x-nullable": true - }, - "nextRunOffsetMinutes": { - "type": "number", - "format": "double", - "description": "Gets or sets the next run time's offset in minutes.", - "x-nullable": false - }, - "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.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of schedule parameters." - }, - "SubResource": { - "properties": { - "id": { - "type": "string", - "description": "Resource Id" - } - }, - "description": "The Sub Resource definition.", - "x-ms-azure-resource": true - }, - "TestJobCreateParameters": { - "properties": { - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the test job." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." - } - }, - "description": "The parameters supplied to the create test job operation." - }, - "TestJob": { - "x-ms-mutability": [ - "read", - "create" - ], - "properties": { - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time of the test job.", - "x-nullable": false - }, - "status": { - "type": "string", - "description": "Gets or sets the status of the test job." - }, - "statusDetails": { - "type": "string", - "description": "Gets or sets the status details of the test job." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." - }, - "startTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the start time of the test job.", - "x-nullable": true - }, - "endTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the end time of the test job.", - "x-nullable": true - }, - "exception": { - "type": "string", - "description": "Gets or sets the exception of the test job." - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time of the test job.", - "x-nullable": false - }, - "lastStatusModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last status modified time of the test job.", - "x-nullable": true - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the test job." - }, - "logActivityTrace": { - "type": "integer", - "format": "int32", - "description": "The activity-level tracing options of the runbook." - } - }, - "description": "Definition of the test job." - } - }, - "parameters": { - } - } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json index 9b9d6b5c30d6..a54096f05cee 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json @@ -128,7 +128,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "default": { @@ -172,7 +172,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/DscConfigurationCreateOrUpdateParameters" + "$ref": "#/definitions/DscConfigurationCreateOrUpdateParameters" }, "description": "The create or update parameters for configuration." }, @@ -187,13 +187,13 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "default": { @@ -236,7 +236,7 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "./definitions.json#/definitions/DscConfigurationUpdateParameters" + "$ref": "#/definitions/DscConfigurationUpdateParameters" }, "description": "The create or update parameters for configuration." }, @@ -251,7 +251,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "default": { @@ -382,7 +382,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfigurationListResult" + "$ref": "#/definitions/DscConfigurationListResult" } }, "default": { @@ -395,10 +395,269 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./definitions.json#/definitions/DscConfiguration" + "x-ms-odata": "#/definitions/DscConfiguration" } } }, - "definitions": {}, + "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." + }, + "DscConfigurationCreateOrUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets configuration create or update 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 or update configuration operation." + }, + "DscConfigurationListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/DscConfiguration" + }, + "description": "Gets or sets a list of configurations." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + }, + "totalCount": { + "type": "integer", + "description": "Gets the total number of configurations matching filter criteria." + } + }, + "description": "The response model for the list configuration operation." + }, + "DscConfigurationCreateOrUpdateProperties": { + "properties": { + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "source": { + "$ref": "#/definitions/ContentSource", + "description": "Gets or sets the source." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/DscConfigurationParameter" + }, + "description": "Gets or sets the configuration parameters." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the configuration." + } + }, + "required": [ + "source" + ], + "description": "The properties to create or update configuration." + }, + "DscConfigurationParameter": { + "properties": { + "type": { + "type": "string", + "description": "Gets or sets the type of the parameter." + }, + "isMandatory": { + "type": "boolean", + "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." + }, + "position": { + "type": "integer", + "format": "int32", + "description": "Get or sets the position of the parameter." + }, + "defaultValue": { + "type": "string", + "description": "Gets or sets the default value of parameter." + } + }, + "description": "Definition of the configuration parameter type." + }, + "DscConfigurationUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/DscConfigurationCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets configuration create or update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets name of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the tags attached to the resource." + } + }, + "description": "The parameters supplied to the create or update configuration operation." + }, + "DscConfigurationProperties": { + "properties": { + "provisioningState": { + "type": "string", + "description": "Gets or sets the provisioning state of the configuration.", + "enum": [ + "Succeeded" + ], + "x-ms-enum": { + "name": "DscConfigurationProvisioningState", + "modelAsString": false + } + }, + "jobCount": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the job count of the configuration." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/DscConfigurationParameter" + }, + "description": "Gets or sets the configuration parameters." + }, + "source": { + "$ref": "#/definitions/ContentSource", + "description": "Gets or sets the source." + }, + "state": { + "type": "string", + "description": "Gets or sets the state of the configuration.", + "enum": [ + "New", + "Edit", + "Published" + ], + "x-ms-enum": { + "name": "DscConfigurationState", + "modelAsString": true + } + }, + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "nodeConfigurationCount": { + "type": "integer", + "description": "Gets the number of compiled node configurations.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the configuration property type." + }, + "DscConfiguration": { + "type": "object", + "properties": { + "properties": { + "$ref": "#/definitions/DscConfigurationProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the configuration properties." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" + } + ], + "description": "Definition of the configuration type." + } + }, "parameters": {} } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json index 7c773a21ea8e..c00713074db4 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNode.json @@ -888,7 +888,7 @@ "description": "Gets or sets the account id of the node." }, "nodeConfiguration": { - "$ref": "./definitions.json#/definitions/DscNodeConfigurationAssociationProperty", + "$ref": "#/definitions/DscNodeConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, "status": { @@ -907,7 +907,7 @@ "type": "array", "description": "Gets or sets the list of extensionHandler properties for a Node.", "items": { - "$ref": "./definitions.json#/definitions/DscNodeExtensionHandlerAssociationProperty" + "$ref": "#/definitions/DscNodeExtensionHandlerAssociationProperty" } } }, @@ -918,6 +918,19 @@ ], "description": "Definition of the dsc node type." }, + "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" + }, "DscNodeListResult": { "properties": { "value": { @@ -933,6 +946,15 @@ } }, "description": "The response model for the list dsc nodes 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": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json index b48ed917e10c..675d958d7154 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json @@ -266,7 +266,7 @@ "x-nullable": false }, "configuration": { - "$ref": "./definitions.json#/definitions/DscConfigurationAssociationProperty", + "$ref": "#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." } }, @@ -334,7 +334,7 @@ "description": "Name of the node configuration." }, "configuration": { - "$ref": "./definitions.json#/definitions/DscConfigurationAssociationProperty", + "$ref": "#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, "incrementNodeConfigurationBuild": { @@ -364,6 +364,15 @@ } }, "description": "The response model for the list 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." } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json index 7060a497ac8a..57fb975442d8 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json @@ -696,24 +696,19 @@ "description": "The runbook property associated with the entity." }, "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." + "readOnly": true, + "type": "string", + "description": "The provisioning state of the resource.", + "enum": [ + "Failed", + "Succeeded", + "Suspended", + "Processing" + ], + "x-ms-enum": { + "name": "JobProvisioningState", + "modelAsString": true + } }, "JobCreateParameters": { "properties": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json index 8ee699bae4aa..e4df39767de7 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json @@ -125,7 +125,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobSchedule" + "$ref": "#/definitions/JobSchedule" } }, "default": { @@ -170,7 +170,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/JobScheduleCreateParameters" + "$ref": "#/definitions/JobScheduleCreateParameters" }, "description": "The parameters supplied to the create job schedule operation." }, @@ -185,7 +185,7 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/JobSchedule" + "$ref": "#/definitions/JobSchedule" } }, "default": { @@ -237,7 +237,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobScheduleListResult" + "$ref": "#/definitions/JobScheduleListResult" } }, "default": { @@ -250,10 +250,139 @@ "x-ms-pageable": { "nextLinkName": "nextLink" }, - "x-ms-odata": "./definitions.json#/definitions/JobSchedule" + "x-ms-odata": "#/definitions/JobSchedule" } } }, - "definitions": {}, + "definitions": { + "JobScheduleListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/JobSchedule" + }, + "description": "Gets or sets a list of job schedules." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list job schedule operation." + }, + "JobSchedule": { + "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/JobScheduleProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the properties of the job schedule." + } + }, + "description": "Definition of the job schedule." + }, + "ScheduleAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the schedule." + } + }, + "description": "The schedule property associated with the entity." + }, + "RunbookAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the runbook." + } + }, + "description": "The runbook property associated with the entity." + }, + "JobScheduleProperties": { + "properties": { + "jobScheduleId": { + "type": "string", + "description": "Gets or sets the id of job schedule." + }, + "schedule": { + "$ref": "#/definitions/ScheduleAssociationProperty", + "description": "Gets or sets the schedule." + }, + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the hybrid worker group that the scheduled job should run on." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the job schedule." + } + }, + "description": "Definition of job schedule parameters." + }, + "JobScheduleCreateProperties": { + "properties": { + "schedule": { + "$ref": "#/definitions/ScheduleAssociationProperty", + "description": "Gets or sets the schedule." + }, + "runbook": { + "$ref": "#/definitions/RunbookAssociationProperty", + "description": "Gets or sets the runbook." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the hybrid worker group that the scheduled job should run on." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets a list of job properties." + } + }, + "required": [ + "schedule", + "runbook" + ], + "description": "The parameters supplied to the create job schedule operation." + }, + "JobScheduleCreateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/JobScheduleCreateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the list of job schedule properties." + } + }, + "required": [ + "properties" + ], + "description": "The parameters supplied to the create job schedule operation." + } + }, "parameters": {} } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json index e036f0ef4653..4e0dc7a20672 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json @@ -203,7 +203,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/RunbookDraft" + "$ref": "#/definitions/RunbookDraft" } }, "default": { @@ -317,7 +317,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/RunbookDraftUndoEditResult" + "$ref": "#/definitions/RunbookDraftUndoEditResult" } }, "default": { @@ -424,7 +424,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Runbook" + "$ref": "#/definitions/Runbook" } }, "default": { @@ -474,7 +474,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/RunbookCreateOrUpdateParameters" + "$ref": "#/definitions/RunbookCreateOrUpdateParameters" }, "description": "The create or update parameters for runbook. Provide either content link for a published runbook or draft, not both." }, @@ -486,13 +486,13 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Runbook" + "$ref": "#/definitions/Runbook" } }, "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Runbook" + "$ref": "#/definitions/Runbook" } }, "400": { @@ -542,7 +542,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/RunbookUpdateParameters" + "$ref": "#/definitions/RunbookUpdateParameters" }, "description": "The update parameters for runbook." }, @@ -554,7 +554,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Runbook" + "$ref": "#/definitions/Runbook" } }, "default": { @@ -649,7 +649,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/RunbookListResult" + "$ref": "#/definitions/RunbookListResult" } }, "default": { @@ -711,7 +711,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobStream" + "$ref": "#/definitions/JobStream" } }, "default": { @@ -822,7 +822,7 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/TestJobCreateParameters" + "$ref": "#/definitions/TestJobCreateParameters" }, "description": "The parameters supplied to the create test job operation." }, @@ -834,7 +834,7 @@ "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/TestJob" + "$ref": "#/definitions/TestJob" } }, "default": { @@ -884,7 +884,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TestJob" + "$ref": "#/definitions/TestJob" } }, "default": { @@ -1121,6 +1121,571 @@ } }, "description": "The response model for the list job stream operation." + }, + "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." + }, + "ContentLink": { + "properties": { + "uri": { + "type": "string", + "description": "Gets or sets the uri of the runbook content." + }, + "contentHash": { + "$ref": "#/definitions/ContentHash", + "description": "Gets or sets the hash." + }, + "version": { + "type": "string", + "description": "Gets or sets the version of the content." + } + }, + "description": "Definition of the content link." + }, + "RunbookProperties": { + "properties": { + "runbookType": { + "type": "string", + "description": "Gets or sets the type of the runbook.", + "enum": [ + "Script", + "Graph", + "PowerShellWorkflow", + "PowerShell", + "GraphPowerShellWorkflow", + "GraphPowerShell" + ], + "x-ms-enum": { + "name": "RunbookTypeEnum", + "modelAsString": true + } + }, + "publishContentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the published runbook content link." + }, + "state": { + "type": "string", + "description": "Gets or sets the state of the runbook.", + "enum": [ + "New", + "Edit", + "Published" + ], + "x-ms-enum": { + "name": "RunbookState", + "modelAsString": true + } + }, + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the option to log activity trace of the runbook." + }, + "jobCount": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the job count of the runbook." + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/RunbookParameter" + }, + "description": "Gets or sets the runbook parameters." + }, + "outputTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Gets or sets the runbook output types." + }, + "draft": { + "$ref": "#/definitions/RunbookDraft", + "description": "Gets or sets the draft runbook properties." + }, + "provisioningState": { + "type": "string", + "description": "Gets or sets the provisioning state of the runbook.", + "enum": [ + "Succeeded" + ], + "x-ms-enum": { + "name": "RunbookProvisioningState", + "modelAsString": false + } + }, + "lastModifiedBy": { + "type": "string", + "description": "Gets or sets the last modified by." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of the runbook property type." + }, + "Runbook": { + "properties": { + "properties": { + "$ref": "#/definitions/RunbookProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the runbook properties." + }, + "etag": { + "type": "string", + "description": "Gets or sets the etag of the resource." + } + }, + "allOf": [ + { + "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" + } + ], + "description": "Definition of the runbook type." + }, + "RunbookListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Runbook" + }, + "description": "Gets or sets a list of runbooks." + }, + "nextLink": { + "type": "string", + "description": "Gets or sets the next link." + } + }, + "description": "The response model for the list runbook operation." + }, + "RunbookCreateOrUpdateProperties": { + "properties": { + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "runbookType": { + "type": "string", + "description": "Gets or sets the type of the runbook.", + "enum": [ + "Script", + "Graph", + "PowerShellWorkflow", + "PowerShell", + "GraphPowerShellWorkflow", + "GraphPowerShell" + ], + "x-ms-enum": { + "name": "RunbookTypeEnum", + "modelAsString": true + } + }, + "draft": { + "$ref": "#/definitions/RunbookDraft", + "description": "Gets or sets the draft runbook properties." + }, + "publishContentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the published runbook content link." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the runbook." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the activity-level tracing options of the runbook." + } + }, + "required": [ + "runbookType" + ], + "description": "The parameters supplied to the create or update runbook properties." + }, + "RunbookCreateOrUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/RunbookCreateOrUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets runbook create or update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the 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 or update runbook operation." + }, + "RunbookUpdateProperties": { + "properties": { + "description": { + "type": "string", + "description": "Gets or sets the description of the runbook." + }, + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the activity-level tracing options of the runbook." + } + }, + "description": "The parameters supplied to the update runbook properties." + }, + "RunbookUpdateParameters": { + "properties": { + "properties": { + "$ref": "#/definitions/RunbookUpdateProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the runbook update properties." + }, + "name": { + "type": "string", + "description": "Gets or sets the 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." + } + }, + "description": "The parameters supplied to the update runbook operation." + }, + "RunbookDraftUndoEditResult": { + "properties": { + "statusCode": { + "type": "string", + "enum": [ + "Continue", + "SwitchingProtocols", + "OK", + "Created", + "Accepted", + "NonAuthoritativeInformation", + "NoContent", + "ResetContent", + "PartialContent", + "MultipleChoices", + "Ambiguous", + "MovedPermanently", + "Moved", + "Found", + "Redirect", + "SeeOther", + "RedirectMethod", + "NotModified", + "UseProxy", + "Unused", + "TemporaryRedirect", + "RedirectKeepVerb", + "BadRequest", + "Unauthorized", + "PaymentRequired", + "Forbidden", + "NotFound", + "MethodNotAllowed", + "NotAcceptable", + "ProxyAuthenticationRequired", + "RequestTimeout", + "Conflict", + "Gone", + "LengthRequired", + "PreconditionFailed", + "RequestEntityTooLarge", + "RequestUriTooLong", + "UnsupportedMediaType", + "RequestedRangeNotSatisfiable", + "ExpectationFailed", + "UpgradeRequired", + "InternalServerError", + "NotImplemented", + "BadGateway", + "ServiceUnavailable", + "GatewayTimeout", + "HttpVersionNotSupported" + ], + "x-ms-enum": { + "name": "HttpStatusCode", + "modelAsString": false + } + }, + "requestId": { + "type": "string" + } + }, + "description": "The response model for the undoedit runbook operation." + }, + "RunbookDraft": { + "properties": { + "inEdit": { + "type": "boolean", + "description": "Gets or sets whether runbook is in edit mode." + }, + "draftContentLink": { + "$ref": "#/definitions/ContentLink", + "description": "Gets or sets the draft runbook content link." + }, + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the runbook draft.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time of the runbook draft.", + "x-nullable": false + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/RunbookParameter" + }, + "description": "Gets or sets the runbook draft parameters." + }, + "outputTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Gets or sets the runbook output types." + }, + "RunbookParameter": { + "properties": { + "type": { + "type": "string", + "description": "Gets or sets the type of the parameter." + }, + "isMandatory": { + "type": "boolean", + "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." + }, + "position": { + "type": "integer", + "format": "int32", + "description": "Get or sets the position of the parameter." + }, + "defaultValue": { + "type": "string", + "description": "Gets or sets the default value of parameter." + } + }, + "description": "Definition of the runbook parameter type." + } + }, + "description": "Definition of the runbook type." + }, + "TestJobCreateParameters": { + "properties": { + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the test job." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." + } + }, + "description": "The parameters supplied to the create test job operation." + }, + "TestJob": { + "x-ms-mutability": [ + "read", + "create" + ], + "properties": { + "creationTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the creation time of the test job.", + "x-nullable": false + }, + "status": { + "type": "string", + "description": "Gets or sets the status of the test job." + }, + "statusDetails": { + "type": "string", + "description": "Gets or sets the status details of the test job." + }, + "runOn": { + "type": "string", + "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." + }, + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the test job.", + "x-nullable": true + }, + "endTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the test job.", + "x-nullable": true + }, + "exception": { + "type": "string", + "description": "Gets or sets the exception of the test job." + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time of the test job.", + "x-nullable": false + }, + "lastStatusModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last status modified time of the test job.", + "x-nullable": true + }, + "parameters": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Gets or sets the parameters of the test job." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "The activity-level tracing options of the runbook." + } + }, + "description": "Definition of the test job." + }, + "RunbookCreateOrUpdateDraftProperties": { + "properties": { + "logVerbose": { + "type": "boolean", + "description": "Gets or sets verbose log option." + }, + "logProgress": { + "type": "boolean", + "description": "Gets or sets progress log option." + }, + "runbookType": { + "type": "string", + "description": "Gets or sets the type of the runbook.", + "enum": [ + "Script", + "Graph", + "PowerShellWorkflow", + "PowerShell", + "GraphPowerShellWorkflow", + "GraphPowerShell" + ], + "x-ms-enum": { + "name": "RunbookTypeEnum", + "modelAsString": true + } + }, + "draft": { + "$ref": "#/definitions/RunbookDraft", + "description": "Gets or sets the draft runbook properties." + }, + "description": { + "type": "string", + "description": "Gets or sets the description of the runbook." + }, + "logActivityTrace": { + "type": "integer", + "format": "int32", + "description": "Gets or sets the activity-level tracing options of the runbook." + } + }, + "required": [ + "runbookType", + "draft" + ], + "description": "The parameters supplied to the create or update dratft runbook properties." + }, + "RunbookCreateOrUpdateDraftParameters": { + "properties": { + "runbookContent": { + "type": "string", + "description": "Content of the Runbook." + } + }, + "x-ms-client-flatten": true, + "required": [ + "runbookContent" + ], + "description": "The parameters supplied to the create or update runbook operation." } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json index cb0e3f7df77e..b443336611f5 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json @@ -352,6 +352,21 @@ ], "description": "The parameters supplied to the create or update schedule operation." }, + "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 + } + }, "ScheduleCreateOrUpdateParameters": { "properties": { "name": { @@ -385,6 +400,95 @@ ], "description": "Definition of the schedule." }, + "ScheduleProperties": { + "properties": { + "startTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the start time of the schedule.", + "x-nullable": false + }, + "startTimeOffsetMinutes": { + "readOnly": true, + "type": "number", + "format": "double", + "description": "Gets the start time's offset in minutes.", + "x-nullable": false + }, + "expiryTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the end time of the schedule.", + "x-nullable": true + }, + "expiryTimeOffsetMinutes": { + "type": "number", + "format": "double", + "description": "Gets or sets the expiry time's offset in minutes.", + "x-nullable": false + }, + "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.", + "x-nullable": true + }, + "nextRunOffsetMinutes": { + "type": "number", + "format": "double", + "description": "Gets or sets the next run time's offset in minutes.", + "x-nullable": false + }, + "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.", + "x-nullable": false + }, + "lastModifiedTime": { + "type": "string", + "format": "date-time", + "description": "Gets or sets the last modified time.", + "x-nullable": false + }, + "description": { + "type": "string", + "description": "Gets or sets the description." + } + }, + "description": "Definition of schedule parameters." + }, "ScheduleUpdateProperties": { "properties": { "description": { diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 026159075b8d..5e6e3cef1469 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -34,12 +34,12 @@ These settings apply only when `--tag=package-2015-10` is specified on the comma ``` yaml $(tag) == 'package-2015-10' input-file: +- Microsoft.Automation/common/v1/definitions.json - 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/dscCompilationJob.json - Microsoft.Automation/stable/2015-10-31/dscConfiguration.json - Microsoft.Automation/stable/2015-10-31/dscNode.json @@ -62,12 +62,12 @@ These settings apply only when `--tag=package-2017-05-preview` is specified on t ``` yaml $(tag) == 'package-2017-05-preview' input-file: +- Microsoft.Automation/common/v1/definitions.json - 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/dscCompilationJob.json - Microsoft.Automation/stable/2015-10-31/dscConfiguration.json - Microsoft.Automation/stable/2015-10-31/dscNode.json @@ -80,7 +80,6 @@ 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 @@ -102,7 +101,6 @@ input-file: - 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 From 89887215b6739229792be24c251650fd6de3183c Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Sat, 9 Jun 2018 15:18:23 -0700 Subject: [PATCH 07/15] Corrected the runbook.json and defintions --- .../stable/2015-10-31/runbook.json | 73 +++++++++---------- .../automation/resource-manager/readme.md | 4 +- 2 files changed, 38 insertions(+), 39 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json index 4e0dc7a20672..26328b60a2d3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -70,14 +70,14 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK", + "description": "OK", "schema": { "type": "string" } @@ -138,7 +138,7 @@ } ], "responses": { - "200": { + "200": { "description": "OK", "schema": { "type": "string" @@ -194,7 +194,7 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } @@ -246,13 +246,13 @@ "required": true, "type": "string", "description": "The parameters supplied to the publish runbook operation." - }, + }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { - "200": { + "200": { "description": "OK", "schema": { "type": "string" @@ -308,7 +308,7 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } @@ -363,13 +363,13 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { - "200": { + "200": { "description": "OK", "schema": { "type": "string" @@ -399,7 +399,7 @@ "$ref": "./examples/getRunbook.json" } }, - "parameters": [ + "parameters": [ { "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" }, @@ -450,7 +450,7 @@ }, "Create runbook as draft": { "$ref": "./examples/createRunbookAsDraft.json" - } + } }, "parameters": [ { @@ -477,7 +477,7 @@ "$ref": "#/definitions/RunbookCreateOrUpdateParameters" }, "description": "The create or update parameters for runbook. Provide either content link for a published runbook or draft, not both." - }, + }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } @@ -761,7 +761,7 @@ "required": false, "type": "string", "description": "The filter to apply on the operation." - }, + }, { "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } @@ -1519,31 +1519,30 @@ "type": "string" }, "description": "Gets or sets the runbook output types." + } + } + }, + "RunbookParameter": { + "properties": { + "type": { + "type": "string", + "description": "Gets or sets the type of the parameter." }, - "RunbookParameter": { - "properties": { - "type": { - "type": "string", - "description": "Gets or sets the type of the parameter." - }, - "isMandatory": { - "type": "boolean", - "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." - }, - "position": { - "type": "integer", - "format": "int32", - "description": "Get or sets the position of the parameter." - }, - "defaultValue": { - "type": "string", - "description": "Gets or sets the default value of parameter." - } - }, - "description": "Definition of the runbook parameter type." + "isMandatory": { + "type": "boolean", + "description": "Gets or sets a Boolean value to indicate whether the parameter is madatory or not." + }, + "position": { + "type": "integer", + "format": "int32", + "description": "Get or sets the position of the parameter." + }, + "defaultValue": { + "type": "string", + "description": "Gets or sets the default value of parameter." } }, - "description": "Definition of the runbook type." + "description": "Definition of the runbook parameter type." }, "TestJobCreateParameters": { "properties": { @@ -1689,4 +1688,4 @@ } }, "parameters": {} -} +} \ No newline at end of file diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 5e6e3cef1469..c6c44be38a6a 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -128,10 +128,10 @@ input-file: ``` yaml directive: - suppress: RequiredPropertiesMissingInResourceModel - from: definitions.json + from: runbook.json where: $.definitions.TestJob - suppress: BodyTopLevelProperties - from: definitions.json + from: runbook.json where: $.definitions.TestJob.properties ``` From 0489a8a2c0bf758e9593a7d21ff507e0899ff698 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Sat, 9 Jun 2018 15:29:59 -0700 Subject: [PATCH 08/15] Fixing the schedule issues --- .../stable/2015-10-31/schedule.json | 59 ++++++++++++++++++- 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json index b443336611f5..f9edca9e005d 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -312,6 +312,61 @@ } }, "definitions": { + "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", + "x-nullable": false + }, + "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." + }, + "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." + }, "ScheduleCreateOrUpdateProperties": { "properties": { "description": { @@ -534,4 +589,4 @@ } }, "parameters": {} -} +} \ No newline at end of file From 9bf9ed3e7e02fbb463989457583d3ea80a4ee4b4 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 12 Jun 2018 21:15:49 -0700 Subject: [PATCH 09/15] Fixing based on review comments --- .../createSoftwareUpdateConfiguration.json | 12 ------------ .../deleteSoftwareUpdateConfiguration.json | 6 +----- .../getSoftwareUpdateConfigurationByName.json | 4 ---- .../listSoftwareUpdateConfigurations.json | 4 ---- .../listSoftwareUpdateConfigurationsByVm.json | 4 ---- .../stable/2015-10-31/dscCompilationJob.json | 2 +- .../stable/2015-10-31/dscNodeConfiguration.json | 2 +- .../examples/deleteCredentialExisting.json | 2 +- .../stable/2015-10-31/job.json | 17 +++++++++++++++++ .../stable/2015-10-31/module.json | 3 ++- .../stable/2018-01-15/dscCompilationJob.json | 2 +- .../stable/2018-01-15/dscNodeConfiguration.json | 2 +- 12 files changed, 25 insertions(+), 35 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 ee9eb2935ab1..f0c4e9c2614d 100755 --- 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 @@ -147,18 +147,6 @@ "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.\"" } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/deleteSoftwareUpdateConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/deleteSoftwareUpdateConfiguration.json index c2c96fa8e5d2..5ea15ef58337 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/deleteSoftwareUpdateConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/deleteSoftwareUpdateConfiguration.json @@ -9,10 +9,6 @@ }, "responses": { "200": {}, - "204": {}, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" - } + "204": {} } } \ 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 index a56c130e7a99..f7f2f683ecc9 100755 --- 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 @@ -59,10 +59,6 @@ "lastModifiedTime": "2017-10-19T18:54:50.68+00:00" } } - }, - "404": { - "code": "NotFound", - "message": "Software update configuration not found" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json index cd091fe83ce6..27d30b99b6e7 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurations.json @@ -64,10 +64,6 @@ } } ] - }, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 1a7d4044-286c-4acb-969a-96639265bf2e AccountName: myaccount\"}" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json index 8072728be128..d81e1f72aace 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfiguration/listSoftwareUpdateConfigurationsByVm.json @@ -65,10 +65,6 @@ } } ] - }, - "404": { - "code": "NotFound", - "message": "Machine is not registered for Update Management. Assure that the machine is registered for Update Management. Machine Name(s) or Id(s): /subscriptions/637d11c3-e6a4-46cb-b32c-ee5b6dd9c68a/resourceGroups/mygroup/providers/Microsoft.Compute/virtualMachines/vm01." } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json index e3f87ad1b68e..13d9ba5af122 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json @@ -369,7 +369,7 @@ }, "description": "Gets or sets the parameters of the job." }, - "newNodeConfigurationBuildVersionRequired": { + "IncrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json index 675d958d7154..154c8c29b7f8 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json @@ -337,7 +337,7 @@ "$ref": "#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, - "incrementNodeConfigurationBuild": { + "IncrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteCredentialExisting.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteCredentialExisting.json index a472a99a7e2f..fce2d60f8941 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteCredentialExisting.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteCredentialExisting.json @@ -3,7 +3,7 @@ "subscriptionId": "subid", "resourceGroupName": "rg", "automationAccountName": "myAutomationAccount20", - "nodeConfigurationName": "SetupServer.localhost", + "credentialName": "myCredential", "api-version": "2015-10-31" }, "responses": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json index 57fb975442d8..d38887a37458 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json @@ -682,10 +682,27 @@ "provisioningState": { "$ref": "#/definitions/JobProvisioningStateProperty", "description": "The provisioning state of a resource." + }, + "jobScheduleId": { + "type": "string", + "description": "Gets or sets the id of job schedule." + }, + "schedule": { + "$ref": "#/definitions/ScheduleAssociationProperty", + "description": "Gets or sets the runbook." } }, "description": "Definition of job properties." }, + "ScheduleAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the Schedule." + } + }, + "description": "The schedule property associated with the entity." + }, "RunbookAssociationProperty": { "properties": { "name": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json index 94630d1877e7..d43150a2c1ef 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json @@ -621,7 +621,8 @@ "description": "Gets or sets a Boolean value that indicates true if the parameter is dynamic." }, "position": { - "type": "boolean", + "type": "integer", + "format": "int64", "description": "Gets or sets the position of the activity parameter." }, "valueFromPipeline": { 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 3046545bbc80..0e262a64c0fd 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 @@ -347,7 +347,7 @@ }, "description": "Gets or sets the parameters of the job." }, - "newNodeConfigurationBuildVersionRequired": { + "IncrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } 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 f81a73b5f6fb..aab36c48bf55 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 @@ -443,7 +443,7 @@ "$ref": "#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, - "incrementNodeConfigurationBuild": { + "IncrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } From 42a5fac599743f29b0c41cbf543f6b417b8cdb31 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 12 Jun 2018 23:46:48 -0700 Subject: [PATCH 10/15] Correct the DscNodeConfiguration example --- .../2015-10-31/examples/createOrUpdateDscNodeConfiguration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json index f44418b4ec69..c65afe900bd5 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json @@ -16,7 +16,7 @@ "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, + "IncrementNodeConfigurationBuild": true, "name": "configName.nodeConfigName", "configuration": { "name": "configName" From ae1e983f0a475a8ab7bce85f336e66e56535937f Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Wed, 13 Jun 2018 23:30:29 -0700 Subject: [PATCH 11/15] Fixed based on review comments. --- .../2017-05-15-preview/softwareUpdateConfiguration.json | 6 ------ .../softwareUpdateConfigurationMachineRun.json | 6 ------ .../softwareUpdateConfigurationRun.json | 6 ------ .../Microsoft.Automation/stable/2015-10-31/account.json | 6 +++--- .../stable/2015-10-31/dscCompilationJob.json | 2 +- .../stable/2015-10-31/dscNodeConfiguration.json | 2 +- .../examples/createOrUpdateDscNodeConfiguration.json | 2 +- .../stable/2018-01-15/dscCompilationJob.json | 2 +- .../stable/2018-01-15/dscNodeConfiguration.json | 2 +- specification/automation/resource-manager/readme.md | 9 +++++++++ 10 files changed, 17 insertions(+), 26 deletions(-) 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 5c21edb38e39..3c28c7d65766 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 @@ -155,9 +155,6 @@ "$ref": "#/definitions/softwareUpdateConfiguration" } }, - "404": { - "description": "Resource group, account, or software update configuration doesn't exist." - }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { @@ -269,9 +266,6 @@ "$ref": "#/definitions/softwareUpdateConfigurationListResult" } }, - "404": { - "description": "Resource group, or account doesn't exist." - }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { 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 7c2e68369baf..1c0d900ede66 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 @@ -88,9 +88,6 @@ "$ref": "#/definitions/softwareUpdateConfigurationMachineRun" } }, - "404": { - "description": "Resource group, account, or software update configuration machine run doesn't exist." - }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { @@ -163,9 +160,6 @@ "$ref": "#/definitions/softwareUpdateConfigurationMachineRunListResult" } }, - "404": { - "description": "Resource group, or account doesn't exist." - }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { 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 224b97b85f1e..5154a99912ea 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 @@ -88,9 +88,6 @@ "$ref": "#/definitions/softwareUpdateConfigurationRun" } }, - "404": { - "description": "Resource group, account, or software update configuration doesn't exist." - }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { @@ -163,9 +160,6 @@ "$ref": "#/definitions/softwareUpdateConfigurationRunListResult" } }, - "404": { - "description": "Resource group, or account doesn't exist." - }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json index af7c5f2071e5..be4e0d612ca2 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/account.json @@ -784,7 +784,7 @@ }, "Key": { "properties": { - "keyName": { + "KeyName": { "readOnly": true, "type": "string", "description": "Automation key name.", @@ -797,7 +797,7 @@ "modelAsString": true } }, - "permissions": { + "Permissions": { "readOnly": true, "type": "string", "description": "Automation key permissions.", @@ -810,7 +810,7 @@ "modelAsString": true } }, - "value": { + "Value": { "readOnly": true, "type": "string", "description": "Value of the Automation Key used for registration." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json index 13d9ba5af122..7f0890c998e6 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json @@ -369,7 +369,7 @@ }, "description": "Gets or sets the parameters of the job." }, - "IncrementNodeConfigurationBuild": { + "incrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json index 154c8c29b7f8..675d958d7154 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json @@ -337,7 +337,7 @@ "$ref": "#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, - "IncrementNodeConfigurationBuild": { + "incrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json index c65afe900bd5..e5e0be31ef97 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateDscNodeConfiguration.json @@ -16,7 +16,7 @@ "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" }, - "IncrementNodeConfigurationBuild": true, + "incrementNodeConfigurationBuild": true, "name": "configName.nodeConfigName", "configuration": { "name": "configName" 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 0e262a64c0fd..de2bee4573fb 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 @@ -347,7 +347,7 @@ }, "description": "Gets or sets the parameters of the job." }, - "IncrementNodeConfigurationBuild": { + "incrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } 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 aab36c48bf55..f81a73b5f6fb 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 @@ -443,7 +443,7 @@ "$ref": "#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, - "IncrementNodeConfigurationBuild": { + "incrementNodeConfigurationBuild": { "type": "boolean", "description": "If a new build version of NodeConfiguration is required." } diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index c6c44be38a6a..1ccbbe505880 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -133,6 +133,15 @@ directive: - suppress: BodyTopLevelProperties from: runbook.json where: $.definitions.TestJob.properties + - suppress: DefinitionsPropertiesNamesCamelCase + from: account.json + where: $.definitions.Key.properties.KeyName + - suppress: DefinitionsPropertiesNamesCamelCase + from: account.json + where: $.definitions.Key.properties.Permissions + - suppress: DefinitionsPropertiesNamesCamelCase + from: account.json + where: $.definitions.Key.properties.Value ``` --- From 2ea81c81484211fb47e83d0ccd26b8d3c666a435 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Mon, 18 Jun 2018 14:51:17 -0700 Subject: [PATCH 12/15] Fix the createJob.json --- .../stable/2015-10-31/examples/createJob.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createJob.json index 44e5e3948899..af6e3b0dccdd 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createJob.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createJob.json @@ -14,12 +14,6 @@ "tag01": "value01", "tag02": "value02" } - }, - "name": "TestRunbook", - "location": "East US 2", - "tags": { - "jobTags01": "jobTagsValue01", - "jobTags02": "value02" } } }, From 57dea53c66becc3a3cbe167988417c6493532b7e Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Mon, 18 Jun 2018 14:53:44 -0700 Subject: [PATCH 13/15] Removing the advancedSchedule. No need in the example --- .../createSoftwareUpdateConfiguration.json | 3 +-- .../getSoftwareUpdateConfigurationByName.json | 3 +-- .../stable/2015-10-31/examples/createOrUpdateSchedule.json | 3 +-- .../stable/2015-10-31/examples/getSchedule.json | 3 +-- .../stable/2015-10-31/examples/updateSchedule.json | 3 +-- 5 files changed, 5 insertions(+), 10 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 f0c4e9c2614d..e9221ee9bcc2 100755 --- 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 @@ -137,8 +137,7 @@ "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 + "timeZone": "America/Los_Angeles" }, "provisioningState": "Provisioning", "error": {}, 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 f7f2f683ecc9..3b696f9a7712 100755 --- 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 @@ -48,8 +48,7 @@ "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 + "timeZone": "America/Los_Angeles" }, "provisioningState": "Provisioning", "createdBy": "eve@contoso.com", diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json index d69d606944f4..a33ec061d035 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/createOrUpdateSchedule.json @@ -36,8 +36,7 @@ "frequency": "Hour", "creationTime": "2017-03-27T16:59:22.697+00:00", "lastModifiedTime": "2017-03-27T16:59:22.697+00:00", - "timeZone": "UTC", - "advancedSchedule": null + "timeZone": "UTC" } } }, diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getSchedule.json index a7e9188d74c6..191825a0b741 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/getSchedule.json @@ -25,8 +25,7 @@ "frequency": "Hour", "creationTime": "2017-03-27T16:59:22.697+00:00", "lastModifiedTime": "2017-03-27T16:59:22.697+00:00", - "timeZone": "UTC", - "advancedSchedule": null + "timeZone": "UTC" } } } diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateSchedule.json index 5f5d1317ee6b..b6e2361715ed 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/updateSchedule.json @@ -32,8 +32,7 @@ "frequency": "Hour", "creationTime": "2017-03-27T16:59:22.697+00:00", "lastModifiedTime": "2017-03-27T16:59:22.697+00:00", - "timeZone": "UTC", - "advancedSchedule": null + "timeZone": "UTC" } } } From 869cdb8deaa5e55a990ac3895058d76ba77444f0 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Mon, 18 Jun 2018 16:51:47 -0700 Subject: [PATCH 14/15] Fixing SUC examples and Schedule definition errors --- .../getSoftwareUpdateConfigurationMachineRunById.json | 4 ---- .../listSoftwareUpdateConfigurationMachineRuns.json | 4 ---- .../listSoftwareUpdateConfigurationMachineRunsByRun.json | 4 ---- .../getSoftwareUpdateConfigurationRunById.json | 4 ---- .../listFailedSoftwareUpdateConfigurationRuns.json | 4 ---- .../listSoftwareUpdateConfigurationRuns.json | 4 ---- .../stable/2015-10-31/examples/deleteSchedule.json | 3 +-- .../stable/2015-10-31/jobSchedule.json | 2 +- .../Microsoft.Automation/stable/2015-10-31/schedule.json | 7 ++----- 9 files changed, 4 insertions(+), 32 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json index a784f9b76340..75ac22a300b2 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/getSoftwareUpdateConfigurationMachineRunById.json @@ -29,10 +29,6 @@ "lastModifiedTime": "2017-10-23T02:34:32.4366667+00:00" } } - }, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json index 9a0a4af8a531..1225c18f2745 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRuns.json @@ -53,10 +53,6 @@ ], "nextLink": "https://management.azure.com:443/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" } - }, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json index 2f658386dc98..21853f34bb82 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationMachineRun/listSoftwareUpdateConfigurationMachineRunsByRun.json @@ -54,10 +54,6 @@ ], "nextLink": "https://management.azure.com:443/subscriptions/51766542-3ed7-4a72-a187-0c8ab644ddab/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/myaccount/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" } - }, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json index 930d7bc1393d..a6cdaee78604 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/getSoftwareUpdateConfigurationRunById.json @@ -26,10 +26,6 @@ "lastModifiedTime": "2017-10-23T02:31:39.3966667+00:00" } } - }, - "404": { - "code": "NotFound", - "message": "Software update configuration run not found" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json index 613d7650d803..8bb7f46ba4b8 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listFailedSoftwareUpdateConfigurationRuns.json @@ -49,10 +49,6 @@ ], "nextLink": "https://management.azure.com:443/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/stas-wcus/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" } - }, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json index aa3c6f4a453c..e66e2fac6e4c 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json +++ b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/examples/softwareUpdateConfigurationRun/listSoftwareUpdateConfigurationRuns.json @@ -48,10 +48,6 @@ ], "nextLink": "https://management.azure.com:443/subscriptions/1a7d4044-286c-4acb-969a-96639265bf2e/resourceGroups/mygroup/providers/Microsoft.Automation/automationAccounts/stas-wcus/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&_=1508725900015&$skip=100" } - }, - "404": { - "code": "NotFound", - "message": "{\"Message\":\"Could not find the account. SubscriptionId: 51766542-3ed7-4a72-a187-0c8ab644ddab AccountName: myaccount\"}" } } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteSchedule.json index e9905656e5a0..c4074436a301 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/examples/deleteSchedule.json @@ -7,7 +7,6 @@ "api-version": "2015-10-31" }, "responses": { - "200": {}, - "404": {} + "200": {} } } \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json index e4df39767de7..47a014a4d328 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json @@ -300,7 +300,7 @@ "properties": { "name": { "type": "string", - "description": "Gets or sets the name of the schedule." + "description": "Gets or sets the name of the Schedule." } }, "description": "The schedule property associated with the entity." diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json index f9edca9e005d..108935365ee5 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/schedule.json @@ -247,9 +247,6 @@ "200": { "description": "OK" }, - "404": { - "description": "Not Found" - }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { @@ -426,7 +423,7 @@ "properties": { "name": { "type": "string", - "description": "Gets or sets the name of the schedule." + "description": "Gets or sets the name of the Schedule." }, "properties": { "$ref": "#/definitions/ScheduleCreateOrUpdateProperties", @@ -561,7 +558,7 @@ "properties": { "name": { "type": "string", - "description": "Gets or sets the name of the schedule." + "description": "Gets or sets the name of the Schedule." }, "properties": { "$ref": "#/definitions/ScheduleUpdateProperties", From 5bf6dcbb1c9c8054d1aa9db6bb884332944c8924 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Mon, 18 Jun 2018 18:14:32 -0700 Subject: [PATCH 15/15] Adding a suppression for the LongRunningResponseStatusCode --- .../Microsoft.Automation/stable/2015-10-31/runbook.json | 6 ------ specification/automation/resource-manager/readme.md | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json index 26328b60a2d3..87a447d59b2e 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json @@ -252,12 +252,6 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, "202": { "description": "Accepted and the operation will complete asynchronously.", "headers": { diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 1ccbbe505880..94bb692e0d90 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -142,6 +142,9 @@ directive: - suppress: DefinitionsPropertiesNamesCamelCase from: account.json where: $.definitions.Key.properties.Value + - suppress: LongRunningResponseStatusCode + from: runbook.json + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/publish"].post["x-ms-long-running-operation"] ``` ---