Skip to content

Commit 537bec0

Browse files
author
SDKAuto
committed
CodeGen from PR 33509 in Azure/azure-rest-api-specs
Merge c2061e765d78f9b1c1b8ba8a22e0d5a7a9f42709 into eb9abbcdb08fe6c2faca5c2a6182568b52a3b1ce
1 parent 590b013 commit 537bec0

File tree

193 files changed

+6108
-1685
lines changed

Some content is hidden

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

193 files changed

+6108
-1685
lines changed

sdk/dataprotection/azure-mgmt-dataprotection/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Release History
22

3+
## 1.5.0 (2025-04-10)
4+
5+
### Features Added
6+
7+
- Model `KubernetesClusterBackupDatasourceParameters` added property `included_volume_types`
8+
- Added enum `AKSVolumeTypes`
9+
- Added model `AdlsBlobBackupDatasourceParameters`
10+
- Added model `ValidateForModifyBackupRequest`
11+
- Model `BackupInstancesOperations` added method `begin_validate_for_modify_backup`
12+
- Method `BackupInstancesOperations.begin_validate_for_modify_backup` has a new overload `def begin_validate_for_modify_backup(self: None, resource_group_name: str, vault_name: str, backup_instance_name: str, parameters: ValidateForModifyBackupRequest, content_type: str)`
13+
- Method `BackupInstancesOperations.begin_validate_for_modify_backup` has a new overload `def begin_validate_for_modify_backup(self: None, resource_group_name: str, vault_name: str, backup_instance_name: str, parameters: IO[bytes], content_type: str)`
14+
315
## 1.4.0 (2024-07-22)
416

517
### Features Added

sdk/dataprotection/azure-mgmt-dataprotection/README.md

Lines changed: 1 addition & 1 deletion
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.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "7bf13ef1c776f6d973b9645906281d0ec4660fc8",
2+
"commit": "be305d1328400b380fe24c3036c8831a4e903cdf",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.19",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/dataprotection/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.19 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/dataprotection/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/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/dataprotection/resource-manager/readme.md"
1111
}

sdk/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/__init__.py

Lines changed: 9 additions & 3 deletions
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 ._data_protection_mgmt_client import DataProtectionMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._data_protection_mgmt_client import DataProtectionMgmtClient # 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
"DataProtectionMgmtClient",
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/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
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

21-
class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for DataProtectionMgmtClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class DataProtectionMgmtClientConfiguration: # pylint: disable=too-many-instanc
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. The value must be an UUID. 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/dataprotection/azure-mgmt-dataprotection/azure/mgmt/dataprotection/_data_protection_mgmt_client.py

Lines changed: 4 additions & 4 deletions
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
@@ -43,11 +44,10 @@
4344
)
4445

4546
if TYPE_CHECKING:
46-
# pylint: disable=unused-import,ungrouped-imports
4747
from azure.core.credentials import TokenCredential
4848

4949

50-
class DataProtectionMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
50+
class DataProtectionMgmtClient: # pylint: disable=too-many-instance-attributes
5151
"""Open API 2.0 Specs for Azure Data Protection service.
5252
5353
:ivar backup_vaults: BackupVaultsOperations operations
@@ -114,7 +114,7 @@ class DataProtectionMgmtClient: # pylint: disable=client-accepts-api-version-ke
114114
:type subscription_id: str
115115
:param base_url: Service URL. Default value is "https://management.azure.com".
116116
:type base_url: str
117-
:keyword api_version: Api Version. Default value is "2024-04-01". Note that overriding this
117+
:keyword api_version: Api Version. Default value is "2025-02-01". Note that overriding this
118118
default value may result in unsupported behavior.
119119
:paramtype api_version: str
120120
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -233,7 +233,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
233233
def close(self) -> None:
234234
self._client.close()
235235

236-
def __enter__(self) -> "DataProtectionMgmtClient":
236+
def __enter__(self) -> Self:
237237
self._client.__enter__()
238238
return self
239239

0 commit comments

Comments
 (0)