@@ -25,18 +25,13 @@ class SqlManagementClientConfiguration(Configuration): # pylint: disable=too-ma
2525 Note that all parameters used to create this instance are saved as instance
2626 attributes.
2727
28- :param credential: Credential needed for the client to connect to Azure.
28+ :param credential: Credential needed for the client to connect to Azure. Required.
2929 :type credential: ~azure.core.credentials.TokenCredential
30- :param subscription_id: The subscription ID that identifies an Azure subscription.
30+ :param subscription_id: The subscription ID that identifies an Azure subscription. Required.
3131 :type subscription_id: str
3232 """
3333
34- def __init__ (
35- self ,
36- credential : "TokenCredential" ,
37- subscription_id : str ,
38- ** kwargs : Any
39- ) -> None :
34+ def __init__ (self , credential : "TokenCredential" , subscription_id : str , ** kwargs : Any ) -> None :
4035 super (SqlManagementClientConfiguration , self ).__init__ (** kwargs )
4136 if credential is None :
4237 raise ValueError ("Parameter 'credential' must not be None." )
@@ -45,23 +40,24 @@ def __init__(
4540
4641 self .credential = credential
4742 self .subscription_id = subscription_id
48- self .credential_scopes = kwargs .pop (' credential_scopes' , [' https://management.azure.com/.default' ])
49- kwargs .setdefault (' sdk_moniker' , ' mgmt-sql/{}' .format (VERSION ))
43+ self .credential_scopes = kwargs .pop (" credential_scopes" , [" https://management.azure.com/.default" ])
44+ kwargs .setdefault (" sdk_moniker" , " mgmt-sql/{}" .format (VERSION ))
5045 self ._configure (** kwargs )
5146
5247 def _configure (
53- self ,
54- ** kwargs # type: Any
48+ self , ** kwargs # type: Any
5549 ):
5650 # type: (...) -> None
57- self .user_agent_policy = kwargs .get (' user_agent_policy' ) or policies .UserAgentPolicy (** kwargs )
58- self .headers_policy = kwargs .get (' headers_policy' ) or policies .HeadersPolicy (** kwargs )
59- self .proxy_policy = kwargs .get (' proxy_policy' ) or policies .ProxyPolicy (** kwargs )
60- self .logging_policy = kwargs .get (' logging_policy' ) or policies .NetworkTraceLoggingPolicy (** kwargs )
61- self .http_logging_policy = kwargs .get (' http_logging_policy' ) or ARMHttpLoggingPolicy (** kwargs )
62- self .retry_policy = kwargs .get (' retry_policy' ) or policies .RetryPolicy (** kwargs )
63- self .custom_hook_policy = kwargs .get (' custom_hook_policy' ) or policies .CustomHookPolicy (** kwargs )
64- self .redirect_policy = kwargs .get (' redirect_policy' ) or policies .RedirectPolicy (** kwargs )
65- self .authentication_policy = kwargs .get (' authentication_policy' )
51+ self .user_agent_policy = kwargs .get (" user_agent_policy" ) or policies .UserAgentPolicy (** kwargs )
52+ self .headers_policy = kwargs .get (" headers_policy" ) or policies .HeadersPolicy (** kwargs )
53+ self .proxy_policy = kwargs .get (" proxy_policy" ) or policies .ProxyPolicy (** kwargs )
54+ self .logging_policy = kwargs .get (" logging_policy" ) or policies .NetworkTraceLoggingPolicy (** kwargs )
55+ self .http_logging_policy = kwargs .get (" http_logging_policy" ) or ARMHttpLoggingPolicy (** kwargs )
56+ self .retry_policy = kwargs .get (" retry_policy" ) or policies .RetryPolicy (** kwargs )
57+ self .custom_hook_policy = kwargs .get (" custom_hook_policy" ) or policies .CustomHookPolicy (** kwargs )
58+ self .redirect_policy = kwargs .get (" redirect_policy" ) or policies .RedirectPolicy (** kwargs )
59+ self .authentication_policy = kwargs .get (" authentication_policy" )
6660 if self .credential and not self .authentication_policy :
67- self .authentication_policy = ARMChallengeAuthenticationPolicy (self .credential , * self .credential_scopes , ** kwargs )
61+ self .authentication_policy = ARMChallengeAuthenticationPolicy (
62+ self .credential , * self .credential_scopes , ** kwargs
63+ )
0 commit comments