Skip to content

Commit 17b3afa

Browse files
author
SDKAuto
committed
CodeGen from PR 31168 in Azure/azure-rest-api-specs
Merge 2f7332a7a9b9d1da1ee66ac35231359b792b3dab into 552b4dd311f90f4a7b2f7adf45461d7a8774a1cc
1 parent 1109616 commit 17b3afa

File tree

398 files changed

+8097
-3766
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+8097
-3766
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "690a7656d65a03b134fa44fc7bb8013dc18a15b5",
2+
"commit": "ce415ddc79aa454faab934c23e7ccef6bddfe3f4",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.26.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/automation/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2022-08-08 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/automation/resource-manager/readme.md --generate-sample=True --generate-test=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.26.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/automation/resource-manager/readme.md"
1111
}

sdk/automation/azure-mgmt-automation/azure/mgmt/automation/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._automation_client import AutomationClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._automation_client import AutomationClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"AutomationClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/automation/azure-mgmt-automation/azure/mgmt/automation/_automation_client.py

Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
ConnectionTypeOperations,
2929
CredentialOperations,
3030
DeletedAutomationAccountsOperations,
31-
DscCompilationJobOperations,
32-
DscCompilationJobStreamOperations,
3331
DscConfigurationOperations,
3432
DscNodeConfigurationOperations,
3533
DscNodeOperations,
@@ -46,12 +44,14 @@
4644
NodeReportsOperations,
4745
ObjectDataTypesOperations,
4846
Operations,
47+
PackageOperations,
4948
PrivateEndpointConnectionsOperations,
5049
PrivateLinkResourcesOperations,
5150
Python2PackageOperations,
5251
Python3PackageOperations,
5352
RunbookDraftOperations,
5453
RunbookOperations,
54+
RuntimeEnvironmentsOperations,
5555
ScheduleOperations,
5656
SoftwareUpdateConfigurationMachineRunsOperations,
5757
SoftwareUpdateConfigurationRunsOperations,
@@ -69,18 +69,21 @@
6969
)
7070

7171
if TYPE_CHECKING:
72-
# pylint: disable=unused-import,ungrouped-imports
7372
from azure.core.credentials import TokenCredential
7473

7574

