Skip to content

Commit 6e11587

Browse files
author
SDKAuto
committed
CodeGen from PR 22948 in Azure/azure-rest-api-specs
Merge 6b923928dcf81d37ff31dd3e15621b8a5ae9355b into fce14bf881523f16b14d8ecf325e004465cdcf56
1 parent 6ccc3c9 commit 6e11587

File tree

74 files changed

+4798
-1606
lines changed

Some content is hidden

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

74 files changed

+4798
-1606
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "60be34ab72f1483aef8feede852bc9f2f1921897",
2+
"commit": "858f40b9507fccfedd68113878ebdb8e5f80927d",
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.4.3",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/webpubsub/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.1 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/webpubsub/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.4.3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/webpubsub/resource-manager/readme.md"
1111
}

sdk/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/__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/webpubsub/azure-mgmt-webpubsub/azure/mgmt/webpubsub/_configuration.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ class WebPubSubManagementClientConfiguration(Configuration): # pylint: disable=
3333
3434
:param credential: Credential needed for the client to connect to Azure. Required.
3535
:type credential: ~azure.core.credentials.TokenCredential
36-
:param subscription_id: Gets subscription Id which uniquely identify the Microsoft Azure
37-
subscription. The subscription ID forms part of the URI for every service call. Required.
36+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3837
:type subscription_id: str
39-
:keyword api_version: Api Version. Default value is "2022-08-01-preview". Note that overriding
38+
:keyword api_version: Api Version. Default value is "2023-03-01-preview". Note that overriding
4039
this default value may result in unsupported behavior.
4140
:paramtype api_version: str
4241
"""
4342

4443
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4544
super(WebPubSubManagementClientConfiguration, self).__init__(**kwargs)
46-
api_version = kwargs.pop("api_version", "2022-08-01-preview") # type: Literal["2022-08-01-preview"]
45+
api_version: Literal["2023-03-01-preview"] = kwargs.pop("api_version", "2023-03-01-preview")
4746

4847
if credential is None:
4948
raise ValueError("Parameter 'credential' must not be None.")
@@ -57,10 +56,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
5756
kwargs.setdefault("sdk_moniker", "mgmt-webpubsub/{}".format(VERSION))
5857
self._configure(**kwargs)
5958

60-
def _configure(
61-
self, **kwargs # type: Any
62-
):
63-
# type: (...) -> None
59+
def _configure(self, **kwargs: Any) -> None:
6460
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
6561
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
6662
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)

0 commit comments

Comments
 (0)