Skip to content

Commit d0368e8

Browse files
author
SDKAuto
committed
CodeGen from PR 24260 in Azure/azure-rest-api-specs
Merge 12598e8fb24f84e23edb7d7c1e228e584b4b2c0a into 1842aeb0932153d455bf40e02be7b9e83013dfbc
1 parent b002b6e commit d0368e8

File tree

144 files changed

+2649
-7659
lines changed

Some content is hidden

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

144 files changed

+2649
-7659
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "a2da92ad78961529a087f9d0e65394174ac50794",
2+
"commit": "75ee6087ec36c709122d00c380df49fc515000c3",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.1",
6+
"@autorest/python@6.5.0",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/streamanalytics/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 --tag=package-2021-10-preview --use=@autorest/python@6.2.1 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/streamanalytics/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.5.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/streamanalytics/resource-manager/readme.md"
1111
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
try:
1515
from ._patch import __all__ as _patch_all
16-
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
16+
from ._patch import * # pylint: disable=unused-wildcard-import
1717
except ImportError:
1818
_patch_all = []
1919
from ._patch import patch_sdk as _patch_sdk

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,28 @@ class StreamAnalyticsManagementClientConfiguration(Configuration): # pylint: di
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The ID of the target subscription. Required.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2020-03-01". Note that overriding this
33+
default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3538
super(StreamAnalyticsManagementClientConfiguration, self).__init__(**kwargs)
39+
api_version: str = kwargs.pop("api_version", "2020-03-01")
40+
3641
if credential is None:
3742
raise ValueError("Parameter 'credential' must not be None.")
3843
if subscription_id is None:
3944
raise ValueError("Parameter 'subscription_id' must not be None.")
4045

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

47-
def _configure(
48-
self, **kwargs # type: Any
49-
):
50-
# type: (...) -> None
53+
def _configure(self, **kwargs: Any) -> None:
5154
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
5255
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
5356
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)

0 commit comments

Comments
 (0)