Skip to content

Commit 2f8f325

Browse files
[AutoRelease] t2-elasticsan-2025-04-03-61852(can only be merged by SDK owner) (#40356)
* code and test * update testcases * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent c875783 commit 2f8f325

File tree

113 files changed

+2736
-607
lines changed

Some content is hidden

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

113 files changed

+2736
-607
lines changed

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

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

3+
## 1.2.0b2 (2025-04-21)
4+
5+
### Features Added
6+
7+
- Client `ElasticSanMgmtClient` added method `begin_restore_volume`
8+
- Model `ElasticSanMgmtClient` added property `url`
9+
- Enum `ProvisioningStates` added member `DELETED`
10+
- Enum `ProvisioningStates` added member `RESTORING`
11+
- Enum `ProvisioningStates` added member `SOFT_DELETING`
12+
- Model `VolumeGroupProperties` added property `delete_retention_policy`
13+
- Model `VolumeGroupUpdateProperties` added property `delete_retention_policy`
14+
- Added model `DeleteRetentionPolicy`
15+
- Added enum `DeleteType`
16+
- Added model `DiskSnapshotList`
17+
- Added enum `PolicyState`
18+
- Added model `PreValidationResponse`
19+
- Added model `VolumeNameList`
20+
- Added enum `XMsAccessSoftDeletedResources`
21+
- Operation group `VolumesOperations` added method `begin_pre_backup`
22+
- Operation group `VolumesOperations` added method `begin_pre_restore`
23+
- Added operation group `ElasticSanMgmtClientOperationsMixin`
24+
325
## 1.2.0b1 (2024-10-20)
426

527
### Features Added

sdk/elasticsan/azure-mgmt-elasticsan/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": "fda3d5e4ae4c69aa72ddfdf5ca1b6d5795a03e71",
2+
"commit": "b0a48bcbffead733affe03944ef09f5e8d12f8c8",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/elasticsan/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/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/elasticsan/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/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/elasticsan/resource-manager/readme.md"
1111
}

sdk/elasticsan/azure-mgmt-elasticsan/azure/mgmt/elasticsan/__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 ._elastic_san_mgmt_client import ElasticSanMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._elastic_san_mgmt_client import ElasticSanMgmtClient # 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
"ElasticSanMgmtClient",
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/elasticsan/azure-mgmt-elasticsan/azure/mgmt/elasticsan/_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 ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for ElasticSanMgmtClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-at
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2024-07-01-preview". Note that overriding
3231
this 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-06-01-preview")
36+
api_version: str = kwargs.pop("api_version", "2024-07-01-preview")
3837

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

sdk/elasticsan/azure-mgmt-elasticsan/azure/mgmt/elasticsan/_elastic_san_mgmt_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from ._configuration import ElasticSanMgmtClientConfiguration
2020
from ._serialization import Deserializer, Serializer
2121
from .operations import (
22+
ElasticSanMgmtClientOperationsMixin,
2223
ElasticSansOperations,
2324
Operations,
2425
PrivateEndpointConnectionsOperations,
@@ -30,11 +31,10 @@
3031
)
3132

3233
if TYPE_CHECKING:
33-
# pylint: disable=unused-import,ungrouped-imports
3434
from azure.core.credentials import TokenCredential
3535

3636

37-
class ElasticSanMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
37+
class ElasticSanMgmtClient(ElasticSanMgmtClientOperationsMixin): # pylint: disable=too-many-instance-attributes
3838
"""ElasticSanMgmtClient.
3939
4040
:ivar operations: Operations operations
@@ -61,7 +61,7 @@ class ElasticSanMgmtClient: # pylint: disable=client-accepts-api-version-keywor
6161
:type subscription_id: str
6262
:param base_url: Service URL. Default value is "https://management.azure.com".
6363
:type base_url: str
64-
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
64+
:keyword api_version: Api Version. Default value is "2024-07-01-preview". Note that overriding
6565
this default value may result in unsupported behavior.
6666
:paramtype api_version: str
6767
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

0 commit comments

Comments
 (0)