@@ -33,17 +33,16 @@ class WebPubSubManagementClientConfiguration(Configuration): # pylint: disable=
33
33
34
34
:param credential: Credential needed for the client to connect to Azure. Required.
35
35
: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.
38
37
: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
40
39
this default value may result in unsupported behavior.
41
40
:paramtype api_version: str
42
41
"""
43
42
44
43
def __init__ (self , credential : "TokenCredential" , subscription_id : str , ** kwargs : Any ) -> None :
45
44
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" )
47
46
48
47
if credential is None :
49
48
raise ValueError ("Parameter 'credential' must not be None." )
@@ -57,10 +56,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
57
56
kwargs .setdefault ("sdk_moniker" , "mgmt-webpubsub/{}" .format (VERSION ))
58
57
self ._configure (** kwargs )
59
58
60
- def _configure (
61
- self , ** kwargs # type: Any
62
- ):
63
- # type: (...) -> None
59
+ def _configure (self , ** kwargs : Any ) -> None :
64
60
self .user_agent_policy = kwargs .get ("user_agent_policy" ) or policies .UserAgentPolicy (** kwargs )
65
61
self .headers_policy = kwargs .get ("headers_policy" ) or policies .HeadersPolicy (** kwargs )
66
62
self .proxy_policy = kwargs .get ("proxy_policy" ) or policies .ProxyPolicy (** kwargs )
0 commit comments