Skip to content

Commit 8771183

Browse files
azure-sdkaudunnChenxiJiang333
authored
[AutoRelease] t2-netapp-2025-09-17-22417(can only be merged by SDK owner) (#43037)
* code and test * assets * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: audunn <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 5c30d5f commit 8771183

File tree

213 files changed

+5836
-885
lines changed

Some content is hidden

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

213 files changed

+5836
-885
lines changed

sdk/netapp/azure-mgmt-netapp/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+
## 14.0.0b2 (2025-09-26)
4+
5+
### Features Added
6+
7+
- Model `NetAppManagementClient` added parameter `cloud_setting` in method `__init__`
8+
- Model `Bucket` added property `permissions`
9+
- Model `BucketPatch` added property `permissions`
10+
- Model `ReplicationObject` added property `mirror_state`
11+
- Model `ReplicationObject` added property `relationship_status`
12+
- Added enum `BucketPatchPermissions`
13+
- Added enum `BucketPermissions`
14+
- Added enum `NetAppProvisioningState`
15+
16+
### Breaking Changes
17+
18+
- Model `ListQuotaReportResponse` deleted or renamed its instance variable `next_link`
19+
- Deleted or renamed enum value `RelationshipStatus.FAILED`
20+
- Deleted or renamed enum value `RelationshipStatus.UNKNOWN`
21+
- Deleted or renamed model `NetappProvisioningState`
22+
- Deleted or renamed model `ProvisioningState`
23+
- Parameter `body` of method `BucketsOperations.begin_update` is now required
24+
325
## 13.7.0 (2025-08-18)
426

527
### Features Added
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
recursive-include tests *.py *.json
2-
recursive-include samples *.py *.md
31
include *.md
4-
include azure/__init__.py
5-
include azure/mgmt/__init__.py
62
include LICENSE
73
include azure/mgmt/netapp/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "1bdafdbace5d4cc7eb461433adac4a45af87c186",
2+
"commit": "520e1f6bc250b4ce51a22eaa7583cc0b24564b71",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.38.2",
6+
"@autorest/python@6.40.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --keep-setup-py=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2025-06-01 --use=@autorest/python@6.38.2 --use=@autorest/[email protected] --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 --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.40.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/netapp/resource-manager/readme.md"
1111
}

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

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@
2121
"azure.mgmt.netapp.models.BackupVaultsList": null,
2222
"azure.mgmt.netapp.models.BreakFileLocksRequest": null,
2323
"azure.mgmt.netapp.models.BreakReplicationRequest": null,
24+
"azure.mgmt.netapp.models.Bucket": null,
25+
"azure.mgmt.netapp.models.BucketCredentialsExpiry": null,
26+
"azure.mgmt.netapp.models.BucketGenerateCredentials": null,
27+
"azure.mgmt.netapp.models.BucketList": null,
28+
"azure.mgmt.netapp.models.BucketPatch": null,
29+
"azure.mgmt.netapp.models.BucketServerPatchProperties": null,
30+
"azure.mgmt.netapp.models.BucketServerProperties": null,
2431
"azure.mgmt.netapp.models.CapacityPool": null,
2532
"azure.mgmt.netapp.models.CapacityPoolList": null,
2633
"azure.mgmt.netapp.models.CapacityPoolPatch": null,
2734
"azure.mgmt.netapp.models.ChangeKeyVault": null,
2835
"azure.mgmt.netapp.models.CheckAvailabilityResponse": null,
36+
"azure.mgmt.netapp.models.CifsUser": null,
2937
"azure.mgmt.netapp.models.CloudErrorBody": null,
3038
"azure.mgmt.netapp.models.ClusterPeerCommandResponse": null,
3139
"azure.mgmt.netapp.models.DailySchedule": null,
@@ -38,13 +46,16 @@
3846
"azure.mgmt.netapp.models.ErrorResponse": null,
3947
"azure.mgmt.netapp.models.ExportPolicyRule": null,
4048
"azure.mgmt.netapp.models.FilePathAvailabilityRequest": null,
49+
"azure.mgmt.netapp.models.FileSystemUser": null,
4150
"azure.mgmt.netapp.models.GetGroupIdListForLDAPUserRequest": null,
4251
"azure.mgmt.netapp.models.GetGroupIdListForLDAPUserResponse": null,
4352
"azure.mgmt.netapp.models.GetKeyVaultStatusResponse": null,
4453
"azure.mgmt.netapp.models.HourlySchedule": null,
4554
"azure.mgmt.netapp.models.KeyVaultPrivateEndpoint": null,
4655
"azure.mgmt.netapp.models.KeyVaultProperties": null,
56+
"azure.mgmt.netapp.models.LdapConfiguration": null,
4757
"azure.mgmt.netapp.models.LdapSearchScopeOpt": null,
58+
"azure.mgmt.netapp.models.ListQuotaReportResponse": null,
4859
"azure.mgmt.netapp.models.ListReplications": null,
4960
"azure.mgmt.netapp.models.LogSpecification": null,
5061
"azure.mgmt.netapp.models.ManagedServiceIdentity": null,
@@ -56,6 +67,7 @@
5667
"azure.mgmt.netapp.models.NetAppAccountList": null,
5768
"azure.mgmt.netapp.models.NetAppAccountPatch": null,
5869
"azure.mgmt.netapp.models.NetworkSiblingSet": null,
70+
"azure.mgmt.netapp.models.NfsUser": null,
5971
"azure.mgmt.netapp.models.NicInfo": null,
6072
"azure.mgmt.netapp.models.Operation": null,
6173
"azure.mgmt.netapp.models.OperationDisplay": null,
@@ -65,6 +77,9 @@
6577
"azure.mgmt.netapp.models.PoolChangeRequest": null,
6678
"azure.mgmt.netapp.models.QueryNetworkSiblingSetRequest": null,
6779
"azure.mgmt.netapp.models.QuotaAvailabilityRequest": null,
80+
"azure.mgmt.netapp.models.QuotaItem": null,
81+
"azure.mgmt.netapp.models.QuotaItemList": null,
82+
"azure.mgmt.netapp.models.QuotaReport": null,
6883
"azure.mgmt.netapp.models.ReestablishReplicationRequest": null,
6984
"azure.mgmt.netapp.models.RegionInfo": null,
7085
"azure.mgmt.netapp.models.RegionInfoAvailabilityZoneMappingsItem": null,
@@ -87,8 +102,6 @@
87102
"azure.mgmt.netapp.models.SnapshotPolicyVolumeList": null,
88103
"azure.mgmt.netapp.models.SnapshotRestoreFiles": null,
89104
"azure.mgmt.netapp.models.SnapshotsList": null,
90-
"azure.mgmt.netapp.models.SubscriptionQuotaItem": null,
91-
"azure.mgmt.netapp.models.SubscriptionQuotaItemList": null,
92105
"azure.mgmt.netapp.models.SubvolumeInfo": null,
93106
"azure.mgmt.netapp.models.SubvolumeModel": null,
94107
"azure.mgmt.netapp.models.SubvolumePatchRequest": null,
@@ -138,26 +151,32 @@
138151
"azure.mgmt.netapp.models.VolumeStorageToNetworkProximity": null,
139152
"azure.mgmt.netapp.models.EndpointType": null,
140153
"azure.mgmt.netapp.models.ReplicationSchedule": null,
154+
"azure.mgmt.netapp.models.ExternalReplicationSetupStatus": null,
155+
"azure.mgmt.netapp.models.MirrorState": null,
156+
"azure.mgmt.netapp.models.RelationshipStatus": null,
141157
"azure.mgmt.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit": null,
142158
"azure.mgmt.netapp.models.SecurityStyle": null,
143159
"azure.mgmt.netapp.models.SmbAccessBasedEnumeration": null,
144160
"azure.mgmt.netapp.models.SmbNonBrowsable": null,
145161
"azure.mgmt.netapp.models.EncryptionKeySource": null,
162+
"azure.mgmt.netapp.models.LdapServerType": null,
146163
"azure.mgmt.netapp.models.CoolAccessRetrievalPolicy": null,
147164
"azure.mgmt.netapp.models.CoolAccessTieringPolicy": null,
148165
"azure.mgmt.netapp.models.FileAccessLogs": null,
149166
"azure.mgmt.netapp.models.AvsDataStore": null,
150167
"azure.mgmt.netapp.models.EnableSubvolumes": null,
151-
"azure.mgmt.netapp.models.ProvisioningState": null,
168+
"azure.mgmt.netapp.models.VolumeLanguage": null,
152169
"azure.mgmt.netapp.models.Type": null,
170+
"azure.mgmt.netapp.models.NetAppProvisioningState": null,
153171
"azure.mgmt.netapp.models.ApplicationType": null,
154172
"azure.mgmt.netapp.models.BackupType": null,
173+
"azure.mgmt.netapp.models.CredentialsStatus": null,
174+
"azure.mgmt.netapp.models.BucketPermissions": null,
155175
"azure.mgmt.netapp.models.CheckNameResourceTypes": null,
156176
"azure.mgmt.netapp.models.InAvailabilityReasonType": null,
157177
"azure.mgmt.netapp.models.CheckQuotaNameResourceTypes": null,
158178
"azure.mgmt.netapp.models.NetworkSiblingSetProvisioningState": null,
159-
"azure.mgmt.netapp.models.RelationshipStatus": null,
160-
"azure.mgmt.netapp.models.MirrorState": null,
179+
"azure.mgmt.netapp.models.BucketPatchPermissions": null,
161180
"azure.mgmt.netapp.operations.Operations.list": null,
162181
"azure.mgmt.netapp.aio.operations.Operations.list": null,
163182
"azure.mgmt.netapp.operations.NetAppResourceOperations.check_name_availability": null,
@@ -236,6 +255,8 @@
236255
"azure.mgmt.netapp.aio.operations.VolumesOperations.begin_break_file_locks": null,
237256
"azure.mgmt.netapp.operations.VolumesOperations.begin_list_get_group_id_list_for_ldap_user": null,
238257
"azure.mgmt.netapp.aio.operations.VolumesOperations.begin_list_get_group_id_list_for_ldap_user": null,
258+
"azure.mgmt.netapp.operations.VolumesOperations.begin_list_quota_report": null,
259+
"azure.mgmt.netapp.aio.operations.VolumesOperations.begin_list_quota_report": null,
239260
"azure.mgmt.netapp.operations.VolumesOperations.begin_break_replication": null,
240261
"azure.mgmt.netapp.aio.operations.VolumesOperations.begin_break_replication": null,
241262
"azure.mgmt.netapp.operations.VolumesOperations.begin_reestablish_replication": null,
@@ -346,6 +367,10 @@
346367
"azure.mgmt.netapp.aio.operations.BackupsOperations.begin_update": null,
347368
"azure.mgmt.netapp.operations.BackupsOperations.begin_delete": null,
348369
"azure.mgmt.netapp.aio.operations.BackupsOperations.begin_delete": null,
370+
"azure.mgmt.netapp.operations.NetAppResourceQuotaLimitsAccountOperations.list": null,
371+
"azure.mgmt.netapp.aio.operations.NetAppResourceQuotaLimitsAccountOperations.list": null,
372+
"azure.mgmt.netapp.operations.NetAppResourceQuotaLimitsAccountOperations.get": null,
373+
"azure.mgmt.netapp.aio.operations.NetAppResourceQuotaLimitsAccountOperations.get": null,
349374
"azure.mgmt.netapp.operations.BackupVaultsOperations.list_by_net_app_account": null,
350375
"azure.mgmt.netapp.aio.operations.BackupVaultsOperations.list_by_net_app_account": null,
351376
"azure.mgmt.netapp.operations.BackupVaultsOperations.get": null,
@@ -361,6 +386,18 @@
361386
"azure.mgmt.netapp.operations.BackupsUnderVolumeOperations.begin_migrate_backups": null,
362387
"azure.mgmt.netapp.aio.operations.BackupsUnderVolumeOperations.begin_migrate_backups": null,
363388
"azure.mgmt.netapp.operations.BackupsUnderAccountOperations.begin_migrate_backups": null,
364-
"azure.mgmt.netapp.aio.operations.BackupsUnderAccountOperations.begin_migrate_backups": null
389+
"azure.mgmt.netapp.aio.operations.BackupsUnderAccountOperations.begin_migrate_backups": null,
390+
"azure.mgmt.netapp.operations.BucketsOperations.list": null,
391+
"azure.mgmt.netapp.aio.operations.BucketsOperations.list": null,
392+
"azure.mgmt.netapp.operations.BucketsOperations.get": null,
393+
"azure.mgmt.netapp.aio.operations.BucketsOperations.get": null,
394+
"azure.mgmt.netapp.operations.BucketsOperations.begin_create_or_update": null,
395+
"azure.mgmt.netapp.aio.operations.BucketsOperations.begin_create_or_update": null,
396+
"azure.mgmt.netapp.operations.BucketsOperations.begin_update": null,
397+
"azure.mgmt.netapp.aio.operations.BucketsOperations.begin_update": null,
398+
"azure.mgmt.netapp.operations.BucketsOperations.begin_delete": null,
399+
"azure.mgmt.netapp.aio.operations.BucketsOperations.begin_delete": null,
400+
"azure.mgmt.netapp.operations.BucketsOperations.generate_credentials": null,
401+
"azure.mgmt.netapp.aio.operations.BucketsOperations.generate_credentials": null
365402
}
366403
}

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_125ca7e82e"
5+
"Tag": "python/netapp/azure-mgmt-netapp_9966a62e07"
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

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

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -27,13 +28,22 @@ class NetAppManagementClientConfiguration: # pylint: disable=too-many-instance-
2728
:type credential: ~azure.core.credentials.TokenCredential
2829
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2930
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2025-06-01". Note that overriding this
31-
default value may result in unsupported behavior.
31+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
32+
None.
33+
:type cloud_setting: ~azure.core.AzureClouds
34+
:keyword api_version: Api Version. Default value is "2025-07-01-preview". Note that overriding
35+
this default value may result in unsupported behavior.
3236
:paramtype api_version: str
3337
"""
3438

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2025-06-01")
39+
def __init__(
40+
self,
41+
credential: "TokenCredential",
42+
subscription_id: str,
43+
cloud_setting: Optional["AzureClouds"] = None,
44+
**kwargs: Any
45+
) -> None:
46+
api_version: str = kwargs.pop("api_version", "2025-07-01-preview")
3747

3848
if credential is None:
3949
raise ValueError("Parameter 'credential' must not be None.")
@@ -42,6 +52,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
4252

4353
self.credential = credential
4454
self.subscription_id = subscription_id
55+
self.cloud_setting = cloud_setting
4556
self.api_version = api_version
4657
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4758
kwargs.setdefault("sdk_moniker", "mgmt-netapp/{}".format(VERSION))

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

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
BackupsUnderAccountOperations,
2929
BackupsUnderBackupVaultOperations,
3030
BackupsUnderVolumeOperations,
31+
BucketsOperations,
3132
NetAppResourceOperations,
33+
NetAppResourceQuotaLimitsAccountOperations,
3234
NetAppResourceQuotaLimitsOperations,
3335
NetAppResourceRegionInfosOperations,
3436
NetAppResourceUsagesOperations,
@@ -43,6 +45,7 @@
4345
)
4446

4547
if TYPE_CHECKING:
48+
from azure.core import AzureClouds
4649
from azure.core.credentials import TokenCredential
4750

4851

@@ -81,6 +84,10 @@ class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
8184
:vartype subvolumes: azure.mgmt.netapp.operations.SubvolumesOperations
8285
:ivar backups: BackupsOperations operations
8386
:vartype backups: azure.mgmt.netapp.operations.BackupsOperations
87+
:ivar net_app_resource_quota_limits_account: NetAppResourceQuotaLimitsAccountOperations
88+
operations
89+
:vartype net_app_resource_quota_limits_account:
90+
azure.mgmt.netapp.operations.NetAppResourceQuotaLimitsAccountOperations
8491
:ivar backup_vaults: BackupVaultsOperations operations
8592
:vartype backup_vaults: azure.mgmt.netapp.operations.BackupVaultsOperations
8693
:ivar backups_under_backup_vault: BackupsUnderBackupVaultOperations operations
@@ -90,29 +97,44 @@ class NetAppManagementClient: # pylint: disable=too-many-instance-attributes
9097
:vartype backups_under_volume: azure.mgmt.netapp.operations.BackupsUnderVolumeOperations
9198
:ivar backups_under_account: BackupsUnderAccountOperations operations
9299
:vartype backups_under_account: azure.mgmt.netapp.operations.BackupsUnderAccountOperations
100+
:ivar buckets: BucketsOperations operations
101+
:vartype buckets: azure.mgmt.netapp.operations.BucketsOperations
93102
:param credential: Credential needed for the client to connect to Azure. Required.
94103
:type credential: ~azure.core.credentials.TokenCredential
95104
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
96105
:type subscription_id: str
97106
:param base_url: Service URL. Default value is None.
98107
:type base_url: str
99-
:keyword api_version: Api Version. Default value is "2025-06-01". Note that overriding this
100-
default value may result in unsupported behavior.
108+
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
109+
None.
110+
:paramtype cloud_setting: ~azure.core.AzureClouds
111+
:keyword api_version: Api Version. Default value is "2025-07-01-preview". Note that overriding
112+
this default value may result in unsupported behavior.
101113
:paramtype api_version: str
102114
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
103115
Retry-After header is present.
104116
"""
105117