76-
class AutomationClient(
77-
AutomationClientOperationsMixin
78-
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
75+
class AutomationClient(AutomationClientOperationsMixin): # pylint: disable=too-many-instance-attributes
7976
"""Automation Client.
8077
81-
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
82-
:vartype private_endpoint_connections:
83-
azure.mgmt.automation.operations.PrivateEndpointConnectionsOperations
78+
:ivar node_count_information: NodeCountInformationOperations operations
79+
:vartype node_count_information:
80+
azure.mgmt.automation.operations.NodeCountInformationOperations
81+
:ivar software_update_configurations: SoftwareUpdateConfigurationsOperations operations
82+
:vartype software_update_configurations:
83+
azure.mgmt.automation.operations.SoftwareUpdateConfigurationsOperations
84+
:ivar deleted_automation_accounts: DeletedAutomationAccountsOperations operations
85+
:vartype deleted_automation_accounts:
86+
azure.mgmt.automation.operations.DeletedAutomationAccountsOperations
8487
:ivar private_link_resources: PrivateLinkResourcesOperations operations
8588
:vartype private_link_resources:
8689
azure.mgmt.automation.operations.PrivateLinkResourcesOperations
@@ -91,24 +94,6 @@ class AutomationClient(
9194
:vartype dsc_node: azure.mgmt.automation.operations.DscNodeOperations
9295
:ivar node_reports: NodeReportsOperations operations
9396
:vartype node_reports: azure.mgmt.automation.operations.NodeReportsOperations
94-
:ivar dsc_compilation_job: DscCompilationJobOperations operations
95-
:vartype dsc_compilation_job: azure.mgmt.automation.operations.DscCompilationJobOperations
96-
:ivar dsc_compilation_job_stream: DscCompilationJobStreamOperations operations
97-
:vartype dsc_compilation_job_stream:
98-
azure.mgmt.automation.operations.DscCompilationJobStreamOperations
99-
:ivar node_count_information: NodeCountInformationOperations operations
100-
:vartype node_count_information:
101-
azure.mgmt.automation.operations.NodeCountInformationOperations
102-
:ivar watcher: WatcherOperations operations
103-
:vartype watcher: azure.mgmt.automation.operations.WatcherOperations
104-
:ivar software_update_configurations: SoftwareUpdateConfigurationsOperations operations
105-
:vartype software_update_configurations:
106-
azure.mgmt.automation.operations.SoftwareUpdateConfigurationsOperations
107-
:ivar webhook: WebhookOperations operations
108-
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
109-
:ivar deleted_automation_accounts: DeletedAutomationAccountsOperations operations
110-
:vartype deleted_automation_accounts:
111-
azure.mgmt.automation.operations.DeletedAutomationAccountsOperations
11297
:ivar automation_account: AutomationAccountOperations operations
11398
:vartype automation_account: azure.mgmt.automation.operations.AutomationAccountOperations
11499
:ivar statistics: StatisticsOperations operations
@@ -154,6 +139,11 @@ class AutomationClient(
154139
:vartype fields: azure.mgmt.automation.operations.FieldsOperations
155140
:ivar operations: Operations operations
156141
:vartype operations: azure.mgmt.automation.operations.Operations
142+
:ivar package: PackageOperations operations
143+
:vartype package: azure.mgmt.automation.operations.PackageOperations
144+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
145+
:vartype private_endpoint_connections:
146+
azure.mgmt.automation.operations.PrivateEndpointConnectionsOperations
157147
:ivar python2_package: Python2PackageOperations operations
158148
:vartype python2_package: azure.mgmt.automation.operations.Python2PackageOperations
159149
:ivar python3_package: Python3PackageOperations operations
@@ -166,6 +156,8 @@ class AutomationClient(
166156
:vartype test_job_streams: azure.mgmt.automation.operations.TestJobStreamsOperations
167157
:ivar test_job: TestJobOperations operations
168158
:vartype test_job: azure.mgmt.automation.operations.TestJobOperations
159+
:ivar runtime_environments: RuntimeEnvironmentsOperations operations
160+
:vartype runtime_environments: azure.mgmt.automation.operations.RuntimeEnvironmentsOperations
169161
:ivar schedule: ScheduleOperations operations
170162
:vartype schedule: azure.mgmt.automation.operations.ScheduleOperations
171163
:ivar software_update_configuration_machine_runs:
@@ -185,13 +177,20 @@ class AutomationClient(
185177
azure.mgmt.automation.operations.SourceControlSyncJobStreamsOperations
186178
:ivar variable: VariableOperations operations
187179
:vartype variable: azure.mgmt.automation.operations.VariableOperations
180+
:ivar watcher: WatcherOperations operations
181+
:vartype watcher: azure.mgmt.automation.operations.WatcherOperations
182+
:ivar webhook: WebhookOperations operations
183+
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
188184
:param credential: Credential needed for the client to connect to Azure. Required.
189185
:type credential: ~azure.core.credentials.TokenCredential
190186
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
191187
subscription. The subscription ID forms part of the URI for every service call. Required.
192188
:type subscription_id: str
193189
:param base_url: Service URL. Default value is "https://management.azure.com".
194190
:type base_url: str
191+
:keyword api_version: Api Version. Default value is "2024-10-23". Note that overriding this
192+
default value may result in unsupported behavior.
193+
:paramtype api_version: str
195194
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
196195
Retry-After header is present.
197196
"""
@@ -228,34 +227,23 @@ def __init__(
228227
self._serialize = Serializer(client_models)
229228
self._deserialize = Deserializer(client_models)
230229
self._serialize.client_side_validation = False
231-
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
232-
self._client, self._config, self._serialize, self._deserialize
233-
)
234-
self.private_link_resources = PrivateLinkResourcesOperations(
235-
self._client, self._config, self._serialize, self._deserialize
236-
)
237-
self.agent_registration_information = AgentRegistrationInformationOperations(
238-
self._client, self._config, self._serialize, self._deserialize
239-
)
240-
self.dsc_node = DscNodeOperations(self._client, self._config, self._serialize, self._deserialize)
241-
self.node_reports = NodeReportsOperations(self._client, self._config, self._serialize, self._deserialize)
242-
self.dsc_compilation_job = DscCompilationJobOperations(
230+
self.node_count_information = NodeCountInformationOperations(
243231
self._client, self._config, self._serialize, self._deserialize
244232
)
245-
self.dsc_compilation_job_stream = DscCompilationJobStreamOperations(
233+
self.software_update_configurations = SoftwareUpdateConfigurationsOperations(
246234
self._client, self._config, self._serialize, self._deserialize
247235
)
248-
self.node_count_information = NodeCountInformationOperations(
236+
self.deleted_automation_accounts = DeletedAutomationAccountsOperations(
249237
self._client, self._config, self._serialize, self._deserialize
250238
)
251-
self.watcher = WatcherOperations(self._client, self._config, self._serialize, self._deserialize)
252-
self.software_update_configurations = SoftwareUpdateConfigurationsOperations(
239+
self.private_link_resources = PrivateLinkResourcesOperations(
253240
self._client, self._config, self._serialize, self._deserialize
254241
)
255-
self.webhook = WebhookOperations(self._client, self._config, self._serialize, self._deserialize)
256-
self.deleted_automation_accounts = DeletedAutomationAccountsOperations(
242+
self.agent_registration_information = AgentRegistrationInformationOperations(
257243
self._client, self._config, self._serialize, self._deserialize
258244
)
245+
self.dsc_node = DscNodeOperations(self._client, self._config, self._serialize, self._deserialize)
246+
self.node_reports = NodeReportsOperations(self._client, self._config, self._serialize, self._deserialize)
259247
self.automation_account = AutomationAccountOperations(
260248
self._client, self._config, self._serialize, self._deserialize
261249
)
@@ -291,12 +279,19 @@ def __init__(
291279
)
292280
self.fields = FieldsOperations(self._client, self._config, self._serialize, self._deserialize)
293281
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
282+
self.package = PackageOperations(self._client, self._config, self._serialize, self._deserialize)
283+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
284+
self._client, self._config, self._serialize, self._deserialize
285+
)
294286
self.python2_package = Python2PackageOperations(self._client, self._config, self._serialize, self._deserialize)
295287
self.python3_package = Python3PackageOperations(self._client, self._config, self._serialize, self._deserialize)
296288
self.runbook_draft = RunbookDraftOperations(self._client, self._config, self._serialize, self._deserialize)
297289
self.runbook = RunbookOperations(self._client, self._config, self._serialize, self._deserialize)
298290
self.test_job_streams = TestJobStreamsOperations(self._client, self._config, self._serialize, self._deserialize)
299291
self.test_job = TestJobOperations(self._client, self._config, self._serialize, self._deserialize)
292+
self.runtime_environments = RuntimeEnvironmentsOperations(
293+
self._client, self._config, self._serialize, self._deserialize
294+
)
300295
self.schedule = ScheduleOperations(self._client, self._config, self._serialize, self._deserialize)
301296
self.software_update_configuration_machine_runs = SoftwareUpdateConfigurationMachineRunsOperations(
302297
self._client, self._config, self._serialize, self._deserialize
@@ -312,6 +307,8 @@ def __init__(
312307
self._client, self._config, self._serialize, self._deserialize
313308
)
314309
self.variable = VariableOperations(self._client, self._config, self._serialize, self._deserialize)
310+
self.watcher = WatcherOperations(self._client, self._config, self._serialize, self._deserialize)
311+
self.webhook = WebhookOperations(self._client, self._config, self._serialize, self._deserialize)
315312

316313
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
317314
"""Runs the network request through the client's chained policies.

sdk/automation/azure-mgmt-automation/azure/mgmt/automation/_configuration.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class AutomationClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class AutomationClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for AutomationClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -29,16 +28,22 @@ class AutomationClientConfiguration: # pylint: disable=too-many-instance-attrib
2928
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
3029
subscription. The subscription ID forms part of the URI for every service call. Required.
3130
:type subscription_id: str
31+
:keyword api_version: Api Version. Default value is "2024-10-23". Note that overriding this
32+
default value may result in unsupported behavior.
33+
:paramtype api_version: str
3234
"""
3335

3436
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37+
api_version: str = kwargs.pop("api_version", "2024-10-23")
38+
3539
if credential is None:
3640
raise ValueError("Parameter 'credential' must not be None.")
3741
if subscription_id is None:
3842
raise ValueError("Parameter 'subscription_id' must not be None.")
3943

4044
self.credential = credential
4145
self.subscription_id = subscription_id
46+
self.api_version = api_version
4247
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4348
kwargs.setdefault("sdk_moniker", "mgmt-automation/{}".format(VERSION))
4449
self.polling_interval = kwargs.get("polling_interval", 30)

0 commit comments

Comments
 (0)