Skip to content

Commit

Permalink
CodeGen from PR 23988 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c601b0dadea35f3195c28f546a74d5fa71cb072f into 5ae522bc106bf8609c6cb379e584aa3e0e2639f3
  • Loading branch information
SDKAuto committed Oct 27, 2023
1 parent 674d236 commit 9a4cbfc
Show file tree
Hide file tree
Showing 312 changed files with 10,224 additions and 2,831 deletions.
10 changes: 5 additions & 5 deletions sdk/automation/azure-mgmt-automation/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "23b62d4e4dab07dccda851cfe50f6c6afb705a3b",
"commit": "3cfebb686624358dc61a959a71a7d8f10de0c228",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.2.7",
"@autorest/modelerfour@4.24.3"
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
],
"autorest_command": "autorest specification/automation/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"autorest_command": "autorest specification/automation/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"readme": "specification/automation/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@
NodeReportsOperations,
ObjectDataTypesOperations,
Operations,
PackageOperations,
PackagesOperations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
Python2PackageOperations,
Python3PackageOperations,
RunbookDraftOperations,
RunbookOperations,
RuntimeEnvironmentsOperations,
ScheduleOperations,
SoftwareUpdateConfigurationMachineRunsOperations,
SoftwareUpdateConfigurationRunsOperations,
Expand All @@ -75,9 +78,15 @@ class AutomationClient(
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
"""Automation Client.
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.automation.operations.PrivateEndpointConnectionsOperations
:ivar node_count_information: NodeCountInformationOperations operations
:vartype node_count_information:
azure.mgmt.automation.operations.NodeCountInformationOperations
:ivar software_update_configurations: SoftwareUpdateConfigurationsOperations operations
:vartype software_update_configurations:
azure.mgmt.automation.operations.SoftwareUpdateConfigurationsOperations
:ivar deleted_automation_accounts: DeletedAutomationAccountsOperations operations
:vartype deleted_automation_accounts:
azure.mgmt.automation.operations.DeletedAutomationAccountsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources:
azure.mgmt.automation.operations.PrivateLinkResourcesOperations
Expand All @@ -88,24 +97,6 @@ class AutomationClient(
:vartype dsc_node: azure.mgmt.automation.operations.DscNodeOperations
:ivar node_reports: NodeReportsOperations operations
:vartype node_reports: azure.mgmt.automation.operations.NodeReportsOperations
:ivar dsc_compilation_job: DscCompilationJobOperations operations
:vartype dsc_compilation_job: azure.mgmt.automation.operations.DscCompilationJobOperations
:ivar dsc_compilation_job_stream: DscCompilationJobStreamOperations operations
:vartype dsc_compilation_job_stream:
azure.mgmt.automation.operations.DscCompilationJobStreamOperations
:ivar node_count_information: NodeCountInformationOperations operations
:vartype node_count_information:
azure.mgmt.automation.operations.NodeCountInformationOperations
:ivar watcher: WatcherOperations operations
:vartype watcher: azure.mgmt.automation.operations.WatcherOperations
:ivar software_update_configurations: SoftwareUpdateConfigurationsOperations operations
:vartype software_update_configurations:
azure.mgmt.automation.operations.SoftwareUpdateConfigurationsOperations
:ivar webhook: WebhookOperations operations
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
:ivar deleted_automation_accounts: DeletedAutomationAccountsOperations operations
:vartype deleted_automation_accounts:
azure.mgmt.automation.operations.DeletedAutomationAccountsOperations
:ivar automation_account: AutomationAccountOperations operations
:vartype automation_account: azure.mgmt.automation.operations.AutomationAccountOperations
:ivar statistics: StatisticsOperations operations
Expand All @@ -122,6 +113,11 @@ class AutomationClient(
:vartype connection_type: azure.mgmt.automation.operations.ConnectionTypeOperations
:ivar credential: CredentialOperations operations
:vartype credential: azure.mgmt.automation.operations.CredentialOperations
:ivar dsc_compilation_job: DscCompilationJobOperations operations
:vartype dsc_compilation_job: azure.mgmt.automation.operations.DscCompilationJobOperations
:ivar dsc_compilation_job_stream: DscCompilationJobStreamOperations operations
:vartype dsc_compilation_job_stream:
azure.mgmt.automation.operations.DscCompilationJobStreamOperations
:ivar dsc_configuration: DscConfigurationOperations operations
:vartype dsc_configuration: azure.mgmt.automation.operations.DscConfigurationOperations
:ivar dsc_node_configuration: DscNodeConfigurationOperations operations
Expand Down Expand Up @@ -151,6 +147,13 @@ class AutomationClient(
:vartype fields: azure.mgmt.automation.operations.FieldsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.automation.operations.Operations
:ivar package: PackageOperations operations
:vartype package: azure.mgmt.automation.operations.PackageOperations
:ivar packages: PackagesOperations operations
:vartype packages: azure.mgmt.automation.operations.PackagesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.automation.operations.PrivateEndpointConnectionsOperations
:ivar python2_package: Python2PackageOperations operations
:vartype python2_package: azure.mgmt.automation.operations.Python2PackageOperations
:ivar python3_package: Python3PackageOperations operations
Expand All @@ -163,6 +166,8 @@ class AutomationClient(
:vartype test_job_streams: azure.mgmt.automation.operations.TestJobStreamsOperations
:ivar test_job: TestJobOperations operations
:vartype test_job: azure.mgmt.automation.operations.TestJobOperations
:ivar runtime_environments: RuntimeEnvironmentsOperations operations
:vartype runtime_environments: azure.mgmt.automation.operations.RuntimeEnvironmentsOperations
:ivar schedule: ScheduleOperations operations
:vartype schedule: azure.mgmt.automation.operations.ScheduleOperations
:ivar software_update_configuration_machine_runs:
Expand All @@ -182,13 +187,20 @@ class AutomationClient(
azure.mgmt.automation.operations.SourceControlSyncJobStreamsOperations
:ivar variable: VariableOperations operations
:vartype variable: azure.mgmt.automation.operations.VariableOperations
:ivar watcher: WatcherOperations operations
:vartype watcher: azure.mgmt.automation.operations.WatcherOperations
:ivar webhook: WebhookOperations operations
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-05-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""
Expand All @@ -201,40 +213,29 @@ def __init__(
**kwargs: Any
) -> None:
self._config = AutomationClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

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._serialize.client_side_validation = False
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_resources = PrivateLinkResourcesOperations(
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_compilation_job = DscCompilationJobOperations(
self.node_count_information = NodeCountInformationOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.dsc_compilation_job_stream = DscCompilationJobStreamOperations(
self.software_update_configurations = SoftwareUpdateConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.node_count_information = NodeCountInformationOperations(
self.deleted_automation_accounts = DeletedAutomationAccountsOperations(
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.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.webhook = WebhookOperations(self._client, self._config, self._serialize, self._deserialize)
self.deleted_automation_accounts = DeletedAutomationAccountsOperations(
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.automation_account = AutomationAccountOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -245,6 +246,12 @@ def __init__(
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_compilation_job_stream = DscCompilationJobStreamOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.dsc_configuration = DscConfigurationOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -270,12 +277,20 @@ def __init__(
)
self.fields = FieldsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.package = PackageOperations(self._client, self._config, self._serialize, self._deserialize)
self.packages = PackagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.python2_package = Python2PackageOperations(self._client, self._config, self._serialize, self._deserialize)
self.python3_package = Python3PackageOperations(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_job = TestJobOperations(self._client, self._config, self._serialize, self._deserialize)
self.runtime_environments = RuntimeEnvironmentsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.schedule = ScheduleOperations(self._client, self._config, self._serialize, self._deserialize)
self.software_update_configuration_machine_runs = SoftwareUpdateConfigurationMachineRunsOperations(
self._client, self._config, self._serialize, self._deserialize
Expand All @@ -291,6 +306,8 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.variable = VariableOperations(self._client, self._config, self._serialize, self._deserialize)
self.watcher = WatcherOperations(self._client, self._config, self._serialize, self._deserialize)
self.webhook = WebhookOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down Expand Up @@ -321,5 +338,5 @@ def __enter__(self) -> "AutomationClient":
self._client.__enter__()
return self

def __exit__(self, *exc_details) -> None:
def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,23 @@ class AutomationClientConfiguration(Configuration): # pylint: disable=too-many-
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-05-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(AutomationClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-05-15-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")

self.credential = credential
self.subscription_id = subscription_id
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-automation/{}".format(VERSION))
self._configure(**kwargs)
Expand Down
Loading

0 comments on commit 9a4cbfc

Please sign in to comment.