Skip to content

Commit 491b075

Browse files
[AutoRelease] t2-netapp-2025-05-13-04863(can only be merged by SDK owner) (#41043)
* code and test * Update CHANGELOG.md * Update assets.json * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent e8dcc69 commit 491b075

File tree

211 files changed

+6996
-1357
lines changed

Some content is hidden

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

211 files changed

+6996
-1357
lines changed

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

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

3+
## 14.0.0b1 (2025-05-20)
4+
5+
### Features Added
6+
7+
- Client `NetAppManagementClient` added operation group `net_app_resource_quota_limits_account`
8+
- Client `NetAppManagementClient` added operation group `buckets`
9+
- Model `CapacityPool` added property `custom_throughput_mibps`
10+
- Model `CapacityPoolPatch` added property `custom_throughput_mibps`
11+
- Model `NetAppAccount` added property `ldap_configuration`
12+
- Model `NetAppAccountPatch` added property `ldap_configuration`
13+
- Model `ReplicationObject` added property `external_replication_setup_status`
14+
- Model `ReplicationObject` added property `external_replication_setup_info`
15+
- Enum `ServiceLevel` added member `FLEXIBLE`
16+
- Model `Volume` added property `accept_grow_capacity_pool_for_short_term_clone_split`
17+
- Model `Volume` added property `ldap_server_type`
18+
- Model `Volume` added property `inherited_size_in_bytes`
19+
- Model `Volume` added property `language`
20+
- Model `VolumeGroupVolumeProperties` added property `accept_grow_capacity_pool_for_short_term_clone_split`
21+
- Model `VolumeGroupVolumeProperties` added property `ldap_server_type`
22+
- Model `VolumeGroupVolumeProperties` added property `inherited_size_in_bytes`
23+
- Model `VolumeGroupVolumeProperties` added property `language`
24+
- Added enum `AcceptGrowCapacityPoolForShortTermCloneSplit`
25+
- Added model `Bucket`
26+
- Added model `BucketCredentialsExpiry`
27+
- Added model `BucketGenerateCredentials`
28+
- Added model `BucketList`
29+
- Added model `BucketPatch`
30+
- Added model `BucketServerPatchProperties`
31+
- Added model `BucketServerProperties`
32+
- Added model `CifsUser`
33+
- Added enum `CredentialsStatus`
34+
- Added enum `ExternalReplicationSetupStatus`
35+
- Added model `FileSystemUser`
36+
- Added model `LdapConfiguration`
37+
- Added enum `LdapServerType`
38+
- Added model `ListQuotaReportResponse`
39+
- Added enum `NetappProvisioningState`
40+
- Added model `NfsUser`
41+
- Added model `QuotaItem`
42+
- Added model `QuotaItemList`
43+
- Added model `QuotaReport`
44+
- Added enum `VolumeLanguage`
45+
- Model `VolumesOperations` added method `begin_list_quota_report`
46+
- Model `VolumesOperations` added method `begin_split_clone_from_parent`
47+
- Added operation group `BucketsOperations`
48+
- Added operation group `NetAppResourceQuotaLimitsAccountOperations`
49+
50+
### Breaking Changes
51+
52+
- Deleted or renamed model `SubscriptionQuotaItem`
53+
- Deleted or renamed model `SubscriptionQuotaItemList`
54+
355
## 13.5.0 (2025-04-21)
456

557
### Features Added

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure NetApp Files Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "27046dbff974e3901970aa53b29cec6d8ec1342a",
2+
"commit": "70d66773d8c2cd474e2b4439e1ba8526180f3c52",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.27.4",
6+
"@autorest/python@6.34.1",
77
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/netapp/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/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/netapp/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.34.1 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/netapp/resource-manager/readme.md"
1111
}

sdk/netapp/azure-mgmt-netapp/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/netapp/azure-mgmt-netapp",
5-
"Tag": "python/netapp/azure-mgmt-netapp_e267792b26"
5+
"Tag": "python/netapp/azure-mgmt-netapp_b3143ba639"
66
}

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-
2727
:type credential: ~azure.core.credentials.TokenCredential
2828
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2025-01-01". Note that overriding this
31-
default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2025-01-01-preview". Note that overriding
31+
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2025-01-01")
36+
api_version: str = kwargs.pop("api_version", "2025-01-01-preview")
3737

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

sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/_net_app_management_client.py

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import NetAppManagementClientConfiguration
20-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2123
from .operations import (
2224
AccountsOperations,
2325
BackupPoliciesOperations,
@@ -26,7 +28,9 @@
2628
BackupsUnderAccountOperations,
2729
BackupsUnderBackupVaultOperations,
2830
BackupsUnderVolumeOperations,
31+
BucketsOperations,
2932
NetAppResourceOperations,
33+
NetAppResourceQuotaLimitsAccountOperations,
3034
NetAppResourceQuotaLimitsOperations,
3135
NetAppResourceRegionInfosOperations,
3236
NetAppResourceUsagesOperations,
@@ -79,6 +83,10 @@ class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
7983
:vartype subvolumes: azure.mgmt.netapp.operations.SubvolumesOperations
8084
:ivar backups: BackupsOperations operations
8185
:vartype backups: azure.mgmt.netapp.operations.BackupsOperations
86+
:ivar net_app_resource_quota_limits_account: NetAppResourceQuotaLimitsAccountOperations
87+
operations
88+
:vartype net_app_resource_quota_limits_account:
89+
azure.mgmt.netapp.operations.NetAppResourceQuotaLimitsAccountOperations
8290
:ivar backup_vaults: BackupVaultsOperations operations
8391
:vartype backup_vaults: azure.mgmt.netapp.operations.BackupVaultsOperations
8492
:ivar backups_under_backup_vault: BackupsUnderBackupVaultOperations operations
@@ -88,29 +96,33 @@ class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
8896
:vartype backups_under_volume: azure.mgmt.netapp.operations.BackupsUnderVolumeOperations
8997
:ivar backups_under_account: BackupsUnderAccountOperations operations
9098
:vartype backups_under_account: azure.mgmt.netapp.operations.BackupsUnderAccountOperations
99+
:ivar buckets: BucketsOperations operations
100+
:vartype buckets: azure.mgmt.netapp.operations.BucketsOperations
91101
:param credential: Credential needed for the client to connect to Azure. Required.
92102
:type credential: ~azure.core.credentials.TokenCredential
93103
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
94104
:type subscription_id: str
95-
:param base_url: Service URL. Default value is "https://management.azure.com".
105+
:param base_url: Service URL. Default value is None.
96106
:type base_url: str
97-
:keyword api_version: Api Version. Default value is "2025-01-01". Note that overriding this
98-
default value may result in unsupported behavior.
107+
:keyword api_version: Api Version. Default value is "2025-01-01-preview". Note that overriding
108+
this default value may result in unsupported behavior.
99109
:paramtype api_version: str
100110
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
101111
Retry-After header is present.
102112
"""
103113

104114
def __init__(
105-
self,
106-
credential: "TokenCredential",
107-
subscription_id: str,
108-
base_url: str = "https://management.azure.com",
109-
**kwargs: Any
115+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
110116
) -> None:
117+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
118+
_endpoints = get_arm_endpoints(_cloud)
119+
if not base_url:
120+
base_url = _endpoints["resource_manager"]
121+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
111122
self._config = NetAppManagementClientConfiguration(
112-
credential=credential, subscription_id=subscription_id, **kwargs
123+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
113124
)
125+
114126
_policies = kwargs.pop("policies", None)
115127
if _policies is None:
116128
_policies = [
@@ -129,7 +141,7 @@ def __init__(
129141
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
130142
self._config.http_logging_policy,
131143
]
132-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
144+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
133145

134146
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
135147
self._serialize = Serializer(client_models)
@@ -160,6 +172,9 @@ def __init__(
160172
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
161173
self.subvolumes = SubvolumesOperations(self._client, self._config, self._serialize, self._deserialize)
162174
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
175+
self.net_app_resource_quota_limits_account = NetAppResourceQuotaLimitsAccountOperations(
176+
self._client, self._config, self._serialize, self._deserialize
177+
)
163178
self.backup_vaults = BackupVaultsOperations(self._client, self._config, self._serialize, self._deserialize)
164179
self.backups_under_backup_vault = BackupsUnderBackupVaultOperations(
165180
self._client, self._config, self._serialize, self._deserialize
@@ -170,6 +185,7 @@ def __init__(
170185
self.backups_under_account = BackupsUnderAccountOperations(
171186
self._client, self._config, self._serialize, self._deserialize
172187
)
188+
self.buckets = BucketsOperations(self._client, self._config, self._serialize, self._deserialize)
173189

174190
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
175191
"""Runs the network request through the client's chained policies.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)