Skip to content

[AutoPR] netapp/resource-manager #4464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions azure-mgmt-netapp/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
Release History
===============

0.2.0 (2019-03-04)
++++++++++++++++++

**Breaking changes**

- The resource_group parameter in MountTargetsOperations.list has changed to resource_group_name
- The resource_group parameter in SnapshotsOperations.get has changed to resource_group_name
- The resource_group parameter in SnapshotsOperations.create has changed to resource_group_name
- The resource_group parameter in SnapshotsOperations.list has changed to resource_group_name
- The resource_group parameter in SnapshotsOperations.delete has changed to resource_group_name
- The resource_group parameter in SnapshotsOperations.update has changed to resource_group_name

0.1.0 (2018-01-02)
++++++++++++++++++

Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-netapp/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
19 changes: 0 additions & 19 deletions azure-mgmt-netapp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def list(
self, resource_group, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
"""Lists all NetApp accounts in the resource group.

:param resource_group: The name of the resource group.
:type resource_group: str
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
Expand All @@ -62,7 +62,7 @@ def internal_paging(next_link=None, raw=False):
url = self.list.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str')
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$')
}
url = self._client.format_url(url, **path_format_arguments)

Expand Down Expand Up @@ -102,14 +102,14 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

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

def get(
self, resource_group, account_name, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
"""Get the NetApp account.

:param resource_group: The name of the resource group.
:type resource_group: str
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param account_name: The name of the NetApp account
:type account_name: str
:param dict custom_headers: headers that will be added to the request
Expand All @@ -127,7 +127,7 @@ def get(
url = self.get.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'accountName': self._serialize.url("account_name", account_name, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -163,18 +163,18 @@ def get(
return client_raw_response

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


def _create_or_update_initial(
self, resource_group, account_name, location, tags=None, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, account_name, location, tags=None, custom_headers=None, raw=False, **operation_config):
body = models.NetAppAccount(location=location, tags=tags)

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

def create_or_update(
self, resource_group, account_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, account_name, location, tags=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a NetApp account.

:param resource_group: The name of the resource group.
:type resource_group: str
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param account_name: The name of the NetApp account
:type account_name: str
:param location: Resource location
Expand All @@ -242,7 +242,7 @@ def create_or_update(
:class:`ErrorException<azure.mgmt.netapp.models.ErrorException>`
"""
raw_result = self._create_or_update_initial(
resource_group=resource_group,
resource_group_name=resource_group_name,
account_name=account_name,
location=location,
tags=tags,
Expand All @@ -267,16 +267,16 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}


def _delete_initial(
self, resource_group, account_name, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, account_name, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.delete.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'accountName': self._serialize.url("account_name", account_name, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -306,11 +306,11 @@ def _delete_initial(
return client_raw_response

def delete(
self, resource_group, account_name, custom_headers=None, raw=False, polling=True, **operation_config):
self, resource_group_name, account_name, custom_headers=None, raw=False, polling=True, **operation_config):
"""Delete a NetApp account.

:param resource_group: The name of the resource group.
:type resource_group: str
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param account_name: The name of the NetApp account
:type account_name: str
:param dict custom_headers: headers that will be added to the request
Expand All @@ -326,7 +326,7 @@ def delete(
:class:`ErrorException<azure.mgmt.netapp.models.ErrorException>`
"""
raw_result = self._delete_initial(
resource_group=resource_group,
resource_group_name=resource_group_name,
account_name=account_name,
custom_headers=custom_headers,
raw=True,
Expand All @@ -345,14 +345,14 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}

def update(
self, resource_group, account_name, tags=None, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, account_name, tags=None, custom_headers=None, raw=False, **operation_config):
"""Patch a NetApp account.

:param resource_group: The name of the resource group.
:type resource_group: str
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param account_name: The name of the NetApp account
:type account_name: str
:param tags: Resource tags
Expand All @@ -374,7 +374,7 @@ def update(
url = self.update.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'accountName': self._serialize.url("account_name", account_name, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
Expand Down Expand Up @@ -414,4 +414,4 @@ def update(
return client_raw_response

return deserialized
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'}
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def list(
self, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config):
self, resource_group_name, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config):
"""List mount targets.

:param resource_group: The name of the resource group.
:type resource_group: str
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param account_name: The name of the NetApp account
:type account_name: str
:param pool_name: The name of the capacity pool
Expand All @@ -66,7 +66,7 @@ def internal_paging(next_link=None, raw=False):
url = self.list.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'),
'resourceGroup': self._serialize.url("resource_group", resource_group, 'str'),
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'accountName': self._serialize.url("account_name", account_name, 'str'),
'poolName': self._serialize.url("pool_name", pool_name, 'str'),
'volumeName': self._serialize.url("volume_name", volume_name, 'str')
Expand Down Expand Up @@ -109,4 +109,4 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

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