88
99from typing import Any , TYPE_CHECKING
1010
11- from azure .core .configuration import Configuration
1211from azure .core .pipeline import policies
1312from azure .mgmt .core .policies import ARMChallengeAuthenticationPolicy , ARMHttpLoggingPolicy
1413
1918 from azure .core .credentials import TokenCredential
2019
2120
22- class ServiceLinkerManagementClientConfiguration ( Configuration ) : # pylint: disable=too-many-instance-attributes
21+ class ServiceLinkerManagementClientConfiguration : # pylint: disable=too-many-instance-attributes,name-too-long
2322 """Configuration for ServiceLinkerManagementClient.
2423
2524 Note that all parameters used to create this instance are saved as instance
2625 attributes.
2726
2827 :param credential: Credential needed for the client to connect to Azure. Required.
2928 :type credential: ~azure.core.credentials.TokenCredential
30- :keyword api_version: Api Version. Default value is "2023-04 -01-preview". Note that overriding
29+ :keyword api_version: Api Version. Default value is "2024-07 -01-preview". Note that overriding
3130 this default value may result in unsupported behavior.
3231 :paramtype api_version: str
3332 """
3433
3534 def __init__ (self , credential : "TokenCredential" , ** kwargs : Any ) -> None :
36- super (ServiceLinkerManagementClientConfiguration , self ).__init__ (** kwargs )
37- api_version : str = kwargs .pop ("api_version" , "2023-04-01-preview" )
35+ api_version : str = kwargs .pop ("api_version" , "2024-07-01-preview" )
3836
3937 if credential is None :
4038 raise ValueError ("Parameter 'credential' must not be None." )
@@ -43,6 +41,7 @@ def __init__(self, credential: "TokenCredential", **kwargs: Any) -> None:
4341 self .api_version = api_version
4442 self .credential_scopes = kwargs .pop ("credential_scopes" , ["https://management.azure.com/.default" ])
4543 kwargs .setdefault ("sdk_moniker" , "mgmt-servicelinker/{}" .format (VERSION ))
44+ self .polling_interval = kwargs .get ("polling_interval" , 30 )
4645 self ._configure (** kwargs )
4746
4847 def _configure (self , ** kwargs : Any ) -> None :
@@ -51,9 +50,9 @@ def _configure(self, **kwargs: Any) -> None:
5150 self .proxy_policy = kwargs .get ("proxy_policy" ) or policies .ProxyPolicy (** kwargs )
5251 self .logging_policy = kwargs .get ("logging_policy" ) or policies .NetworkTraceLoggingPolicy (** kwargs )
5352 self .http_logging_policy = kwargs .get ("http_logging_policy" ) or ARMHttpLoggingPolicy (** kwargs )
54- self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
5553 self .custom_hook_policy = kwargs .get ("custom_hook_policy" ) or policies .CustomHookPolicy (** kwargs )
5654 self .redirect_policy = kwargs .get ("redirect_policy" ) or policies .RedirectPolicy (** kwargs )
55+ self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
5756 self .authentication_policy = kwargs .get ("authentication_policy" )
5857 if self .credential and not self .authentication_policy :
5958 self .authentication_policy = ARMChallengeAuthenticationPolicy (
0 commit comments