Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
c70c0e1
NFSAAS-2316 update to R4 RP standard (#30)
leonardbf Jun 20, 2019
962a64e
NFSAAS-2316 update to R4 RP standard (#31)
leonardbf Jun 20, 2019
673b437
NFSAAS 2316 R4 update path correction (#32)
leonardbf Jun 26, 2019
208b734
NFSAAS-2316 R4 update and structure change (#33)
leonardbf Jun 26, 2019
5b69cb2
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
f4e4253
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
93c494e
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
2324ae0
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
8652e6d
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
76bbca3
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
4c285c8
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
d02d345
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
10e57d2
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
b62e418
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
2b991a8
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
23bf580
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
0f2c602
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
06d1e67
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
979f500
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
8a58431
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
4f0f658
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
4e89ad6
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
cdd397d
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
89a016f
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
3299eb0
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
a4cfccc
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
2d0053b
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
4a97901
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
7f7ecf9
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
a757145
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
bb514d5
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
381a701
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
f89f6f6
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
e9be19e
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
0153f53
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
9ec37d5
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
a65c8d6
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
063c830
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
cf58537
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
76dc139
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
acb0e52
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
834c0e1
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
2dadefc
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
693469a
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
9905e20
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
adeacd8
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
6179ded
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
60a66c9
NFSAAS 2316 R4 update remove wheel (#34)
leonardbf Jun 27, 2019
877d0bb
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
80c16c0
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
9282206
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
1b76c44
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
5c61758
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
3977050
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
a8b01f8
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
1e3f5a4
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
2aea5d9
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
620bedf
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
285cfe1
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
eefee50
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
bb18fd3
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
8555ace
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
7e79886
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
f52a61d
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
97a8cb8
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
5bfe5ac
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
219c9c3
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
a7ccc6a
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
4be9f2d
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
f112565
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
7156346
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
f9bcf7d
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
6d1b7e8
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
5d85b59
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
52d6fa9
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
964557d
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
633c1b6
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
6d51457
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
95f473c
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
48a7302
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
f58ac63
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
b4d32b7
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
5c9fde9
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
6fd5719
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
a52b916
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
ad869f1
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
c36cc39
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
5fb94f2
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
4028f2d
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
72b8dc9
This file should have been removed in the PR #33
leonardbf Jun 27, 2019
f3b79d6
Merge branch 'dev' into dev
leonardbf Jun 27, 2019
9bbc03a
NFSAAS-2316 R4 update packaging fixes (#35)
leonardbf Jun 28, 2019
4a95574
NFSAAS 2316 R4 update review comments (#36)
leonardbf Jun 28, 2019
65ee3bc
NFSAAS 2316 R4 corrections to booleans (#37)
leonardbf Jul 2, 2019
10cf846
NFSAAS-2316 update history (#38)
leonardbf Jul 3, 2019
9868b1a
NFSAAS-2316 R4 fixes (#39)
leonardbf Jul 9, 2019
01e72e6
NFSAAS-2316 R4 Fixes (#40)
leonardbf Jul 9, 2019
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
5 changes: 3 additions & 2 deletions doc/sphinx/azhelpgen/doc_source_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"acr": "src/azure-cli/azure/cli/command_modules/acr/_help.py",
"acs": "src/azure-cli/azure/cli/command_modules/acs/_help.py",
"advisor": "src/azure-cli/azure/cli/command_modules/advisor/_help.py",
"ams": "src/azure-cli/azure/cli/command_modules/ams/_help.py",
"ams": "src/azure-cli/azure/cli/command_modules/ams/_help.py",
"appservice": "src/azure-cli/azure/cli/command_modules/appservice/_help.py",
"batch": "src/azure-cli/azure/cli/command_modules/batch/_help.py",
"batchai": "src/azure-cli/azure/cli/command_modules/batchai/_help.py",
Expand All @@ -35,7 +35,7 @@
"iot": "src/azure-cli/azure/cli/command_modules/iot/_help.py",
"iotcentral": "src/azure-cli/azure/cli/command_modules/iotcentral/_help.py",
"keyvault": "src/azure-cli/azure/cli/command_modules/keyvault/_help.py",
"kusto": "src/azure-cli/azure/cli/command_modules/kusto/_help.py",
"kusto": "src/azure-cli/azure/cli/command_modules/kusto/_help.py",
"lab": "src/azure-cli/azure/cli/command_modules/lab/_help.py",
"maps": "src/azure-cli/azure/cli/command_modules/maps/_help.py",
"monitor": "src/azure-cli/azure/cli/command_modules/monitor/_help.py",
Expand Down Expand Up @@ -68,5 +68,6 @@
"deployment": "src/azure-cli/azure/cli/command_modules/resource/_help.py",
"functionapp": "src/azure-cli/azure/cli/command_modules/appservice/_help.py",
"lock": "src/azure-cli/azure/cli/command_modules/resource/_help.py",
"netappfiles": "src/azure-cli/azure/cli/command_modules/netappfiles/_help.py",
"managedservices": "src/azure-cli/azure/cli/command_modules/managedservices/_help.py"
}
1 change: 1 addition & 0 deletions src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods
MGMT_SQL = ('azure.mgmt.sql', None)
MGMT_SQLVM = ('azure.mgmt.sqlvirtualmachine', None)
MGMT_MANAGEDSERVICES = ('azure.mgmt.managedservices', None)
MGMT_NETAPPFILES = ('azure.mgmt.netappfiles', None)

def __init__(self, import_prefix, client_name):
"""Constructor.
Expand Down
10 changes: 7 additions & 3 deletions src/azure-cli/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Release History
**HDInsight**

* BREAKING CHANGE: Changed "oms" command group name to "monitor"
* BREAKING CHANGE: Made "--http-password/-p" a required parameter
* Added completers for "--cluster-admin-account" and "cluster-users-group-dns" parameters completer
* BREAKING CHANGE: Made "--http-password/-p" a required parameter
* Added completers for "--cluster-admin-account" and "cluster-users-group-dns" parameters completer
* "cluster-users-group-dns" parameter is now required when "—esp" is present
* Added a timeout for all existing argument auto-completers
* Added a timeout for transforming resource name to resource id
Expand All @@ -40,6 +40,10 @@ Release History

* Introducing managed service command module in preview.

**NetAppFiles**

* Initial version relating to the R4 version of the RP.

**Profile**
* Suppress `--subscription` argument for logout command.

Expand All @@ -49,7 +53,7 @@ Release History
* role assignment: expose --assignee-principal-type from create command to avoid intermittent
failures caused by AAD graph server replication latency
* ad signed-in-user: fix a crash on listing owned objects
* ad sp: use the right approach to find the application from a service principal
* ad sp: use the right approach to find the application from a service principal

**RDBMS**

Expand Down
32 changes: 32 additions & 0 deletions src/azure-cli/azure/cli/command_modules/netappfiles/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azure.cli.core.profiles import ResourceType
from azure.cli.command_modules.netappfiles._help import helps # pylint: disable=unused-import


class NetAppFilesCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
netappfiles_custom = CliCommandType(operations_tmpl='azure.cli.command_modules.netappfiles.custom#{}')
super(NetAppFilesCommandsLoader, self).__init__(cli_ctx=cli_ctx,
resource_type=ResourceType.MGMT_NETAPPFILES,
custom_command_type=netappfiles_custom)

def load_command_table(self, args):
super(NetAppFilesCommandsLoader, self).load_command_table(args)
from azure.cli.command_modules.netappfiles.commands import load_command_table
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
super(NetAppFilesCommandsLoader, self).load_arguments(command)
from azure.cli.command_modules.netappfiles._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = NetAppFilesCommandsLoader
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

# pylint: disable=unused-argument


def cf_netappfiles(cli_ctx, *kwargs):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.mgmt.netapp import AzureNetAppFilesManagementClient
return get_mgmt_service_client(cli_ctx, AzureNetAppFilesManagementClient)


def accounts_mgmt_client_factory(cli_ctx, _):
return cf_netappfiles(cli_ctx).accounts


def pools_mgmt_client_factory(cli_ctx, _):
return cf_netappfiles(cli_ctx).pools


def volumes_mgmt_client_factory(cli_ctx, _):
return cf_netappfiles(cli_ctx).volumes


def mount_targets_mgmt_client_factory(cli_ctx, _):
return cf_netappfiles(cli_ctx).mount_targets


def snapshots_mgmt_client_factory(cli_ctx, _):
return cf_netappfiles(cli_ctx).snapshots
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from knack.util import CLIError
from msrest.exceptions import ValidationError # pylint: disable=import-error
from msrestazure.azure_exceptions import CloudError


def netappfiles_exception_handler(ex):
if isinstance(ex, (CloudError, ValidationError, ValueError)):
message = ex
raise CLIError(message)

import sys

from six import reraise
reraise(*sys.exc_info())
Loading