Skip to content

Commit 103bc88

Browse files
[AutoPR azure-mgmt-netapp]-generated-from-SDK Generation - Python-5627711 (#44217)
* Configurations: 'specification/netapp/resource-manager/Microsoft.NetApp/NetApp/tspconfig.yaml', API Version: 2025-09-01-preview, SDK Release Type: beta, and CommitSHA: 'fa4de8af2faa4a809027619c6ec8ed45b1e0a761' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5627711 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG.md --------- Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent 2817692 commit 103bc88

File tree

12 files changed

+231
-126
lines changed

12 files changed

+231
-126
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 14.1.0b1 (2025-11-28)
3+
## 14.1.0b1 (2025-12-02)
44

55
### Features Added
66

@@ -47,6 +47,7 @@
4747
- Added enum `CacheLifeCycleState`
4848
- Added model `CacheMountTargetProperties`
4949
- Added model `CacheProperties`
50+
- Added model `CachePropertiesExportPolicy`
5051
- Added enum `CacheProvisioningState`
5152
- Added model `CacheUpdate`
5253
- Added model `CacheUpdateProperties`
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"apiVersion": "2025-09-01-preview",
3-
"commit": "97241c594f16e0915407b7dc85377e4e3b26b0b9",
3+
"commit": "fa4de8af2faa4a809027619c6ec8ed45b1e0a761",
44
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
55
"typespec_src": "specification/netapp/resource-manager/Microsoft.NetApp/NetApp",
6-
"emitterVersion": "0.53.2"
6+
"emitterVersion": "0.54.0"
77
}

sdk/netapp/azure-mgmt-netapp/apiview-properties.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"azure.mgmt.netapp.models.Cache": "Microsoft.NetApp.Cache",
3939
"azure.mgmt.netapp.models.CacheMountTargetProperties": "Microsoft.NetApp.CacheMountTargetProperties",
4040
"azure.mgmt.netapp.models.CacheProperties": "Microsoft.NetApp.CacheProperties",
41+
"azure.mgmt.netapp.models.CachePropertiesExportPolicy": "Microsoft.NetApp.CachePropertiesExportPolicy",
4142
"azure.mgmt.netapp.models.CacheUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
4243
"azure.mgmt.netapp.models.CacheUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties",
4344
"azure.mgmt.netapp.models.CapacityPool": "Microsoft.NetApp.CapacityPool",

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14163,6 +14163,9 @@ async def _update_initial(
1416314163

1416414164
response_headers = {}
1416514165
if response.status_code == 202:
14166+
response_headers["Azure-AsyncOperation"] = self._deserialize(
14167+
"str", response.headers.get("Azure-AsyncOperation")
14168+
)
1416614169
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1416714170
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1416814171

@@ -14184,7 +14187,7 @@ async def begin_update(
1418414187
*,
1418514188
content_type: str = "application/json",
1418614189
**kwargs: Any
14187-
) -> AsyncLROPoller[None]:
14190+
) -> AsyncLROPoller[_models.Cache]:
1418814191
"""Patch the specified Cache.
1418914192

1419014193
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14201,8 +14204,9 @@ async def begin_update(
1420114204
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1420214205
Default value is "application/json".
1420314206
:paramtype content_type: str
14204-
:return: An instance of AsyncLROPoller that returns None
14205-
:rtype: ~azure.core.polling.AsyncLROPoller[None]
14207+
:return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14208+
MutableMapping
14209+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1420614210
:raises ~azure.core.exceptions.HttpResponseError:
1420714211
"""
1420814212

@@ -14217,7 +14221,7 @@ async def begin_update(
1421714221
*,
1421814222
content_type: str = "application/json",
1421914223
**kwargs: Any
14220-
) -> AsyncLROPoller[None]:
14224+
) -> AsyncLROPoller[_models.Cache]:
1422114225
"""Patch the specified Cache.
1422214226

1422314227
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14234,8 +14238,9 @@ async def begin_update(
1423414238
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
1423514239
Default value is "application/json".
1423614240
:paramtype content_type: str
14237-
:return: An instance of AsyncLROPoller that returns None
14238-
:rtype: ~azure.core.polling.AsyncLROPoller[None]
14241+
:return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14242+
MutableMapping
14243+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1423914244
:raises ~azure.core.exceptions.HttpResponseError:
1424014245
"""
1424114246

