22# --------------------------------------------------------------------------
33# Copyright (c) Microsoft Corporation. All rights reserved.
44# Licensed under the MIT License. See License.txt in the project root for license information.
5- # Code generated by Microsoft (R) AutoRest Code Generator.
5+ # Code generated by Microsoft (R) Python Code Generator.
66# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77# --------------------------------------------------------------------------
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 RecoveryServicesDataReplicationMgmtClientConfiguration (
23- Configuration
24- ): # pylint: disable=too-many-instance-attributes
25- """Configuration for RecoveryServicesDataReplicationMgmtClient.
20+ class DataReplicationClientConfiguration : # pylint: disable=too-many-instance-attributes
21+ """Configuration for DataReplicationClient.
2622
2723 Note that all parameters used to create this instance are saved as instance
2824 attributes.
2925
30- :param credential: Credential needed for the client to connect to Azure . Required.
26+ :param credential: Credential used to authenticate requests to the service . Required.
3127 :type credential: ~azure.core.credentials.TokenCredential
3228 :param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3329 :type subscription_id: str
34- :keyword api_version: Api Version. Default value is "2021-02-16-preview". Note that overriding
35- this default value may result in unsupported behavior.
30+ :param base_url: Service host. Default value is "https://management.azure.com".
31+ :type base_url: str
32+ :keyword api_version: The API version to use for this operation. Default value is "2024-09-01".
33+ Note that overriding this default value may result in unsupported behavior.
3634 :paramtype api_version: str
3735 """
3836
39- def __init__ (self , credential : "TokenCredential" , subscription_id : str , ** kwargs : Any ) -> None :
40- super (RecoveryServicesDataReplicationMgmtClientConfiguration , self ).__init__ (** kwargs )
41- api_version : str = kwargs .pop ("api_version" , "2021-02-16-preview" )
37+ def __init__ (
38+ self ,
39+ credential : "TokenCredential" ,
40+ subscription_id : str ,
41+ base_url : str = "https://management.azure.com" ,
42+ ** kwargs : Any
43+ ) -> None :
44+ api_version : str = kwargs .pop ("api_version" , "2024-09-01" )
4245
4346 if credential is None :
4447 raise ValueError ("Parameter 'credential' must not be None." )
@@ -47,9 +50,11 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4750
4851 self .credential = credential
4952 self .subscription_id = subscription_id
53+ self .base_url = base_url
5054 self .api_version = api_version
5155 self .credential_scopes = kwargs .pop ("credential_scopes" , ["https://management.azure.com/.default" ])
5256 kwargs .setdefault ("sdk_moniker" , "mgmt-recoveryservicesdatareplication/{}" .format (VERSION ))
57+ self .polling_interval = kwargs .get ("polling_interval" , 30 )
5358 self ._configure (** kwargs )
5459
5560 def _configure (self , ** kwargs : Any ) -> None :
@@ -58,9 +63,9 @@ def _configure(self, **kwargs: Any) -> None:
5863 self .proxy_policy = kwargs .get ("proxy_policy" ) or policies .ProxyPolicy (** kwargs )
5964 self .logging_policy = kwargs .get ("logging_policy" ) or policies .NetworkTraceLoggingPolicy (** kwargs )
6065 self .http_logging_policy = kwargs .get ("http_logging_policy" ) or ARMHttpLoggingPolicy (** kwargs )
61- self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
6266 self .custom_hook_policy = kwargs .get ("custom_hook_policy" ) or policies .CustomHookPolicy (** kwargs )
6367 self .redirect_policy = kwargs .get ("redirect_policy" ) or policies .RedirectPolicy (** kwargs )
68+ self .retry_policy = kwargs .get ("retry_policy" ) or policies .RetryPolicy (** kwargs )
6469 self .authentication_policy = kwargs .get ("authentication_policy" )
6570 if self .credential and not self .authentication_policy :
6671 self .authentication_policy = ARMChallengeAuthenticationPolicy (
0 commit comments