UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 24.1 kB
{"openapi":"3.0.0","info":{"title":"AutomationManagement","version":"2018-06-30","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/python2package.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"automation-python2package","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages":{"get":{"description":"Retrieve a list of python 2 packages.","externalDocs":{"url":"http://aka.ms/azureautomationsdk/moduleoperations"},"operationId":"Python2Package_ListByAutomationAccount","parameters":[{"description":"Name of an Azure Resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._]+$"},"examples":{"List python 2 packages by automation account":{"value":"rg"}}},{"description":"The name of the automation account.","in":"path","name":"automationAccountName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"List python 2 packages by automation account":{"value":"myAutomationAccount33"}}},{"description":"Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"List python 2 packages by automation account":{"value":"subid"}}},{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"List python 2 packages by automation account":{"value":"2018-06-30"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModuleListResult"},"examples":{"List python 2 packages by automation account":{"$ref":"#/components/examples/List_python_2_packages_by_automation_account"}}}}},"default":{"description":"Automation error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response of an operation failure","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["Python2Package"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/python2Packages/{packageName}":{"delete":{"description":"Delete the python 2 package by name.","externalDocs":{"url":"http://aka.ms/azureautomationsdk/moduleoperations"},"operationId":"Python2Package_Delete","parameters":[{"description":"Name of an Azure Resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._]+$"},"examples":{"Delete a python 2 package":{"value":"rg"}}},{"description":"The name of the automation account.","in":"path","name":"automationAccountName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Delete a python 2 package":{"value":"myAutomationAccount33"}}},{"description":"The python package name.","in":"path","name":"packageName","required":true,"schema":{"type":"string"},"examples":{"Delete a python 2 package":{"value":"OmsCompositeResources"}}},{"description":"Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"Delete a python 2 package":{"value":"subid"}}},{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Delete a python 2 package":{"value":"2018-06-30"}}}],"responses":{"200":{"description":"OK"},"default":{"description":"Automation error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response of an operation failure","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["Python2Package"]},"get":{"description":"Retrieve the python 2 package identified by package name.","externalDocs":{"url":"http://aka.ms/azureautomationsdk/moduleoperations"},"operationId":"Python2Package_Get","parameters":[{"description":"Name of an Azure Resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._]+$"},"examples":{"Get a python 2 package":{"value":"rg"}}},{"description":"The name of the automation account.","in":"path","name":"automationAccountName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get a python 2 package":{"value":"myAutomationAccount33"}}},{"description":"The python package name.","in":"path","name":"packageName","required":true,"schema":{"type":"string"},"examples":{"Get a python 2 package":{"value":"OmsCompositeResources"}}},{"description":"Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"Get a python 2 package":{"value":"subid"}}},{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get a python 2 package":{"value":"2018-06-30"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Module"},"examples":{"Get a python 2 package":{"$ref":"#/components/examples/Get_a_python_2_package"}}}}},"default":{"description":"Automation error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response of an operation failure","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["Python2Package"]},"patch":{"description":"Update the python 2 package identified by package name.","externalDocs":{"url":"http://aka.ms/azureautomationsdk/moduleoperations"},"operationId":"Python2Package_Update","parameters":[{"description":"Name of an Azure Resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._]+$"},"examples":{"Update a module":{"value":"rg"}}},{"description":"The name of the automation account.","in":"path","name":"automationAccountName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Update a module":{"value":"MyAutomationAccount"}}},{"description":"The name of python package.","in":"path","name":"packageName","required":true,"schema":{"type":"string"},"examples":{"Update a module":{"value":"MyPython2Package"}}},{"description":"Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"Update a module":{"value":"subid"}}},{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Update a module":{"value":"2018-06-30"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PythonPackageUpdateParameters"}}},"description":"The update parameters for python package.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Module"},"examples":{"Update a module":{"$ref":"#/components/examples/Update_a_module"}}}}},"default":{"description":"Automation error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response of an operation failure","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["Python2Package"]},"put":{"description":"Create or Update the python 2 package identified by package name.","externalDocs":{"url":"http://aka.ms/azureautomationsdk/moduleoperations"},"operationId":"Python2Package_CreateOrUpdate","parameters":[{"description":"Name of an Azure Resource group.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._]+$"},"examples":{"Create or update a python 2 package":{"value":"rg"}}},{"description":"The name of the automation account.","in":"path","name":"automationAccountName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Create or update a python 2 package":{"value":"myAutomationAccount33"}}},{"description":"The name of python package.","in":"path","name":"packageName","required":true,"schema":{"type":"string"},"examples":{"Create or update a python 2 package":{"value":"OmsCompositeResources"}}},{"description":"Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string"},"examples":{"Create or update a python 2 package":{"value":"subid"}}},{"description":"Client Api Version.","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Create or update a python 2 package":{"value":"2018-06-30"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PythonPackageCreateParameters"}}},"description":"The create or update parameters for python package.","required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Module"},"examples":{"Create or update a python 2 package":{"$ref":"#/components/examples/Create_or_update_a_python_2_package"}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Module"},"examples":{"Create or update a python 2 package":{"$ref":"#/components/examples/Create_or_update_a_python_2_package"}}}}},"default":{"description":"Automation error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response of an operation failure","properties":{"code":{"description":"Error code","type":"string"},"message":{"description":"Error message indicating why the operation failed.","type":"string"}},"type":"object"}}}}},"tags":["Python2Package"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"List_python_2_packages_by_automation_account":{"value":{"value":[{"id":"/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/configparser","name":"configparser","properties":{"activityCount":0,"creationTime":"2018-07-17T17:57:01.7866667+00:00","isComposite":false,"isGlobal":false,"lastModifiedTime":"2018-07-24T20:30:16.4966667+00:00","provisioningState":"Succeeded","sizeInBytes":39573,"version":"3.5.0"}},{"id":"/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/flask","name":"flask","properties":{"activityCount":0,"creationTime":"2018-07-09T18:07:44.6133333+00:00","isComposite":false,"isGlobal":false,"lastModifiedTime":"2018-07-09T18:09:20.7733333+00:00","provisioningState":"Succeeded","sizeInBytes":91364,"version":"1.0.2"}},{"id":"/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/numpy","name":"numpy","properties":{"activityCount":0,"creationTime":"2018-07-14T01:05:54.67+00:00","isComposite":false,"isGlobal":false,"lastModifiedTime":"2018-07-17T17:58:09.8733333+00:00","provisioningState":"Succeeded","sizeInBytes":13345673,"version":"1.14.5"}}]}},"Get_a_python_2_package":{"value":{"id":"/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources","location":"East US 2","name":"OmsCompositeResources","properties":{"activityCount":0,"creationTime":"2017-03-29T15:41:47.003+00:00","error":{"message":""},"isComposite":true,"isGlobal":false,"lastModifiedTime":"2017-03-29T15:42:10.567+00:00","provisioningState":"Creating","sizeInBytes":0},"tags":{},"type":"Microsoft.Automation/AutomationAccounts/Python2Packages"}},"Update_a_module":{"value":{"id":"/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/MyAutomationAccount/python2Packages/MyPython2Package","location":"East US 2","name":"MyPython2Package","properties":{"activityCount":0,"creationTime":"2017-03-29T15:41:47.003+00:00","error":{},"isComposite":false,"isGlobal":false,"lastModifiedTime":"2017-03-29T15:42:10.567+00:00","provisioningState":"Creating","sizeInBytes":0},"tags":{},"type":"Microsoft.Automation/AutomationAccounts/python2Packages"}},"Create_or_update_a_python_2_package":{"value":{"id":"/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/python2Packages/OmsCompositeResources","location":"East US 2","name":"OmsCompositeResources","properties":{"activityCount":0,"creationTime":"2017-03-29T15:41:47.003+00:00","error":{},"isComposite":false,"isGlobal":false,"lastModifiedTime":"2017-03-29T15:42:10.567+00:00","provisioningState":"Creating","sizeInBytes":0},"tags":{},"type":"Microsoft.Automation/AutomationAccounts/python2Packages"}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"Activity":{"description":"Definition of the activity.","properties":{"id":{"description":"Gets or sets the id of the resource.","type":"string"},"name":{"description":"Gets the name of the activity.","readOnly":true,"type":"string"},"properties":{"$ref":"#/components/schemas/ActivityProperties"}}},"ActivityListResult":{"description":"The response model for the list activity operation.","properties":{"nextLink":{"description":"Gets or sets the next link.","type":"string"},"value":{"description":"Gets or sets a list of activities.","items":{"$ref":"#/components/schemas/Activity"},"type":"array"}}},"ActivityOutputType":{"description":"Definition of the activity output type.","properties":{"name":{"description":"Gets or sets the name of the activity output type.","type":"string"},"type":{"description":"Gets or sets the type of the activity output type.","type":"string"}}},"ActivityParameter":{"description":"Definition of the activity parameter.","properties":{"description":{"description":"Gets or sets the description of the activity parameter.","type":"string"},"isDynamic":{"description":"Gets or sets a Boolean value that indicates true if the parameter is dynamic.","type":"boolean"},"isMandatory":{"description":"Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional.","type":"boolean"},"name":{"description":"Gets or sets the name of the activity parameter.","type":"string"},"position":{"description":"Gets or sets the position of the activity parameter.","format":"int64","type":"integer"},"type":{"description":"Gets or sets the type of the activity parameter.","type":"string"},"validationSet":{"description":"Gets or sets the validation set of activity parameter.","items":{"$ref":"#/components/schemas/ActivityParameterValidationSet"},"type":"array"},"valueFromPipeline":{"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.","type":"boolean"},"valueFromPipelineByPropertyName":{"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. ","type":"boolean"},"valueFromRemainingArguments":{"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.","type":"boolean"}}},"ActivityParameterSet":{"description":"Definition of the activity parameter set.","properties":{"name":{"description":"Gets or sets the name of the activity parameter set.","type":"string"},"parameters":{"description":"Gets or sets the parameters of the activity parameter set.","items":{"$ref":"#/components/schemas/ActivityParameter"},"type":"array"}}},"ActivityParameterValidationSet":{"description":"Definition of the activity parameter validation set.","properties":{"memberValue":{"description":"Gets or sets the name of the activity parameter validation set member.","type":"string"}}},"ActivityProperties":{"description":"Properties of the activity.","properties":{"creationTime":{"description":"Gets or sets the creation time.","format":"date-time","type":"string","nullable":false},"definition":{"description":"Gets or sets the user name of the activity.","type":"string"},"description":{"description":"Gets or sets the description.","type":"string"},"lastModifiedTime":{"description":"Gets or sets the last modified time.","format":"date-time","type":"string","nullable":false},"outputTypes":{"description":"Gets or sets the output types of the activity.","items":{"$ref":"#/components/schemas/ActivityOutputType"},"type":"array"},"parameterSets":{"description":"Gets or sets the parameter sets of the activity.","items":{"$ref":"#/components/schemas/ActivityParameterSet"},"type":"array"}}},"ContentHash":{"description":"Definition of the runbook property type.","properties":{"algorithm":{"description":"Gets or sets the content hash algorithm used to hash the content.","type":"string"},"value":{"description":"Gets or sets expected hash value of the content.","type":"string"}},"required":["algorithm","value"]},"ContentLink":{"description":"Definition of the content link.","properties":{"contentHash":{"$ref":"#/components/schemas/ContentHash"},"uri":{"description":"Gets or sets the uri of the runbook content.","type":"string"},"version":{"description":"Gets or sets the version of the content.","type":"string"}}},"Module":{"allOf":[{"allOf":[{"description":"The core properties of ARM resources","properties":{"id":{"description":"Fully qualified resource Id for the resource","readOnly":true,"type":"string"},"name":{"description":"The name of the resource","readOnly":true,"type":"string"},"type":{"description":"The type of the resource.","readOnly":true,"type":"string"}},"type":"object","x-ms-azure-resource":true}],"description":"The resource model definition for a ARM tracked top level resource","properties":{"location":{"description":"The Azure Region where the resource lives","type":"string","x-ms-mutability":["read","create"]},"tags":{"additionalProperties":{"type":"string"},"description":"Resource tags.","type":"object","x-ms-mutability":["read","create","update"]}},"type":"object"}],"description":"Definition of the module type.","properties":{"etag":{"description":"Gets or sets the etag of the resource.","type":"string"},"properties":{"$ref":"#/components/schemas/ModuleProperties"}}},"ModuleErrorInfo":{"description":"Definition of the module error info type.","properties":{"code":{"description":"Gets or sets the error code.","type":"string"},"message":{"description":"Gets or sets the error message.","type":"string"}}},"ModuleListResult":{"description":"The response model for the list module operation.","properties":{"nextLink":{"description":"Gets or sets the next link.","type":"string"},"value":{"description":"Gets or sets a list of modules.","items":{"$ref":"#/components/schemas/Module"},"type":"array"}}},"ModuleProperties":{"description":"Definition of the module property type.","properties":{"activityCount":{"description":"Gets or sets the activity count of the module.","format":"int32","type":"integer"},"contentLink":{"$ref":"#/components/schemas/ContentLink"},"creationTime":{"description":"Gets or sets the creation time.","format":"date-time","type":"string","nullable":false},"description":{"description":"Gets or sets the description.","type":"string"},"error":{"$ref":"#/components/schemas/ModuleErrorInfo"},"isComposite":{"description":"Gets or sets type of module, if its composite or not.","type":"boolean"},"isGlobal":{"description":"Gets or sets the isGlobal flag of the module.","type":"boolean"},"lastModifiedTime":{"description":"Gets or sets the last modified time.","format":"date-time","type":"string","nullable":false},"provisioningState":{"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"],"type":"string","x-ms-enum":{"modelAsString":false,"name":"ModuleProvisioningState"}},"sizeInBytes":{"description":"Gets or sets the size in bytes of the module.","format":"int64","type":"integer"},"version":{"description":"Gets or sets the version of the module.","type":"string"}}},"PythonPackageCreateParameters":{"description":"The parameters supplied to the create or update module operation.","properties":{"properties":{"$ref":"#/components/schemas/PythonPackageCreateProperties"},"tags":{"additionalProperties":{"type":"string"},"description":"Gets or sets the tags attached to the resource.","type":"object"}},"required":["properties"]},"PythonPackageCreateProperties":{"description":"The parameters supplied to the create or update module properties.","properties":{"contentLink":{"$ref":"#/components/schemas/ContentLink"}},"required":["contentLink"]},"PythonPackageUpdateParameters":{"description":"The parameters supplied to the update module operation.","properties":{"tags":{"additionalProperties":{"type":"string"},"description":"Gets or sets the tags attached to the resource.","type":"object"}}},"TypeField":{"description":"Information about a field of a type.","properties":{"name":{"description":"Gets or sets the name of the field.","type":"string"},"type":{"description":"Gets or sets the type of the field.","type":"string"}}},"TypeFieldListResult":{"description":"The response model for the list fields operation.","properties":{"value":{"description":"Gets or sets a list of fields.","items":{"$ref":"#/components/schemas/TypeField"},"type":"array"}}}}}}