106118
def __init__(
107-
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
119+
self,
120+
credential: "TokenCredential",
121+
subscription_id: str,
122+
base_url: Optional[str] = None,
123+
*,
124+
cloud_setting: Optional["AzureClouds"] = None,
125+
**kwargs: Any
108126
) -> None:
109-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
127+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
110128
_endpoints = get_arm_endpoints(_cloud)
111129
if not base_url:
112130
base_url = _endpoints["resource_manager"]
113131
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
114132
self._config = NetAppManagementClientConfiguration(
115-
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
133+
credential=credential,
134+
subscription_id=subscription_id,
135+
cloud_setting=cloud_setting,
136+
credential_scopes=credential_scopes,
137+
**kwargs
116138
)
117139

118140
_policies = kwargs.pop("policies", None)
@@ -164,6 +186,9 @@ def __init__(
164186
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
165187
self.subvolumes = SubvolumesOperations(self._client, self._config, self._serialize, self._deserialize)
166188
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
189+
self.net_app_resource_quota_limits_account = NetAppResourceQuotaLimitsAccountOperations(
190+
self._client, self._config, self._serialize, self._deserialize
191+
)
167192
self.backup_vaults = BackupVaultsOperations(self._client, self._config, self._serialize, self._deserialize)
168193
self.backups_under_backup_vault = BackupsUnderBackupVaultOperations(
169194
self._client, self._config, self._serialize, self._deserialize
@@ -174,6 +199,7 @@ def __init__(
174199
self.backups_under_account = BackupsUnderAccountOperations(
175200
self._client, self._config, self._serialize, self._deserialize
176201
)
202+
self.buckets = BucketsOperations(self._client, self._config, self._serialize, self._deserialize)
177203

178204
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
179205
"""Runs the network request through the client's chained policies.

0 commit comments

Comments
 (0)