Skip to content

Commit 4289643

Browse files
author
SDKAuto
committed
CodeGen from PR 22092 in Azure/azure-rest-api-specs
Merge 534bd3bd229a507fb0474d8325f214588a4b05fa into 891dd18a70057c2fee388573117683e6d0081bda
1 parent 5e7c535 commit 4289643

File tree

142 files changed

+2516
-7295
lines changed

Some content is hidden

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

142 files changed

+2516
-7295
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": "5168bcee3d7668b3d3fc8690da9216fb8d43a1de",
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.2.16",
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.2.16 --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: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9+
import sys
910
from typing import Any, TYPE_CHECKING
1011

1112
from azure.core.configuration import Configuration
@@ -14,6 +15,11 @@
1415

1516
from ._version import VERSION
1617

18+
if sys.version_info >= (3, 8):
19+
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20+
else:
21+
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22+
1723
if TYPE_CHECKING:
1824
# pylint: disable=unused-import,ungrouped-imports
1925
from azure.core.credentials import TokenCredential
@@ -29,25 +35,28 @@ class StreamAnalyticsManagementClientConfiguration(Configuration): # pylint: di
2935
:type credential: ~azure.core.credentials.TokenCredential
3036
:param subscription_id: The ID of the target subscription. Required.
3137
:type subscription_id: str
38+
:keyword api_version: Api Version. Default value is "2020-03-01". Note that overriding this
39+
default value may result in unsupported behavior.
40+
:paramtype api_version: str
3241
"""
3342

3443
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3544
super(StreamAnalyticsManagementClientConfiguration, self).__init__(**kwargs)
45+
api_version: Literal["2020-03-01"] = kwargs.pop("api_version", "2020-03-01")
46+
3647
if credential is None:
3748
raise ValueError("Parameter 'credential' must not be None.")
3849
if subscription_id is None:
3950
raise ValueError("Parameter 'subscription_id' must not be None.")
4051

4152
self.credential = credential
4253
self.subscription_id = subscription_id
54+
self.api_version = api_version
4355
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4456
kwargs.setdefault("sdk_moniker", "mgmt-streamanalytics/{}".format(VERSION))
4557
self._configure(**kwargs)
4658

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

0 commit comments

Comments
 (0)