Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions sdk/elasticsan/azure-mgmt-elasticsan/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Release History

## 1.2.0b2 (2025-04-01)

### Features Added

- Client `ElasticSanMgmtClient` added method `begin_restore_volume`
- Model `ElasticSanMgmtClient` added property `url`
- Enum `ProvisioningStates` added member `DELETED`
- Enum `ProvisioningStates` added member `RESTORING`
- Enum `ProvisioningStates` added member `SOFT_DELETING`
- Model `VolumeGroupProperties` added property `delete_retention_policy`
- Model `VolumeGroupUpdateProperties` added property `delete_retention_policy`
- Added model `DeleteRetentionPolicy`
- Added enum `DeleteType`
- Added model `DiskSnapshotList`
- Added enum `PolicyState`
- Added model `PreValidationResponse`
- Added model `VolumeNameList`
- Added enum `XMsAccessSoftDeletedResources`
- Model `VolumesOperations` added method `begin_pre_backup`
- Model `VolumesOperations` added method `begin_pre_restore`
- Added model `ElasticSanMgmtClientOperationsMixin`
- Method `VolumesOperations.begin_pre_backup` has a new overload `def begin_pre_backup(self: None, resource_group_name: str, elastic_san_name: str, volume_group_name: str, parameters: VolumeNameList, content_type: str)`
- Method `VolumesOperations.begin_pre_backup` has a new overload `def begin_pre_backup(self: None, resource_group_name: str, elastic_san_name: str, volume_group_name: str, parameters: IO[bytes], content_type: str)`
- Method `VolumesOperations.begin_pre_restore` has a new overload `def begin_pre_restore(self: None, resource_group_name: str, elastic_san_name: str, volume_group_name: str, parameters: DiskSnapshotList, content_type: str)`
- Method `VolumesOperations.begin_pre_restore` has a new overload `def begin_pre_restore(self: None, resource_group_name: str, elastic_san_name: str, volume_group_name: str, parameters: IO[bytes], content_type: str)`

## 1.2.0b1 (2024-10-20)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion sdk/elasticsan/azure-mgmt-elasticsan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

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

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
6 changes: 3 additions & 3 deletions sdk/elasticsan/azure-mgmt-elasticsan/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "fda3d5e4ae4c69aa72ddfdf5ca1b6d5795a03e71",
"commit": "c305551bf7a0f19753d78f55da1601e799a8a642",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.27.4",
"@autorest/[email protected]"
],
"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",
"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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/elasticsan/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._elastic_san_mgmt_client import ElasticSanMgmtClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._elastic_san_mgmt_client import ElasticSanMgmtClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"ElasticSanMgmtClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
from ._version import VERSION

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


class ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for ElasticSanMgmtClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -28,13 +27,13 @@ class ElasticSanMgmtClientConfiguration: # pylint: disable=too-many-instance-at
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2024-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-06-01-preview")
api_version: str = kwargs.pop("api_version", "2024-07-01-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from ._configuration import ElasticSanMgmtClientConfiguration
from ._serialization import Deserializer, Serializer
from .operations import (
ElasticSanMgmtClientOperationsMixin,
ElasticSansOperations,
Operations,
PrivateEndpointConnectionsOperations,
Expand All @@ -30,11 +31,10 @@
)

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


class ElasticSanMgmtClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class ElasticSanMgmtClient(ElasticSanMgmtClientOperationsMixin): # pylint: disable=too-many-instance-attributes
"""ElasticSanMgmtClient.

:ivar operations: Operations operations
Expand All @@ -61,7 +61,7 @@ class ElasticSanMgmtClient: # pylint: disable=client-accepts-api-version-keywor
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
:keyword api_version: Api Version. Default value is "2024-07-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Loading