1212from azure .core .rest import HttpRequest , HttpResponse
1313from azure .mgmt .core import ARMPipelineClient
1414
15- from . import models
15+ from . import models as _models
1616from ._configuration import DataProtectionClientConfiguration
1717from ._serialization import Deserializer , Serializer
1818from .operations import (
19- BackupInstancesExtensionRoutingOperations ,
2019 BackupInstancesOperations ,
2120 BackupPoliciesOperations ,
2221 BackupVaultOperationResultsOperations ,
2322 BackupVaultsOperations ,
2423 DataProtectionOperations ,
2524 DataProtectionOperationsOperations ,
2625 DeletedBackupInstancesOperations ,
27- DppResourceGuardProxyOperations ,
2826 ExportJobsOperationResultOperations ,
2927 ExportJobsOperations ,
3028 JobsOperations ,
@@ -71,9 +69,6 @@ class DataProtectionClient: # pylint: disable=client-accepts-api-version-keywor
7169 :vartype backup_policies: azure.mgmt.dataprotection.operations.BackupPoliciesOperations
7270 :ivar backup_instances: BackupInstancesOperations operations
7371 :vartype backup_instances: azure.mgmt.dataprotection.operations.BackupInstancesOperations
74- :ivar backup_instances_extension_routing: BackupInstancesExtensionRoutingOperations operations
75- :vartype backup_instances_extension_routing:
76- azure.mgmt.dataprotection.operations.BackupInstancesExtensionRoutingOperations
7772 :ivar recovery_points: RecoveryPointsOperations operations
7873 :vartype recovery_points: azure.mgmt.dataprotection.operations.RecoveryPointsOperations
7974 :ivar jobs: JobsOperations operations
@@ -91,17 +86,14 @@ class DataProtectionClient: # pylint: disable=client-accepts-api-version-keywor
9186 azure.mgmt.dataprotection.operations.DeletedBackupInstancesOperations
9287 :ivar resource_guards: ResourceGuardsOperations operations
9388 :vartype resource_guards: azure.mgmt.dataprotection.operations.ResourceGuardsOperations
94- :ivar dpp_resource_guard_proxy: DppResourceGuardProxyOperations operations
95- :vartype dpp_resource_guard_proxy:
96- azure.mgmt.dataprotection.operations.DppResourceGuardProxyOperations
9789 :param credential: Credential needed for the client to connect to Azure. Required.
9890 :type credential: ~azure.core.credentials.TokenCredential
99- :param subscription_id: The subscription Id . Required.
91+ :param subscription_id: The ID of the target subscription. The value must be an UUID . Required.
10092 :type subscription_id: str
10193 :param base_url: Service URL. Default value is "https://management.azure.com".
10294 :type base_url: str
103- :keyword api_version: Api Version. Default value is "2022-09 -01-preview ". Note that overriding
104- this default value may result in unsupported behavior.
95+ :keyword api_version: Api Version. Default value is "2022-12 -01". Note that overriding this
96+ default value may result in unsupported behavior.
10597 :paramtype api_version: str
10698 :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
10799 Retry-After header is present.
@@ -119,7 +111,7 @@ def __init__(
119111 )
120112 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
121113
122- client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
114+ client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
123115 self ._serialize = Serializer (client_models )
124116 self ._deserialize = Deserializer (client_models )
125117 self ._serialize .client_side_validation = False
@@ -147,9 +139,6 @@ def __init__(
147139 self .backup_instances = BackupInstancesOperations (
148140 self ._client , self ._config , self ._serialize , self ._deserialize
149141 )
150- self .backup_instances_extension_routing = BackupInstancesExtensionRoutingOperations (
151- self ._client , self ._config , self ._serialize , self ._deserialize
152- )
153142 self .recovery_points = RecoveryPointsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
154143 self .jobs = JobsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
155144 self .restorable_time_ranges = RestorableTimeRangesOperations (
@@ -163,9 +152,6 @@ def __init__(
163152 self ._client , self ._config , self ._serialize , self ._deserialize
164153 )
165154 self .resource_guards = ResourceGuardsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
166- self .dpp_resource_guard_proxy = DppResourceGuardProxyOperations (
167- self ._client , self ._config , self ._serialize , self ._deserialize
168- )
169155
170156 def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
171157 """Runs the network request through the client's chained policies.
@@ -189,15 +175,12 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
189175 request_copy .url = self ._client .format_url (request_copy .url )
190176 return self ._client .send_request (request_copy , ** kwargs )
191177
192- def close (self ):
193- # type: () -> None
178+ def close (self ) -> None :
194179 self ._client .close ()
195180
196- def __enter__ (self ):
197- # type: () -> DataProtectionClient
181+ def __enter__ (self ) -> "DataProtectionClient" :
198182 self ._client .__enter__ ()
199183 return self
200184
201- def __exit__ (self , * exc_details ):
202- # type: (Any) -> None
185+ def __exit__ (self , * exc_details ) -> None :
203186 self ._client .__exit__ (* exc_details )
0 commit comments