Skip to content

Commit 517447a

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] netapp/resource-manager (#4464)
* [AutoPR netapp/resource-manager] add netapp to Go SDK (#4463) * Generated from 92287b8ca22c0eb5dcd989b628666c298dc98e4e add netapp to Go SDK * Packaging update of azure-mgmt-netapp * [AutoPR netapp/resource-manager] Bringing consistency between to "ResourceGroup" definition (#4409) * Generated from 03cd8d1b9ebae59ffdd6a8f41cc46b8bb24a5e40 Bringing consistency between this "ResourceGroup" definition and the one in Common. * Packaging update of azure-mgmt-netapp * Generated from 50e444eff2d8735a298c8a1f7d7855b2e7143dec Fixing broken references * updated changelog and versioning
1 parent 2f3c79e commit 517447a

File tree

9 files changed

+135
-142
lines changed

9 files changed

+135
-142
lines changed

azure-mgmt-netapp/HISTORY.rst

+12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
Release History
44
===============
55

6+
0.2.0 (2019-03-04)
7+
++++++++++++++++++
8+
9+
**Breaking changes**
10+
11+
- The resource_group parameter in MountTargetsOperations.list has changed to resource_group_name
12+
- The resource_group parameter in SnapshotsOperations.get has changed to resource_group_name
13+
- The resource_group parameter in SnapshotsOperations.create has changed to resource_group_name
14+
- The resource_group parameter in SnapshotsOperations.list has changed to resource_group_name
15+
- The resource_group parameter in SnapshotsOperations.delete has changed to resource_group_name
16+
- The resource_group parameter in SnapshotsOperations.update has changed to resource_group_name
17+
618
0.1.0 (2018-01-02)
719
++++++++++++++++++
820

azure-mgmt-netapp/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
recursive-include tests *.py *.yaml
12
include *.rst
23
include azure/__init__.py
34
include azure/mgmt/__init__.py

azure-mgmt-netapp/README.rst

-19
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
1414
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.
1515

1616

17-
Compatibility
18-
=============
19-
20-
**IMPORTANT**: If you have an earlier version of the azure package
21-
(version < 1.0), you should uninstall it before installing this package.
22-
23-
You can check the version using pip:
24-
25-
.. code:: shell
26-
27-
pip freeze
28-
29-
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
30-
31-
.. code:: shell
32-
33-
pip uninstall azure
34-
35-
3617
Usage
3718
=====
3819

azure-mgmt-netapp/azure/mgmt/netapp/operations/accounts_operations.py

+29-29
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def __init__(self, client, config, serializer, deserializer):
3939
self.config = config
4040

4141
def list(
42-
self, resource_group, custom_headers=None, raw=False, **operation_config):
42+
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
4343
"""Lists all NetApp accounts in the resource group.
4444
45-
:param resource_group: The name of the resource group.
46-
:type resource_group: str
45+
:param resource_group_name: The name of the resource group.
46+
:type resource_group_name: str
4747
:param dict custom_headers: headers that will be added to the request
4848
:param bool raw: returns the direct response alongside the
4949
deserialized response
@@ -62,7 +62,7 @@ def internal_paging(next_link=None, raw=False):
6262
url = self.list.metadata['url']
6363
path_format_arguments = {
6464
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
65-
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str')
65+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
6666
}
6767
url = self._client.format_url(url, **path_format_arguments)
6868

@@ -102,14 +102,14 @@ def internal_paging(next_link=None, raw=False):
102102
return client_raw_response
103103

104104
return deserialized
105-
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts'}
105+
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts'}
106106

107107
def get(
108-
self, resource_group, account_name, custom_headers=None, raw=False, **operation_config):
108+
self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
109109
"""Get the NetApp account.
110110
111-
:param resource_group: The name of the resource group.
112-
:type resource_group: str
111+
:param resource_group_name: The name of the resource group.
112+
:type resource_group_name: str
113113
:param account_name: The name of the NetApp account
114114
:type account_name: str
115115
:param dict custom_headers: headers that will be added to the request
@@ -127,7 +127,7 @@ def get(
127127
url = self.get.metadata['url']
128128
path_format_arguments = {
129129
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
130-
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
130+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
131131
'accountName': self._serialize.url("account_name", account_name, 'str')
132132
}
133133
url = self._client.format_url(url, **path_format_arguments)
@@ -163,18 +163,18 @@ def get(
163163
return client_raw_response
164164

165165
return deserialized
166-
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
166+
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
167167

168168

169169
def _create_or_update_initial(
170-
self, resource_group, account_name, location, tags=None, custom_headers=None, raw=False, **operation_config):
170+
self, resource_group_name, account_name, location, tags=None, custom_headers=None, raw=False, **operation_config):
171171
body = models.NetAppAccount(location=location, tags=tags)
172172

173173
# Construct URL
174174
url = self.create_or_update.metadata['url']
175175
path_format_arguments = {
176176
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
177-
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
177+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
178178
'accountName': self._serialize.url("account_name", account_name, 'str')
179179
}
180180
url = self._client.format_url(url, **path_format_arguments)
@@ -216,11 +216,11 @@ def _create_or_update_initial(
216216
return deserialized
217217

218218
def create_or_update(
219-
self, resource_group, account_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config):
219+
self, resource_group_name, account_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config):
220220
"""Create or update a NetApp account.
221221
222-
:param resource_group: The name of the resource group.
223-
:type resource_group: str
222+
:param resource_group_name: The name of the resource group.
223+
:type resource_group_name: str
224224
:param account_name: The name of the NetApp account
225225
:type account_name: str
226226
:param location: Resource location
@@ -242,7 +242,7 @@ def create_or_update(
242242
:class:`ErrorException<azure.mgmt.netapp.models.ErrorException>`
243243
"""
244244
raw_result = self._create_or_update_initial(
245-
resource_group=resource_group,
245+
resource_group_name=resource_group_name,
246246
account_name=account_name,
247247
location=location,
248248
tags=tags,
@@ -267,16 +267,16 @@ def get_long_running_output(response):
267267
elif polling is False: polling_method = NoPolling()
268268
else: polling_method = polling
269269
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
270-
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
270+
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
271271

272272

273273
def _delete_initial(
274-
self, resource_group, account_name, custom_headers=None, raw=False, **operation_config):
274+
self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
275275
# Construct URL
276276
url = self.delete.metadata['url']
277277
path_format_arguments = {
278278
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
279-
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
279+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
280280
'accountName': self._serialize.url("account_name", account_name, 'str')
281281
}
282282
url = self._client.format_url(url, **path_format_arguments)
@@ -306,11 +306,11 @@ def _delete_initial(
306306
return client_raw_response
307307

308308
def delete(
309-
self, resource_group, account_name, custom_headers=None, raw=False, polling=True, **operation_config):
309+
self, resource_group_name, account_name, custom_headers=None, raw=False, polling=True, **operation_config):
310310
"""Delete a NetApp account.
311311
312-
:param resource_group: The name of the resource group.
313-
:type resource_group: str
312+
:param resource_group_name: The name of the resource group.
313+
:type resource_group_name: str
314314
:param account_name: The name of the NetApp account
315315
:type account_name: str
316316
:param dict custom_headers: headers that will be added to the request
@@ -326,7 +326,7 @@ def delete(
326326
:class:`ErrorException<azure.mgmt.netapp.models.ErrorException>`
327327
"""
328328
raw_result = self._delete_initial(
329-
resource_group=resource_group,
329+
resource_group_name=resource_group_name,
330330
account_name=account_name,
331331
custom_headers=custom_headers,
332332
raw=True,
@@ -345,14 +345,14 @@ def get_long_running_output(response):
345345
elif polling is False: polling_method = NoPolling()
346346
else: polling_method = polling
347347
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
348-
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
348+
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
349349

350350
def update(
351-
self, resource_group, account_name, tags=None, custom_headers=None, raw=False, **operation_config):
351+
self, resource_group_name, account_name, tags=None, custom_headers=None, raw=False, **operation_config):
352352
"""Patch a NetApp account.
353353
354-
:param resource_group: The name of the resource group.
355-
:type resource_group: str
354+
:param resource_group_name: The name of the resource group.
355+
:type resource_group_name: str
356356
:param account_name: The name of the NetApp account
357357
:type account_name: str
358358
:param tags: Resource tags
@@ -374,7 +374,7 @@ def update(
374374
url = self.update.metadata['url']
375375
path_format_arguments = {
376376
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
377-
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
377+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
378378
'accountName': self._serialize.url("account_name", account_name, 'str')
379379
}
380380
url = self._client.format_url(url, **path_format_arguments)
@@ -414,4 +414,4 @@ def update(
414414
return client_raw_response
415415

416416
return deserialized
417-
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
417+
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}

azure-mgmt-netapp/azure/mgmt/netapp/operations/mount_targets_operations.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def __init__(self, client, config, serializer, deserializer):
3737
self.config = config
3838

3939
def list(
40-
self, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config):
40+
self, resource_group_name, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config):
4141
"""List mount targets.
4242
43-
:param resource_group: The name of the resource group.
44-
:type resource_group: str
43+
:param resource_group_name: The name of the resource group.
44+
:type resource_group_name: str
4545
:param account_name: The name of the NetApp account
4646
:type account_name: str
4747
:param pool_name: The name of the capacity pool
@@ -66,7 +66,7 @@ def internal_paging(next_link=None, raw=False):
6666
url = self.list.metadata['url']
6767
path_format_arguments = {
6868
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
69-
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
69+
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
7070
'accountName': self._serialize.url("account_name", account_name, 'str'),
7171
'poolName': self._serialize.url("pool_name", pool_name, 'str'),
7272
'volumeName': self._serialize.url("volume_name", volume_name, 'str')
@@ -109,4 +109,4 @@ def internal_paging(next_link=None, raw=False):
109109
return client_raw_response
110110

111111
return deserialized
112-
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets'}
112+
list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets'}

0 commit comments

Comments
 (0)