Skip to content

Commit 06d8978

Browse files
author
SDKAuto
committed
CodeGen from PR 19771 in Azure/azure-rest-api-specs
Merge 5e492b974bf1381301cf60a67f300b11046e8db0 into 38ef3fb4703541a57df026311a603b52d859b1ab
1 parent a0ff9ab commit 06d8978

File tree

115 files changed

+22115
-16545
lines changed

Some content is hidden

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

115 files changed

+22115
-16545
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.7.2",
2+
"autorest": "3.8.4",
33
"use": [
4-
"@autorest/python@5.16.0",
5-
"@autorest/modelerfour@4.19.3"
4+
"@autorest/python@6.0.1",
5+
"@autorest/modelerfour@4.23.5"
66
],
7-
"commit": "fc2245b8f0fe6f17628e3b5a306b4b150c73cff0",
7+
"commit": "0d88dc64510973831736cccd56d863f346f05784",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/automation/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"autorest_command": "autorest specification/automation/resource-manager/readme.md --models-mode=msrest --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.0.1 --use=@autorest/modelerfour@4.23.5 --version=3.8.4 --version-tolerant=False",
1010
"readme": "specification/automation/resource-manager/readme.md"
1111
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
except ImportError:
1818
_patch_all = []
1919
from ._patch import patch_sdk as _patch_sdk
20-
__all__ = ['AutomationClient']
20+
21+
__all__ = ["AutomationClient"]
2122
__all__.extend([p for p in _patch_all if p not in __all__])
2223

2324
_patch_sdk()

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

Lines changed: 138 additions & 136 deletions
Large diffs are not rendered by default.

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

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,14 @@ class AutomationClientConfiguration(Configuration): # pylint: disable=too-many-
2525
Note that all parameters used to create this instance are saved as instance
2626
attributes.
2727
28-
:param credential: Credential needed for the client to connect to Azure.
28+
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
31-
subscription. The subscription ID forms part of the URI for every service call.
31+
subscription. The subscription ID forms part of the URI for every service call. Required.
3232
:type subscription_id: str
3333
"""
3434

35-
def __init__(
36-
self,
37-
credential: "TokenCredential",
38-
subscription_id: str,
39-
**kwargs: Any
40-
) -> None:
35+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4136
super(AutomationClientConfiguration, self).__init__(**kwargs)
4237
if credential is None:
4338
raise ValueError("Parameter 'credential' must not be None.")
@@ -46,23 +41,24 @@ def __init__(
4641

4742
self.credential = credential
4843
self.subscription_id = subscription_id
49-
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
50-
kwargs.setdefault('sdk_moniker', 'mgmt-automation/{}'.format(VERSION))
44+
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
45+
kwargs.setdefault("sdk_moniker", "mgmt-automation/{}".format(VERSION))
5146
self._configure(**kwargs)
5247

5348
def _configure(
54-
self,
55-
**kwargs # type: Any
49+
self, **kwargs # type: Any
5650
):
5751
# type: (...) -> None
58-
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
59-
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
60-
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
61-
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
62-
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
63-
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
64-
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
65-
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
66-
self.authentication_policy = kwargs.get('authentication_policy')
52+
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
53+
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
54+
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
55+
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
56+
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
57+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
58+
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
59+
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
60+
self.authentication_policy = kwargs.get("authentication_policy")
6761
if self.credential and not self.authentication_policy:
68-
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
62+
self.authentication_policy = ARMChallengeAuthenticationPolicy(
63+
self.credential, *self.credential_scopes, **kwargs
64+
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
1212

13+
1314
def patch_sdk():
1415
"""Do not remove from this file.
1516

0 commit comments

Comments
 (0)