Skip to content

Commit b517ecb

Browse files
author
SDKAuto
committed
CodeGen from PR 26057 in Azure/azure-rest-api-specs
Merge c9fa42eaa90531126e451c9b72dea74dd20c6aa2 into 4c38cb9966cd6afbb03c7e9b14997720a728baee
1 parent 96098b8 commit b517ecb

File tree

301 files changed

+5927
-2516
lines changed

Some content is hidden

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

301 files changed

+5927
-2516
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": "587d1b203f9b9f0a2729e846f37ad7883971ad49",
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: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
NodeReportsOperations,
4444
ObjectDataTypesOperations,
4545
Operations,
46+
PowerShell72ModuleOperations,
4647
PrivateEndpointConnectionsOperations,
4748
PrivateLinkResourcesOperations,
4849
Python2PackageOperations,
@@ -149,6 +150,8 @@ class AutomationClient(
149150
:vartype object_data_types: azure.mgmt.automation.operations.ObjectDataTypesOperations
150151
:ivar fields: FieldsOperations operations
151152
:vartype fields: azure.mgmt.automation.operations.FieldsOperations
153+
:ivar power_shell72_module: PowerShell72ModuleOperations operations
154+
:vartype power_shell72_module: azure.mgmt.automation.operations.PowerShell72ModuleOperations
152155
:ivar operations: Operations operations
153156
:vartype operations: azure.mgmt.automation.operations.Operations
154157
:ivar python2_package: Python2PackageOperations operations
@@ -187,6 +190,8 @@ class AutomationClient(
187190
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
188191
subscription. The subscription ID forms part of the URI for every service call. Required.
189192
:type subscription_id: str
193+
:param module_name: The name of module. Required.
194+
:type module_name: str
190195
:param base_url: Service URL. Default value is "https://management.azure.com".
191196
:type base_url: str
192197
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -197,11 +202,14 @@ def __init__(
197202
self,
198203
credential: "TokenCredential",
199204
subscription_id: str,
205+
module_name: str,
200206
base_url: str = "https://management.azure.com",
201207
**kwargs: Any
202208
) -> None:
203-
self._config = AutomationClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
204-
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
209+
self._config = AutomationClientConfiguration(
210+
credential=credential, subscription_id=subscription_id, module_name=module_name, **kwargs
211+
)
212+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
205213

206214
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
207215
self._serialize = Serializer(client_models)
@@ -269,6 +277,9 @@ def __init__(
269277
self._client, self._config, self._serialize, self._deserialize
270278
)
271279
self.fields = FieldsOperations(self._client, self._config, self._serialize, self._deserialize)
280+
self.power_shell72_module = PowerShell72ModuleOperations(
281+
self._client, self._config, self._serialize, self._deserialize
282+
)
272283
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
273284
self.python2_package = Python2PackageOperations(self._client, self._config, self._serialize, self._deserialize)
274285
self.python3_package = Python3PackageOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -321,5 +332,5 @@ def __enter__(self) -> "AutomationClient":
321332
self._client.__enter__()
322333
return self
323334

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

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,22 @@ 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+
:param module_name: The name of module. Required.
34+
:type module_name: str
3335
"""
3436

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37+
def __init__(self, credential: "TokenCredential", subscription_id: str, module_name: str, **kwargs: Any) -> None:
3638
super(AutomationClientConfiguration, self).__init__(**kwargs)
3739
if credential is None:
3840
raise ValueError("Parameter 'credential' must not be None.")
3941
if subscription_id is None:
4042
raise ValueError("Parameter 'subscription_id' must not be None.")
43+
if module_name is None:
44+
raise ValueError("Parameter 'module_name' must not be None.")
4145

4246
self.credential = credential
4347
self.subscription_id = subscription_id
48+
self.module_name = module_name
4449
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4550
kwargs.setdefault("sdk_moniker", "mgmt-automation/{}".format(VERSION))
4651
self._configure(**kwargs)

0 commit comments

Comments
 (0)