Skip to content

Commit ce949c4

Browse files
author
SDKAuto
committed
CodeGen from PR 23988 in Azure/azure-rest-api-specs
Merge 390ef67191e3fb670b7413b47a6492223f9ecf53 into 4c38cb9966cd6afbb03c7e9b14997720a728baee
1 parent 377e9d2 commit ce949c4

File tree

312 files changed

+10224
-2831
lines changed

Some content is hidden

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

312 files changed

+10224
-2831
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "23b62d4e4dab07dccda851cfe50f6c6afb705a3b",
2+
"commit": "7ee4bea71ce1eb4fcfac27fbbc92d5aba67d50b9",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.9.7",
55
"use": [
6-
"@autorest/python@6.2.7",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.7.1",
7+
"@autorest/modelerfour@4.26.2"
88
],
9-
"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",
9+
"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",
1010
"readme": "specification/automation/resource-manager/readme.md"
1111
}

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

Lines changed: 58 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@
4343
NodeReportsOperations,
4444
ObjectDataTypesOperations,
4545
Operations,
46+
PackageOperations,
47+
PackagesOperations,
4648
PrivateEndpointConnectionsOperations,
4749
PrivateLinkResourcesOperations,
4850
Python2PackageOperations,
4951
Python3PackageOperations,
5052
RunbookDraftOperations,
5153
RunbookOperations,
54+
RuntimeEnvironmentsOperations,
5255
ScheduleOperations,
5356
SoftwareUpdateConfigurationMachineRunsOperations,
5457
SoftwareUpdateConfigurationRunsOperations,
@@ -75,9 +78,15 @@ class AutomationClient(
7578
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
7679
"""Automation Client.
7780
78-
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
79-
:vartype private_endpoint_connections:
80-
azure.mgmt.automation.operations.PrivateEndpointConnectionsOperations
81+
:ivar node_count_information: NodeCountInformationOperations operations
82+
:vartype node_count_information:
83+
azure.mgmt.automation.operations.NodeCountInformationOperations
84+
:ivar software_update_configurations: SoftwareUpdateConfigurationsOperations operations
85+
:vartype software_update_configurations:
86+
azure.mgmt.automation.operations.SoftwareUpdateConfigurationsOperations
87+
:ivar deleted_automation_accounts: DeletedAutomationAccountsOperations operations
88+
:vartype deleted_automation_accounts:
89+
azure.mgmt.automation.operations.DeletedAutomationAccountsOperations
8190
:ivar private_link_resources: PrivateLinkResourcesOperations operations
8291
:vartype private_link_resources:
8392
azure.mgmt.automation.operations.PrivateLinkResourcesOperations
@@ -88,24 +97,6 @@ class AutomationClient(
8897
:vartype dsc_node: azure.mgmt.automation.operations.DscNodeOperations
8998
:ivar node_reports: NodeReportsOperations operations
9099
:vartype node_reports: azure.mgmt.automation.operations.NodeReportsOperations
91-
:ivar dsc_compilation_job: DscCompilationJobOperations operations
92-
:vartype dsc_compilation_job: azure.mgmt.automation.operations.DscCompilationJobOperations
93-
:ivar dsc_compilation_job_stream: DscCompilationJobStreamOperations operations
94-
:vartype dsc_compilation_job_stream:
95-
azure.mgmt.automation.operations.DscCompilationJobStreamOperations
96-
:ivar node_count_information: NodeCountInformationOperations operations
97-
:vartype node_count_information:
98-
azure.mgmt.automation.operations.NodeCountInformationOperations
99-
:ivar watcher: WatcherOperations operations
100-
:vartype watcher: azure.mgmt.automation.operations.WatcherOperations
101-
:ivar software_update_configurations: SoftwareUpdateConfigurationsOperations operations
102-
:vartype software_update_configurations:
103-
azure.mgmt.automation.operations.SoftwareUpdateConfigurationsOperations
104-
:ivar webhook: WebhookOperations operations
105-
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
106-
:ivar deleted_automation_accounts: DeletedAutomationAccountsOperations operations
107-
:vartype deleted_automation_accounts:
108-
azure.mgmt.automation.operations.DeletedAutomationAccountsOperations
109100
:ivar automation_account: AutomationAccountOperations operations
110101
:vartype automation_account: azure.mgmt.automation.operations.AutomationAccountOperations
111102
:ivar statistics: StatisticsOperations operations
@@ -122,6 +113,11 @@ class AutomationClient(
122113
:vartype connection_type: azure.mgmt.automation.operations.ConnectionTypeOperations
123114
:ivar credential: CredentialOperations operations
124115
:vartype credential: azure.mgmt.automation.operations.CredentialOperations
116+
:ivar dsc_compilation_job: DscCompilationJobOperations operations
117+
:vartype dsc_compilation_job: azure.mgmt.automation.operations.DscCompilationJobOperations
118+
:ivar dsc_compilation_job_stream: DscCompilationJobStreamOperations operations
119+
:vartype dsc_compilation_job_stream:
120+
azure.mgmt.automation.operations.DscCompilationJobStreamOperations
125121
:ivar dsc_configuration: DscConfigurationOperations operations
126122
:vartype dsc_configuration: azure.mgmt.automation.operations.DscConfigurationOperations
127123
:ivar dsc_node_configuration: DscNodeConfigurationOperations operations
@@ -151,6 +147,13 @@ class AutomationClient(
151147
:vartype fields: azure.mgmt.automation.operations.FieldsOperations
152148
:ivar operations: Operations operations
153149
:vartype operations: azure.mgmt.automation.operations.Operations
150+
:ivar package: PackageOperations operations
151+
:vartype package: azure.mgmt.automation.operations.PackageOperations
152+
:ivar packages: PackagesOperations operations
153+
:vartype packages: azure.mgmt.automation.operations.PackagesOperations
154+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
155+
:vartype private_endpoint_connections:
156+
azure.mgmt.automation.operations.PrivateEndpointConnectionsOperations
154157
:ivar python2_package: Python2PackageOperations operations
155158
:vartype python2_package: azure.mgmt.automation.operations.Python2PackageOperations
156159
:ivar python3_package: Python3PackageOperations operations
@@ -163,6 +166,8 @@ class AutomationClient(
163166
:vartype test_job_streams: azure.mgmt.automation.operations.TestJobStreamsOperations
164167
:ivar test_job: TestJobOperations operations
165168
:vartype test_job: azure.mgmt.automation.operations.TestJobOperations
169+
:ivar runtime_environments: RuntimeEnvironmentsOperations operations
170+
:vartype runtime_environments: azure.mgmt.automation.operations.RuntimeEnvironmentsOperations
166171
:ivar schedule: ScheduleOperations operations
167172
:vartype schedule: azure.mgmt.automation.operations.ScheduleOperations
168173
:ivar software_update_configuration_machine_runs:
@@ -182,13 +187,20 @@ class AutomationClient(
182187
azure.mgmt.automation.operations.SourceControlSyncJobStreamsOperations
183188
:ivar variable: VariableOperations operations
184189
:vartype variable: azure.mgmt.automation.operations.VariableOperations
190+
:ivar watcher: WatcherOperations operations
191+
:vartype watcher: azure.mgmt.automation.operations.WatcherOperations
192+
:ivar webhook: WebhookOperations operations
193+
:vartype webhook: azure.mgmt.automation.operations.WebhookOperations
185194
:param credential: Credential needed for the client to connect to Azure. Required.
186195
:type credential: ~azure.core.credentials.TokenCredential
187196
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
188197
subscription. The subscription ID forms part of the URI for every service call. Required.
189198
:type subscription_id: str
190199
:param base_url: Service URL. Default value is "https://management.azure.com".
191200
:type base_url: str
201+
:keyword api_version: Api Version. Default value is "2023-05-15-preview". Note that overriding
202+
this default value may result in unsupported behavior.
203+
:paramtype api_version: str
192204
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
193205
Retry-After header is present.
194206
"""
@@ -201,40 +213,29 @@ def __init__(
201213
**kwargs: Any
202214
) -> None:
203215
self._config = AutomationClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
204-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
216+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
205217

206218
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
207219
self._serialize = Serializer(client_models)
208220
self._deserialize = Deserializer(client_models)
209221
self._serialize.client_side_validation = False
210-
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
211-
self._client, self._config, self._serialize, self._deserialize
212-
)
213-
self.private_link_resources = PrivateLinkResourcesOperations(
214-
self._client, self._config, self._serialize, self._deserialize
215-
)
216-
self.agent_registration_information = AgentRegistrationInformationOperations(
217-
self._client, self._config, self._serialize, self._deserialize
218-
)
219-
self.dsc_node = DscNodeOperations(self._client, self._config, self._serialize, self._deserialize)
220-
self.node_reports = NodeReportsOperations(self._client, self._config, self._serialize, self._deserialize)
221-
self.dsc_compilation_job = DscCompilationJobOperations(
222+
self.node_count_information = NodeCountInformationOperations(
222223
self._client, self._config, self._serialize, self._deserialize
223224
)
224-
self.dsc_compilation_job_stream = DscCompilationJobStreamOperations(
225+
self.software_update_configurations = SoftwareUpdateConfigurationsOperations(
225226
self._client, self._config, self._serialize, self._deserialize
226227
)
227-
self.node_count_information = NodeCountInformationOperations(
228+
self.deleted_automation_accounts = DeletedAutomationAccountsOperations(
228229
self._client, self._config, self._serialize, self._deserialize
229230
)
230-
self.watcher = WatcherOperations(self._client, self._config, self._serialize, self._deserialize)
231-
self.software_update_configurations = SoftwareUpdateConfigurationsOperations(
231+
self.private_link_resources = PrivateLinkResourcesOperations(
232232
self._client, self._config, self._serialize, self._deserialize
233233
)
234-
self.webhook = WebhookOperations(self._client, self._config, self._serialize, self._deserialize)
235-
self.deleted_automation_accounts = DeletedAutomationAccountsOperations(
234+
self.agent_registration_information = AgentRegistrationInformationOperations(
236235
self._client, self._config, self._serialize, self._deserialize
237236
)
237+
self.dsc_node = DscNodeOperations(self._client, self._config, self._serialize, self._deserialize)
238+
self.node_reports = NodeReportsOperations(self._client, self._config, self._serialize, self._deserialize)
238239
self.automation_account = AutomationAccountOperations(
239240
self._client, self._config, self._serialize, self._deserialize
240241
)
@@ -245,6 +246,12 @@ def __init__(
245246
self.connection = ConnectionOperations(self._client, self._config, self._serialize, self._deserialize)
246247
self.connection_type = ConnectionTypeOperations(self._client, self._config, self._serialize, self._deserialize)
247248
self.credential = CredentialOperations(self._client, self._config, self._serialize, self._deserialize)
249+
self.dsc_compilation_job = DscCompilationJobOperations(
250+
self._client, self._config, self._serialize, self._deserialize
251+
)
252+
self.dsc_compilation_job_stream = DscCompilationJobStreamOperations(
253+
self._client, self._config, self._serialize, self._deserialize
254+
)
248255
self.dsc_configuration = DscConfigurationOperations(
249256
self._client, self._config, self._serialize, self._deserialize
250257
)
@@ -270,12 +277,20 @@ def __init__(
270277
)
271278
self.fields = FieldsOperations(self._client, self._config, self._serialize, self._deserialize)
272279
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
280+
self.package = PackageOperations(self._client, self._config, self._serialize, self._deserialize)
281+
self.packages = PackagesOperations(self._client, self._config, self._serialize, self._deserialize)
282+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
283+
self._client, self._config, self._serialize, self._deserialize
284+
)
273285
self.python2_package = Python2PackageOperations(self._client, self._config, self._serialize, self._deserialize)
274286
self.python3_package = Python3PackageOperations(self._client, self._config, self._serialize, self._deserialize)
275287
self.runbook_draft = RunbookDraftOperations(self._client, self._config, self._serialize, self._deserialize)
276288
self.runbook = RunbookOperations(self._client, self._config, self._serialize, self._deserialize)
277289
self.test_job_streams = TestJobStreamsOperations(self._client, self._config, self._serialize, self._deserialize)
278290
self.test_job = TestJobOperations(self._client, self._config, self._serialize, self._deserialize)
291+
self.runtime_environments = RuntimeEnvironmentsOperations(
292+
self._client, self._config, self._serialize, self._deserialize
293+
)
279294
self.schedule = ScheduleOperations(self._client, self._config, self._serialize, self._deserialize)
280295
self.software_update_configuration_machine_runs = SoftwareUpdateConfigurationMachineRunsOperations(
281296
self._client, self._config, self._serialize, self._deserialize
@@ -291,6 +306,8 @@ def __init__(
291306
self._client, self._config, self._serialize, self._deserialize
292307
)
293308
self.variable = VariableOperations(self._client, self._config, self._serialize, self._deserialize)
309+
self.watcher = WatcherOperations(self._client, self._config, self._serialize, self._deserialize)
310+
self.webhook = WebhookOperations(self._client, self._config, self._serialize, self._deserialize)
294311

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

324-
def __exit__(self, *exc_details) -> None:
341+
def __exit__(self, *exc_details: Any) -> None:
325342
self._client.__exit__(*exc_details)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,23 @@ class AutomationClientConfiguration(Configuration): # pylint: disable=too-many-
3030
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
3131
subscription. The subscription ID forms part of the URI for every service call. Required.
3232
:type subscription_id: str
33+
:keyword api_version: Api Version. Default value is "2023-05-15-preview". Note that overriding
34+
this default value may result in unsupported behavior.
35+
:paramtype api_version: str
3336
"""
3437

3538
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3639
super(AutomationClientConfiguration, self).__init__(**kwargs)
40+
api_version: str = kwargs.pop("api_version", "2023-05-15-preview")
41+
3742
if credential is None:
3843
raise ValueError("Parameter 'credential' must not be None.")
3944
if subscription_id is None:
4045
raise ValueError("Parameter 'subscription_id' must not be None.")
4146

4247
self.credential = credential
4348
self.subscription_id = subscription_id
49+
self.api_version = api_version
4450
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4551
kwargs.setdefault("sdk_moniker", "mgmt-automation/{}".format(VERSION))
4652
self._configure(**kwargs)

0 commit comments

Comments
 (0)