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 SqlManagementClientConfiguration ( Configuration ) : # pylint: disable=too-many-instance-attributes
21
+ class SqlManagementClientConfiguration : # pylint: disable=too-many-instance-attributes,name-too-long
23
22
"""Configuration for SqlManagementClient.
24
23
25
24
Note that all parameters used to create this instance are saved as instance
@@ -32,7 +31,6 @@ class SqlManagementClientConfiguration(Configuration): # pylint: disable=too-ma
32
31
"""
33
32
34
33
def __init__ (self , credential : "TokenCredential" , subscription_id : str , ** kwargs : Any ) -> None :
35
- super (SqlManagementClientConfiguration , self ).__init__ (** kwargs )
36
34
if credential is None :
37
35
raise ValueError ("Parameter 'credential' must not be None." )
38
36
if subscription_id is None :
@@ -42,6 +40,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
42
40
self .subscription_id = subscription_id
43
41
self .credential_scopes = kwargs .pop ("credential_scopes" , ["https://management.azure.com/.default" ])
44
42
kwargs .setdefault ("sdk_moniker" , "mgmt-sql/{}" .format (VERSION ))
43
+ self .polling_interval = kwargs .get ("polling_interval" , 30 )
45
44
self ._configure (** kwargs )
46
45
47
46
def _configure (self , ** kwargs : Any ) -> None :
@@ -50,9 +49,9 @@ def _configure(self, **kwargs: Any) -> None:
50
49
self .proxy_policy = kwargs .get ("proxy_policy" ) or policies .ProxyPolicy (** kwargs )
51
50
self .logging_policy = kwargs .get ("logging_policy" ) or policies .NetworkTraceLoggingPolicy (** kwargs )
52
51
self .http_logging_policy = kwargs .get ("http_logging_policy" ) or ARMHttpLoggingPolicy (** kwargs )
53
- self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
54
52
self .custom_hook_policy = kwargs .get ("custom_hook_policy" ) or policies .CustomHookPolicy (** kwargs )
55
53
self .redirect_policy = kwargs .get ("redirect_policy" ) or policies .RedirectPolicy (** kwargs )
54
+ self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
56
55
self .authentication_policy = kwargs .get ("authentication_policy" )
57
56
if self .credential and not self .authentication_policy :
58
57
self .authentication_policy = ARMChallengeAuthenticationPolicy (
0 commit comments