-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
f262d80
commit 1e458da
Showing
173 changed files
with
16,513 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include *.rst | ||
include azure_bdist_wheel.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
258
azure-mgmt-automation/azure/mgmt/automation/automation_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Oops, something went wrong.