Skip to content

Commit d38219f

Browse files
SDKAutohodd
SDKAuto
authored and
hodd
committed
CodeGen from PR 16381 in Azure/azure-rest-api-specs
[NetAppFiles] Anf 16015 net app files 2021-08-01 (Azure#16381) * Add 2021-08-01 folder * Bump to api-version 2021-08 * Apply cahnges to api-version 2021-08 * Apply changes to api-version 2021-08 * Add VolumeGroups API * prettier * Add VolumeGroups API * Update volumeType desciption * Remove Name from backupPolicyPropertyBag * Remove Name from backupPolicy Examples
1 parent 9c6296d commit d38219f

39 files changed

+2087
-183
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "6b95b0f0fa71e18a350cf0ba152591a29a94bdc0",
7+
"commit": "31efd7108fe0fcccb69d6b3d4054c648565e767b",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/netapp/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
1010
"readme": "specification/netapp/resource-manager/readme.md"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-06-01"
51+
self.api_version = "2021-08-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-netapp/{}'.format(VERSION))
5454
self._configure(**kwargs)

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-06-01",
3-
"total_api_version_list": ["2021-06-01"],
2+
"chosen_version": "2021-08-01",
3+
"total_api_version_list": ["2021-08-01"],
44
"client": {
55
"name": "NetAppManagementClient",
66
"filename": "_net_app_management_client",
@@ -109,6 +109,7 @@
109109
"backups": "BackupsOperations",
110110
"account_backups": "AccountBackupsOperations",
111111
"backup_policies": "BackupPoliciesOperations",
112-
"vaults": "VaultsOperations"
112+
"vaults": "VaultsOperations",
113+
"volume_groups": "VolumeGroupsOperations"
113114
}
114115
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from .operations import AccountBackupsOperations
3232
from .operations import BackupPoliciesOperations
3333
from .operations import VaultsOperations
34+
from .operations import VolumeGroupsOperations
3435
from . import models
3536

3637

@@ -61,6 +62,8 @@ class NetAppManagementClient(object):
6162
:vartype backup_policies: azure.mgmt.netapp.operations.BackupPoliciesOperations
6263
:ivar vaults: VaultsOperations operations
6364
:vartype vaults: azure.mgmt.netapp.operations.VaultsOperations
65+
:ivar volume_groups: VolumeGroupsOperations operations
66+
:vartype volume_groups: azure.mgmt.netapp.operations.VolumeGroupsOperations
6467
:param credential: Credential needed for the client to connect to Azure.
6568
:type credential: ~azure.core.credentials.TokenCredential
6669
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
@@ -111,6 +114,8 @@ def __init__(
111114
self._client, self._config, self._serialize, self._deserialize)
112115
self.vaults = VaultsOperations(
113116
self._client, self._config, self._serialize, self._deserialize)
117+
self.volume_groups = VolumeGroupsOperations(
118+
self._client, self._config, self._serialize, self._deserialize)
114119

115120
def _send_request(self, http_request, **kwargs):
116121
# type: (HttpRequest, Any) -> HttpResponse

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

+1-1
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 = "5.1.0"
9+
VERSION = "1.0.0b1"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-06-01"
48+
self.api_version = "2021-08-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-netapp/{}'.format(VERSION))
5151
self._configure(**kwargs)

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

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from .operations import AccountBackupsOperations
3030
from .operations import BackupPoliciesOperations
3131
from .operations import VaultsOperations
32+
from .operations import VolumeGroupsOperations
3233
from .. import models
3334

3435

@@ -59,6 +60,8 @@ class NetAppManagementClient(object):
5960
:vartype backup_policies: azure.mgmt.netapp.aio.operations.BackupPoliciesOperations
6061
:ivar vaults: VaultsOperations operations
6162
:vartype vaults: azure.mgmt.netapp.aio.operations.VaultsOperations
63+
:ivar volume_groups: VolumeGroupsOperations operations
64+
:vartype volume_groups: azure.mgmt.netapp.aio.operations.VolumeGroupsOperations
6265
:param credential: Credential needed for the client to connect to Azure.
6366
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
6467
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
@@ -108,6 +111,8 @@ def __init__(
108111
self._client, self._config, self._serialize, self._deserialize)
109112
self.vaults = VaultsOperations(
110113
self._client, self._config, self._serialize, self._deserialize)
114+
self.volume_groups = VolumeGroupsOperations(
115+
self._client, self._config, self._serialize, self._deserialize)
111116

112117
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
113118
"""Runs the network request through the client's chained policies.

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

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from ._account_backups_operations import AccountBackupsOperations
1919
from ._backup_policies_operations import BackupPoliciesOperations
2020
from ._vaults_operations import VaultsOperations
21+
from ._volume_groups_operations import VolumeGroupsOperations
2122

2223
__all__ = [
2324
'Operations',
@@ -32,4 +33,5 @@
3233
'AccountBackupsOperations',
3334
'BackupPoliciesOperations',
3435
'VaultsOperations',
36+
'VolumeGroupsOperations',
3537
]

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def list(
6767
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6868
}
6969
error_map.update(kwargs.pop('error_map', {}))
70-
api_version = "2021-06-01"
70+
api_version = "2021-08-01"
7171
accept = "application/json"
7272

7373
def prepare_request(next_link=None):
@@ -146,7 +146,7 @@ async def get(
146146
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
147147
}
148148
error_map.update(kwargs.pop('error_map', {}))
149-
api_version = "2021-06-01"
149+
api_version = "2021-08-01"
150150
accept = "application/json"
151151

152152
# Construct URL
@@ -195,7 +195,7 @@ async def _delete_initial(
195195
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
196196
}
197197
error_map.update(kwargs.pop('error_map', {}))
198-
api_version = "2021-06-01"
198+
api_version = "2021-08-01"
199199

200200
# Construct URL
201201
url = self._delete_initial.metadata['url'] # type: ignore

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def list_by_subscription(
6161
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6262
}
6363
error_map.update(kwargs.pop('error_map', {}))
64-
api_version = "2021-06-01"
64+
api_version = "2021-08-01"
6565
accept = "application/json"
6666

6767
def prepare_request(next_link=None):
@@ -132,7 +132,7 @@ def list(
132132
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
133133
}
134134
error_map.update(kwargs.pop('error_map', {}))
135-
api_version = "2021-06-01"
135+
api_version = "2021-08-01"
136136
accept = "application/json"
137137

138138
def prepare_request(next_link=None):
@@ -207,7 +207,7 @@ async def get(
207207
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
208208
}
209209
error_map.update(kwargs.pop('error_map', {}))
210-
api_version = "2021-06-01"
210+
api_version = "2021-08-01"
211211
accept = "application/json"
212212

213213
# Construct URL
@@ -255,7 +255,7 @@ async def _create_or_update_initial(
255255
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
256256
}
257257
error_map.update(kwargs.pop('error_map', {}))
258-
api_version = "2021-06-01"
258+
api_version = "2021-08-01"
259259
content_type = kwargs.pop("content_type", "application/json")
260260
accept = "application/json"
261261

@@ -384,7 +384,7 @@ async def _delete_initial(
384384
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
385385
}
386386
error_map.update(kwargs.pop('error_map', {}))
387-
api_version = "2021-06-01"
387+
api_version = "2021-08-01"
388388

389389
# Construct URL
390390
url = self._delete_initial.metadata['url'] # type: ignore
@@ -493,7 +493,7 @@ async def _update_initial(
493493
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
494494
}
495495
error_map.update(kwargs.pop('error_map', {}))
496-
api_version = "2021-06-01"
496+
api_version = "2021-08-01"
497497
content_type = kwargs.pop("content_type", "application/json")
498498
accept = "application/json"
499499

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def list(
6767
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6868
}
6969
error_map.update(kwargs.pop('error_map', {}))
70-
api_version = "2021-06-01"
70+
api_version = "2021-08-01"
7171
accept = "application/json"
7272

7373
def prepare_request(next_link=None):
@@ -146,7 +146,7 @@ async def get(
146146
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
147147
}
148148
error_map.update(kwargs.pop('error_map', {}))
149-
api_version = "2021-06-01"
149+
api_version = "2021-08-01"
150150
accept = "application/json"
151151

152152
# Construct URL
@@ -196,7 +196,7 @@ async def _create_initial(
196196
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
197197
}
198198
error_map.update(kwargs.pop('error_map', {}))
199-
api_version = "2021-06-01"
199+
api_version = "2021-08-01"
200200
content_type = kwargs.pop("content_type", "application/json")
201201
accept = "application/json"
202202

@@ -334,7 +334,7 @@ async def _update_initial(
334334
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
335335
}
336336
error_map.update(kwargs.pop('error_map', {}))
337-
api_version = "2021-06-01"
337+
api_version = "2021-08-01"
338338
content_type = kwargs.pop("content_type", "application/json")
339339
accept = "application/json"
340340

@@ -470,7 +470,7 @@ async def _delete_initial(
470470
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
471471
}
472472
error_map.update(kwargs.pop('error_map', {}))
473-
api_version = "2021-06-01"
473+
api_version = "2021-08-01"
474474

475475
# Construct URL
476476
url = self._delete_initial.metadata['url'] # type: ignore

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def get_status(
7373
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7474
}
7575
error_map.update(kwargs.pop('error_map', {}))
76-
api_version = "2021-06-01"
76+
api_version = "2021-08-01"
7777
accept = "application/json"
7878

7979
# Construct URL
@@ -141,7 +141,7 @@ async def get_volume_restore_status(
141141
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
142142
}
143143
error_map.update(kwargs.pop('error_map', {}))
144-
api_version = "2021-06-01"
144+
api_version = "2021-08-01"
145145
accept = "application/json"
146146

147147
# Construct URL
@@ -209,7 +209,7 @@ def list(
209209
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
210210
}
211211
error_map.update(kwargs.pop('error_map', {}))
212-
api_version = "2021-06-01"
212+
api_version = "2021-08-01"
213213
accept = "application/json"
214214

215215
def prepare_request(next_link=None):
@@ -296,7 +296,7 @@ async def get(
296296
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
297297
}
298298
error_map.update(kwargs.pop('error_map', {}))
299-
api_version = "2021-06-01"
299+
api_version = "2021-08-01"
300300
accept = "application/json"
301301

302302
# Construct URL
@@ -350,7 +350,7 @@ async def _create_initial(
350350
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
351351
}
352352
error_map.update(kwargs.pop('error_map', {}))
353-
api_version = "2021-06-01"
353+
api_version = "2021-08-01"
354354
content_type = kwargs.pop("content_type", "application/json")
355355
accept = "application/json"
356356

@@ -502,7 +502,7 @@ async def _update_initial(
502502
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
503503
}
504504
error_map.update(kwargs.pop('error_map', {}))
505-
api_version = "2021-06-01"
505+
api_version = "2021-08-01"
506506
content_type = kwargs.pop("content_type", "application/json")
507507
accept = "application/json"
508508

@@ -655,7 +655,7 @@ async def _delete_initial(
655655
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
656656
}
657657
error_map.update(kwargs.pop('error_map', {}))
658-
api_version = "2021-06-01"
658+
api_version = "2021-08-01"
659659

660660
# Construct URL
661661
url = self._delete_initial.metadata['url'] # type: ignore

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def check_name_availability(
7272
error_map.update(kwargs.pop('error_map', {}))
7373

7474
_body = _models.ResourceNameAvailabilityRequest(name=name, type=type, resource_group=resource_group)
75-
api_version = "2021-06-01"
75+
api_version = "2021-08-01"
7676
content_type = kwargs.pop("content_type", "application/json")
7777
accept = "application/json"
7878

@@ -142,7 +142,7 @@ async def check_file_path_availability(
142142
error_map.update(kwargs.pop('error_map', {}))
143143

144144
_body = _models.FilePathAvailabilityRequest(name=name, subnet_id=subnet_id)
145-
api_version = "2021-06-01"
145+
api_version = "2021-08-01"
146146
content_type = kwargs.pop("content_type", "application/json")
147147
accept = "application/json"
148148

@@ -214,7 +214,7 @@ async def check_quota_availability(
214214
error_map.update(kwargs.pop('error_map', {}))
215215

216216
_body = _models.QuotaAvailabilityRequest(name=name, type=type, resource_group=resource_group)
217-
api_version = "2021-06-01"
217+
api_version = "2021-08-01"
218218
content_type = kwargs.pop("content_type", "application/json")
219219
accept = "application/json"
220220

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def list(
6262
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6363
}
6464
error_map.update(kwargs.pop('error_map', {}))
65-
api_version = "2021-06-01"
65+
api_version = "2021-08-01"
6666
accept = "application/json"
6767

6868
def prepare_request(next_link=None):
@@ -137,7 +137,7 @@ async def get(
137137
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
138138
}
139139
error_map.update(kwargs.pop('error_map', {}))
140-
api_version = "2021-06-01"
140+
api_version = "2021-08-01"
141141
accept = "application/json"
142142

143143
# Construct URL

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def list(
5959
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6060
}
6161
error_map.update(kwargs.pop('error_map', {}))
62-
api_version = "2021-06-01"
62+
api_version = "2021-08-01"
6363
accept = "application/json"
6464

6565
def prepare_request(next_link=None):

0 commit comments

Comments
 (0)