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..886b42d66fc2 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/common/v1/definitions.json @@ -0,0 +1,148 @@ +{ + "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": "2018-06-10", + "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 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 ddad9adaf64e..000000000000 --- a/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/definitions.json +++ /dev/null @@ -1,1774 +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": { - "AdvancedScheduleMonthlyOccurrence": { - "properties": { - "occurrence": { - "type": "integer", - "format": "int32", - "description": "Occurrence of the week within the month. Must be between 1 and 5" - }, - "day": { - "type": "string", - "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.", - "enum": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ], - "x-ms-enum": { - "name": "ScheduleDay", - "modelAsString": true - } - } - }, - "description": "The properties of the create advanced schedule monthly occurrence." - }, - "AdvancedSchedule": { - "properties": { - "weekDays": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Days of the week that the job should execute on." - }, - "monthDays": { - "type": "array", - "items": { - "type": "integer", - "format": "int32", - "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." - } - }, - "allOf": [ - { - "$ref": "#/definitions/ProxyResource" - } - ] - }, - "JobProperties": { - "properties": { - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook." - }, - "startedBy": { - "type": "string", - "description": "Gets or sets the job started by." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." - }, - "jobId": { - "type": "string", - "format": "uuid", - "description": "Gets or sets the id of the job.", - "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." - }, - "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" - ] - }, - "JobStream": { - "properties": { - "id": { - "type": "string", - "description": "Gets or sets the id of the resource." - }, - "properties": { - "$ref": "./definitions.json#/definitions/JobStreamProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the id of the job stream." - } - }, - "description": "Definition of the job stream." - }, - "JobStreamProperties": { - "properties": { - "jobStreamId": { - "type": "string", - "description": "Gets or sets the id of the job stream." - }, - "time": { - "type": "string", - "format": "date-time", - "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.json#/definitions/JobStream" - }, - "description": "A list of job streams." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list job stream operation." - }, - "JobCreateParameters": { - "properties": { - "properties": { - "$ref": "./definitions.json#/definitions/JobCreateProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the list of job properties." - } - }, - "required": [ - "properties" - ], - "description": "The parameters supplied to the create job operation." - }, - "RunbookAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the runbook." - } - }, - "description": "The runbook property associated with the entity." - }, - "JobCollectionItemProperties": { - "description": "Job collection item properties.", - "properties": { - "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." - } - } - }, - "JobProvisioningStateProperty": { - "properties": { - "provisioningState": { - "readOnly": true, - "type": "string", - "description": "The provisioning state of the resource.", - "enum": [ - "Failed", - "Succeeded", - "Suspended", - "Processing" - ], - "x-ms-enum": { - "name": "JobProvisioningState", - "modelAsString": true - } - } - }, - "description": "The provisioning state property." - }, - "JobListResultV2": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "./definitions.json#/definitions/JobCollectionItem", - "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": { - "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" - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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." - }, - "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." - }, - "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." - }, - "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": "Definition of schedule parameters." - }, - "JobCreateProperties": { - "properties": { - "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", - "description": "Gets or sets the runbook." - }, - "parameters": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Gets or sets the parameters of the job." - }, - "runOn": { - "type": "string", - "description": "Gets or sets the runOn which specifies the group name where the job is to be executed." - } - } - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client Api Version." - }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "minLength": 1, - "maxLength": 90, - "x-ms-parameter-location": "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" - } - } -} 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..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": {}, @@ -147,18 +146,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..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", @@ -59,10 +58,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/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/preview/2017-05-15-preview/job.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json index 885cdf1e9e91..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 @@ -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,369 @@ } } }, - "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": { + "$ref": "#/definitions/JobProvisioningStateProperty", + "description": "The current provisioning state of the job." + } + }, + "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." + } + } + }, + "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/preview/2017-05-15-preview/softwareUpdateConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json index 4770f383bf82..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 @@ -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,42 +126,39 @@ "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": { - "description": "Resource group, account, or software update configuration doesn't exist." - }, "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 +179,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 +211,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 +237,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,20 +263,493 @@ "200": { "description": "Return list of software update configurations.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationListResult" + "$ref": "#/definitions/softwareUpdateConfigurationListResult" } }, - "404": { - "description": "Resource group, or account doesn't exist." - }, "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..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 @@ -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,26 +75,23 @@ "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": { - "description": "Resource group, account, or software update configuration machine run doesn't exist." - }, "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 +117,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,20 +157,167 @@ "200": { "description": "Return list of software update configuration machine runs.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationMachineRunListResult" + "$ref": "#/definitions/softwareUpdateConfigurationMachineRunListResult" } }, - "404": { - "description": "Resource group, or account doesn't exist." - }, "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..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 @@ -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,26 +75,23 @@ "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": { - "description": "Resource group, account, or software update configuration doesn't exist." - }, "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 +117,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", @@ -160,20 +157,140 @@ "200": { "description": "Return list of software update configurations runs.", "schema": { - "$ref": "./definitions.json#/definitions/softwareUpdateConfigurationRunListResult" + "$ref": "#/definitions/softwareUpdateConfigurationRunListResult" } }, - "404": { - "description": "Resource group, or account doesn't exist." - }, "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..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 @@ -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", @@ -70,34 +70,34 @@ "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." }, { - "$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/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "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", @@ -135,28 +135,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/SourceControlUpdateParameters" + "$ref": "#/definitions/SourceControlUpdateParameters" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "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,23 +237,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/SourceControl" + "$ref": "#/definitions/SourceControl" } }, "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,23 +289,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/SourceControlListResult" + "$ref": "#/definitions/SourceControlListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -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/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..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 @@ -53,47 +53,38 @@ }, "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", "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccountUpdateParameters" + "$ref": "#/definitions/AutomationAccountUpdateParameters" }, "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": "#/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,53 +105,44 @@ }, "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", "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccountCreateOrUpdateParameters" + "$ref": "#/definitions/AutomationAccountCreateOrUpdateParameters" }, "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": "#/definitions/AutomationAccount" } }, "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccount" + "$ref": "#/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": "#/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,31 +251,26 @@ }, "parameters": [ { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "pattern": "^[-\\w\\._]+$", - "description": "The resource group name." + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" }, { - "$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/AutomationAccountListResult" + "$ref": "#/definitions/AutomationAccountListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -329,20 +288,20 @@ "operationId": "Operations_List", "parameters": [ { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/OperationListResult" + "$ref": "#/definitions/OperationListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -366,23 +325,23 @@ }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AutomationAccountListResult" + "$ref": "#/definitions/AutomationAccountListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -408,19 +367,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,23 +380,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/StatisticsListResult" + "$ref": "#/definitions/StatisticsListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -472,38 +422,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/UsageListResult" + "$ref": "#/definitions/UsageListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -520,48 +461,408 @@ "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" } }, "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/KeyListResult" + "$ref": "#/definitions/KeyListResult" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } + } + } + } + }, + "definitions": { + "AutomationAccount": { + "properties": { + "properties": { + "$ref": "#/definitions/AutomationAccountProperties", + "x-ms-client-flatten": true, + "description": "Gets or sets the automation account properties." }, - "x-ms-pageable": { - "nextLinkName": null + "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": { + "readOnly": true, + "type": "string", + "description": "Automation key name.", + "enum": [ + "Primary", + "Secondary" + ], + "x-ms-enum": { + "name": "AutomationKeyName", + "modelAsString": true + } + }, + "Permissions": { + "readOnly": true, + "type": "string", + "description": "Automation key permissions.", + "enum": [ + "Read", + "Full" + ], + "x-ms-enum": { + "name": "AutomationKeyPermissions", + "modelAsString": true + } + }, + "Value": { + "readOnly": true, + "type": "string", + "description": "Value of the Automation Key used for registration." + } + }, + "description": "Automation key which is used to register a DSC Node" + }, + "KeyListResult": { + "properties": { + "keys": { + "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." } }, - "definitions": {}, "parameters": {} } 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..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 @@ -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,23 +113,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Certificate" + "$ref": "#/definitions/Certificate" } }, "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", @@ -179,34 +167,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CertificateCreateOrUpdateParameters" + "$ref": "#/definitions/CertificateCreateOrUpdateParameters" }, "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": { "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": { "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", @@ -248,28 +232,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CertificateUpdateParameters" + "$ref": "#/definitions/CertificateUpdateParameters" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Certificate" + "$ref": "#/definitions/Certificate" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -292,33 +276,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/CertificateListResult" + "$ref": "#/definitions/CertificateListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -328,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 0ebb3e04ea7e..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 @@ -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,17 +66,17 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "204": { @@ -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,23 +119,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "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", @@ -185,34 +173,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ConnectionCreateOrUpdateParameters" + "$ref": "#/definitions/ConnectionCreateOrUpdateParameters" }, "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": { "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": { "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", @@ -254,28 +238,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ConnectionUpdateParameters" + "$ref": "#/definitions/ConnectionUpdateParameters" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Connection" + "$ref": "#/definitions/Connection" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -301,33 +285,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/ConnectionListResult" + "$ref": "#/definitions/ConnectionListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -337,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 c942e4ca92ad..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 } }, @@ -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,23 +116,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ConnectionType" + "$ref": "#/definitions/ConnectionType" } }, "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", @@ -182,34 +170,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ConnectionTypeCreateOrUpdateParameters" + "$ref": "#/definitions/ConnectionTypeCreateOrUpdateParameters" }, "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": { "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": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -235,33 +223,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/ConnectionTypeListResult" + "$ref": "#/definitions/ConnectionTypeListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -271,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 ebe7585730c2..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 @@ -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,23 +113,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Credential" + "$ref": "#/definitions/Credential" } }, "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", @@ -179,34 +167,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CredentialCreateOrUpdateParameters" + "$ref": "#/definitions/CredentialCreateOrUpdateParameters" }, "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": { "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": { "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", @@ -248,28 +232,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/CredentialUpdateParameters" + "$ref": "#/definitions/CredentialUpdateParameters" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Credential" + "$ref": "#/definitions/Credential" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -295,27 +279,23 @@ }, "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/CredentialListResult" + "$ref": "#/definitions/CredentialListResult" } } }, @@ -325,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 deleted file mode 100644 index 8d619afe74b0..000000000000 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/definitions.json +++ /dev/null @@ -1,3798 +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": { - "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": { - "type": "integer", - "format": "int32", - "description": "Occurrence of the week within the month. Must be between 1 and 5" - }, - "day": { - "type": "string", - "description": "Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday.", - "enum": [ - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday", - "Sunday" - ], - "x-ms-enum": { - "name": "ScheduleDay", - "modelAsString": true - } - } - }, - "description": "The properties of the create advanced schedule monthly occurrence." - }, - "AdvancedSchedule": { - "properties": { - "weekDays": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Days of the week that the job should execute on." - }, - "monthDays": { - "type": "array", - "items": { - "type": "integer", - "format": "int32", - "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": { - "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." - }, - "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." - }, - "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": "#/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": { - "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": "#/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." - }, - "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": "#/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": "#/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." - }, - "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": { - "$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." - }, - "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." - }, - "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" - }, - "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." - }, - "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." - }, - "DscCompilationJob": { - "properties": { - "properties": { - "$ref": "#/definitions/DscCompilationJobProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the properties of the Dsc Compilation job." - } - }, - "allOf": [ - { - "$ref": "#/definitions/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." - }, - "DscConfigurationAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the Dsc configuration." - } - }, - "description": "The Dsc configuration property associated with the entity." - }, - "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": "#/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." - }, - "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." - }, - "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." - }, - "DscReportResourceNavigation": { - "properties": { - "resourceId": { - "type": "string", - "description": "Gets or sets the ID of the resource to navigate to." - } - }, - "description": "Navigation for DSC Report Resource." - }, - "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" - }, - "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." - }, - "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." - }, - "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 - }, - "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." - }, - "etag": { - "type": "string", - "description": "Gets or sets the etag of the resource." - } - }, - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "description": "Definition of the module 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." - }, - "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." - }, - "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" - } - } - }, - "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": { - "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." - }, - "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": { - "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": "#/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 - } - }, - "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." - }, - "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." - }, - "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." - }, - "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": { - "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." - }, - "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." - }, - "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": { - "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": "#/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": { - "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": "#/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." - }, - "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": { - "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/dscCompilationJob.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json index ed729ccda50c..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 @@ -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", @@ -75,28 +71,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/DscCompilationJobCreateParameters" + "$ref": "#/definitions/DscCompilationJobCreateParameters" }, "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": { "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/DscCompilationJob" + "$ref": "#/definitions/DscCompilationJob" } }, "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,23 +127,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscCompilationJob" + "$ref": "#/definitions/DscCompilationJob" } }, "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,23 +179,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/DscCompilationJobListResult" + "$ref": "#/definitions/DscCompilationJobListResult" } }, "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,23 +235,23 @@ "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": { "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" } } } @@ -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,29 +295,317 @@ "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": { "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" } } } } } }, - "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." + }, + "incrementNodeConfigurationBuild": { + "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/dscConfiguration.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscConfiguration.json index dd6dcf695bc1..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 @@ -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,23 +118,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "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", @@ -184,34 +172,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/DscConfigurationCreateOrUpdateParameters" + "$ref": "#/definitions/DscConfigurationCreateOrUpdateParameters" }, "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": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "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", @@ -252,28 +236,28 @@ "name": "parameters", "in": "body", "schema": { - "$ref": "./definitions.json#/definitions/DscConfigurationUpdateParameters" + "$ref": "#/definitions/DscConfigurationUpdateParameters" }, "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": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfiguration" + "$ref": "#/definitions/DscConfiguration" } }, "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", @@ -406,23 +382,282 @@ "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscConfigurationListResult" + "$ref": "#/definitions/DscConfigurationListResult" } }, "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/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 9e444fcd66cd..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 @@ -53,33 +53,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/AgentRegistration" + "$ref": "#/definitions/AgentRegistration" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -102,42 +98,38 @@ }, "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", "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/AgentRegistrationRegenerateKeyParameter" + "$ref": "#/definitions/AgentRegistrationRegenerateKeyParameter" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/AgentRegistration" + "$ref": "#/definitions/AgentRegistration" } }, "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": "Automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "nodeId", @@ -177,10 +165,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 +181,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": "nodeId", @@ -231,10 +215,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 +231,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 +252,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", @@ -289,15 +269,15 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/DscNodeUpdateParameters" + "$ref": "#/definitions/DscNodeUpdateParameters" }, "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 +290,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 +313,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 +326,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 +342,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 +368,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,23 +388,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/DscNodeReportListResult" + "$ref": "#/definitions/DscNodeReportListResult" } }, "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 +430,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,23 +450,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/DscNodeReport" + "$ref": "#/definitions/DscNodeReport" } }, "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 +489,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 +509,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 +525,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -569,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": { @@ -592,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": { @@ -611,17 +907,30 @@ "type": "array", "description": "Gets or sets the list of extensionHandler properties for a Node.", "items": { - "$ref": "./definitions.json#/definitions/DscNodeExtensionHandlerAssociationProperty" + "$ref": "#/definitions/DscNodeExtensionHandlerAssociationProperty" } } }, "allOf": [ { - "$ref": "./definitions.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "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": { @@ -637,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 bab1fbb565d2..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 @@ -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" } } }, @@ -282,13 +266,13 @@ "x-nullable": false }, "configuration": { - "$ref": "./definitions.json#/definitions/DscConfigurationAssociationProperty", + "$ref": "#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." } }, "allOf": [ { - "$ref": "./definitions.json#/definitions/ProxyResource" + "$ref": "../../common/v1/definitions.json#/definitions/ProxyResource" } ], "description": "Definition of the dsc node configuration." @@ -350,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": { @@ -380,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/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" } } }, 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..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" }, - "newNodeConfigurationBuildVersionRequired": true, + "incrementNodeConfigurationBuild": true, "name": "configName.nodeConfigName", "configuration": { "name": "configName" 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..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 @@ -18,7 +18,7 @@ } }, "responses": { - "201": { + "200": { "headers": {}, "body": { "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/schedules/mySchedule", @@ -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/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/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/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" } } } 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..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 @@ -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": "Automation account name." + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" }, { "name": "hybridRunbookWorkerGroupName", @@ -70,10 +66,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 +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": "hybridRunbookWorkerGroupName", @@ -121,23 +113,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/HybridRunbookWorkerGroup" + "$ref": "#/definitions/HybridRunbookWorkerGroup" } }, "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": "hybridRunbookWorkerGroupName", @@ -179,28 +167,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/HybridRunbookWorkerGroupUpdateParameters" + "$ref": "#/definitions/HybridRunbookWorkerGroupUpdateParameters" }, "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": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/HybridRunbookWorkerGroup" + "$ref": "#/definitions/HybridRunbookWorkerGroup" } }, "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,33 +224,129 @@ "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/HybridRunbookWorkerGroupsListResult" + "$ref": "#/definitions/HybridRunbookWorkerGroupsListResult" } }, "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/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 f06bcc73a6c6..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 @@ -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,23 +534,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/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" } } }, @@ -722,38 +682,50 @@ "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." }, - "RunbookAssociationProperty": { + "ScheduleAssociationProperty": { "properties": { "name": { "type": "string", - "description": "Gets or sets the name of the runbook." + "description": "Gets or sets the name of the Schedule." } }, - "description": "The runbook property associated with the entity." + "description": "The schedule property associated with the entity." }, - "JobProvisioningStateProperty": { + "RunbookAssociationProperty": { "properties": { - "provisioningState": { - "readOnly": true, + "name": { "type": "string", - "description": "The provisioning state of the resource.", - "enum": [ - "Failed", - "Succeeded", - "Suspended", - "Processing" - ], - "x-ms-enum": { - "name": "JobProvisioningState", - "modelAsString": true - } + "description": "Gets or sets the name of the runbook." } }, - "description": "The provisioning state property." + "description": "The runbook property associated with the entity." + }, + "JobProvisioningStateProperty": { + "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": { @@ -852,6 +824,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/jobSchedule.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/jobSchedule.json index 8336ea6d7047..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 @@ -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,23 +115,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/JobSchedule" + "$ref": "#/definitions/JobSchedule" } }, "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", @@ -182,28 +170,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/JobScheduleCreateParameters" + "$ref": "#/definitions/JobScheduleCreateParameters" }, "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": { "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/JobSchedule" + "$ref": "#/definitions/JobSchedule" } }, "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,33 +227,162 @@ "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/JobScheduleListResult" + "$ref": "#/definitions/JobScheduleListResult" } }, "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/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/linkedWorkspace.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json index 503fa041b5c0..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 @@ -53,39 +53,46 @@ }, "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/LinkedWorkspace" + "$ref": "#/definitions/LinkedWorkspace" } }, "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } } } }, - "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 56cced0356ab..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 @@ -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,23 +73,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Activity" + "$ref": "#/definitions/Activity" } }, "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,23 +125,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/ActivityListResult" + "$ref": "#/definitions/ActivityListResult" } }, "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,23 +227,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Module" + "$ref": "#/definitions/Module" } }, "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", @@ -301,34 +281,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ModuleCreateOrUpdateParameters" + "$ref": "#/definitions/ModuleCreateOrUpdateParameters" }, "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": { "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": { "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", @@ -370,28 +346,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ModuleUpdateParameters" + "$ref": "#/definitions/ModuleUpdateParameters" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Module" + "$ref": "#/definitions/Module" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -414,33 +390,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/ModuleListResult" + "$ref": "#/definitions/ModuleListResult" } }, "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,23 +458,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TypeFieldListResult" + "$ref": "#/definitions/TypeFieldListResult" } }, "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,23 +513,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TypeFieldListResult" + "$ref": "#/definitions/TypeFieldListResult" } }, "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,23 +575,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TypeFieldListResult" + "$ref": "#/definitions/TypeFieldListResult" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } }, @@ -641,6 +601,402 @@ } } }, - "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": "integer", + "format": "int64", + "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/2015-10-31/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json index 7f2d17c6528c..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 @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -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", @@ -74,14 +70,14 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { - "description": "OK", + "description": "OK", "schema": { "type": "string" } @@ -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,11 +134,11 @@ "description": "The runbook draft content." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { - "200": { + "200": { "description": "OK", "schema": { "type": "string" @@ -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", @@ -206,22 +194,22 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/RunbookDraft" + "$ref": "#/definitions/RunbookDraft" } }, "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", @@ -262,18 +246,12 @@ "required": true, "type": "string", "description": "The parameters supplied to the publish runbook operation." - }, + }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { - "200": { - "description": "OK", - "schema": { - "type": "string" - } - }, "202": { "description": "Accepted and the operation will complete asynchronously.", "headers": { @@ -286,7 +264,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 +288,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", @@ -328,22 +302,22 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/RunbookDraftUndoEditResult" + "$ref": "#/definitions/RunbookDraftUndoEditResult" } }, "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 +343,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", @@ -387,13 +357,13 @@ "required": true, "type": "string", "description": "The runbook name." - }, + }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { - "200": { + "200": { "description": "OK", "schema": { "type": "string" @@ -402,7 +372,7 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -423,19 +393,15 @@ "$ref": "./examples/getRunbook.json" } }, - "parameters": [ + "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,20 +411,20 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Runbook" + "$ref": "#/definitions/Runbook" } }, "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } @@ -478,21 +444,17 @@ }, "Create runbook as draft": { "$ref": "./examples/createRunbookAsDraft.json" - } + } }, "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", @@ -506,25 +468,25 @@ "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." - }, + }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "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": { @@ -533,7 +495,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 +516,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", @@ -578,25 +536,25 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/RunbookUpdateParameters" + "$ref": "#/definitions/RunbookUpdateParameters" }, "description": "The update parameters for runbook." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Runbook" + "$ref": "#/definitions/Runbook" } }, "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 +575,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 +591,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -650,7 +604,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,33 +627,29 @@ }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/RunbookListResult" + "$ref": "#/definitions/RunbookListResult" } }, "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 +675,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,20 +698,20 @@ "description": "The job stream id." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "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" } } } @@ -788,17 +734,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", @@ -813,22 +755,22 @@ "required": false, "type": "string", "description": "The filter to apply on the operation." - }, + }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "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" } } }, @@ -854,17 +796,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", @@ -878,25 +816,25 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/TestJobCreateParameters" + "$ref": "#/definitions/TestJobCreateParameters" }, "description": "The parameters supplied to the create test job operation." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "201": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/TestJob" + "$ref": "#/definitions/TestJob" } }, "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 +855,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,20 +871,20 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/TestJob" + "$ref": "#/definitions/TestJob" } }, "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 +907,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 +923,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1003,7 +933,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 +956,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 +972,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1056,7 +982,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 +1005,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 +1021,7 @@ "description": "The runbook name." }, { - "$ref": "./definitions.json#/parameters/ApiVersionParameter" + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -1109,13 +1031,655 @@ "default": { "description": "Automation error response describing why the operation failed.", "schema": { - "$ref": "./definitions.json#/definitions/ErrorResponse" + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" } } } } } }, - "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." + }, + "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." + }, + "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": {} -} +} \ No newline at end of file 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..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 @@ -3,7 +3,7 @@ "info": { "title": "AutomationManagement", "version": "2015-10-31", - "x-ms-code-generation-settings": { + "x-ms-code-generation-settings": { "useDateTimeOffset": true } }, @@ -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", @@ -74,22 +70,22 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ScheduleCreateOrUpdateParameters" + "$ref": "#/definitions/ScheduleCreateOrUpdateParameters" }, "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": { - "201": { + "200": { "description": "Created", "schema": { - "$ref": "./definitions.json#/definitions/Schedule" + "$ref": "#/definitions/Schedule" } }, "409": { @@ -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", @@ -140,28 +132,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/ScheduleUpdateParameters" + "$ref": "#/definitions/ScheduleUpdateParameters" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Schedule" + "$ref": "#/definitions/Schedule" } }, "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,23 +187,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Schedule" + "$ref": "#/definitions/Schedule" } }, "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,23 +237,20 @@ "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": { "200": { "description": "OK" }, - "404": { - "description": "Not Found" - }, "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 +276,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/ScheduleListResult" + "$ref": "#/definitions/ScheduleListResult" } }, "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 +308,282 @@ } } }, - "definitions": {}, + "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": { + "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." + }, + "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": { + "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." + }, + "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": { + "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": {} -} +} \ No newline at end of file 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..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 } }, @@ -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,23 +158,23 @@ "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Webhook" + "$ref": "#/definitions/Webhook" } }, "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", @@ -228,34 +212,34 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/WebhookCreateOrUpdateParameters" + "$ref": "#/definitions/WebhookCreateOrUpdateParameters" }, "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": { "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": { "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", @@ -297,28 +277,28 @@ "in": "body", "required": true, "schema": { - "$ref": "./definitions.json#/definitions/WebhookUpdateParameters" + "$ref": "#/definitions/WebhookUpdateParameters" }, "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": { "200": { "description": "OK", "schema": { - "$ref": "./definitions.json#/definitions/Webhook" + "$ref": "#/definitions/Webhook" } }, "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,33 +334,225 @@ "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/WebhookListResult" + "$ref": "#/definitions/WebhookListResult" } }, "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/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 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..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 @@ -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." @@ -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." } @@ -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": {} 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..94bb692e0d90 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 @@ -96,12 +95,12 @@ 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 - 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 @@ -111,7 +110,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 @@ -119,7 +117,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 @@ -131,11 +128,23 @@ 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 + - 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 + - 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"] ``` ---