@@ -14250,7 +14255,7 @@ async def begin_update(
1425014255
*,
1425114256
content_type: str = "application/json",
1425214257
**kwargs: Any
14253-
) -> AsyncLROPoller[None]:
14258+
) -> AsyncLROPoller[_models.Cache]:
1425414259
"""Patch the specified Cache.
1425514260

1425614261
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14267,8 +14272,9 @@ async def begin_update(
1426714272
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
1426814273
Default value is "application/json".
1426914274
:paramtype content_type: str
14270-
:return: An instance of AsyncLROPoller that returns None
14271-
:rtype: ~azure.core.polling.AsyncLROPoller[None]
14275+
:return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14276+
MutableMapping
14277+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1427214278
:raises ~azure.core.exceptions.HttpResponseError:
1427314279
"""
1427414280

@@ -14297,7 +14303,7 @@ async def begin_update(
1429714303
cache_name: str,
1429814304
body: Union[_models.CacheUpdate, JSON, IO[bytes]],
1429914305
**kwargs: Any
14300-
) -> AsyncLROPoller[None]:
14306+
) -> AsyncLROPoller[_models.Cache]:
1430114307
"""Patch the specified Cache.
1430214308

1430314309
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -14312,15 +14318,16 @@ async def begin_update(
1431214318
:param body: The resource properties to be updated. Is one of the following types: CacheUpdate,
1431314319
JSON, IO[bytes] Required.
1431414320
:type body: ~azure.mgmt.netapp.models.CacheUpdate or JSON or IO[bytes]
14315-
:return: An instance of AsyncLROPoller that returns None
14316-
:rtype: ~azure.core.polling.AsyncLROPoller[None]
14321+
:return: An instance of AsyncLROPoller that returns Cache. The Cache is compatible with
14322+
MutableMapping
14323+
:rtype: ~azure.core.polling.AsyncLROPoller[~azure.mgmt.netapp.models.Cache]
1431714324
:raises ~azure.core.exceptions.HttpResponseError:
1431814325
"""
1431914326
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
1432014327
_params = kwargs.pop("params", {}) or {}
1432114328

