diff --git a/specification/automation/resource-manager/Microsoft.Automation/common/v1/schemas.json b/specification/automation/resource-manager/Microsoft.Automation/common/v1/schemas.json new file mode 100644 index 000000000000..bb0216a39366 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/common/v1/schemas.json @@ -0,0 +1,659 @@ +{ + "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 Schemas" + }, + "paths": {}, + "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." + }, + "RunbookAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the runbook." + } + }, + "description": "The runbook property associated with the entity." + }, + "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.", + "$ref": "../../stable/2015-10-31/schedule.json#/definitions/scheduleFrequency" + }, + "timeZone": { + "type": "string", + "description": "Gets or sets the time zone of the schedule." + }, + "advancedSchedule": { + "$ref": "../../common/v1/schemas.json#/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": "../../common/v1/schemas.json#/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." + }, + "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 + } + } + }, + "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." + }, + "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." + }, + "DscConfigurationAssociationProperty": { + "properties": { + "name": { + "type": "string", + "description": "Gets or sets the name of the Dsc configuration." + } + }, + "description": "The Dsc configuration property associated with the entity." + }, + "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." + }, + "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": { + "type": "string", + "description": "Gets or sets the description of the activity parameter." + }, + "validationSet": { + "type": "array", + "items": { + "$ref": "#/definitions/ActivityParameterValidationSet" + }, + "description": "Gets or sets the validation set of activity parameter." + } + }, + "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." + }, + "ActivityParameterValidationSet": { + "properties": { + "memberValue": { + "type": "string", + "description": "Gets or sets the name of the activity parameter validation set member." + } + }, + "description": "Definition of the activity parameter validation 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." + }, + "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." + }, + "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." + }, + "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." + }, + "isComposite": { + "type": "boolean", + "description": "Gets or sets type of module, if its composite or not." + } + }, + "description": "Definition of the module property 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." + }, + "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" + } + }, + "parameters": { + } +} 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 c5fdfa11d143..a84255cda65f 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 @@ -531,7 +531,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStream" + "$ref": "../../common/v1/schemas.json#/definitions/JobStream" } }, "default": { @@ -593,7 +593,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStreamListResult" + "$ref": "../../common/v1/schemas.json#/definitions/JobStreamListResult" } }, "default": { @@ -610,84 +610,6 @@ } }, "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", - "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." - }, - "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": [ @@ -747,7 +669,7 @@ "JobProperties": { "properties": { "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook." }, "startedBy": { @@ -839,15 +761,6 @@ }, "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": { @@ -865,7 +778,7 @@ "description": "Job collection item properties.", "properties": { "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "readOnly": true, "description": "The runbook association." }, @@ -942,7 +855,7 @@ "JobCreateProperties": { "properties": { "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook." }, "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 6ab1835b3769..1929708940f0 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 @@ -316,7 +316,7 @@ }, "scheduleInfo": { "description": "Schedule information for the Software update configuration", - "$ref": "#/definitions/ScheduleProperties" + "$ref": "../../common/v1/schemas.json#/definitions/ScheduleProperties" }, "provisioningState": { "type": "string", @@ -531,141 +531,6 @@ } } }, - "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.", - "$ref": "../../stable/2015-10-31/schedule.json#/definitions/scheduleFrequency" - }, - "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": { 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 4a23da85733e..fb3069515d06 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 @@ -224,7 +224,7 @@ }, "softwareUpdateConfiguration": { "description": "software update configuration triggered this run", - "$ref": "#/definitions/updateConfigurationNavigation" + "$ref": "../../common/v1/schemas.json#/definitions/updateConfigurationNavigation" }, "status": { "type": "string", @@ -301,17 +301,6 @@ } } }, - "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", 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 aa74f8feae6a..95c5a513d49c 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 @@ -198,7 +198,7 @@ "properties": { "softwareUpdateConfiguration": { "description": "software update configuration triggered this run", - "$ref": "#/definitions/updateConfigurationNavigation" + "$ref": "../../common/v1/schemas.json#/definitions/updateConfigurationNavigation" }, "status": { "type": "string", @@ -301,17 +301,6 @@ } } }, - "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": { 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 7af1f73bd6b6..7a9cfd9e5325 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 @@ -245,7 +245,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./job.json#/definitions/JobStreamListResult" + "$ref": "../../common/v1/schemas.json#/definitions/JobStreamListResult" } }, "default": { @@ -305,7 +305,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./job.json#/definitions/JobStream" + "$ref": "../../common/v1/schemas.json#/definitions/JobStream" } }, "default": { @@ -347,19 +347,10 @@ ], "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", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration." }, "parameters": { @@ -382,7 +373,7 @@ "DscCompilationJobProperties": { "properties": { "configuration": { - "$ref": "#/definitions/DscConfigurationAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration." }, "startedBy": { 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 dc2438efafe3..6afbcdce8af0 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 @@ -12,12 +12,10 @@ "https" ], "consumes": [ - "application/json", - "text/plain; charset=utf-8" + "application/json" ], "produces": [ - "application/json", - "text/plain; charset=utf-8" + "application/json" ], "security": [ { @@ -403,52 +401,6 @@ } }, "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": { @@ -508,7 +460,7 @@ "description": "Gets or sets progress log option." }, "source": { - "$ref": "#/definitions/ContentSource", + "$ref": "../../common/v1/schemas.json#/definitions/ContentSource", "description": "Gets or sets the source." }, "parameters": { @@ -597,7 +549,7 @@ "description": "Gets or sets the configuration parameters." }, "source": { - "$ref": "#/definitions/ContentSource", + "$ref": "../../common/v1/schemas.json#/definitions/ContentSource", "description": "Gets or sets the source." }, "state": { 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 9f8b92aeac3b..2f474c24c563 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 @@ -906,7 +906,7 @@ "type": "array", "description": "Gets or sets the list of extensionHandler properties for a Node.", "items": { - "$ref": "#/definitions/DscNodeExtensionHandlerAssociationProperty" + "$ref": "../../common/v1/schemas.json#/definitions/DscNodeExtensionHandlerAssociationProperty" } } }, @@ -917,19 +917,6 @@ ], "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": { @@ -945,15 +932,6 @@ } }, "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 7519c106c49f..ed8545b655b3 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscNodeConfiguration.json @@ -266,7 +266,7 @@ "x-nullable": false }, "configuration": { - "$ref": "#/definitions/DscConfigurationAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." } }, @@ -277,56 +277,10 @@ ], "description": "Definition of the dsc node configuration." }, - "ContentSource": { - "properties": { - "hash": { - "$ref": "#/definitions/ContentHash", - "description": "Gets or sets the hash." - }, - "type": { - "type": "string", - "description": "Gets or sets the content source type.", - "enum": [ - "embeddedContent", - "uri" - ], - "x-ms-enum": { - "name": "ContentSourceType", - "modelAsString": true - } - }, - "value": { - "type": "string", - "description": "Gets or sets the value of the content. This is based on the content source type." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the content." - } - }, - "description": "Definition of the content source." - }, - "ContentHash": { - "properties": { - "algorithm": { - "type": "string", - "description": "Gets or sets the content hash algorithm used to hash the content." - }, - "value": { - "type": "string", - "description": "Gets or sets expected hash value of the content." - } - }, - "required": [ - "algorithm", - "value" - ], - "description": "Definition of the runbook property type." - }, "DscNodeConfigurationCreateOrUpdateParameters": { "properties": { "source": { - "$ref": "#/definitions/ContentSource", + "$ref": "../../common/v1/schemas.json#/definitions/ContentSource", "description": "Gets or sets the source." }, "name": { @@ -334,7 +288,7 @@ "description": "Name of the node configuration." }, "configuration": { - "$ref": "#/definitions/DscConfigurationAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, "incrementNodeConfigurationBuild": { @@ -364,15 +318,6 @@ } }, "description": "The response model for the list job operation." - }, - "DscConfigurationAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the Dsc configuration." - } - }, - "description": "The Dsc configuration property associated with the entity." } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json index 2df85eebdf2a..b4d49352b569 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 @@ -490,7 +490,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStream" + "$ref": "../../common/v1/schemas.json#/definitions/JobStream" } }, "default": { @@ -544,7 +544,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStreamListResult" + "$ref": "../../common/v1/schemas.json#/definitions/JobStreamListResult" } }, "default": { @@ -594,7 +594,7 @@ "JobProperties": { "properties": { "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook." }, "startedBy": { @@ -703,15 +703,6 @@ }, "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." - }, "JobProvisioningStateProperty": { "readOnly": true, "type": "string", @@ -743,7 +734,7 @@ "JobCreateProperties": { "properties": { "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook." }, "parameters": { @@ -762,84 +753,6 @@ "runbook" ], "description": "The parameters supplied to the create job 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." - }, - "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 fc9d323ecd6d..cd99bb148c6e 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 @@ -289,7 +289,7 @@ "description": "Resource type" }, "properties": { - "$ref": "#/definitions/JobScheduleProperties", + "$ref": "../../common/v1/schemas.json#/definitions/ScheduleProperties", "x-ms-client-flatten": true, "description": "Gets or sets the properties of the job schedule." } @@ -305,15 +305,6 @@ }, "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": { @@ -325,7 +316,7 @@ "description": "Gets or sets the schedule." }, "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook." }, "runOn": { @@ -349,7 +340,7 @@ "description": "Gets or sets the schedule." }, "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook." }, "runOn": { 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 d43fdc176842..a4f92e109dbd 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/module.json @@ -83,7 +83,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Activity" + "$ref": "../../common/v1/schemas.json#/definitions/Activity" } }, "default": { @@ -135,7 +135,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ActivityListResult" + "$ref": "../../common/v1/schemas.json#/definitions/ActivityListResult" } }, "default": { @@ -237,7 +237,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "default": { @@ -296,13 +296,13 @@ "201": { "description": "Created", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "default": { @@ -361,7 +361,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "default": { @@ -406,7 +406,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ModuleListResult" + "$ref": "../../common/v1/schemas.json#/definitions/ModuleListResult" } }, "default": { @@ -468,7 +468,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/TypeFieldListResult" + "$ref": "../../common/v1/schemas.json#/definitions/TypeFieldListResult" } }, "default": { @@ -523,7 +523,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/TypeFieldListResult" + "$ref": "../../common/v1/schemas.json#/definitions/TypeFieldListResult" } }, "default": { @@ -585,7 +585,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/TypeFieldListResult" + "$ref": "../../common/v1/schemas.json#/definitions/TypeFieldListResult" } }, "default": { @@ -602,234 +602,10 @@ } }, "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": { - "type": "string", - "description": "Gets or sets the description of the activity parameter." - }, - "validationSet": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityParameterValidationSet" - }, - "description": "Gets or sets the validation set of activity parameter." - } - }, - "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." - }, - "ActivityParameterValidationSet": { - "properties": { - "memberValue": { - "type": "string", - "description": "Gets or sets the name of the activity parameter validation set member." - } - }, - "description": "Definition of the activity parameter validation 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", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the module content link." } }, @@ -866,87 +642,10 @@ ], "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." - }, - "isComposite": { - "type": "boolean", - "description": "Gets or sets type of module, if its composite or not." - } - }, - "description": "Definition of the module property type." - }, "ModuleUpdateProperties": { "properties": { "contentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the module content link." } }, @@ -976,50 +675,6 @@ } }, "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 9217192e7058..97c05aa90fcf 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 @@ -706,7 +706,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./job.json#/definitions/JobStream" + "$ref": "../../common/v1/schemas.json#/definitions/JobStream" } }, "default": { @@ -765,7 +765,7 @@ "200": { "description": "OK", "schema": { - "$ref": "./job.json#/definitions/JobStreamListResult" + "$ref": "../../common/v1/schemas.json#/definitions/JobStreamListResult" } }, "default": { @@ -1040,40 +1040,6 @@ } }, "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." - }, - "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": { @@ -1093,7 +1059,7 @@ } }, "publishContentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the published runbook content link." }, "state": { @@ -1245,7 +1211,7 @@ "description": "Gets or sets the draft runbook properties." }, "publishContentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the published runbook content link." }, "description": { @@ -1409,7 +1375,7 @@ "description": "Gets or sets whether runbook is in edit mode." }, "draftContentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the draft runbook content link." }, "creationTime": { 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 8d64104633ed..ee7083c85932 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 @@ -315,61 +315,6 @@ } }, "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": { @@ -401,7 +346,7 @@ "description": "Gets or sets the time zone of the schedule." }, "advancedSchedule": { - "$ref": "#/definitions/AdvancedSchedule", + "$ref": "../../common/v1/schemas.json#/definitions/AdvancedSchedule", "description": "Gets or sets the AdvancedSchedule." } }, @@ -469,7 +414,7 @@ "Schedule": { "properties": { "properties": { - "$ref": "#/definitions/ScheduleProperties", + "$ref": "../../common/v1/schemas.json#/definitions/ScheduleProperties", "x-ms-client-flatten": true, "description": "Gets or sets the properties of the schedule." } @@ -481,85 +426,6 @@ ], "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.", - "$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 advanced schedule." - }, - "creationTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time.", - "x-nullable": false - }, - "lastModifiedTime": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the last modified time.", - "x-nullable": false - }, - "description": { - "type": "string", - "description": "Gets or sets the description." - } - }, - "description": "Definition of schedule parameters." - }, "ScheduleUpdateProperties": { "properties": { "description": { diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/webhook.json index a0826c610c47..8e3ca263f7ea 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 @@ -393,7 +393,7 @@ "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", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook the webhook is associated with." }, "runOn": { @@ -492,15 +492,6 @@ }, "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": { @@ -543,7 +534,7 @@ "description": "Gets or sets the parameters of the job." }, "runbook": { - "$ref": "#/definitions/RunbookAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/RunbookAssociationProperty", "description": "Gets or sets the runbook." }, "runOn": { 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 70093d084045..56a7b7ad8d12 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 @@ -245,7 +245,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStreamListResult" + "$ref": "../../common/v1/schemas.json#/definitions/JobStreamListResult" } }, "default": { @@ -305,7 +305,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStream" + "$ref": "../../common/v1/schemas.json#/definitions/JobStream" } }, "default": { @@ -337,7 +337,7 @@ "DscCompilationJobCreateProperties": { "properties": { "configuration": { - "$ref": "#/definitions/DscConfigurationAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration." }, "parameters": { @@ -360,7 +360,7 @@ "DscCompilationJobProperties": { "properties": { "configuration": { - "$ref": "#/definitions/DscConfigurationAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration." }, "startedBy": { @@ -504,93 +504,6 @@ ], "description": "The parameters supplied to the create compilation job operation." }, - "DscConfigurationAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the Dsc configuration." - } - }, - "description": "The Dsc configuration property associated with the entity." - }, - "JobStream": { - "properties": { - "id": { - "type": "string", - "description": "Gets or sets the id of the resource." - }, - "properties": { - "$ref": "#/definitions/JobStreamProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the id of the job stream." - } - }, - "description": "Definition of the job stream." - }, - "JobStreamListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/JobStream" - }, - "description": "A list of job streams." - }, - "nextLink": { - "type": "string", - "description": "Gets or sets the next link." - } - }, - "description": "The response model for the list job stream operation." - }, - "JobStreamProperties": { - "properties": { - "jobStreamId": { - "type": "string", - "description": "Gets or sets the id of the job stream." - }, - "time": { - "type": "string", - "format": "date-time", - "description": "Gets or sets the creation time of the job.", - "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." - }, "JobProvisioningStateProperty": { "readOnly": true, "type": "string", 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 b6c4fc644358..a3427fb47942 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 @@ -15,8 +15,7 @@ "application/json" ], "produces": [ - "application/json", - "text/plain" + "application/json" ], "security": [ { @@ -916,24 +915,11 @@ "type": "array", "description": "Gets or sets the list of extensionHandler properties for a Node.", "items": { - "$ref": "#/definitions/DscNodeExtensionHandlerAssociationProperty" + "$ref": "../../common/v1/schemas.json#/definitions/DscNodeExtensionHandlerAssociationProperty" } } } }, - "DscNodeExtensionHandlerAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the extension handler." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the extension handler." - } - }, - "description": "The dsc extensionHandler property associated with the node" - }, "DscNodeConfigurationAssociationProperty": { "properties": { "name": { 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 34f8fb0c8f59..747c0f8ccc29 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 @@ -283,52 +283,6 @@ } }, "definitions": { - "ContentHash": { - "properties": { - "algorithm": { - "type": "string", - "description": "Gets or sets the content hash algorithm used to hash the content." - }, - "value": { - "type": "string", - "description": "Gets or sets expected hash value of the content." - } - }, - "required": [ - "algorithm", - "value" - ], - "description": "Definition of the runbook property type." - }, - "ContentSource": { - "properties": { - "hash": { - "$ref": "#/definitions/ContentHash", - "description": "Gets or sets the hash." - }, - "type": { - "type": "string", - "description": "Gets or sets the content source type.", - "enum": [ - "embeddedContent", - "uri" - ], - "x-ms-enum": { - "name": "ContentSourceType", - "modelAsString": true - } - }, - "value": { - "type": "string", - "description": "Gets or sets the value of the content. This is based on the content source type." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the content." - } - }, - "description": "Definition of the content source." - }, "DscNodeConfiguration": { "type": "object", "properties": { @@ -361,7 +315,7 @@ "x-nullable": false }, "configuration": { - "$ref": "#/definitions/DscConfigurationAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, "source": { @@ -399,19 +353,6 @@ }, "description": "The response model for the list job operation." }, - "DscNodeExtensionHandlerAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the extension handler." - }, - "version": { - "type": "string", - "description": "Gets or sets the version of the extension handler." - } - }, - "description": "The dsc extensionHandler property associated with the node" - }, "DscNodeConfigurationCreateOrUpdateParameters": { "description": "The parameters supplied to the create or update node configuration operation.", "properties": { @@ -436,11 +377,11 @@ "DscNodeConfigurationCreateOrUpdateParametersProperties": { "properties": { "source": { - "$ref": "#/definitions/ContentSource", + "$ref": "../../common/v1/schemas.json#/definitions/ContentSource", "description": "Gets or sets the source." }, "configuration": { - "$ref": "#/definitions/DscConfigurationAssociationProperty", + "$ref": "../../common/v1/schemas.json#/definitions/DscConfigurationAssociationProperty", "description": "Gets or sets the configuration of the node." }, "incrementNodeConfigurationBuild": { @@ -453,15 +394,6 @@ "configuration" ], "description": "The parameter properties supplied to the create or update node configuration operation." - }, - "DscConfigurationAssociationProperty": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the Dsc configuration." - } - }, - "description": "The Dsc configuration property associated with the entity." } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/python2package.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/python2package.json index 8396aca0a128..03bdb8b00ed1 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/python2package.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/python2package.json @@ -123,7 +123,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "default": { @@ -182,13 +182,13 @@ "201": { "description": "Created", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "default": { @@ -247,7 +247,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Module" + "$ref": "../../common/v1/schemas.json#/definitions/Module" } }, "default": { @@ -292,7 +292,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ModuleListResult" + "$ref": "../../common/v1/schemas.json#/definitions/ModuleListResult" } }, "default": { @@ -309,234 +309,10 @@ } }, "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": { - "type": "string", - "description": "Gets or sets the description of the activity parameter." - }, - "validationSet": { - "type": "array", - "items": { - "$ref": "#/definitions/ActivityParameterValidationSet" - }, - "description": "Gets or sets the validation set of activity parameter." - } - }, - "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." - }, - "ActivityParameterValidationSet": { - "properties": { - "memberValue": { - "type": "string", - "description": "Gets or sets the name of the activity parameter validation set member." - } - }, - "description": "Definition of the activity parameter validation 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." - }, "PythonPackageCreateProperties": { "properties": { "contentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the module content link." } }, @@ -565,83 +341,6 @@ ], "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." - }, - "isComposite": { - "type": "boolean", - "description": "Gets or sets type of module, if its composite or not." - } - }, - "description": "Definition of the module property type." - }, "PythonPackageUpdateParameters": { "properties": { "tags": { @@ -653,50 +352,6 @@ } }, "description": "The parameters supplied to the update module operation." - }, - "Module": { - "properties": { - "properties": { - "$ref": "#/definitions/ModuleProperties", - "x-ms-client-flatten": true, - "description": "Gets or sets the module properties." - }, - "etag": { - "type": "string", - "description": "Gets or sets the etag of the resource." - } - }, - "allOf": [ - { - "$ref": "../../common/v1/definitions.json#/definitions/TrackedResource" - } - ], - "description": "Definition of the module type." - }, - "TypeField": { - "properties": { - "name": { - "type": "string", - "description": "Gets or sets the name of the field." - }, - "type": { - "type": "string", - "description": "Gets or sets the type of the field." - } - }, - "description": "Information about a field of a type." - }, - "TypeFieldListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/TypeField" - }, - "description": "Gets or sets a list of fields." - } - }, - "description": "The response model for the list fields operation." } }, "parameters": {} diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json index cb5bcfe51783..8d7329b974a6 100644 --- a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json @@ -703,7 +703,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStream" + "$ref": "../../common/v1/schemas.json#/definitions/JobStream" } }, "default": { @@ -762,7 +762,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/JobStreamListResult" + "$ref": "../../common/v1/schemas.json#/definitions/JobStreamListResult" } }, "default": { @@ -1037,118 +1037,6 @@ } }, "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", - "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." - }, - "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": { @@ -1168,7 +1056,7 @@ } }, "publishContentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the published runbook content link." }, "state": { @@ -1320,7 +1208,7 @@ "description": "Gets or sets the draft runbook properties." }, "publishContentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the published runbook content link." }, "description": { @@ -1484,7 +1372,7 @@ "description": "Gets or sets whether runbook is in edit mode." }, "draftContentLink": { - "$ref": "#/definitions/ContentLink", + "$ref": "../../common/v1/schemas.json#/definitions/ContentLink", "description": "Gets or sets the draft runbook content link." }, "creationTime": { diff --git a/specification/automation/resource-manager/readme.az.md b/specification/automation/resource-manager/readme.az.md new file mode 100644 index 000000000000..abf1962c1834 --- /dev/null +++ b/specification/automation/resource-manager/readme.az.md @@ -0,0 +1,14 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +``` yaml $(az) +az: + extensions: automation + namespace: azure.mgmt.automation + package-name: azure-mgmt-automation +az-output-folder: $(azure-cli-extension-folder)/src/automation +python-sdk-output-folder: "$(az-output-folder)/azext_automation/vendored_sdks/automation" + + +``` diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index e3416d6946aa..8b6dd9a836fc 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -238,6 +238,7 @@ swagger-to-sdk: - repo: azure-sdk-for-ruby after_scripts: - bundle install && rake arm:regen_all_profiles['azure_mgmt_automation'] + - repo: azure-cli-extensions ```