Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1e458da
Automatic PR of restapi_auto_lmazuel_automationpy into master (#1801)
AutorestCI Feb 12, 2018
997f37b
Generated from da610400a1306f1ab50c7c796746b9938d5f40e7 (#1947)
AutorestCI Feb 12, 2018
70f7099
[AutoPR automation/resource-manager] Fixing the resource definitions …
AutorestCI Feb 15, 2018
39e5e3e
Generated from 9f22184d852d3d5b2728466cd034f5adadc0cb05 (#1984)
AutorestCI Feb 15, 2018
97256b1
Generated from 3ee5a3b33c6b37c2198e58470ae309f1cfbdedbc (#2012)
AutorestCI Feb 21, 2018
e5b3bed
Generated from 7c8ecc676f97292a87b1373623ac6235ac14082e (#2231)
AutorestCI Mar 20, 2018
93626e1
Generated from 39c2f9a4855320ed80fe45f847bf2c3d0c25f70e (#2261)
AutorestCI Mar 23, 2018
77b9bed
[AutoPR automation/resource-manager] Adding patch API for Configurati…
AutorestCI Mar 23, 2018
c4b5ada
[AutoPR automation/resource-manager] Add new HybridWorkerGroup update…
AutorestCI Mar 26, 2018
8f571f7
[AutoPR automation/resource-manager] Adding ListKeys support for Auto…
AutorestCI Mar 26, 2018
1b5515d
Generated from 51e53725da6e2fcb29836f63c34d629ce31dafeb (#2281)
AutorestCI Mar 26, 2018
f8a8c75
[AutoPR automation/resource-manager] Runbook Linting issues fixed (#2…
AutorestCI Mar 27, 2018
05cd4f5
Generated from c79ea034321a4ca0bd8c055821a4901d20f7c6a0 (#2333)
AutorestCI Apr 4, 2018
a4e89aa
Generated from a4b37e767f42cdc45542216ed43704aecb4222c0 (#2360)
AutorestCI Apr 6, 2018
badb0aa
Generated from 78e336d893321f6a2537f044aea283bbaf987203 (#2366)
AutorestCI Apr 9, 2018
4a90c49
Generated from dbe5e9ac34b138b0e23c58ded24526d0b27e9854 (#2397)
AutorestCI Apr 14, 2018
e87a05d
Generated from ab35ac5d163cb8818771763a66fa1f720954f760 (#2430)
AutorestCI Apr 20, 2018
f16d521
[AutoPR automation/resource-manager] [UpdateManagement] SoftwareUpdat…
AutorestCI Apr 26, 2018
111abfd
[AutoPR automation/resource-manager] Dsc paging changes (#2454)
AutorestCI May 2, 2018
ebaca2f
Generated from 3969ccd29b11be74beb11be597e6ec60a2b10fcc (#2528)
AutorestCI May 4, 2018
af8bc7e
Generated from ff4ef35bec35df647ad4e2f0d73f2f94f549df21 (#2582)
AutorestCI May 21, 2018
f5c0f38
[AutoPR automation/resource-manager] [Automation] Refactoring Automat…
AutorestCI Jun 22, 2018
751d7f2
Generated from 4427304dc57f73fbeb012d11bffca3038ea2bf99 (#2813)
AutorestCI Jun 27, 2018
cb78c52
[AutoPR automation/resource-manager] Reverting the schedule.json resp…
AutorestCI Jun 28, 2018
1d089ac
Generated from d393fcd982df8339a966bf6a6bf3ba58099f3b28 (#2853)
AutorestCI Jul 2, 2018
de8f510
Generated from ad46e205e322a7981412bb3b79ce29bcb757e175 (#2916)
AutorestCI Jul 11, 2018
4e5ca91
[AutoPR automation/resource-manager] Remove 4xx responses and change …
AutorestCI Jul 12, 2018
93d15da
Generated from bc2ab8179aa738ee9686eb95816ab74917b0d8d1 (#2933)
AutorestCI Jul 18, 2018
d634926
[AutoPR automation/resource-manager] [UpdateManagement] SoftwareUpdat…
AutorestCI Jul 19, 2018
5d366a0
[AutoPR automation/resource-manager] Updating PUT operation requireme…
AutorestCI Aug 6, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Automatic PR of restapi_auto_lmazuel_automationpy into master (#1801)
* Generated from c5f717c032612695b124bb479253012db871267e

Python conf for Automation

* Packaging for azure-mgmt-automation

* Update version.py
  • Loading branch information
AutorestCI committed Mar 7, 2018
commit 1e458da65bd12bbabe7787618f7dec550f7ddbb1
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
2 changes: 2 additions & 0 deletions azure-mgmt-automation/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include *.rst
include azure_bdist_wheel.py
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 Automation 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 and 3.6.

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 `Automation Management
<https://docs.microsoft.com/python/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 @@
__import__('pkg_resources').declare_namespace(__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 @@
__import__('pkg_resources').declare_namespace(__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

258 changes: 258 additions & 0 deletions azure-mgmt-automation/azure/mgmt/automation/automation_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
# 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.service_client import ServiceClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.automation_account_operations import AutomationAccountOperations
from .operations.operations import Operations
from .operations.statistics_operations import StatisticsOperations
from .operations.usages_operations import UsagesOperations
from .operations.certificate_operations import CertificateOperations
from .operations.connection_operations import ConnectionOperations
from .operations.connection_type_operations import ConnectionTypeOperations
from .operations.credential_operations import CredentialOperations
from .operations.dsc_compilation_job_operations import DscCompilationJobOperations
from .operations.dsc_configuration_operations import DscConfigurationOperations
from .operations.agent_registration_information_operations import AgentRegistrationInformationOperations
from .operations.dsc_node_operations import DscNodeOperations
from .operations.node_reports_operations import NodeReportsOperations
from .operations.dsc_node_configuration_operations import DscNodeConfigurationOperations
from .operations.hybrid_runbook_worker_group_operations import HybridRunbookWorkerGroupOperations
from .operations.job_operations import JobOperations
from .operations.job_stream_operations import JobStreamOperations
from .operations.job_schedule_operations import JobScheduleOperations
from .operations.activity_operations import ActivityOperations
from .operations.module_operations import ModuleOperations
from .operations.object_data_types_operations import ObjectDataTypesOperations
from .operations.fields_operations import FieldsOperations
from .operations.runbook_draft_operations import RunbookDraftOperations
from .operations.runbook_operations import RunbookOperations
from .operations.test_job_streams_operations import TestJobStreamsOperations
from .operations.test_jobs_operations import TestJobsOperations
from .operations.schedule_operations import ScheduleOperations
from .operations.variable_operations import VariableOperations
from .operations.webhook_operations import WebhookOperations
from .operations.software_update_configurations_operations import SoftwareUpdateConfigurationsOperations
from .operations.software_update_configuration_runs_operations import SoftwareUpdateConfigurationRunsOperations
from .operations.software_update_configuration_machine_runs_operations import SoftwareUpdateConfigurationMachineRunsOperations
from . import models


class AutomationClientConfiguration(AzureConfiguration):
"""Configuration for AutomationClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Gets subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.
:type subscription_id: str
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param client_request_id: Identifies this specific client request.
:type client_request_id: str
:param automation_account_name: The name of the automation account.
:type automation_account_name: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, resource_group_name, automation_account_name, client_request_id=None, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if resource_group_name is None:
raise ValueError("Parameter 'resource_group_name' must not be None.")
if automation_account_name is None:
raise ValueError("Parameter 'automation_account_name' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(AutomationClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-mgmt-automation/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
self.resource_group_name = resource_group_name
self.client_request_id = client_request_id
self.automation_account_name = automation_account_name


class AutomationClient(object):
"""Automation Client

:ivar config: Configuration for client.
:vartype config: AutomationClientConfiguration

:ivar automation_account: AutomationAccount operations
:vartype automation_account: azure.mgmt.automation.operations.AutomationAccountOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.automation.operations.Operations
:ivar statistics: Statistics operations
:vartype statistics: azure.mgmt.automation.operations.StatisticsOperations
:ivar usages: Usages operations
:vartype usages: azure.mgmt.automation.operations.UsagesOperations
:ivar certificate: Certificate operations
:vartype certificate: azure.mgmt.automation.operations.CertificateOperations
:ivar connection: Connection operations
:vartype connection: azure.mgmt.automation.operations.ConnectionOperations
:ivar connection_type: ConnectionType operations
:vartype connection_type: azure.mgmt.automation.operations.ConnectionTypeOperations
:ivar credential: Credential operations
:vartype credential: azure.mgmt.automation.operations.CredentialOperations
:ivar dsc_compilation_job: DscCompilationJob operations
:vartype dsc_compilation_job: azure.mgmt.automation.operations.DscCompilationJobOperations
:ivar dsc_configuration: DscConfiguration operations
:vartype dsc_configuration: azure.mgmt.automation.operations.DscConfigurationOperations
:ivar agent_registration_information: AgentRegistrationInformation operations
:vartype agent_registration_information: azure.mgmt.automation.operations.AgentRegistrationInformationOperations
:ivar dsc_node: DscNode operations
:vartype dsc_node: azure.mgmt.automation.operations.DscNodeOperations
:ivar node_reports: NodeReports operations
:vartype node_reports: azure.mgmt.automation.operations.NodeReportsOperations
:ivar dsc_node_configuration: DscNodeConfiguration operations
:vartype dsc_node_configuration: azure.mgmt.automation.operations.DscNodeConfigurationOperations
:ivar hybrid_runbook_worker_group: HybridRunbookWorkerGroup operations
:vartype hybrid_runbook_worker_group: azure.mgmt.automation.operations.HybridRunbookWorkerGroupOperations
:ivar job: Job operations
:vartype job: azure.mgmt.automation.operations.JobOperations
:ivar job_stream: JobStream operations
:vartype job_stream: azure.mgmt.automation.operations.JobStreamOperations
:ivar job_schedule: JobSchedule operations
:vartype job_schedule: azure.mgmt.automation.operations.JobScheduleOperations
:ivar activity: Activity operations
:vartype activity: azure.mgmt.automation.operations.ActivityOperations
:ivar module: Module operations
:vartype module: azure.mgmt.automation.operations.ModuleOperations
:ivar object_data_types: ObjectDataTypes operations
:vartype object_data_types: azure.mgmt.automation.operations.ObjectDataTypesOperations
:ivar fields: Fields operations
:vartype fields: azure.mgmt.automation.operations.FieldsOperations
:ivar runbook_draft: RunbookDraft operations
:vartype runbook_draft: azure.mgmt.automation.operations.RunbookDraftOperations
:ivar runbook: Runbook operations
:vartype runbook: azure.mgmt.automation.operations.RunbookOperations
:ivar test_job_streams: TestJobStreams operations
:vartype test_job_streams: azure.mgmt.automation.operations.TestJobStreamsOperations
:ivar test_jobs: TestJobs operations
:vartype test_jobs: azure.mgmt.automation.operations.TestJobsOperations
:ivar schedule: Schedule operations
:vartype schedule: azure.mgmt.automation.operations.ScheduleOperations
:ivar variable: Variable operations
:vartype variable: azure.mgmt.automation.operations.VariableOperations
:ivar webhook: Webhook operations
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
:ivar software_update_configurations: SoftwareUpdateConfigurations operations
:vartype software_update_configurations: azure.mgmt.automation.operations.SoftwareUpdateConfigurationsOperations
:ivar software_update_configuration_runs: SoftwareUpdateConfigurationRuns operations
:vartype software_update_configuration_runs: azure.mgmt.automation.operations.SoftwareUpdateConfigurationRunsOperations
:ivar software_update_configuration_machine_runs: SoftwareUpdateConfigurationMachineRuns operations
:vartype software_update_configuration_machine_runs: azure.mgmt.automation.operations.SoftwareUpdateConfigurationMachineRunsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Gets subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.
:type subscription_id: str
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param client_request_id: Identifies this specific client request.
:type client_request_id: str
:param automation_account_name: The name of the automation account.
:type automation_account_name: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, resource_group_name, automation_account_name, client_request_id=None, base_url=None):

self.config = AutomationClientConfiguration(credentials, subscription_id, resource_group_name, automation_account_name, client_request_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.automation_account = AutomationAccountOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.statistics = StatisticsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.certificate = CertificateOperations(
self._client, self.config, self._serialize, self._deserialize)
self.connection = ConnectionOperations(
self._client, self.config, self._serialize, self._deserialize)
self.connection_type = ConnectionTypeOperations(
self._client, self.config, self._serialize, self._deserialize)
self.credential = CredentialOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dsc_compilation_job = DscCompilationJobOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dsc_configuration = DscConfigurationOperations(
self._client, self.config, self._serialize, self._deserialize)
self.agent_registration_information = AgentRegistrationInformationOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dsc_node = DscNodeOperations(
self._client, self.config, self._serialize, self._deserialize)
self.node_reports = NodeReportsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.dsc_node_configuration = DscNodeConfigurationOperations(
self._client, self.config, self._serialize, self._deserialize)
self.hybrid_runbook_worker_group = HybridRunbookWorkerGroupOperations(
self._client, self.config, self._serialize, self._deserialize)
self.job = JobOperations(
self._client, self.config, self._serialize, self._deserialize)
self.job_stream = JobStreamOperations(
self._client, self.config, self._serialize, self._deserialize)
self.job_schedule = JobScheduleOperations(
self._client, self.config, self._serialize, self._deserialize)
self.activity = ActivityOperations(
self._client, self.config, self._serialize, self._deserialize)
self.module = ModuleOperations(
self._client, self.config, self._serialize, self._deserialize)
self.object_data_types = ObjectDataTypesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.fields = FieldsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.runbook_draft = RunbookDraftOperations(
self._client, self.config, self._serialize, self._deserialize)
self.runbook = RunbookOperations(
self._client, self.config, self._serialize, self._deserialize)
self.test_job_streams = TestJobStreamsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.test_jobs = TestJobsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.schedule = ScheduleOperations(
self._client, self.config, self._serialize, self._deserialize)
self.variable = VariableOperations(
self._client, self.config, self._serialize, self._deserialize)
self.webhook = WebhookOperations(
self._client, self.config, self._serialize, self._deserialize)
self.software_update_configurations = SoftwareUpdateConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.software_update_configuration_runs = SoftwareUpdateConfigurationRunsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.software_update_configuration_machine_runs = SoftwareUpdateConfigurationMachineRunsOperations(
self._client, self.config, self._serialize, self._deserialize)
Loading