1432214329
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
14323-
cls: ClsType[None] = kwargs.pop("cls", None)
14330+
cls: ClsType[_models.Cache] = kwargs.pop("cls", None)
1432414331
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
1432514332
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
1432614333
cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -14340,9 +14347,12 @@ async def begin_update(
1434014347
await raw_result.http_response.read() # type: ignore
1434114348
kwargs.pop("error_map", None)
1434214349

14343-
def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-return-statements
14350+
def get_long_running_output(pipeline_response):
14351+
response = pipeline_response.http_response
14352+
deserialized = _deserialize(_models.Cache, response.json())
1434414353
if cls:
14345-
return cls(pipeline_response, None, {}) # type: ignore
14354+
return cls(pipeline_response, deserialized, {}) # type: ignore
14355+
return deserialized
1434614356

1434714357
path_format_arguments = {
1434814358
"endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
@@ -14357,13 +14367,15 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
1435714367
else:
1435814368
polling_method = polling
1435914369
if cont_token:
14360-
return AsyncLROPoller[None].from_continuation_token(
14370+
return AsyncLROPoller[_models.Cache].from_continuation_token(
1436114371
polling_method=polling_method,
1436214372
continuation_token=cont_token,
1436314373
client=self._client,
1436414374
deserialization_callback=get_long_running_output,
1436514375
)
14366-
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
14376+
return AsyncLROPoller[_models.Cache](
14377+
self._client, raw_result, get_long_running_output, polling_method # type: ignore
14378+
)
1436714379

1436814380
@api_version_validation(
1436914381
method_added_on="2025-09-01-preview",
@@ -16420,6 +16432,9 @@ async def _update_initial(
1642016432

1642116433
response_headers = {}
1642216434
if response.status_code == 202:
16435+
response_headers["Azure-AsyncOperation"] = self._deserialize(
16436+
"str", response.headers.get("Azure-AsyncOperation")
16437+
)
1642316438
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1642416439
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1642516440

@@ -17832,6 +17847,9 @@ async def _update_initial(
1783217847

1783317848
response_headers = {}
1783417849
if response.status_code == 202:
17850+
response_headers["Azure-AsyncOperation"] = self._deserialize(
17851+
"str", response.headers.get("Azure-AsyncOperation")
17852+
)
1783517853
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1783617854
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1783717855

@@ -19801,6 +19819,9 @@ async def _update_initial(
1980119819

1980219820
response_headers = {}
1980319821
if response.status_code == 202:
19822+
response_headers["Azure-AsyncOperation"] = self._deserialize(
19823+
"str", response.headers.get("Azure-AsyncOperation")
19824+
)
1980419825
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
1980519826
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
1980619827

@@ -20831,6 +20852,9 @@ async def _update_initial(
2083120852

2083220853
response_headers = {}
2083320854
if response.status_code == 202:
20855+
response_headers["Azure-AsyncOperation"] = self._deserialize(
20856+
"str", response.headers.get("Azure-AsyncOperation")
20857+
)
2083420858
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
2083520859
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
2083620860

@@ -22687,6 +22711,9 @@ async def _update_initial(
2268722711

2268822712
response_headers = {}
2268922713
if response.status_code == 202:
22714+
response_headers["Azure-AsyncOperation"] = self._deserialize(
22715+
"str", response.headers.get("Azure-AsyncOperation")
22716+
)
2269022717
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
2269122718
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
2269222719

@@ -23609,6 +23636,9 @@ async def _update_initial(
2360923636

2361023637
response_headers = {}
2361123638
if response.status_code == 202:
23639+
response_headers["Azure-AsyncOperation"] = self._deserialize(
23640+
"str", response.headers.get("Azure-AsyncOperation")
23641+
)
2361223642
response_headers["Location"] = self._deserialize("str", response.headers.get("Location"))
2361323643
response_headers["Retry-After"] = self._deserialize("int", response.headers.get("Retry-After"))
2361423644

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
Cache,
4949
CacheMountTargetProperties,
5050
CacheProperties,
51+
CachePropertiesExportPolicy,
5152
CacheUpdate,
5253
CacheUpdateProperties,
5354
CapacityPool,
@@ -349,6 +350,7 @@
349350
"Cache",
350351
"CacheMountTargetProperties",
351352
"CacheProperties",
353+
"CachePropertiesExportPolicy",
352354
"CacheUpdate",
353355
"CacheUpdateProperties",
354356
"CapacityPool",

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_enums.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ class PolicyStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
718718

719719

720720
class ProtocolTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
721-
"""Export policy rule."""
721+
"""Set of supported protocol types, which include NFSv3, NFSv4 and SMB protocol."""
722722

723723
NF_SV3 = "NFSv3"
724724
"""NFSv3 protocol type"""

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/models/_models.py

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,8 +2020,9 @@ class CacheProperties(_Model):
20202020
range 50GiB to 1PiB. Values expressed in bytes as multiples of 1GiB. Required.
20212021
:vartype size: int
20222022
:ivar export_policy: Set of export policy rules.
2023-
:vartype export_policy: list[~azure.mgmt.netapp.models.ExportPolicyRule]
2024-
:ivar protocol_types: Set of protocol types, default NFSv3, CIFS for SMB protocol.
2023+
:vartype export_policy: ~azure.mgmt.netapp.models.CachePropertiesExportPolicy
2024+
:ivar protocol_types: Set of supported protocol types, which include NFSv3, NFSv4 and SMB
2025+
protocol.
20252026
:vartype protocol_types: list[str or ~azure.mgmt.netapp.models.ProtocolTypes]
20262027
:ivar provisioning_state: Azure lifecycle management. Known values are: "Creating", "Updating",
20272028
"Deleting", "Failed", "Succeeded", and "Canceled".
@@ -2096,14 +2097,14 @@ class CacheProperties(_Model):
20962097
size: int = rest_field(visibility=["read", "create", "update", "delete", "query"])
20972098
"""Maximum storage quota allowed for a file system in bytes. Valid values are in the range 50GiB
20982099
to 1PiB. Values expressed in bytes as multiples of 1GiB. Required."""
2099-
export_policy: Optional[list["_models.ExportPolicyRule"]] = rest_field(
2100+
export_policy: Optional["_models.CachePropertiesExportPolicy"] = rest_field(
21002101
name="exportPolicy", visibility=["read", "create", "update", "delete", "query"]
21012102
)
21022103
"""Set of export policy rules."""
21032104
protocol_types: Optional[list[Union[str, "_models.ProtocolTypes"]]] = rest_field(
21042105
name="protocolTypes", visibility=["read", "create", "update", "delete", "query"]
21052106
)
2106-
"""Set of protocol types, default NFSv3, CIFS for SMB protocol."""
2107+
"""Set of supported protocol types, which include NFSv3, NFSv4 and SMB protocol."""
21072108
provisioning_state: Optional[Union[str, "_models.CacheProvisioningState"]] = rest_field(
21082109
name="provisioningState", visibility=["read"]
21092110
)
@@ -2203,7 +2204,7 @@ def __init__( # pylint: disable=too-many-locals
22032204
peering_subnet_resource_id: str,
22042205
encryption_key_source: Union[str, "_models.EncryptionKeySource"],
22052206
origin_cluster_information: "_models.OriginClusterInformation",
2206-
export_policy: Optional[list["_models.ExportPolicyRule"]] = None,
2207+
export_policy: Optional["_models.CachePropertiesExportPolicy"] = None,
22072208
protocol_types: Optional[list[Union[str, "_models.ProtocolTypes"]]] = None,
22082209
kerberos: Optional[Union[str, "_models.KerberosState"]] = None,
22092210
smb_settings: Optional["_models.SmbSettings"] = None,
@@ -2227,6 +2228,36 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
22272228
super().__init__(*args, **kwargs)
22282229

22292230

2231+
class CachePropertiesExportPolicy(_Model):
2232+
"""Set of export policy rules.
2233+
2234+
:ivar rules: Export policy rule.
2235+
:vartype rules: list[~azure.mgmt.netapp.models.ExportPolicyRule]
2236+
"""
2237+
2238+
rules: Optional[list["_models.ExportPolicyRule"]] = rest_field(
2239+
visibility=["read", "create", "update", "delete", "query"]
2240+
)
2241+
"""Export policy rule."""
2242+
2243+
@overload
2244+
def __init__(
2245+
self,
2246+
*,
2247+
rules: Optional[list["_models.ExportPolicyRule"]] = None,
2248+
) -> None: ...
2249+
2250+
@overload
2251+
def __init__(self, mapping: Mapping[str, Any]) -> None:
2252+
"""
2253+
:param mapping: raw JSON to initialize the model.
2254+
:type mapping: Mapping[str, Any]
2255+
"""
2256+
2257+
def __init__(self, *args: Any, **kwargs: Any) -> None:
2258+
super().__init__(*args, **kwargs)
2259+
2260+
22302261
class CacheUpdate(_Model):
22312262
"""The type used for update operations of the Cache.
22322263
@@ -2269,8 +2300,9 @@ class CacheUpdateProperties(_Model):
22692300
range 50GiB to 1PiB. Values expressed in bytes as multiples of 1GiB.
22702301
:vartype size: int
22712302
:ivar export_policy: Set of export policy rules.
2272-
:vartype export_policy: list[~azure.mgmt.netapp.models.ExportPolicyRule]
2273-
:ivar protocol_types: Set of protocol types, default NFSv3, CIFS for SMB protocol.
2303+
:vartype export_policy: ~azure.mgmt.netapp.models.CachePropertiesExportPolicy
2304+
:ivar protocol_types: Set of supported protocol types, which include NFSv3, NFSv4 and SMB
2305+
protocol.
22742306
:vartype protocol_types: list[str or ~azure.mgmt.netapp.models.ProtocolTypes]
22752307
:ivar smb_settings: SMB information for the cache.
22762308
:vartype smb_settings: ~azure.mgmt.netapp.models.SmbSettings
@@ -2292,14 +2324,14 @@ class CacheUpdateProperties(_Model):
22922324
size: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"])
22932325
"""Maximum storage quota allowed for a file system in bytes. Valid values are in the range 50GiB
22942326
to 1PiB. Values expressed in bytes as multiples of 1GiB."""
2295-
export_policy: Optional[list["_models.ExportPolicyRule"]] = rest_field(
2327+
export_policy: Optional["_models.CachePropertiesExportPolicy"] = rest_field(
22962328
name="exportPolicy", visibility=["read", "create", "update", "delete", "query"]
22972329
)
22982330
"""Set of export policy rules."""
22992331
protocol_types: Optional[list[Union[str, "_models.ProtocolTypes"]]] = rest_field(
23002332
name="protocolTypes", visibility=["read", "create", "update", "delete", "query"]
23012333
)
2302-
"""Set of protocol types, default NFSv3, CIFS for SMB protocol."""
2334+
"""Set of supported protocol types, which include NFSv3, NFSv4 and SMB protocol."""
23032335
smb_settings: Optional["_models.SmbSettings"] = rest_field(
23042336
name="smbSettings", visibility=["read", "create", "update", "delete", "query"]
23052337
)
@@ -2330,7 +2362,7 @@ def __init__(
23302362
self,
23312363
*,
23322364
size: Optional[int] = None,
2333-
export_policy: Optional[list["_models.ExportPolicyRule"]] = None,
2365+
export_policy: Optional["_models.CachePropertiesExportPolicy"] = None,
23342366
protocol_types: Optional[list[Union[str, "_models.ProtocolTypes"]]] = None,
23352367
smb_settings: Optional["_models.SmbSettings"] = None,
23362368
throughput_mibps: Optional[float] = None,

0 commit comments

Comments
 (0)