|
8 | 8 |
|
9 | 9 | from copy import deepcopy
|
10 | 10 | from typing import Any, TYPE_CHECKING
|
| 11 | +from typing_extensions import Self |
11 | 12 |
|
12 | 13 | from azure.core.pipeline import policies
|
13 | 14 | from azure.core.rest import HttpRequest, HttpResponse
|
|
74 | 75 | )
|
75 | 76 |
|
76 | 77 | if TYPE_CHECKING:
|
77 |
| - # pylint: disable=unused-import,ungrouped-imports |
78 | 78 | from azure.core.credentials import TokenCredential
|
79 | 79 |
|
80 | 80 |
|
81 | 81 | class RecoveryServicesBackupClient(
|
82 | 82 | RecoveryServicesBackupClientOperationsMixin
|
83 |
| -): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes |
| 83 | +): # pylint: disable=too-many-instance-attributes |
84 | 84 | """Open API 2.0 Specs for Azure RecoveryServices Backup service.
|
85 | 85 |
|
86 | 86 | :ivar backup_resource_storage_configs_non_crr: BackupResourceStorageConfigsNonCRROperations
|
@@ -248,7 +248,7 @@ class RecoveryServicesBackupClient(
|
248 | 248 | :type subscription_id: str
|
249 | 249 | :param base_url: Service URL. Default value is "https://management.azure.com".
|
250 | 250 | :type base_url: str
|
251 |
| - :keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this |
| 251 | + :keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this |
252 | 252 | default value may result in unsupported behavior.
|
253 | 253 | :paramtype api_version: str
|
254 | 254 | :keyword int polling_interval: Default waiting time between two polls for LRO operations if no
|
@@ -443,7 +443,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
|
443 | 443 | def close(self) -> None:
|
444 | 444 | self._client.close()
|
445 | 445 |
|
446 |
| - def __enter__(self) -> "RecoveryServicesBackupClient": |
| 446 | + def __enter__(self) -> Self: |
447 | 447 | self._client.__enter__()
|
448 | 448 | return self
|
449 | 449 |
|
|
0 commit comments