Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions azure-mgmt-automation/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.1.0 (1970-01-01)
++++++++++++++++++

* Initial Release
1 change: 1 addition & 0 deletions azure-mgmt-automation/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include *.rst
49 changes: 49 additions & 0 deletions azure-mgmt-automation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure MyService Management Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.
1 change: 1 addition & 0 deletions azure-mgmt-automation/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions azure-mgmt-automation/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
18 changes: 18 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .automation_client import AutomationClient
from .version import VERSION

__all__ = ['AutomationClient']

__version__ = VERSION

293 changes: 293 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/automation_client.py

Large diffs are not rendered by default.

511 changes: 511 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/models/__init__.py

Large diffs are not rendered by default.

64 changes: 64 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/models/activity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Activity(Model):
"""Definition of the activity.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Gets or sets the id of the resource.
:type id: str
:ivar name: Gets the name of the activity.
:vartype name: str
:param definition: Gets or sets the user name of the activity.
:type definition: str
:param parameter_sets: Gets or sets the parameter sets of the activity.
:type parameter_sets:
list[~azure.mgmt.automation.models.ActivityParameterSet]
:param output_types: Gets or sets the output types of the activity.
:type output_types: list[~azure.mgmt.automation.models.ActivityOutputType]
:param creation_time: Gets or sets the creation time.
:type creation_time: datetime
:param last_modified_time: Gets or sets the last modified time.
:type last_modified_time: datetime
:param description: Gets or sets the description.
:type description: str
"""

_validation = {
'name': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'definition': {'key': 'properties.definition', 'type': 'str'},
'parameter_sets': {'key': 'properties.parameterSets', 'type': '[ActivityParameterSet]'},
'output_types': {'key': 'properties.outputTypes', 'type': '[ActivityOutputType]'},
'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'},
'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'},
'description': {'key': 'properties.description', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Activity, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.name = None
self.definition = kwargs.get('definition', None)
self.parameter_sets = kwargs.get('parameter_sets', None)
self.output_types = kwargs.get('output_types', None)
self.creation_time = kwargs.get('creation_time', None)
self.last_modified_time = kwargs.get('last_modified_time', None)
self.description = kwargs.get('description', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ActivityOutputType(Model):
"""Definition of the activity output type.

:param name: Gets or sets the name of the activity output type.
:type name: str
:param type: Gets or sets the type of the activity output type.
:type type: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ActivityOutputType, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ActivityOutputType(Model):
"""Definition of the activity output type.

:param name: Gets or sets the name of the activity output type.
:type name: str
:param type: Gets or sets the type of the activity output type.
:type type: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, name: str=None, type: str=None, **kwargs) -> None:
super(ActivityOutputType, self).__init__(**kwargs)
self.name = name
self.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
from msrest.paging import Paged


class ActivityRunPaged(Paged):
class ActivityPaged(Paged):
"""
A paging container for iterating over a list of :class:`ActivityRun <azure.mgmt.datafactory.models.ActivityRun>` object
A paging container for iterating over a list of :class:`Activity <azure.mgmt.automation.models.Activity>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[ActivityRun]'}
'current_page': {'key': 'value', 'type': '[Activity]'}
}

def __init__(self, *args, **kwargs):

super(ActivityRunPaged, self).__init__(*args, **kwargs)
super(ActivityPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ActivityParameter(Model):
"""Definition of the activity parameter.

:param name: Gets or sets the name of the activity parameter.
:type name: str
:param type: Gets or sets the type of the activity parameter.
:type type: str
:param is_mandatory: Gets or sets a Boolean value that indicates true if
the parameter is required. If the value is false, the parameter is
optional.
:type is_mandatory: bool
:param is_dynamic: Gets or sets a Boolean value that indicates true if the
parameter is dynamic.
:type is_dynamic: bool
:param position: Gets or sets the position of the activity parameter.
:type position: long
:param value_from_pipeline: 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 value_from_pipeline: bool
:param value_from_pipeline_by_property_name: 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 value_from_pipeline_by_property_name: bool
:param value_from_remaining_arguments: 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 value_from_remaining_arguments: bool
:param description: Gets or sets the description of the activity
parameter.
:type description: str
:param validation_set: Gets or sets the validation set of activity
parameter.
:type validation_set:
list[~azure.mgmt.automation.models.ActivityParameterValidationSet]
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'is_mandatory': {'key': 'isMandatory', 'type': 'bool'},
'is_dynamic': {'key': 'isDynamic', 'type': 'bool'},
'position': {'key': 'position', 'type': 'long'},
'value_from_pipeline': {'key': 'valueFromPipeline', 'type': 'bool'},
'value_from_pipeline_by_property_name': {'key': 'valueFromPipelineByPropertyName', 'type': 'bool'},
'value_from_remaining_arguments': {'key': 'valueFromRemainingArguments', 'type': 'bool'},
'description': {'key': 'description', 'type': 'str'},
'validation_set': {'key': 'validationSet', 'type': '[ActivityParameterValidationSet]'},
}

def __init__(self, **kwargs):
super(ActivityParameter, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
self.is_mandatory = kwargs.get('is_mandatory', None)
self.is_dynamic = kwargs.get('is_dynamic', None)
self.position = kwargs.get('position', None)
self.value_from_pipeline = kwargs.get('value_from_pipeline', None)
self.value_from_pipeline_by_property_name = kwargs.get('value_from_pipeline_by_property_name', None)
self.value_from_remaining_arguments = kwargs.get('value_from_remaining_arguments', None)
self.description = kwargs.get('description', None)
self.validation_set = kwargs.get('validation_set', None)
Loading