From ad7bf3880ae0b76dfcfee25f43902bb1cb39cfa3 Mon Sep 17 00:00:00 2001 From: Bhaskar Brahma Date: Tue, 24 Jul 2018 18:11:42 -0700 Subject: [PATCH 1/2] Created specs for python 2 packages --- .gitignore | 2 + .../createOrUpdatePython2Package.json | 73 ++ .../examples/deletePython2Package.json | 12 + .../examples/getPython2Package.json | 36 + ...istPython2PackagesByAutomationAccount.json | 59 ++ .../examples/updatePython2Package.json | 48 ++ .../stable/2018-06-30/python2package.json | 733 ++++++++++++++++++ .../automation/resource-manager/readme.md | 37 +- 8 files changed, 999 insertions(+), 1 deletion(-) create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdatePython2Package.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deletePython2Package.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getPython2Package.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listPython2PackagesByAutomationAccount.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updatePython2Package.json create mode 100644 specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/python2package.json diff --git a/.gitignore b/.gitignore index 528ca8843cb1..99b58d4b35cd 100644 --- a/.gitignore +++ b/.gitignore @@ -98,3 +98,5 @@ obj/ # AutoRest Nightly # AutoRest.* output/* +errors.txt +warnings.txt diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdatePython2Package.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdatePython2Package.json new file mode 100644 index 000000000000..4586678b8f1f --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/createOrUpdatePython2Package.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "packageName": "OmsCompositeResources", + "api-version": "2018-06-30", + "parameters": { + "properties": { + "contentLink": { + "uri": "https://teststorage.blob.core.windows.net/dsccomposite/OmsCompositeResources.zip", + "contentHash": { + "algorithm": "sha265", + "value": "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A" + }, + "version": "1.0.0.0" + } + } + } + }, + "responses": { + "201": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources", + "name": "OmsCompositeResources", + "type": "Microsoft.Automation/AutomationAccounts/python2Packages", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "isGlobal": false, + "version": null, + "sizeInBytes": 0, + "activityCount": 0, + "creationTime": "2017-03-29T15:41:47.003+00:00", + "lastModifiedTime": "2017-03-29T15:42:10.567+00:00", + "error": { + "code": null, + "message": null + }, + "provisioningState": "Creating", + "isComposite": false + } + } + }, + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources", + "name": "OmsCompositeResources", + "type": "Microsoft.Automation/AutomationAccounts/python2Packages", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "isGlobal": false, + "version": null, + "sizeInBytes": 0, + "activityCount": 0, + "creationTime": "2017-03-29T15:41:47.003+00:00", + "lastModifiedTime": "2017-03-29T15:42:10.567+00:00", + "error": { + "code": null, + "message": null + }, + "provisioningState": "Creating", + "isComposite": false + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deletePython2Package.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deletePython2Package.json new file mode 100644 index 000000000000..6d8651f1928b --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/deletePython2Package.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "packageName": "OmsCompositeResources", + "api-version": "2018-06-30" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getPython2Package.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getPython2Package.json new file mode 100644 index 000000000000..d58f01b16ba1 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/getPython2Package.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "packageName": "OmsCompositeResources", + "api-version": "2018-06-30" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources", + "name": "OmsCompositeResources", + "type": "Microsoft.Automation/AutomationAccounts/Python2Packages", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "isGlobal": false, + "version": null, + "sizeInBytes": 0, + "activityCount": 0, + "creationTime": "2017-03-29T15:41:47.003+00:00", + "lastModifiedTime": "2017-03-29T15:42:10.567+00:00", + "error": { + "code": null, + "message": "" + }, + "provisioningState": "Creating", + "isComposite": true + } + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listPython2PackagesByAutomationAccount.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listPython2PackagesByAutomationAccount.json new file mode 100644 index 000000000000..774650607023 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/listPython2PackagesByAutomationAccount.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "myAutomationAccount33", + "api-version": "2018-06-30" + }, + "responses": { + "200": { + "headers": {}, + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/configparser", + "name": "configparser", + "properties": { + "isGlobal": false, + "version": "3.5.0", + "sizeInBytes": 39573, + "activityCount": 0, + "creationTime": "2018-07-17T17:57:01.7866667+00:00", + "lastModifiedTime": "2018-07-24T20:30:16.4966667+00:00", + "provisioningState": "Succeeded", + "isComposite": false + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/flask", + "name": "flask", + "properties": { + "isGlobal": false, + "version": "1.0.2", + "sizeInBytes": 91364, + "activityCount": 0, + "creationTime": "2018-07-09T18:07:44.6133333+00:00", + "lastModifiedTime": "2018-07-09T18:09:20.7733333+00:00", + "provisioningState": "Succeeded", + "isComposite": false + } + }, + { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/numpy", + "name": "numpy", + "properties": { + "isGlobal": false, + "version": "1.14.5", + "sizeInBytes": 13345673, + "activityCount": 0, + "creationTime": "2018-07-14T01:05:54.67+00:00", + "lastModifiedTime": "2018-07-17T17:58:09.8733333+00:00", + "provisioningState": "Succeeded", + "isComposite": false + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updatePython2Package.json b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updatePython2Package.json new file mode 100644 index 000000000000..59fd91ed3959 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/examples/updatePython2Package.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subid", + "resourceGroupName": "rg", + "automationAccountName": "MyAutomationAccount", + "packageName": "MyPython2Package", + "api-version": "2018-06-30", + "parameters": { + "properties": { + "contentLink": { + "uri": "https://teststorage.blob.core.windows.net/mycontainer/MyPython2Package.zip", + "contentHash": { + "algorithm": "sha265", + "value": "07E108A962B81DD9C9BAA89BB47C0F6EE52B29E83758B07795E408D258B2B87A" + }, + "version": "1.0.0.0" + } + } + } + }, + "responses": { + "200": { + "headers": {}, + "body": { + "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyAutomationAccount/python2Packages/MyPython2Package", + "name": "MyPython2Package", + "type": "Microsoft.Automation/AutomationAccounts/python2Packages", + "location": "East US 2", + "tags": {}, + "etag": null, + "properties": { + "isGlobal": false, + "version": null, + "sizeInBytes": 0, + "activityCount": 0, + "creationTime": "2017-03-29T15:41:47.003+00:00", + "lastModifiedTime": "2017-03-29T15:42:10.567+00:00", + "error": { + "code": null, + "message": null + }, + "provisioningState": "Creating", + "isComposite": false + } + } + } + } +} \ No newline at end of file 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 new file mode 100644 index 000000000000..43031e237d18 --- /dev/null +++ b/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/python2package.json @@ -0,0 +1,733 @@ +{ + "swagger": "2.0", + "info": { + "title": "AutomationManagement", + "version": "2018-06-30", + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}": { + "delete": { + "tags": [ + "Python2Package" + ], + "operationId": "Python2Package_Delete", + "description": "Delete the python 2 package by name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/moduleoperations" + }, + "x-ms-examples": { + "Delete a python 2 package": { + "$ref": "./examples/deletePython2Package.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "packageName", + "in": "path", + "required": true, + "type": "string", + "description": "The python package 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" + } + } + } + }, + "get": { + "tags": [ + "Python2Package" + ], + "operationId": "Python2Package_Get", + "description": "Retrieve the python 2 package identified by package name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/moduleoperations" + }, + "x-ms-examples": { + "Get a python 2 package": { + "$ref": "./examples/getPython2Package.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "packageName", + "in": "path", + "required": true, + "type": "string", + "description": "The python package name." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Module" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "put": { + "tags": [ + "Python2Package" + ], + "operationId": "Python2Package_CreateOrUpdate", + "description": "Create or Update the python 2 package identified by package name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/moduleoperations" + }, + "x-ms-examples": { + "Create or update a python 2 package": { + "$ref": "./examples/createOrUpdatePython2Package.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "packageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of python package." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ModuleCreateOrUpdateParameters" + }, + "description": "The create or update parameters for python package." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Module" + } + }, + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Module" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Python2Package" + ], + "operationId": "Python2Package_Update", + "description": "Update the python 2 package identified by package name.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/moduleoperations" + }, + "x-ms-examples": { + "Update a module": { + "$ref": "./examples/updatePython2Package.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "name": "packageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of python package." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ModuleUpdateParameters" + }, + "description": "The update parameters for python package." + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Module" + } + }, + "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}/python2Packages": { + "get": { + "tags": [ + "Python2Package" + ], + "operationId": "Python2Package_ListByAutomationAccount", + "description": "Retrieve a list of python 2 packages.", + "externalDocs": { + "url": "http://aka.ms/azureautomationsdk/moduleoperations" + }, + "x-ms-examples": { + "List python 2 packages by automation account": { + "$ref": "./examples/listPython2PackagesByAutomationAccount.json" + } + }, + "parameters": [ + { + "$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ModuleListResult" + } + }, + "default": { + "description": "Automation error response describing why the operation failed.", + "schema": { + "$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "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", + "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." + }, + "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", + "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": {} +} \ No newline at end of file diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 1ca1624af60b..2d13d41a5ea6 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -25,7 +25,7 @@ These are the global settings for the Automation API. title: AutomationClient description: Automation Client openapi-type: arm -tag: package-2018-01-preview +tag: package-2018-06 ``` ### Tag: package-2015-10 @@ -121,6 +121,41 @@ input-file: - Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json ``` +### Tag: package-2018-06 + +These settings apply only when `--tag=package-2018-06` is specified on the command line. + +``` yaml $(tag) == 'package-2018-06' +input-file: +- Microsoft.Automation/stable/2015-10-31/account.json +- Microsoft.Automation/stable/2015-10-31/certificate.json +- Microsoft.Automation/stable/2015-10-31/connection.json +- Microsoft.Automation/stable/2015-10-31/connectionType.json +- Microsoft.Automation/stable/2015-10-31/credential.json +- Microsoft.Automation/stable/2015-10-31/dscConfiguration.json +- Microsoft.Automation/stable/2015-10-31/hybridRunbookWorkerGroup.json +- Microsoft.Automation/stable/2015-10-31/jobSchedule.json +- Microsoft.Automation/stable/2015-10-31/linkedWorkspace.json +- Microsoft.Automation/stable/2015-10-31/module.json +- Microsoft.Automation/stable/2018-06-30/python2package.json +- Microsoft.Automation/stable/2015-10-31/runbook.json +- Microsoft.Automation/stable/2015-10-31/schedule.json +- Microsoft.Automation/stable/2015-10-31/variable.json +- Microsoft.Automation/stable/2015-10-31/webhook.json +- Microsoft.Automation/stable/2015-10-31/watcher.json +- Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfiguration.json +- Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationRun.json +- Microsoft.Automation/preview/2017-05-15-preview/softwareUpdateConfigurationMachineRun.json +- Microsoft.Automation/preview/2017-05-15-preview/sourceControl.json +- Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJob.json +- Microsoft.Automation/preview/2017-05-15-preview/sourceControlSyncJobStreams.json +- Microsoft.Automation/preview/2017-05-15-preview/job.json +- Microsoft.Automation/stable/2018-01-15/dscNode.json +- Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json +- Microsoft.Automation/stable/2018-01-15/dscNodeConfiguration.json +- Microsoft.Automation/stable/2018-01-15/dscNodeCounts.json +``` + --- ## Suppression ``` yaml From 1a11c87ee5039a2b795d276e17112cb657661f07 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Thu, 2 Aug 2018 13:08:38 -0700 Subject: [PATCH 2/2] add new package to Go SDK build --- specification/automation/resource-manager/readme.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/automation/resource-manager/readme.md b/specification/automation/resource-manager/readme.md index 2d13d41a5ea6..a52171f26459 100644 --- a/specification/automation/resource-manager/readme.md +++ b/specification/automation/resource-manager/readme.md @@ -259,6 +259,7 @@ batch: - tag: package-2015-10 - tag: package-2017-05-preview - tag: package-2018-01-preview + - tag: package-2018-06 ``` ### Tag: package-2015-10 and go @@ -288,6 +289,15 @@ Please also specify `--go-sdk-folder=`. + +``` yaml $(tag) == 'package-2018-06' && $(go) +output-folder: $(go-sdk-folder)/services/automation/mgmt/2018-06-30/automation +``` + ## Java These settings apply only when `--java` is specified on the command line.