Skip to content

Commit a7a429b

Browse files
T2 netapp 2023 12 05 75817 2 (#33640)
* code and test * assets for t2-netapp-2023-12-05-75817 * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 5f1484b commit a7a429b

File tree

140 files changed

+10168
-370
lines changed

Some content is hidden

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

140 files changed

+10168
-370
lines changed

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

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

3+
## 12.0.0b1 (2023-12-22)
4+
5+
### Features Added
6+
7+
- Added operation AccountsOperations.begin_migrate_encryption_key
8+
- Added operation BackupsOperations.begin_create
9+
- Added operation BackupsOperations.begin_delete
10+
- Added operation BackupsOperations.begin_update
11+
- Added operation BackupsOperations.get
12+
- Added operation BackupsOperations.get_latest_status
13+
- Added operation BackupsOperations.list_by_vault
14+
- Added operation VolumesOperations.begin_split_clone_from_parent
15+
- Added operation group AccountBackupsOperations
16+
- Added operation group BackupVaultsOperations
17+
- Added operation group BackupsUnderAccountOperations
18+
- Added operation group BackupsUnderBackupVaultOperations
19+
- Added operation group BackupsUnderVolumeOperations
20+
- Added operation group NetAppResourceRegionInfosOperations
21+
- Model NetAppAccount has a new parameter is_multi_ad_enabled
22+
- Model NetAppAccount has a new parameter nfs_v4_id_domain
23+
- Model NetAppAccountPatch has a new parameter is_multi_ad_enabled
24+
- Model NetAppAccountPatch has a new parameter nfs_v4_id_domain
25+
- Model ReplicationObject has a new parameter remote_path
26+
- Model Volume has a new parameter inherited_size_in_bytes
27+
- Model VolumeGroupVolumeProperties has a new parameter inherited_size_in_bytes
28+
- Model VolumePatchPropertiesDataProtection has a new parameter backup
29+
- Model VolumePropertiesDataProtection has a new parameter backup
30+
31+
### Breaking Changes
32+
33+
- Model VolumeGroupMetaData no longer has parameter deployment_spec_id
34+
335
## 11.0.0 (2023-10-23)
436

537
### Features Added

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-netapp%2FREADME.png)

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": "bbe1ea8bf5aa6cfbfa8855e03dbb9a93f8266bcd",
2+
"commit": "639ecfad68419328658bd4cfe7094af4ce472be2",
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_8079de9f52"
5+
"Tag": "python/netapp/azure-mgmt-netapp_e1611990d7"
66
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too
2727
2828
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: The ID of the target subscription. Required.
30+
: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". Note that overriding this
33-
default value may result in unsupported behavior.
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.
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")
39+
api_version: str = kwargs.pop("api_version", "2023-05-01-preview")
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: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@
1616
from ._configuration import NetAppManagementClientConfiguration
1717
from ._serialization import Deserializer, Serializer
1818
from .operations import (
19+
AccountBackupsOperations,
1920
AccountsOperations,
2021
BackupPoliciesOperations,
22+
BackupVaultsOperations,
2123
BackupsOperations,
24+
BackupsUnderAccountOperations,
25+
BackupsUnderBackupVaultOperations,
26+
BackupsUnderVolumeOperations,
2227
NetAppResourceOperations,
2328
NetAppResourceQuotaLimitsOperations,
29+
NetAppResourceRegionInfosOperations,
2430
Operations,
2531
PoolsOperations,
2632
SnapshotPoliciesOperations,
@@ -46,6 +52,9 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
4652
:ivar net_app_resource_quota_limits: NetAppResourceQuotaLimitsOperations operations
4753
:vartype net_app_resource_quota_limits:
4854
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
4958
:ivar accounts: AccountsOperations operations
5059
:vartype accounts: azure.mgmt.netapp.operations.AccountsOperations
5160
:ivar pools: PoolsOperations operations
@@ -58,6 +67,8 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
5867
:vartype snapshot_policies: azure.mgmt.netapp.operations.SnapshotPoliciesOperations
5968
:ivar backups: BackupsOperations operations
6069
:vartype backups: azure.mgmt.netapp.operations.BackupsOperations
70+
:ivar account_backups: AccountBackupsOperations operations
71+
:vartype account_backups: azure.mgmt.netapp.operations.AccountBackupsOperations
6172
:ivar backup_policies: BackupPoliciesOperations operations
6273
:vartype backup_policies: azure.mgmt.netapp.operations.BackupPoliciesOperations
6374
:ivar volume_quota_rules: VolumeQuotaRulesOperations operations
@@ -66,14 +77,23 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
6677
:vartype volume_groups: azure.mgmt.netapp.operations.VolumeGroupsOperations
6778
:ivar subvolumes: SubvolumesOperations operations
6879
: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
6989
:param credential: Credential needed for the client to connect to Azure. Required.
7090
:type credential: ~azure.core.credentials.TokenCredential
71-
:param subscription_id: The ID of the target subscription. Required.
91+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
7292
:type subscription_id: str
7393
:param base_url: Service URL. Default value is "https://management.azure.com".
7494
:type base_url: str
75-
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
76-
default value may result in unsupported behavior.
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.
7797
:paramtype api_version: str
7898
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7999
Retry-After header is present.
@@ -100,6 +120,9 @@ def __init__(
100120
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(
101121
self._client, self._config, self._serialize, self._deserialize
102122
)
123+
self.net_app_resource_region_infos = NetAppResourceRegionInfosOperations(
124+
self._client, self._config, self._serialize, self._deserialize
125+
)
103126
self.accounts = AccountsOperations(self._client, self._config, self._serialize, self._deserialize)
104127
self.pools = PoolsOperations(self._client, self._config, self._serialize, self._deserialize)
105128
self.volumes = VolumesOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -108,12 +131,23 @@ def __init__(
108131
self._client, self._config, self._serialize, self._deserialize
109132
)
110133
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
134+
self.account_backups = AccountBackupsOperations(self._client, self._config, self._serialize, self._deserialize)
111135
self.backup_policies = BackupPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
112136
self.volume_quota_rules = VolumeQuotaRulesOperations(
113137
self._client, self._config, self._serialize, self._deserialize
114138
)
115139
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
116140
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+
)
117151

118152
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
119153
"""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 = "11.0.0"
9+
VERSION = "12.0.0b1"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ class NetAppManagementClientConfiguration(Configuration): # pylint: disable=too
2727
2828
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
30-
:param subscription_id: The ID of the target subscription. Required.
30+
: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". Note that overriding this
33-
default value may result in unsupported behavior.
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.
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")
39+
api_version: str = kwargs.pop("api_version", "2023-05-01-preview")
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: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@
1616
from .._serialization import Deserializer, Serializer
1717
from ._configuration import NetAppManagementClientConfiguration
1818
from .operations import (
19+
AccountBackupsOperations,
1920
AccountsOperations,
2021
BackupPoliciesOperations,
22+
BackupVaultsOperations,
2123
BackupsOperations,
24+
BackupsUnderAccountOperations,
25+
BackupsUnderBackupVaultOperations,
26+
BackupsUnderVolumeOperations,
2227
NetAppResourceOperations,
2328
NetAppResourceQuotaLimitsOperations,
29+
NetAppResourceRegionInfosOperations,
2430
Operations,
2531
PoolsOperations,
2632
SnapshotPoliciesOperations,
@@ -46,6 +52,9 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
4652
:ivar net_app_resource_quota_limits: NetAppResourceQuotaLimitsOperations operations
4753
:vartype net_app_resource_quota_limits:
4854
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
4958
:ivar accounts: AccountsOperations operations
5059
:vartype accounts: azure.mgmt.netapp.aio.operations.AccountsOperations
5160
:ivar pools: PoolsOperations operations
@@ -58,6 +67,8 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
5867
:vartype snapshot_policies: azure.mgmt.netapp.aio.operations.SnapshotPoliciesOperations
5968
:ivar backups: BackupsOperations operations
6069
:vartype backups: azure.mgmt.netapp.aio.operations.BackupsOperations
70+
:ivar account_backups: AccountBackupsOperations operations
71+
:vartype account_backups: azure.mgmt.netapp.aio.operations.AccountBackupsOperations
6172
:ivar backup_policies: BackupPoliciesOperations operations
6273
:vartype backup_policies: azure.mgmt.netapp.aio.operations.BackupPoliciesOperations
6374
:ivar volume_quota_rules: VolumeQuotaRulesOperations operations
@@ -66,14 +77,23 @@ class NetAppManagementClient: # pylint: disable=client-accepts-api-version-keyw
6677
:vartype volume_groups: azure.mgmt.netapp.aio.operations.VolumeGroupsOperations
6778
:ivar subvolumes: SubvolumesOperations operations
6879
: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
6989
:param credential: Credential needed for the client to connect to Azure. Required.
7090
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
71-
:param subscription_id: The ID of the target subscription. Required.
91+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
7292
:type subscription_id: str
7393
:param base_url: Service URL. Default value is "https://management.azure.com".
7494
:type base_url: str
75-
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
76-
default value may result in unsupported behavior.
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.
7797
:paramtype api_version: str
7898
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7999
Retry-After header is present.
@@ -100,6 +120,9 @@ def __init__(
100120
self.net_app_resource_quota_limits = NetAppResourceQuotaLimitsOperations(
101121
self._client, self._config, self._serialize, self._deserialize
102122
)
123+
self.net_app_resource_region_infos = NetAppResourceRegionInfosOperations(
124+
self._client, self._config, self._serialize, self._deserialize
125+
)
103126
self.accounts = AccountsOperations(self._client, self._config, self._serialize, self._deserialize)
104127
self.pools = PoolsOperations(self._client, self._config, self._serialize, self._deserialize)
105128
self.volumes = VolumesOperations(self._client, self._config, self._serialize, self._deserialize)
@@ -108,12 +131,23 @@ def __init__(
108131
self._client, self._config, self._serialize, self._deserialize
109132
)
110133
self.backups = BackupsOperations(self._client, self._config, self._serialize, self._deserialize)
134+
self.account_backups = AccountBackupsOperations(self._client, self._config, self._serialize, self._deserialize)
111135
self.backup_policies = BackupPoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
112136
self.volume_quota_rules = VolumeQuotaRulesOperations(
113137
self._client, self._config, self._serialize, self._deserialize
114138
)
115139
self.volume_groups = VolumeGroupsOperations(self._client, self._config, self._serialize, self._deserialize)
116140
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+
)
117151

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

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,22 @@
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
1213
from ._accounts_operations import AccountsOperations
1314
from ._pools_operations import PoolsOperations
1415
from ._volumes_operations import VolumesOperations
1516
from ._snapshots_operations import SnapshotsOperations
1617
from ._snapshot_policies_operations import SnapshotPoliciesOperations
1718
from ._backups_operations import BackupsOperations
19+
from ._account_backups_operations import AccountBackupsOperations
1820
from ._backup_policies_operations import BackupPoliciesOperations
1921
from ._volume_quota_rules_operations import VolumeQuotaRulesOperations
2022
from ._volume_groups_operations import VolumeGroupsOperations
2123
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
2228

2329
from ._patch import __all__ as _patch_all
2430
from ._patch import * # pylint: disable=unused-wildcard-import
@@ -28,16 +34,22 @@
2834
"Operations",
2935
"NetAppResourceOperations",
3036
"NetAppResourceQuotaLimitsOperations",
37+
"NetAppResourceRegionInfosOperations",
3138
"AccountsOperations",
3239
"PoolsOperations",
3340
"VolumesOperations",
3441
"SnapshotsOperations",
3542
"SnapshotPoliciesOperations",
3643
"BackupsOperations",
44+
"AccountBackupsOperations",
3745
"BackupPoliciesOperations",
3846
"VolumeQuotaRulesOperations",
3947
"VolumeGroupsOperations",
4048
"SubvolumesOperations",
49+
"BackupVaultsOperations",
50+
"BackupsUnderBackupVaultOperations",
51+
"BackupsUnderVolumeOperations",
52+
"BackupsUnderAccountOperations",
4153
]
4254
__all__.extend([p for p in _patch_all if p not in __all__])
4355
_patch_sdk()

0 commit comments

Comments
 (0)