Skip to content

Commit 4360768

Browse files
[AutoRelease] t2-netapp-2024-02-29-57016(can only be merged by SDK owner) (#34527)
* code and test * add recordings --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: Einar Traustason <[email protected]>
1 parent 006b249 commit 4360768

File tree

147 files changed

+714
-10215
lines changed

Some content is hidden

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

147 files changed

+714
-10215
lines changed

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

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

3+
## 12.0.0 (2024-03-18)
4+
5+
### Breaking Changes
6+
7+
- Model VolumeGroupMetaData no longer has parameter deployment_spec_id
8+
39
## 12.0.0b1 (2023-12-22)
410

511
### 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.7+.
4+
This package has been tested with Python 3.8+.
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.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "639ecfad68419328658bd4cfe7094af4ce472be2",
2+
"commit": "4f093ebabe4525a5d10ca57e5804523a27dce7bf",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [

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_e1611990d7"
5+
"Tag": "python/netapp/azure-mgmt-netapp_133f48a4c5"
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
@@ -29,14 +29,14 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2023-05-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2023-07-01")
4040

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

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

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@
1616
from ._configuration import NetAppManagementClientConfiguration
1717
from ._serialization import Deserializer, Serializer
1818
from .operations import (
19-
AccountBackupsOperations,
2019
AccountsOperations,
2120
BackupPoliciesOperations,
22-
BackupVaultsOperations,
2321
BackupsOperations,
24-
BackupsUnderAccountOperations,
25-
BackupsUnderBackupVaultOperations,
26-
BackupsUnderVolumeOperations,
2722
NetAppResourceOperations,
2823
NetAppResourceQuotaLimitsOperations,
29-
NetAppResourceRegionInfosOperations,
3024
Operations,
3125
PoolsOperations,
3226
SnapshotPoliciesOperations,
@@ -52,9 +46,6 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
5246
:ivar net_app_resource_quota_limits: NetAppResourceQuotaLimitsOperations operations
5347
:vartype net_app_resource_quota_limits:
5448
azure.mgmt.netapp.operations.NetAppResourceQuotaLimitsOperations
55-
:ivar net_app_resource_region_infos: NetAppResourceRegionInfosOperations operations
56-
:vartype net_app_resource_region_infos:
57-
azure.mgmt.netapp.operations.NetAppResourceRegionInfosOperations
5849
:ivar accounts: AccountsOperations operations
5950
:vartype accounts: azure.mgmt.netapp.operations.AccountsOperations
6051
:ivar pools: PoolsOperations operations
@@ -67,8 +58,6 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
6758
:vartype snapshot_policies: azure.mgmt.netapp.operations.SnapshotPoliciesOperations
6859
:ivar backups: BackupsOperations operations
6960
:vartype backups: azure.mgmt.netapp.operations.BackupsOperations
70-
:ivar account_backups: AccountBackupsOperations operations
71-
:vartype account_backups: azure.mgmt.netapp.operations.AccountBackupsOperations
7261
:ivar backup_policies: BackupPoliciesOperations operations
7362
:vartype backup_policies: azure.mgmt.netapp.operations.BackupPoliciesOperations
7463
:ivar volume_quota_rules: VolumeQuotaRulesOperations operations
@@ -77,23 +66,14 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
7766
:vartype volume_groups: azure.mgmt.netapp.operations.VolumeGroupsOperations
7867
:ivar subvolumes: SubvolumesOperations operations
7968
:vartype subvolumes: azure.mgmt.netapp.operations.SubvolumesOperations
80-
:ivar backup_vaults: BackupVaultsOperations operations
81-
:vartype backup_vaults: azure.mgmt.netapp.operations.BackupVaultsOperations
82-
:ivar backups_under_backup_vault: BackupsUnderBackupVaultOperations operations
83-
:vartype backups_under_backup_vault:
84-
azure.mgmt.netapp.operations.BackupsUnderBackupVaultOperations
85-
:ivar backups_under_volume: BackupsUnderVolumeOperations operations
86-
:vartype backups_under_volume: azure.mgmt.netapp.operations.BackupsUnderVolumeOperations
87-
:ivar backups_under_account: BackupsUnderAccountOperations operations
88-
:vartype backups_under_account: azure.mgmt.netapp.operations.BackupsUnderAccountOperations
8969
:param credential: Credential needed for the client to connect to Azure. Required.
9070
:type credential: ~azure.core.credentials.TokenCredential
9171
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
9272
:type subscription_id: str
9373
:param base_url: Service URL. Default value is "https://management.azure.com".
9474
:type base_url: str
95-
:keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding
96-
this default value may result in unsupported behavior.
75+
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
76+
default value may result in unsupported behavior.
9777
:paramtype api_version: str
9878
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
9979
Retry-After header is present.
@@ -120,9 +100,6 @@ def __init__(
120100
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(
121101
self._client, self._config, self._serialize, self._deserialize
122102
)
123-
self.net_app_resource_region_infos = NetAppResourceRegionInfosOperations(
124-
self._client, self._config, self._serialize, self._deserialize
125-
)
126103
self.accounts = AccountsOperations(self._client, self._config, self._serialize, self._deserialize)
127104
self.pools = PoolsOperations(self._client, self._config, self._serialize, self._deserialize)
128105
self.volumes = VolumesOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -131,23 +108,12 @@ def __init__(
131108
self._client, self._config, self._serialize, self._deserialize
132109
)
133110
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
134-
self.account_backups = AccountBackupsOperations(self._client, self._config, self._serialize, self._deserialize)
135111
self.backup_policies = BackupPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
136112
self.volume_quota_rules = VolumeQuotaRulesOperations(
137113
self._client, self._config, self._serialize, self._deserialize
138114
)
139115
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
140116
self.subvolumes = SubvolumesOperations(self._client, self._config, self._serialize, self._deserialize)
141-
self.backup_vaults = BackupVaultsOperations(self._client, self._config, self._serialize, self._deserialize)
142-
self.backups_under_backup_vault = BackupsUnderBackupVaultOperations(
143-
self._client, self._config, self._serialize, self._deserialize
144-
)
145-
self.backups_under_volume = BackupsUnderVolumeOperations(
146-
self._client, self._config, self._serialize, self._deserialize
147-
)
148-
self.backups_under_account = BackupsUnderAccountOperations(
149-
self._client, self._config, self._serialize, self._deserialize
150-
)
151117

152118
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
153119
"""Runs the network request through the client's chained policies.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "12.0.0b1"
9+
VERSION = "12.0.0"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding
33-
this default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
33+
default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

3737
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
3838
super(NetAppManagementClientConfiguration, self).__init__(**kwargs)
39-
api_version: str = kwargs.pop("api_version", "2023-05-01-preview")
39+
api_version: str = kwargs.pop("api_version", "2023-07-01")
4040

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

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

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@
1616
from .._serialization import Deserializer, Serializer
1717
from ._configuration import NetAppManagementClientConfiguration
1818
from .operations import (
19-
AccountBackupsOperations,
2019
AccountsOperations,
2120
BackupPoliciesOperations,
22-
BackupVaultsOperations,
2321
BackupsOperations,
24-
BackupsUnderAccountOperations,
25-
BackupsUnderBackupVaultOperations,
26-
BackupsUnderVolumeOperations,
2722
NetAppResourceOperations,
2823
NetAppResourceQuotaLimitsOperations,
29-
NetAppResourceRegionInfosOperations,
3024
Operations,
3125
PoolsOperations,
3226
SnapshotPoliciesOperations,
@@ -52,9 +46,6 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
5246
:ivar net_app_resource_quota_limits: NetAppResourceQuotaLimitsOperations operations
5347
:vartype net_app_resource_quota_limits:
5448
azure.mgmt.netapp.aio.operations.NetAppResourceQuotaLimitsOperations
55-
:ivar net_app_resource_region_infos: NetAppResourceRegionInfosOperations operations
56-
:vartype net_app_resource_region_infos:
57-
azure.mgmt.netapp.aio.operations.NetAppResourceRegionInfosOperations
5849
:ivar accounts: AccountsOperations operations
5950
:vartype accounts: azure.mgmt.netapp.aio.operations.AccountsOperations
6051
:ivar pools: PoolsOperations operations
@@ -67,8 +58,6 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
6758
:vartype snapshot_policies: azure.mgmt.netapp.aio.operations.SnapshotPoliciesOperations
6859
:ivar backups: BackupsOperations operations
6960
:vartype backups: azure.mgmt.netapp.aio.operations.BackupsOperations
70-
:ivar account_backups: AccountBackupsOperations operations
71-
:vartype account_backups: azure.mgmt.netapp.aio.operations.AccountBackupsOperations
7261
:ivar backup_policies: BackupPoliciesOperations operations
7362
:vartype backup_policies: azure.mgmt.netapp.aio.operations.BackupPoliciesOperations
7463
:ivar volume_quota_rules: VolumeQuotaRulesOperations operations
@@ -77,23 +66,14 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
7766
:vartype volume_groups: azure.mgmt.netapp.aio.operations.VolumeGroupsOperations
7867
:ivar subvolumes: SubvolumesOperations operations
7968
:vartype subvolumes: azure.mgmt.netapp.aio.operations.SubvolumesOperations
80-
:ivar backup_vaults: BackupVaultsOperations operations
81-
:vartype backup_vaults: azure.mgmt.netapp.aio.operations.BackupVaultsOperations
82-
:ivar backups_under_backup_vault: BackupsUnderBackupVaultOperations operations
83-
:vartype backups_under_backup_vault:
84-
azure.mgmt.netapp.aio.operations.BackupsUnderBackupVaultOperations
85-
:ivar backups_under_volume: BackupsUnderVolumeOperations operations
86-
:vartype backups_under_volume: azure.mgmt.netapp.aio.operations.BackupsUnderVolumeOperations
87-
:ivar backups_under_account: BackupsUnderAccountOperations operations
88-
:vartype backups_under_account: azure.mgmt.netapp.aio.operations.BackupsUnderAccountOperations
8969
:param credential: Credential needed for the client to connect to Azure. Required.
9070
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
9171
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
9272
:type subscription_id: str
9373
:param base_url: Service URL. Default value is "https://management.azure.com".
9474
:type base_url: str
95-
:keyword api_version: Api Version. Default value is "2023-05-01-preview". Note that overriding
96-
this default value may result in unsupported behavior.
75+
:keyword api_version: Api Version. Default value is "2023-07-01". Note that overriding this
76+
default value may result in unsupported behavior.
9777
:paramtype api_version: str
9878
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
9979
Retry-After header is present.
@@ -120,9 +100,6 @@ def __init__(
120100
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(
121101
self._client, self._config, self._serialize, self._deserialize
122102
)
123-
self.net_app_resource_region_infos = NetAppResourceRegionInfosOperations(
124-
self._client, self._config, self._serialize, self._deserialize
125-
)
126103
self.accounts = AccountsOperations(self._client, self._config, self._serialize, self._deserialize)
127104
self.pools = PoolsOperations(self._client, self._config, self._serialize, self._deserialize)
128105
self.volumes = VolumesOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -131,23 +108,12 @@ def __init__(
131108
self._client, self._config, self._serialize, self._deserialize
132109
)
133110
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
134-
self.account_backups = AccountBackupsOperations(self._client, self._config, self._serialize, self._deserialize)
135111
self.backup_policies = BackupPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
136112
self.volume_quota_rules = VolumeQuotaRulesOperations(
137113
self._client, self._config, self._serialize, self._deserialize
138114
)
139115
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
140116
self.subvolumes = SubvolumesOperations(self._client, self._config, self._serialize, self._deserialize)
141-
self.backup_vaults = BackupVaultsOperations(self._client, self._config, self._serialize, self._deserialize)
142-
self.backups_under_backup_vault = BackupsUnderBackupVaultOperations(
143-
self._client, self._config, self._serialize, self._deserialize
144-
)
145-
self.backups_under_volume = BackupsUnderVolumeOperations(
146-
self._client, self._config, self._serialize, self._deserialize
147-
)
148-
self.backups_under_account = BackupsUnderAccountOperations(
149-
self._client, self._config, self._serialize, self._deserialize
150-
)
151117

152118
def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
153119
"""Runs the network request through the client's chained policies.

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,16 @@
99
from ._operations import Operations
1010
from ._net_app_resource_operations import NetAppResourceOperations
1111
from ._net_app_resource_quota_limits_operations import NetAppResourceQuotaLimitsOperations
12-
from ._net_app_resource_region_infos_operations import NetAppResourceRegionInfosOperations
1312
from ._accounts_operations import AccountsOperations
1413
from ._pools_operations import PoolsOperations
1514
from ._volumes_operations import VolumesOperations
1615
from ._snapshots_operations import SnapshotsOperations
1716
from ._snapshot_policies_operations import SnapshotPoliciesOperations
1817
from ._backups_operations import BackupsOperations
19-
from ._account_backups_operations import AccountBackupsOperations
2018
from ._backup_policies_operations import BackupPoliciesOperations
2119
from ._volume_quota_rules_operations import VolumeQuotaRulesOperations
2220
from ._volume_groups_operations import VolumeGroupsOperations
2321
from ._subvolumes_operations import SubvolumesOperations
24-
from ._backup_vaults_operations import BackupVaultsOperations
25-
from ._backups_under_backup_vault_operations import BackupsUnderBackupVaultOperations
26-
from ._backups_under_volume_operations import BackupsUnderVolumeOperations
27-
from ._backups_under_account_operations import BackupsUnderAccountOperations
2822

2923
from ._patch import __all__ as _patch_all
3024
from ._patch import * # pylint: disable=unused-wildcard-import
@@ -34,22 +28,16 @@
3428
"Operations",
3529
"NetAppResourceOperations",
3630
"NetAppResourceQuotaLimitsOperations",
37-
"NetAppResourceRegionInfosOperations",
3831
"AccountsOperations",
3932
"PoolsOperations",
4033
"VolumesOperations",
4134
"SnapshotsOperations",
4235
"SnapshotPoliciesOperations",
4336
"BackupsOperations",
44-
"AccountBackupsOperations",
4537
"BackupPoliciesOperations",
4638
"VolumeQuotaRulesOperations",
4739
"VolumeGroupsOperations",
4840
"SubvolumesOperations",
49-
"BackupVaultsOperations",
50-
"BackupsUnderBackupVaultOperations",
51-
"BackupsUnderVolumeOperations",
52-
"BackupsUnderAccountOperations",
5341
]
5442
__all__.extend([p for p in _patch_all if p not in __all__])
5543
_patch_sdk()

0 commit comments

Comments
 (0)