8
8
9
9
from typing import Any , TYPE_CHECKING
10
10
11
- from azure .core .configuration import Configuration
12
11
from azure .core .pipeline import policies
13
12
from azure .mgmt .core .policies import ARMChallengeAuthenticationPolicy , ARMHttpLoggingPolicy
14
13
19
18
from azure .core .credentials import TokenCredential
20
19
21
20
22
- class SignalRManagementClientConfiguration ( Configuration ) : # pylint: disable=too-many-instance-attributes
21
+ class SignalRManagementClientConfiguration : # pylint: disable=too-many-instance-attributes,name-too-long
23
22
"""Configuration for SignalRManagementClient.
24
23
25
24
Note that all parameters used to create this instance are saved as instance
@@ -29,14 +28,13 @@ class SignalRManagementClientConfiguration(Configuration): # pylint: disable=to
29
28
:type credential: ~azure.core.credentials.TokenCredential
30
29
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
31
30
:type subscription_id: str
32
- :keyword api_version: Api Version. Default value is "2023-08 -01-preview ". Note that overriding
33
- this default value may result in unsupported behavior.
31
+ :keyword api_version: Api Version. Default value is "2024-03 -01". Note that overriding this
32
+ default value may result in unsupported behavior.
34
33
:paramtype api_version: str
35
34
"""
36
35
37
36
def __init__ (self , credential : "TokenCredential" , subscription_id : str , ** kwargs : Any ) -> None :
38
- super (SignalRManagementClientConfiguration , self ).__init__ (** kwargs )
39
- api_version : str = kwargs .pop ("api_version" , "2023-08-01-preview" )
37
+ api_version : str = kwargs .pop ("api_version" , "2024-03-01" )
40
38
41
39
if credential is None :
42
40
raise ValueError ("Parameter 'credential' must not be None." )
@@ -48,6 +46,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
48
46
self .api_version = api_version
49
47
self .credential_scopes = kwargs .pop ("credential_scopes" , ["https://management.azure.com/.default" ])
50
48
kwargs .setdefault ("sdk_moniker" , "mgmt-signalr/{}" .format (VERSION ))
49
+ self .polling_interval = kwargs .get ("polling_interval" , 30 )
51
50
self ._configure (** kwargs )
52
51
53
52
def _configure (self , ** kwargs : Any ) -> None :
@@ -56,9 +55,9 @@ def _configure(self, **kwargs: Any) -> None:
56
55
self .proxy_policy = kwargs .get ("proxy_policy" ) or policies .ProxyPolicy (** kwargs )
57
56
self .logging_policy = kwargs .get ("logging_policy" ) or policies .NetworkTraceLoggingPolicy (** kwargs )
58
57
self .http_logging_policy = kwargs .get ("http_logging_policy" ) or ARMHttpLoggingPolicy (** kwargs )
59
- self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
60
58
self .custom_hook_policy = kwargs .get ("custom_hook_policy" ) or policies .CustomHookPolicy (** kwargs )
61
59
self .redirect_policy = kwargs .get ("redirect_policy" ) or policies .RedirectPolicy (** kwargs )
60
+ self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
62
61
self .authentication_policy = kwargs .get ("authentication_policy" )
63
62
if self .credential and not self .authentication_policy :
64
63
self .authentication_policy = ARMChallengeAuthenticationPolicy (
0 commit comments