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
1514from ._version import VERSION
1615
1716if TYPE_CHECKING :
18- # pylint: disable=unused-import,ungrouped-imports
1917 from azure .core .credentials import TokenCredential
2018
2119
22- class VoiceServicesMgmtClientConfiguration ( Configuration ) : # pylint: disable=too-many-instance-attributes
20+ class VoiceServicesMgmtClientConfiguration : # pylint: disable=too-many-instance-attributes
2321 """Configuration for VoiceServicesMgmtClient.
2422
2523 Note that all parameters used to create this instance are saved as instance
@@ -29,14 +27,13 @@ class VoiceServicesMgmtClientConfiguration(Configuration): # pylint: disable=to
2927 :type credential: ~azure.core.credentials.TokenCredential
3028 :param subscription_id: The ID of the target subscription. Required.
3129 :type subscription_id: str
32- :keyword api_version: Api Version. Default value is "2023-01-31 ". Note that overriding this
30+ :keyword api_version: Api Version. Default value is "2023-09-01 ". Note that overriding this
3331 default value may result in unsupported behavior.
3432 :paramtype api_version: str
3533 """
3634
3735 def __init__ (self , credential : "TokenCredential" , subscription_id : str , ** kwargs : Any ) -> None :
38- super (VoiceServicesMgmtClientConfiguration , self ).__init__ (** kwargs )
39- api_version : str = kwargs .pop ("api_version" , "2023-01-31" )
36+ api_version : str = kwargs .pop ("api_version" , "2023-09-01" )
4037
4138 if credential is None :
4239 raise ValueError ("Parameter 'credential' must not be None." )
@@ -48,6 +45,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4845 self .api_version = api_version
4946 self .credential_scopes = kwargs .pop ("credential_scopes" , ["https://management.azure.com/.default" ])
5047 kwargs .setdefault ("sdk_moniker" , "mgmt-voiceservices/{}" .format (VERSION ))
48+ self .polling_interval = kwargs .get ("polling_interval" , 30 )
5149 self ._configure (** kwargs )
5250
5351 def _configure (self , ** kwargs : Any ) -> None :
@@ -56,9 +54,9 @@ def _configure(self, **kwargs: Any) -> None:
5654 self .proxy_policy = kwargs .get ("proxy_policy" ) or policies .ProxyPolicy (** kwargs )
5755 self .logging_policy = kwargs .get ("logging_policy" ) or policies .NetworkTraceLoggingPolicy (** kwargs )
5856 self .http_logging_policy = kwargs .get ("http_logging_policy" ) or ARMHttpLoggingPolicy (** kwargs )
59- self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
6057 self .custom_hook_policy = kwargs .get ("custom_hook_policy" ) or policies .CustomHookPolicy (** kwargs )
6158 self .redirect_policy = kwargs .get ("redirect_policy" ) or policies .RedirectPolicy (** kwargs )
59+ self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
6260 self .authentication_policy = kwargs .get ("authentication_policy" )
6361 if self .credential and not self .authentication_policy :
6462 self .authentication_policy = ARMChallengeAuthenticationPolicy (
0 commit comments