Skip to content

Commit

Permalink
Generated from 4c541a27bc3e3847150e1ce7be3e83cdea01491f
Browse files Browse the repository at this point in the history
Fix create SUC example and spelling mistake

Fix spelling mistake. Fix mistake in the example for creating a software
update configuration so that it now matches the schema and actual API.
  • Loading branch information
SDK Automation committed Oct 24, 2019
1 parent 3434e38 commit 693e122
Show file tree
Hide file tree
Showing 348 changed files with 12,062 additions and 15,667 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .automation_client import AutomationClient
from .version import VERSION
from ._configuration import AutomationClientConfiguration
from ._automation_client import AutomationClient
__all__ = ['AutomationClient', 'AutomationClientConfiguration']

__all__ = ['AutomationClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -11,84 +11,50 @@

from msrest.service_client import SDKClient
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.keys_operations import KeysOperations
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_configuration_operations import DscConfigurationOperations
from .operations.hybrid_runbook_worker_group_operations import HybridRunbookWorkerGroupOperations
from .operations.job_schedule_operations import JobScheduleOperations
from .operations.linked_workspace_operations import LinkedWorkspaceOperations
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.schedule_operations import ScheduleOperations
from .operations.variable_operations import VariableOperations
from .operations.webhook_operations import WebhookOperations
from .operations.watcher_operations import WatcherOperations
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 .operations.source_control_operations import SourceControlOperations
from .operations.source_control_sync_job_operations import SourceControlSyncJobOperations
from .operations.source_control_sync_job_streams_operations import SourceControlSyncJobStreamsOperations
from .operations.job_operations import JobOperations
from .operations.job_stream_operations import JobStreamOperations
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_compilation_job_operations import DscCompilationJobOperations
from .operations.dsc_compilation_job_stream_operations import DscCompilationJobStreamOperations
from .operations.dsc_node_configuration_operations import DscNodeConfigurationOperations
from .operations.node_count_information_operations import NodeCountInformationOperations
from .operations.runbook_draft_operations import RunbookDraftOperations
from .operations.runbook_operations import RunbookOperations
from .operations.test_job_streams_operations import TestJobStreamsOperations
from .operations.test_job_operations import TestJobOperations
from .operations.python2_package_operations import Python2PackageOperations
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 str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, 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 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
from ._configuration import AutomationClientConfiguration
from .operations import AutomationAccountOperations
from .operations import Operations
from .operations import StatisticsOperations
from .operations import UsagesOperations
from .operations import KeysOperations
from .operations import CertificateOperations
from .operations import ConnectionOperations
from .operations import ConnectionTypeOperations
from .operations import CredentialOperations
from .operations import DscConfigurationOperations
from .operations import HybridRunbookWorkerGroupOperations
from .operations import JobScheduleOperations
from .operations import LinkedWorkspaceOperations
from .operations import ActivityOperations
from .operations import ModuleOperations
from .operations import ObjectDataTypesOperations
from .operations import FieldsOperations
from .operations import ScheduleOperations
from .operations import VariableOperations
from .operations import WebhookOperations
from .operations import WatcherOperations
from .operations import SourceControlOperations
from .operations import SourceControlSyncJobOperations
from .operations import SourceControlSyncJobStreamsOperations
from .operations import JobOperations
from .operations import JobStreamOperations
from .operations import AgentRegistrationInformationOperations
from .operations import DscNodeOperations
from .operations import NodeReportsOperations
from .operations import DscCompilationJobOperations
from .operations import DscCompilationJobStreamOperations
from .operations import DscNodeConfigurationOperations
from .operations import NodeCountInformationOperations
from .operations import RunbookDraftOperations
from .operations import RunbookOperations
from .operations import TestJobStreamsOperations
from .operations import TestJobOperations
from .operations import Python2PackageOperations
from .operations import SoftwareUpdateConfigurationsOperations
from .operations import SoftwareUpdateConfigurationRunsOperations
from .operations import SoftwareUpdateConfigurationMachineRunsOperations
from . import models


class AutomationClient(SDKClient):
Expand Down Expand Up @@ -139,12 +105,6 @@ class AutomationClient(SDKClient):
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
:ivar watcher: Watcher operations
:vartype watcher: azure.mgmt.automation.operations.WatcherOperations
: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
:ivar source_control: SourceControl operations
:vartype source_control: azure.mgmt.automation.operations.SourceControlOperations
:ivar source_control_sync_job: SourceControlSyncJob operations
Expand Down Expand Up @@ -179,6 +139,12 @@ class AutomationClient(SDKClient):
:vartype test_job: azure.mgmt.automation.operations.TestJobOperations
:ivar python2_package: Python2Package operations
:vartype python2_package: azure.mgmt.automation.operations.Python2PackageOperations
: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
Expand Down Expand Up @@ -242,12 +208,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.watcher = WatcherOperations(
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)
self.source_control = SourceControlOperations(
self._client, self.config, self._serialize, self._deserialize)
self.source_control_sync_job = SourceControlSyncJobOperations(
Expand Down Expand Up @@ -282,3 +242,9 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.python2_package = Python2PackageOperations(
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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 msrestazure import AzureConfiguration

from .version import VERSION


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 str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, 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 not base_url:
base_url = 'https://management.azure.com'

super(AutomationClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

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
Loading

0 comments on commit 693e122

Please sign in to comment.