-
Notifications
You must be signed in to change notification settings - Fork 3.4k
NFSAAS-2316 update to R4 RP standard (#30) #9744
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
Changes from 91 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 962a64e
NFSAAS-2316 update to R4 RP standard (#31)
leonardbf 673b437
NFSAAS 2316 R4 update path correction (#32)
leonardbf 208b734
NFSAAS-2316 R4 update and structure change (#33)
leonardbf 5b69cb2
This file should have been removed in the PR #33
leonardbf f4e4253
This file should have been removed in the PR #33
leonardbf 93c494e
This file should have been removed in the PR #33
leonardbf 2324ae0
This file should have been removed in the PR #33
leonardbf 8652e6d
This file should have been removed in the PR #33
leonardbf 76bbca3
This file should have been removed in the PR #33
leonardbf 4c285c8
This file should have been removed in the PR #33
leonardbf d02d345
This file should have been removed in the PR #33
leonardbf 10e57d2
This file should have been removed in the PR #33
leonardbf b62e418
This file should have been removed in the PR #33
leonardbf 2b991a8
This file should have been removed in the PR #33
leonardbf 23bf580
This file should have been removed in the PR #33
leonardbf 0f2c602
This file should have been removed in the PR #33
leonardbf 06d1e67
This file should have been removed in the PR #33
leonardbf 979f500
This file should have been removed in the PR #33
leonardbf 8a58431
This file should have been removed in the PR #33
leonardbf 4f0f658
This file should have been removed in the PR #33
leonardbf 4e89ad6
This file should have been removed in the PR #33
leonardbf cdd397d
This file should have been removed in the PR #33
leonardbf 89a016f
This file should have been removed in the PR #33
leonardbf 3299eb0
This file should have been removed in the PR #33
leonardbf a4cfccc
This file should have been removed in the PR #33
leonardbf 2d0053b
This file should have been removed in the PR #33
leonardbf 4a97901
This file should have been removed in the PR #33
leonardbf 7f7ecf9
This file should have been removed in the PR #33
leonardbf a757145
This file should have been removed in the PR #33
leonardbf bb514d5
This file should have been removed in the PR #33
leonardbf 381a701
This file should have been removed in the PR #33
leonardbf f89f6f6
This file should have been removed in the PR #33
leonardbf e9be19e
This file should have been removed in the PR #33
leonardbf 0153f53
This file should have been removed in the PR #33
leonardbf 9ec37d5
This file should have been removed in the PR #33
leonardbf a65c8d6
This file should have been removed in the PR #33
leonardbf 063c830
This file should have been removed in the PR #33
leonardbf cf58537
This file should have been removed in the PR #33
leonardbf 76dc139
This file should have been removed in the PR #33
leonardbf acb0e52
This file should have been removed in the PR #33
leonardbf 834c0e1
This file should have been removed in the PR #33
leonardbf 2dadefc
This file should have been removed in the PR #33
leonardbf 693469a
This file should have been removed in the PR #33
leonardbf 9905e20
This file should have been removed in the PR #33
leonardbf adeacd8
This file should have been removed in the PR #33
leonardbf 6179ded
This file should have been removed in the PR #33
leonardbf 60a66c9
NFSAAS 2316 R4 update remove wheel (#34)
leonardbf 877d0bb
This file should have been removed in the PR #33
leonardbf 80c16c0
This file should have been removed in the PR #33
leonardbf 9282206
This file should have been removed in the PR #33
leonardbf 1b76c44
This file should have been removed in the PR #33
leonardbf 5c61758
This file should have been removed in the PR #33
leonardbf 3977050
This file should have been removed in the PR #33
leonardbf a8b01f8
This file should have been removed in the PR #33
leonardbf 1e3f5a4
This file should have been removed in the PR #33
leonardbf 2aea5d9
This file should have been removed in the PR #33
leonardbf 620bedf
This file should have been removed in the PR #33
leonardbf 285cfe1
This file should have been removed in the PR #33
leonardbf eefee50
This file should have been removed in the PR #33
leonardbf bb18fd3
This file should have been removed in the PR #33
leonardbf 8555ace
This file should have been removed in the PR #33
leonardbf 7e79886
This file should have been removed in the PR #33
leonardbf f52a61d
This file should have been removed in the PR #33
leonardbf 97a8cb8
This file should have been removed in the PR #33
leonardbf 5bfe5ac
This file should have been removed in the PR #33
leonardbf 219c9c3
This file should have been removed in the PR #33
leonardbf a7ccc6a
This file should have been removed in the PR #33
leonardbf 4be9f2d
This file should have been removed in the PR #33
leonardbf f112565
This file should have been removed in the PR #33
leonardbf 7156346
This file should have been removed in the PR #33
leonardbf f9bcf7d
This file should have been removed in the PR #33
leonardbf 6d1b7e8
This file should have been removed in the PR #33
leonardbf 5d85b59
This file should have been removed in the PR #33
leonardbf 52d6fa9
This file should have been removed in the PR #33
leonardbf 964557d
This file should have been removed in the PR #33
leonardbf 633c1b6
This file should have been removed in the PR #33
leonardbf 6d51457
This file should have been removed in the PR #33
leonardbf 95f473c
This file should have been removed in the PR #33
leonardbf 48a7302
This file should have been removed in the PR #33
leonardbf f58ac63
This file should have been removed in the PR #33
leonardbf b4d32b7
This file should have been removed in the PR #33
leonardbf 5c9fde9
This file should have been removed in the PR #33
leonardbf 6fd5719
This file should have been removed in the PR #33
leonardbf a52b916
This file should have been removed in the PR #33
leonardbf ad869f1
This file should have been removed in the PR #33
leonardbf c36cc39
This file should have been removed in the PR #33
leonardbf 5fb94f2
This file should have been removed in the PR #33
leonardbf 4028f2d
This file should have been removed in the PR #33
leonardbf 72b8dc9
This file should have been removed in the PR #33
leonardbf f3b79d6
Merge branch 'dev' into dev
leonardbf 9bbc03a
NFSAAS-2316 R4 update packaging fixes (#35)
leonardbf 4a95574
NFSAAS 2316 R4 update review comments (#36)
leonardbf 65ee3bc
NFSAAS 2316 R4 corrections to booleans (#37)
leonardbf 10cf846
NFSAAS-2316 update history (#38)
leonardbf 9868b1a
NFSAAS-2316 R4 fixes (#39)
leonardbf 01e72e6
NFSAAS-2316 R4 Fixes (#40)
leonardbf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/azure-cli/azure/cli/command_modules/azure-cli-netappfiles/HISTORY.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| .. :changelog: | ||
|
|
||
| Release History | ||
| =============== | ||
|
|
||
| 2.0.0 | ||
| ++++++++++++++++++ | ||
|
|
||
| * GA release. | ||
1 change: 1 addition & 0 deletions
1
src/azure-cli/azure/cli/command_modules/azure-cli-netappfiles/MANIFEST.in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| include *.rst |
30 changes: 30 additions & 0 deletions
30
src/azure-cli/azure/cli/command_modules/azure-cli-netappfiles/README.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| Microsoft Azure CLI 'Azure NetApp Files (ANF)' Command Module | ||
| ============================================================= | ||
|
|
||
| This package is for the Azure NetApp Files (ANF) module. | ||
| i.e. 'az netappfiles' | ||
|
|
||
|
|
||
| It contains commands that can be used to create and manage volumes. The typical sequence would be to first create an account | ||
|
|
||
| az netappfiles account create --resource-group rg -n account_name | ||
|
|
||
|
|
||
| Then allocate a storage pool in which volumes can be created | ||
|
|
||
| az netappfiles pool create --resource-group rg -a account_name -n pool_name -l location --size 4398046511104 --service-level "Premium" | ||
|
|
||
|
|
||
| Volumes are created within the pool resource | ||
|
|
||
| az netappfiles volume create --resource-group rg -a account_name -p pool_name -n volume_name -l location --service-level "Premium" --usage-threshold 107374182400 --creation-token "unique-token" --subnet-id "/subscriptions/mysubsid/resourceGroups/myrg/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/default" | ||
|
|
||
|
|
||
| Snapshots of volumes can also be created | ||
|
|
||
| az netappfiles snapshot create --resource-group rg -a account_name --p pool_name -v vname -n snapshot_name -l location --file-system-id volume-uuid | ||
|
|
||
|
|
||
| These resources can be updated, deleted and listed. See the help to find out more | ||
|
|
||
| az netappfiles --help |
6 changes: 6 additions & 0 deletions
6
src/azure-cli/azure/cli/command_modules/azure-cli-netappfiles/azure/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # -------------------------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # -------------------------------------------------------------------------------------------- | ||
| import pkg_resources | ||
| pkg_resources.declare_namespace(__name__) |
6 changes: 6 additions & 0 deletions
6
src/azure-cli/azure/cli/command_modules/azure-cli-netappfiles/azure/cli/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # -------------------------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # -------------------------------------------------------------------------------------------- | ||
| import pkg_resources | ||
| pkg_resources.declare_namespace(__name__) |
6 changes: 6 additions & 0 deletions
6
...cli/azure/cli/command_modules/azure-cli-netappfiles/azure/cli/command_modules/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # -------------------------------------------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. See License.txt in the project root for license information. | ||
| # -------------------------------------------------------------------------------------------- | ||
| import pkg_resources | ||
| pkg_resources.declare_namespace(__name__) | ||
|
tjprescott marked this conversation as resolved.
Outdated
|
||
30 changes: 30 additions & 0 deletions
30
...i/command_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # -------------------------------------------------------------------------------------------- | ||
| # 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.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, | ||
| custom_command_type=netappfiles_custom) | ||
|
tjprescott marked this conversation as resolved.
Outdated
|
||
|
|
||
| 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 | ||
32 changes: 32 additions & 0 deletions
32
...nd_modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_client_factory.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
19 changes: 19 additions & 0 deletions
19
...modules/azure-cli-netappfiles/azure/cli/command_modules/netappfiles/_exception_handler.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | ||
| else: | ||
| import sys | ||
|
|
||
| from six import reraise | ||
| reraise(*sys.exc_info()) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.