Skip to content

Commit e8ab016

Browse files
[AutoRelease] t2-recoveryservicesbackup-2025-04-10-96765(can only be merged by SDK owner) (#40452)
* code and test * update testcases * Update release date in changelog --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 453ffd2 commit e8ab016

File tree

276 files changed

+4217
-2902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+4217
-2902
lines changed

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 9.2.0 (2025-04-17)
4+
5+
### Features Added
6+
7+
- Model `AzureFileShareRecoveryPoint` added property `recovery_point_tier_details`
8+
- Model `AzureIaaSClassicComputeVMProtectedItem` added property `policy_type`
9+
- Model `AzureIaaSComputeVMProtectedItem` added property `policy_type`
10+
- Model `AzureIaaSVMProtectedItem` added property `policy_type`
11+
- Model `AzureStorageContainer` added property `operation_type`
12+
- Enum `OperationType` added member `REHYDRATE`
13+
- Added model `AzureVmWorkloadSAPAseDatabaseProtectableItem`
14+
- Added model `AzureWorkloadSAPAsePointInTimeRecoveryPoint`
15+
- Added model `AzureWorkloadSAPAsePointInTimeRestoreRequest`
16+
- Added model `AzureWorkloadSAPAseRecoveryPoint`
17+
- Added model `AzureWorkloadSAPAseRestoreRequest`
18+
319
## 9.1.0 (2024-04-22)
420

521
### Features Added

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "2897e4040dd3d922061ae55bc002358aeaded619",
2+
"commit": "148c3b0b44f7789ced94859992493fafd0072f83",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.7",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/recoveryservicesbackup/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/recoveryservicesbackup/resource-manager/readme.md"
1111
}

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.1.0"
9+
VERSION = "9.2.0"

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/__init__.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._recovery_services_backup_client import RecoveryServicesBackupClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._recovery_services_backup_client import RecoveryServicesBackupClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"RecoveryServicesBackupClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_configuration.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

@@ -28,13 +27,13 @@ class RecoveryServicesBackupClientConfiguration: # pylint: disable=too-many-ins
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The subscription Id. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this
3231
default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-04-01")
36+
api_version: str = kwargs.pop("api_version", "2025-02-01")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")

sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/_recovery_services_backup_client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -74,13 +75,12 @@
7475
)
7576

7677
if TYPE_CHECKING:
77-
# pylint: disable=unused-import,ungrouped-imports
7878
from azure.core.credentials import TokenCredential
7979

8080

8181
class RecoveryServicesBackupClient(
8282
RecoveryServicesBackupClientOperationsMixin
83-
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
83+
): # pylint: disable=too-many-instance-attributes
8484
"""Open API 2.0 Specs for Azure RecoveryServices Backup service.
8585
8686
:ivar backup_resource_storage_configs_non_crr: BackupResourceStorageConfigsNonCRROperations
@@ -248,7 +248,7 @@ class RecoveryServicesBackupClient(
248248
:type subscription_id: str
249249
:param base_url: Service URL. Default value is "https://management.azure.com".
250250
: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
252252
default value may result in unsupported behavior.
253253
:paramtype api_version: str
254254
: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:
443443
def close(self) -> None:
444444
self._client.close()
445445

446-
def __enter__(self) -> "RecoveryServicesBackupClient":
446+
def __enter__(self) -> Self:
447447
self._client.__enter__()
448448
return self
449449

0 commit comments

Comments
 (0)