Skip to content
Open
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
15 changes: 15 additions & 0 deletions sdk/storage/azure-mgmt-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Release History

## 3.1.0 (2026-03-15)

### Features Added

- Client `StorageCacheManagementClient` added operation group `expansion_jobs`
- Model `AmlFilesystem` added property `current_storage_capacity_ti_b`
- Model `AmlFilesystem` added property `cluster_uuid`
- Enum `AmlFilesystemHealthStateType` added member `EXPANDING`
- Added model `ExpansionJob`
- Added enum `ExpansionJobPropertiesProvisioningState`
- Added enum `ExpansionJobStatusType`
- Added model `ExpansionJobUpdate`
- Added model `ExpansionJobsListResult`
- Added model `ExpansionJobsOperations`

## 3.0.1 (2025-10-09)

### Bugs Fixed
Expand Down
8 changes: 4 additions & 4 deletions sdk/storage/azure-mgmt-storagecache/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "e976bdf4af8961332863ff779839f30fb2aec77a",
"commit": "3de705b1f6ad03adaae250fda48fae13de1f5b6a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.39.0",
"@autorest/python@6.48.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/storagecache/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.39.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/storagecache/resource-manager/readme.md"
"autorest_command": "autorest specification/storagecache/resource-manager/Microsoft.StorageCache/StorageCache/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.48.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/storagecache/resource-manager/Microsoft.StorageCache/StorageCache/readme.md"
}
15 changes: 15 additions & 0 deletions sdk/storage/azure-mgmt-storagecache/apiview-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
"azure.mgmt.storagecache.models.ErrorAdditionalInfo": null,
"azure.mgmt.storagecache.models.ErrorDetail": null,
"azure.mgmt.storagecache.models.ErrorResponse": null,
"azure.mgmt.storagecache.models.ExpansionJob": null,
"azure.mgmt.storagecache.models.ExpansionJobsListResult": null,
"azure.mgmt.storagecache.models.ExpansionJobUpdate": null,
"azure.mgmt.storagecache.models.ImportJob": null,
"azure.mgmt.storagecache.models.ImportJobsListResult": null,
"azure.mgmt.storagecache.models.ImportJobUpdate": null,
Expand Down Expand Up @@ -110,6 +113,8 @@
"azure.mgmt.storagecache.models.AutoImportJobPropertiesProvisioningState": null,
"azure.mgmt.storagecache.models.AutoImportJobPropertiesAdminStatus": null,
"azure.mgmt.storagecache.models.AutoImportJobState": null,
"azure.mgmt.storagecache.models.ExpansionJobPropertiesProvisioningState": null,
"azure.mgmt.storagecache.models.ExpansionJobStatusType": null,
"azure.mgmt.storagecache.models.MetricAggregationType": null,
"azure.mgmt.storagecache.models.ReasonCode": null,
"azure.mgmt.storagecache.models.NfsAccessRuleScope": null,
Expand Down Expand Up @@ -172,6 +177,16 @@
"azure.mgmt.storagecache.aio.operations.AutoImportJobsOperations.begin_update": null,
"azure.mgmt.storagecache.operations.AutoImportJobsOperations.list_by_aml_filesystem": null,
"azure.mgmt.storagecache.aio.operations.AutoImportJobsOperations.list_by_aml_filesystem": null,
"azure.mgmt.storagecache.operations.ExpansionJobsOperations.begin_delete": null,
"azure.mgmt.storagecache.aio.operations.ExpansionJobsOperations.begin_delete": null,
"azure.mgmt.storagecache.operations.ExpansionJobsOperations.get": null,
"azure.mgmt.storagecache.aio.operations.ExpansionJobsOperations.get": null,
"azure.mgmt.storagecache.operations.ExpansionJobsOperations.begin_create_or_update": null,
"azure.mgmt.storagecache.aio.operations.ExpansionJobsOperations.begin_create_or_update": null,
"azure.mgmt.storagecache.operations.ExpansionJobsOperations.begin_update": null,
"azure.mgmt.storagecache.aio.operations.ExpansionJobsOperations.begin_update": null,
"azure.mgmt.storagecache.operations.ExpansionJobsOperations.list_by_aml_filesystem": null,
"azure.mgmt.storagecache.aio.operations.ExpansionJobsOperations.list_by_aml_filesystem": null,
"azure.mgmt.storagecache.StorageCacheManagementClient.check_aml_fs_subnets": null,
"azure.mgmt.storagecache.aio.StorageCacheManagementClient.check_aml_fs_subnets": null,
"azure.mgmt.storagecache.StorageCacheManagementClient.get_required_aml_fs_subnets_size": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class StorageCacheManagementClientConfiguration: # pylint: disable=too-many-ins
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -43,7 +43,7 @@ def __init__(
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2025-07-01")
api_version: str = kwargs.pop("api_version", "2026-01-01")

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 @@ -27,6 +27,7 @@
AutoExportJobsOperations,
AutoImportJobsOperations,
CachesOperations,
ExpansionJobsOperations,
ImportJobsOperations,
Operations,
SkusOperations,
Expand Down Expand Up @@ -56,6 +57,8 @@ class StorageCacheManagementClient(
:vartype import_jobs: azure.mgmt.storagecache.operations.ImportJobsOperations
:ivar auto_import_jobs: AutoImportJobsOperations operations
:vartype auto_import_jobs: azure.mgmt.storagecache.operations.AutoImportJobsOperations
:ivar expansion_jobs: ExpansionJobsOperations operations
:vartype expansion_jobs: azure.mgmt.storagecache.operations.ExpansionJobsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.storagecache.operations.Operations
:ivar skus: SkusOperations operations
Expand All @@ -81,7 +84,7 @@ class StorageCacheManagementClient(
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2026-01-01". 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 Expand Up @@ -138,6 +141,7 @@ def __init__(
self.auto_export_jobs = AutoExportJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.import_jobs = ImportJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.auto_import_jobs = AutoImportJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.expansion_jobs = ExpansionJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.usage_models = UsageModelsOperations(self._client, self._config, self._serialize, self._deserialize)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):

# If dependencies is empty, try with current data class
# It has to be a subclass of Enum anyway
enum_type = self.dependencies.get(data_type, data.__class__)
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
if issubclass(enum_type, Enum):
return Serializer.serialize_enum(data, enum_obj=enum_type)

Expand Down Expand Up @@ -821,13 +821,20 @@ def serialize_basic(cls, data, data_type, **kwargs):
:param str data_type: Type of object in the iterable.
:rtype: str, int, float, bool
:return: serialized object
:raises TypeError: raise if data_type is not one of str, int, float, bool.
"""
custom_serializer = cls._get_custom_serializers(data_type, **kwargs)
if custom_serializer:
return custom_serializer(data)
if data_type == "str":
return cls.serialize_unicode(data)
return eval(data_type)(data) # nosec # pylint: disable=eval-used
if data_type == "int":
return int(data)
if data_type == "float":
return float(data)
if data_type == "bool":
return bool(data)
raise TypeError("Unknown basic data type: {}".format(data_type))

@classmethod
def serialize_unicode(cls, data):
Expand Down Expand Up @@ -1757,7 +1764,7 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return
:param str data_type: deserialization data type.
:return: Deserialized basic type.
:rtype: str, int, float or bool
:raises TypeError: if string format is not valid.
:raises TypeError: if string format is not valid or data_type is not one of str, int, float, bool.
"""
# If we're here, data is supposed to be a basic type.
# If it's still an XML node, take the text
Expand All @@ -1783,7 +1790,11 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return

if data_type == "str":
return self.deserialize_unicode(attr)
return eval(data_type)(attr) # nosec # pylint: disable=eval-used
if data_type == "int":
return int(attr)
if data_type == "float":
return float(attr)
raise TypeError("Unknown basic data type: {}".format(data_type))

@staticmethod
def deserialize_unicode(data):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "3.0.1"
VERSION = "3.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class StorageCacheManagementClientConfiguration: # pylint: disable=too-many-ins
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2026-01-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""
Expand All @@ -43,7 +43,7 @@ def __init__(
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2025-07-01")
api_version: str = kwargs.pop("api_version", "2026-01-01")

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 @@ -27,6 +27,7 @@
AutoExportJobsOperations,
AutoImportJobsOperations,
CachesOperations,
ExpansionJobsOperations,
ImportJobsOperations,
Operations,
SkusOperations,
Expand Down Expand Up @@ -56,6 +57,8 @@ class StorageCacheManagementClient(
:vartype import_jobs: azure.mgmt.storagecache.aio.operations.ImportJobsOperations
:ivar auto_import_jobs: AutoImportJobsOperations operations
:vartype auto_import_jobs: azure.mgmt.storagecache.aio.operations.AutoImportJobsOperations
:ivar expansion_jobs: ExpansionJobsOperations operations
:vartype expansion_jobs: azure.mgmt.storagecache.aio.operations.ExpansionJobsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.storagecache.aio.operations.Operations
:ivar skus: SkusOperations operations
Expand All @@ -81,7 +84,7 @@ class StorageCacheManagementClient(
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: Api Version. Default value is "2025-07-01". Note that overriding this
:keyword api_version: Api Version. Default value is "2026-01-01". 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 Expand Up @@ -140,6 +143,7 @@ def __init__(
self.auto_export_jobs = AutoExportJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.import_jobs = ImportJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.auto_import_jobs = AutoImportJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.expansion_jobs = ExpansionJobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.skus = SkusOperations(self._client, self._config, self._serialize, self._deserialize)
self.usage_models = UsageModelsOperations(self._client, self._config, self._serialize, self._deserialize)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from ._auto_export_jobs_operations import AutoExportJobsOperations # type: ignore
from ._import_jobs_operations import ImportJobsOperations # type: ignore
from ._auto_import_jobs_operations import AutoImportJobsOperations # type: ignore
from ._expansion_jobs_operations import ExpansionJobsOperations # type: ignore
from ._storage_cache_management_client_operations import _StorageCacheManagementClientOperationsMixin # type: ignore # pylint: disable=unused-import
from ._operations import Operations # type: ignore
from ._skus_operations import SkusOperations # type: ignore
Expand All @@ -36,6 +37,7 @@
"AutoExportJobsOperations",
"ImportJobsOperations",
"AutoImportJobsOperations",
"ExpansionJobsOperations",
"Operations",
"SkusOperations",
"UsageModelsOperations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
)
from .._configuration import StorageCacheManagementClientConfiguration

List = list
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
List = list


class AmlFilesystemsOperations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
List = list


class AscOperationsOperations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
from ...operations._asc_usages_operations import build_list_request
from .._configuration import StorageCacheManagementClientConfiguration

List = list
T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
List = list


class AscUsagesOperations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

T = TypeVar("T")
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]]
List = list


class AutoExportJobsOperations:
Expand Down Expand Up @@ -109,7 +110,10 @@ async def _delete_initial(
except (StreamConsumedError, StreamClosedError):
pass
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
error = self._deserialize.failsafe_deserialize(
_models.ErrorResponse,
pipeline_response,
)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

response_headers = {}
Expand Down Expand Up @@ -241,7 +245,10 @@ async def get(

if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
error = self._deserialize.failsafe_deserialize(
_models.ErrorResponse,
pipeline_response,
)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

deserialized = self._deserialize("AutoExportJob", pipeline_response.http_response)
Expand Down Expand Up @@ -310,7 +317,10 @@ async def _create_or_update_initial(
except (StreamConsumedError, StreamClosedError):
pass
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
error = self._deserialize.failsafe_deserialize(
_models.ErrorResponse,
pipeline_response,
)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

response_headers = {}
Expand Down Expand Up @@ -535,7 +545,10 @@ async def _update_initial(
except (StreamConsumedError, StreamClosedError):
pass
map_error(status_code=response.status_code, response=response, error_map=error_map)
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, pipeline_response)
error = self._deserialize.failsafe_deserialize(
_models.ErrorResponse,
pipeline_response,
)
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)

response_headers = {}
Expand Down
Loading
Loading