From 5a82cfc999443f7fd76881fddd641dc1d08e8886 Mon Sep 17 00:00:00 2001 From: Leonard Francis Date: Thu, 28 Feb 2019 19:41:51 +0000 Subject: [PATCH] Create initial CLI Extension for ANF resource provider (#527) * NFSAAS-1708 add initial version of anf cli extension * NFSAAS-1708 lint fixes * NFSAAS-1708 code owner * NFSAAS-1708 update from review comments * NFSAAS-1708 update from review comments * NFSAAS-1708 update with code review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments (#9) * Nfsaas 1708 initial cli extension (#10) * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * Nfsaas 1708 initial cli extension (#11) * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * Nfsaas 1708 initial cli extension (#13) * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * Nfsaas 1708 initial cli extension (#14) * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * Nfsaas 1708 initial cli extension (#16) * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * Nfsaas 1708 initial cli extension (#17) * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments * NFSAAS-1708 updates from review comments --- .github/CODEOWNERS | 4 +- src/anf-preview/HISTORY.rst | 8 + src/anf-preview/README.md | 33 + src/anf-preview/azext_anf_preview/__init__.py | 31 + .../azext_anf_preview/_client_factory.py | 32 + .../azext_anf_preview/_exception_handler.py | 17 + src/anf-preview/azext_anf_preview/_help.py | 435 +++++++++++ src/anf-preview/azext_anf_preview/_params.py | 63 ++ .../azext_anf_preview/azext_metadata.json | 4 + src/anf-preview/azext_anf_preview/commands.py | 87 +++ src/anf-preview/azext_anf_preview/custom.py | 85 ++ .../azext_anf_preview/tests/__init__.py | 4 + .../tests/latest/__init__.py | 4 + .../test_ext_create_delete_account.yaml | 464 +++++++++++ .../test_ext_create_delete_pool.yaml | 533 +++++++++++++ .../test_ext_create_delete_volumes.yaml | 723 ++++++++++++++++++ .../recordings/test_ext_create_snapshots.yaml | 640 ++++++++++++++++ .../test_ext_get_account_by_name_ext.yaml | 207 +++++ .../recordings/test_ext_get_pool_by_name.yaml | 297 +++++++ .../recordings/test_ext_get_snapshot.yaml | 640 ++++++++++++++++ .../test_ext_get_volume_by_name.yaml | 611 +++++++++++++++ .../test_ext_list_accounts_ext.yaml | 407 ++++++++++ .../test_ext_list_mount_targets.yaml | 607 +++++++++++++++ .../recordings/test_ext_list_pools.yaml | 501 ++++++++++++ .../recordings/test_ext_list_snapshots.yaml | 672 ++++++++++++++++ .../recordings/test_ext_list_volumes.yaml | 723 ++++++++++++++++++ .../test_ext_update_account_ext.yaml | 210 +++++ .../recordings/test_ext_update_pool.yaml | 301 ++++++++ .../recordings/test_ext_update_volume.yaml | 643 ++++++++++++++++ .../tests/latest/test_account_commands_ext.py | 74 ++ .../latest/test_mount_target_commands_ext.py | 44 ++ .../tests/latest/test_pool_commands_ext.py | 86 +++ .../latest/test_snapshot_commands_ext.py | 79 ++ .../tests/latest/test_volume_commands_ext.py | 109 +++ .../vendored_sdks/__init__.py | 18 + .../azure_net_app_files_management_client.py | 110 +++ .../vendored_sdks/models/__init__.py | 77 ++ ...e_net_app_files_management_client_enums.py | 19 + .../vendored_sdks/models/capacity_pool.py | 79 ++ .../models/capacity_pool_paged.py | 27 + .../models/capacity_pool_patch.py | 28 + .../models/capacity_pool_patch_py3.py | 28 + .../vendored_sdks/models/capacity_pool_py3.py | 79 ++ .../vendored_sdks/models/dimension.py | 32 + .../vendored_sdks/models/dimension_py3.py | 32 + .../vendored_sdks/models/error.py | 52 ++ .../vendored_sdks/models/error_py3.py | 52 ++ .../models/metric_specification.py | 63 ++ .../models/metric_specification_py3.py | 63 ++ .../vendored_sdks/models/mount_target.py | 97 +++ .../models/mount_target_paged.py | 27 + .../vendored_sdks/models/mount_target_py3.py | 97 +++ .../vendored_sdks/models/net_app_account.py | 61 ++ .../models/net_app_account_paged.py | 27 + .../models/net_app_account_patch.py | 28 + .../models/net_app_account_patch_py3.py | 28 + .../models/net_app_account_py3.py | 61 ++ .../vendored_sdks/models/operation.py | 42 + .../vendored_sdks/models/operation_display.py | 40 + .../models/operation_display_py3.py | 40 + .../vendored_sdks/models/operation_paged.py | 27 + .../vendored_sdks/models/operation_py3.py | 42 + .../models/service_specification.py | 29 + .../models/service_specification_py3.py | 29 + .../vendored_sdks/models/snapshot.py | 77 ++ .../vendored_sdks/models/snapshot_paged.py | 27 + .../vendored_sdks/models/snapshot_patch.py | 28 + .../models/snapshot_patch_py3.py | 28 + .../vendored_sdks/models/snapshot_py3.py | 77 ++ .../vendored_sdks/models/volume.py | 92 +++ .../vendored_sdks/models/volume_paged.py | 27 + .../vendored_sdks/models/volume_patch.py | 67 ++ .../vendored_sdks/models/volume_patch_py3.py | 67 ++ .../vendored_sdks/models/volume_py3.py | 92 +++ .../vendored_sdks/operations/__init__.py | 26 + .../operations/accounts_operations.py | 417 ++++++++++ .../operations/mount_targets_operations.py | 112 +++ .../vendored_sdks/operations/operations.py | 96 +++ .../operations/pools_operations.py | 432 +++++++++++ .../operations/snapshots_operations.py | 463 +++++++++++ .../operations/volumes_operations.py | 446 +++++++++++ .../vendored_sdks/version.py | 13 + src/anf-preview/setup.cfg | 2 + src/anf-preview/setup.py | 47 ++ 84 files changed, 13447 insertions(+), 1 deletion(-) create mode 100644 src/anf-preview/HISTORY.rst create mode 100644 src/anf-preview/README.md create mode 100644 src/anf-preview/azext_anf_preview/__init__.py create mode 100644 src/anf-preview/azext_anf_preview/_client_factory.py create mode 100644 src/anf-preview/azext_anf_preview/_exception_handler.py create mode 100644 src/anf-preview/azext_anf_preview/_help.py create mode 100644 src/anf-preview/azext_anf_preview/_params.py create mode 100644 src/anf-preview/azext_anf_preview/azext_metadata.json create mode 100644 src/anf-preview/azext_anf_preview/commands.py create mode 100644 src/anf-preview/azext_anf_preview/custom.py create mode 100644 src/anf-preview/azext_anf_preview/tests/__init__.py create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/__init__.py create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_account.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_pool.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_volumes.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_snapshots.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_account_by_name_ext.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_pool_by_name.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_snapshot.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_volume_by_name.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_accounts_ext.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_mount_targets.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_pools.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_snapshots.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_volumes.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_account_ext.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_pool.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_volume.yaml create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/test_account_commands_ext.py create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/test_mount_target_commands_ext.py create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/test_pool_commands_ext.py create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/test_snapshot_commands_ext.py create mode 100644 src/anf-preview/azext_anf_preview/tests/latest/test_volume_commands_ext.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/__init__.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/azure_net_app_files_management_client.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/__init__.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/azure_net_app_files_management_client_enums.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_paged.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/error.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/error_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_paged.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_paged.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/operation.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_paged.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_paged.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/volume.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_paged.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_py3.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/operations/__init__.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/operations/accounts_operations.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/operations/mount_targets_operations.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/operations/operations.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/operations/pools_operations.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/operations/snapshots_operations.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/operations/volumes_operations.py create mode 100644 src/anf-preview/azext_anf_preview/vendored_sdks/version.py create mode 100644 src/anf-preview/setup.cfg create mode 100644 src/anf-preview/setup.py diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 6cb81b3ad5d..5b7448de70a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -60,4 +60,6 @@ /src/aks-preview/ @zqingqing1 -/src/sqlvm-preview/ @yareyes \ No newline at end of file +/src/sqlvm-preview/ @yareyes + +/src/anf-preview/ @b-lefr diff --git a/src/anf-preview/HISTORY.rst b/src/anf-preview/HISTORY.rst new file mode 100644 index 00000000000..12494af638d --- /dev/null +++ b/src/anf-preview/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.1.0 ++++++ +* Initial release diff --git a/src/anf-preview/README.md b/src/anf-preview/README.md new file mode 100644 index 00000000000..14046d5520c --- /dev/null +++ b/src/anf-preview/README.md @@ -0,0 +1,33 @@ +# Azure CLI for Azure NetApp Files (ANF) Extension # +This is an extension to azure cli which provides commands to create and manage Azure NetApp File (ANF) storage resources. + +## How to use ## +First, install the extension: +``` +az extension add --name anf-preview +``` + +It can then be used to create volumes and snapshots. The typical sequence would be to first create an account +``` +az anf account create --resource-group rg -n account_name +``` + +Then allocate a storage pool in which volumes can be created +``` +az anf 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 anf 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 anf 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 anf --help +``` diff --git a/src/anf-preview/azext_anf_preview/__init__.py b/src/anf-preview/azext_anf_preview/__init__.py new file mode 100644 index 00000000000..110f2921d24 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/__init__.py @@ -0,0 +1,31 @@ +# -------------------------------------------------------------------------------------------- +# 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 ._help import helps # pylint: disable=unused-import + + +class NetAppExtensionCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + netapp_custom = CliCommandType(operations_tmpl='azext_anf_preview.custom#{}') + super(NetAppExtensionCommandsLoader, self).__init__(cli_ctx=cli_ctx, + min_profile='2017-03-10-profile', + custom_command_type=netapp_custom) + + def load_command_table(self, args): + super(NetAppExtensionCommandsLoader, self).load_command_table(args) + from .commands import load_command_table + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + super(NetAppExtensionCommandsLoader, self).load_arguments(command) + from ._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = NetAppExtensionCommandsLoader diff --git a/src/anf-preview/azext_anf_preview/_client_factory.py b/src/anf-preview/azext_anf_preview/_client_factory.py new file mode 100644 index 00000000000..1e47638bd89 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_client_factory.py @@ -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_netapp(cli_ctx, *kwargs): + from azure.cli.core.commands.client_factory import get_mgmt_service_client + from azext_anf_preview.vendored_sdks import AzureNetAppFilesManagementClient + return get_mgmt_service_client(cli_ctx, AzureNetAppFilesManagementClient) + + +def accounts_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).accounts + + +def pools_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).pools + + +def volumes_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).volumes + + +def mount_targets_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).mount_targets + + +def snapshots_mgmt_client_factory(cli_ctx, _): + return cf_netapp(cli_ctx).snapshots diff --git a/src/anf-preview/azext_anf_preview/_exception_handler.py b/src/anf-preview/azext_anf_preview/_exception_handler.py new file mode 100644 index 00000000000..c5567550c88 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_exception_handler.py @@ -0,0 +1,17 @@ +# -------------------------------------------------------------------------------------------- +# 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 + + +def netapp_exception_handler(ex): + from azext_anf_preview.vendored_sdks.models import ErrorException + if isinstance(ex, ErrorException): + message = ex + raise CLIError(message) + else: + import sys + from six import reraise + reraise(*sys.exc_info()) diff --git a/src/anf-preview/azext_anf_preview/_help.py b/src/anf-preview/azext_anf_preview/_help.py new file mode 100644 index 00000000000..2e9773be86a --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_help.py @@ -0,0 +1,435 @@ +# coding=utf-8 +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from knack.help_files import helps + +# pylint: disable=line-too-long + + +helps['anf'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Resources. +""" + +# account + +helps['anf account'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Account Resources. +""" + +helps['anf account create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the account + examples: + - name: Create an ANF account + text: > + az anf account create -g group --account-name name -l location +""" + +helps['anf account update'] = """ + type: command + short-summary: Set/modify the tags for a specified ANF account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the account + examples: + - name: Update the tags of an ANF account + text: > + az anf account update -g group --account-name name --tags 'key[=value] key[=value]' +""" + +helps['anf account delete'] = """ + type: command + short-summary: Delete the specified ANF account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + examples: + - name: Delete an ANF account + text: > + az anf account delete -g group --account-name name +""" + +helps['anf account list'] = """ + type: command + short-summary: List ANF accounts. + examples: + - name: List ANF accounts within a resource group + text: > + az anf account list -g group +""" + +helps['anf account show'] = """ + type: command + short-summary: Get the specified ANF account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + examples: + - name: Get an ANF account + text: > + az anf account show -g group --account-name name +""" + +# pools + +helps['anf pool'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Pool Resources. +""" + +helps['anf pool create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --size + type: integer + short-summary: The size for the ANF pool. Must be in 4 tebibytes increments, expressed in bytes + - name: --service-level + type: string + short-summary: The service level for the ANF pool ["Standard"|"Premium"|"Extreme"] + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the pool + examples: + - name: Create an ANF pool + text: > + az anf pool create -g group --account-name aname --pool-name pname -l location --size 4398046511104 --service-level "Premium" +""" + +helps['anf pool update'] = """ + type: command + short-summary: Update the tags of the specified ANF pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --size + type: integer + short-summary: The size for the ANF pool. Must be in 4 tebibytes increments, expressed in bytes + - name: --service-level + type: string + short-summary: The service level for the ANF pool ["Standard"|"Premium"|"Extreme"] + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the pool + examples: + - name: Update specific values for an ANF pool + text: > + az anf pool update -g group --account-name aname --pool-name pname --service-level "Extreme" --tags 'key[=value] key[=value]' +""" + +helps['anf pool delete'] = """ + type: command + short-summary: Delete the specified ANF pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + examples: + - name: Delete an ANF pool + text: > + az anf pool delete -g group --account-name aname --pool-name pname +""" + +helps['anf pool list'] = """ + type: command + short-summary: L:ist the ANF pools for the specified account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + examples: + - name: List the pools for the ANF account + text: > + az anf pool list -g group -account-name name +""" + +helps['anf pool show'] = """ + type: command + short-summary: Get the specified ANF pool. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + examples: + - name: Get an ANF pool + text: > + az anf pool show -g group --account-name aname --pool-name pname +""" + +# volumes + +helps['anf volume'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Volume Resources. +""" + +helps['anf volume create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --service-level + type: string + short-summary: The service level ["Standard"|"Premium"|"Extreme"] + - name: --usage-threshold + type: int + short-summary: The maximum storage quota allowed for a file system in bytes. Min 100 GiB, max 100TiB" + - name: --creation-token + type: string + short-summary: A unique file path identifier, from 1 to 80 characters + - name: --subnet-id + type: string + short-summary: The subnet identifier + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the volume + examples: + - name: Create an ANF volume + text: > + az anf volume create -g group --account-name aname --pool-name pname --volume-name vname -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" +""" + +helps['anf volume update'] = """ + type: command + short-summary: Update the specified ANF volume with the values provided. Unspecified values will remain unchanged. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --service-level + type: string + short-summary: The service level ["Standard"|"Premium"|"Extreme"] + - name: --usage-threshold + type: int + short-summary: The maximum storage quota allowed for a file system in bytes. Min 100 GiB, max 100TiB" + - name: --tags + type: string + short-summary: A list of space separated tags to apply to the volume + examples: + - name: Create an ANF volume + text: > + az anf volume update -g group --account-name aname --pool-name pname --volume-name vname --service-level level --usage-threshold 107374182400 --tags 'key[=value] key[=value]' +""" + +helps['anf volume delete'] = """ + type: command + short-summary: Delete the specified ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + examples: + - name: Delete an ANF volume + text: > + az anf volume delete -g group --account-name aname --pool-name pname +""" + +helps['anf volume list'] = """ + type: command + short-summary: List the ANF Pools for the specified account. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + examples: + - name: List the ANF volumes of the pool + text: > + az anf volume list -g group --account-name aname --pool-name pname +""" + +helps['anf volume show'] = """ + type: command + short-summary: Get the specified ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF pool + examples: + - name: Returns the properties of the given ANF volume + text: > + az anf volume show -g group --account-name aname --pool-name pname --volume_name vname +""" + +# mounttargets + +helps['anf mount-target'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Mount Target Resources. +""" + +helps['anf mount-target list'] = """ + type: command + short-summary: List the mount targets of an ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF pool + examples: + - name: list the mount targets of an ANF volume + text: > + az anf mount-target list -g group --account-name aname --pool-name pname --volume-name vname +""" + +# snapshots + +helps['anf snapshot'] = """ + type: group + short-summary: Manage Azure NetApp Files (ANF) Snapshot Resources. +""" + +helps['anf snapshot create'] = """ + type: command + short-summary: Create a new Azure NetApp Files (ANF) snapshot. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name + type: string + short-summary: The name of the ANF snapshot + - name: --file-system-id + type: string + short-summary: The uuid of the volume + examples: + - name: Create an ANF snapshot + text: > + az anf snapshot create -g group --account-name account-name --pool-name pname --volume-name vname --snapshot-name sname -l location --file-system-id volume-uuid +""" + +helps['anf snapshot delete'] = """ + type: command + short-summary: Delete the specified ANF snapshot. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name + type: string + short-summary: The name of the ANF snapshot + examples: + - name: Delete an ANF snapshot + text: > + az anf volume delete -g group --account-name aname --pool-name pname --volume-name vname --snapshot-name sname +""" + +helps['anf snapshot list'] = """ + type: command + short-summary: List the snapshots of an ANF volume. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + examples: + - name: list the snapshots of an ANF volume + text: > + az anf account list -g group --account-name aname --pool-name pname --volume-name vname +""" + +helps['anf snapshot show'] = """ + type: command + short-summary: Get the specified ANF snapshot. + parameters: + - name: --account-name + type: string + short-summary: The name of the ANF account + - name: --pool-name + type: string + short-summary: The name of the ANF pool + - name: --volume-name + type: string + short-summary: The name of the ANF volume + - name: --snapshot-name + type: string + short-summary: The name of the ANF snapshot + examples: + - name: Return the specified ANF snapshot + text: > + az anf snapshot show -g group --account-name aname --pool-name pname --volume-name vname --snapshot-name sname +""" diff --git a/src/anf-preview/azext_anf_preview/_params.py b/src/anf-preview/azext_anf_preview/_params.py new file mode 100644 index 00000000000..4f10198153b --- /dev/null +++ b/src/anf-preview/azext_anf_preview/_params.py @@ -0,0 +1,63 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long +from azure.cli.core.commands.parameters import resource_group_name_type + + +def load_arguments(self, _): + with self.argument_context('anf') as c: + c.argument('resource_group', options_list=['--resource-group', '-g'], required=True, help='The name of the resource group') + + with self.argument_context('anf') as c: + c.argument('account_name', options_list=['--account-name', '-a'], required=True, help='The name of the ANF account') + + with self.argument_context('anf account') as c: + c.argument('account_name', id_part='name', options_list=['--account-name', '-n', '-a'], required=True, help='The name of the ANF account') + + with self.argument_context('anf account list') as c: + c.argument('account_name', help='The name of the ANF account', id_part=None) + + with self.argument_context('anf') as c: + c.argument('pool_name', options_list=['--pool-name', '-p'], required=True, help='The name of the ANF pool') + + with self.argument_context('anf pool') as c: + c.argument('account_name', id_part='name') + c.argument('pool_name', id_part='child_name_1', options_list=['--pool-name', '-n', '-p'], required=True, help='The name of the ANF pool') + + with self.argument_context('anf pool list') as c: + c.argument('account_name', options_list=['--account-name', '-n', '-a'], help='The name of the ANF account', id_part=None) + + with self.argument_context('anf') as c: + c.argument('volume_name', options_list=['--volume-name', '-v'], required=True, help='The name of the ANF volume') + + with self.argument_context('anf volume') as c: + c.argument('account_name', id_part='name') + c.argument('pool_name', id_part='child_name_1', options_list=['--pool-name', '-p'], required=True, help='The name of the ANF pool') + c.argument('volume_name', id_part='child_name_2', options_list=['--volume-name', '-n', '-v'], required=True, help='The name of the ANF volume') + + with self.argument_context('anf volume list') as c: + c.argument('account_name', options_list=['--account-name', '-a'], required=True, help='The name of the ANF account', id_part=None) + c.argument('pool_name', options_list=['--pool-name', '-n', '-p'], required=True, help='The name of the ANF pool', id_part=None) + + with self.argument_context('anf') as c: + c.argument('snapshot_name', options_list=['--snapshot-name', '-s'], required=True, help='The name of the ANF snapshot') + + with self.argument_context('anf snapshot') as c: + c.argument('account_name', options_list=['--account-name', '-a'], id_part='name') + c.argument('pool_name', id_part='child_name_1', options_list=['--pool-name', '-p'], required=True, help='The name of the ANF pool') + c.argument('volume_name', id_part='child_name_2', options_list=['--volume-name', '-v'], required=True, help='The name of the ANF volume') + c.argument('snapshot_name', id_part='child_name_3', options_list=['--snapshot-name', '-n', '-s'], required=True, help='The name of the ANF snapshot') + + with self.argument_context('anf snapshot list') as c: + c.argument('account_name', options_list=['--account-name', '-a'], required=True, help='The name of the ANF account', id_part=None) + c.argument('volume_name', options_list=['--volume-name', '-n', '-v'], required=True, help='The name of the ANF volume', id_part=None) + + with self.argument_context('anf') as c: + c.argument('tag', options_list=['--tags'], required=False, help='A list of space separated tags to apply to the account') + + # incompatible naming of resource_group in the swagger - including this to provide its associated feature set until it is updated + with self.argument_context('anf') as c: + c.argument('resource_group', arg_type=resource_group_name_type) diff --git a/src/anf-preview/azext_anf_preview/azext_metadata.json b/src/anf-preview/azext_anf_preview/azext_metadata.json new file mode 100644 index 00000000000..4646a496f2e --- /dev/null +++ b/src/anf-preview/azext_anf_preview/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.minCliCoreVersion": "2.0.56", + "azext.isPreview": true +} \ No newline at end of file diff --git a/src/anf-preview/azext_anf_preview/commands.py b/src/anf-preview/azext_anf_preview/commands.py new file mode 100644 index 00000000000..5ef3e44cb7f --- /dev/null +++ b/src/anf-preview/azext_anf_preview/commands.py @@ -0,0 +1,87 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long + +from azure.cli.core.commands import CliCommandType +from ._client_factory import ( + accounts_mgmt_client_factory, + pools_mgmt_client_factory, + volumes_mgmt_client_factory, + mount_targets_mgmt_client_factory, + snapshots_mgmt_client_factory) +from ._exception_handler import netapp_exception_handler + + +def load_command_table(self, _): + anf_accounts_sdk = CliCommandType( + operations_tmpl='azext_anf_preview.vendored_sdks.operations.accounts_operations#AccountsOperations.{}', + client_factory=accounts_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_pools_sdk = CliCommandType( + operations_tmpl='azext_anf_preview.vendored_sdks.operations.pools_operations#PoolsOperations.{}', + client_factory=pools_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_volumes_sdk = CliCommandType( + operations_tmpl='azext_anf_preview.vendored_sdks.operations.volumes_operations#VolumesOperations.{}', + client_factory=volumes_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_mount_targets_sdk = CliCommandType( + operations_tmpl='azext_anf_preview.vendored_sdks.operations.mount_targets_operations#MountTargetsOperations.{}', + client_factory=mount_targets_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + anf_snapshots_sdk = CliCommandType( + operations_tmpl='azext_anf_preview.vendored_sdks.operations.snapshots_operations#SnapshotsOperations.{}', + client_factory=snapshots_mgmt_client_factory, + exception_handler=netapp_exception_handler + ) + + with self.command_group('anf account', anf_accounts_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_account', client_factory=accounts_mgmt_client_factory, + doc_string_source='azext_anf_preview.vendored_sdks.models#NetAppAccount') + g.generic_update_command('update', setter_name='update', custom_func_name='update_account', + setter_arg_name='tags', + doc_string_source='azext_anf_preview.vendored_sdks.models#NetAppAccountPatch') + + with self.command_group('anf pool', anf_pools_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_pool', client_factory=pools_mgmt_client_factory, + doc_string_source='azext_anf_preview.vendored_sdks.models#CapacityPool') + g.generic_update_command('update', setter_name='create_or_update', custom_func_name='update_pool', + setter_arg_name='body', + doc_string_source='azext_anf_preview.vendored_sdks.models#CapacityPool') + + with self.command_group('anf volume', anf_volumes_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_volume', client_factory=volumes_mgmt_client_factory, + doc_string_source='azext_anf_preview.vendored_sdks.models#Volume') + g.generic_update_command('update', setter_name='update', custom_func_name='patch_volume', + setter_arg_name='body', + doc_string_source='azext_anf_preview.vendored_sdks.models#VolumePatch') + + with self.command_group('anf mount-target', anf_mount_targets_sdk) as g: + g.command('list', 'list') + + with self.command_group('anf snapshot', anf_snapshots_sdk) as g: + g.show_command('show', 'get') + g.command('list', 'list') + g.command('delete', 'delete') + g.custom_command('create', 'create_snapshot', client_factory=snapshots_mgmt_client_factory, + doc_string_source='azext_anf_preview.vendored_sdks.models#Snapshot') diff --git a/src/anf-preview/azext_anf_preview/custom.py b/src/anf-preview/azext_anf_preview/custom.py new file mode 100644 index 00000000000..f135f9ba671 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/custom.py @@ -0,0 +1,85 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long + +from knack.log import get_logger +from azext_anf_preview.vendored_sdks.models import NetAppAccountPatch, CapacityPool, Volume, VolumePatch, Snapshot + +logger = get_logger(__name__) + + +def generate_tags(tag): + if tag is None: + return None + + tags = {} + tag_list = tag.split(" ") + for tag_item in tag_list: + parts = tag_item.split("=", 1) + if len(parts) == 2: + # two parts, everything after first '=' is the tag's value + tags[parts[0]] = parts[1] + elif len(parts) == 1: + # one part, no tag value + tags[parts[0]] = "" + return tags + + +def _update_mapper(existing, new, keys): + for key in keys: + existing_value = getattr(existing, key) + new_value = getattr(new, key) + setattr(new, key, new_value if new_value is not None else existing_value) + + +# pylint: disable=unused-argument +def create_account(cmd, client, account_name, resource_group_name, location, tag=None): + return client.create_or_update(resource_group_name, account_name, location, generate_tags(tag)) + + +# pylint: disable=unused-argument +def update_account(cmd, instance, tag=None): + params = NetAppAccountPatch(tags=generate_tags(tag)) + return params.tags + + +def create_pool(cmd, client, account_name, pool_name, resource_group_name, location, size, service_level, tag=None): + body = CapacityPool(service_level=service_level, size=int(size), location=location, tags=generate_tags(tag)) + return client.create_or_update(body, resource_group_name, account_name, pool_name) + + +def update_pool(cmd, instance, location=None, size=None, service_level=None, tag=None): + # put operation to update the record + if size is not None: + size = int(size) + body = CapacityPool(service_level=service_level, size=size, location=location, tags=generate_tags(tag)) + _update_mapper(instance, body, ['location', 'service_level', 'size', 'tags']) + return body + + +def create_volume(cmd, client, account_name, pool_name, volume_name, resource_group_name, location, service_level, creation_token, usage_threshold, subnet_id, tag=None): + body = Volume( + usage_threshold=int(usage_threshold), + creation_token=creation_token, + service_level=service_level, + location=location, + subnet_id=subnet_id, + tags=generate_tags(tag)) + return client.create_or_update(body, resource_group_name, account_name, pool_name, volume_name) + + +def patch_volume(cmd, instance, service_level=None, usage_threshold=None, tag=None): + params = VolumePatch( + usage_threshold=None if usage_threshold is None else int(usage_threshold), + service_level=service_level, + tags=generate_tags(tag)) + _update_mapper(instance, params, ['service_level', 'usage_threshold', 'tags']) + return params + + +def create_snapshot(cmd, client, account_name, pool_name, volume_name, snapshot_name, file_system_id, resource_group_name, location): + body = Snapshot(location=location, file_system_id=file_system_id) + return client.create(body, resource_group_name, account_name, pool_name, volume_name, snapshot_name) diff --git a/src/anf-preview/azext_anf_preview/tests/__init__.py b/src/anf-preview/azext_anf_preview/tests/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- diff --git a/src/anf-preview/azext_anf_preview/tests/latest/__init__.py b/src/anf-preview/azext_anf_preview/tests/latest/__init__.py new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_account.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_account.yaml new file mode 100644 index 00000000000..dbefe229f51 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_account.yaml @@ -0,0 +1,464 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T08:35:11Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T08:35:11Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:35:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1", "Tag2": + "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['69'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A35%3A23.2520595Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/eda78768-f636-415e-94bc-4ddb9bc0b068?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['493'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:35:25 GMT'] + etag: [W/"datetime'2019-02-28T08%3A35%3A23.2520595Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/eda78768-f636-415e-94bc-4ddb9bc0b068?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/eda78768-f636-415e-94bc-4ddb9bc0b068","name":"eda78768-f636-415e-94bc-4ddb9bc0b068","status":"Succeeded","startTime":"2019-02-28T08:35:23.182011Z","endTime":"2019-02-28T08:35:23.508401Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['574'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:35:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A35%3A23.5422659Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:35:59 GMT'] + etag: [W/"datetime'2019-02-28T08%3A35%3A23.5422659Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A35%3A23.5422659Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['506'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:36:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fcd20a96-5232-44ad-885e-f4b14bd87bfc?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:36:09 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fcd20a96-5232-44ad-885e-f4b14bd87bfc?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fcd20a96-5232-44ad-885e-f4b14bd87bfc?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/fcd20a96-5232-44ad-885e-f4b14bd87bfc","name":"fcd20a96-5232-44ad-885e-f4b14bd87bfc","status":"Succeeded","startTime":"2019-02-28T08:36:06.5430702Z","endTime":"2019-02-28T08:36:06.6211628Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:36:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:36:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1", "Tag2": + "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['69'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A36%3A46.0397691Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c6d39b40-84f4-49e9-9b68-3fc3c1148cbb?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['493'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:36:46 GMT'] + etag: [W/"datetime'2019-02-28T08%3A36%3A46.0397691Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c6d39b40-84f4-49e9-9b68-3fc3c1148cbb?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c6d39b40-84f4-49e9-9b68-3fc3c1148cbb","name":"c6d39b40-84f4-49e9-9b68-3fc3c1148cbb","status":"Succeeded","startTime":"2019-02-28T08:36:45.95675Z","endTime":"2019-02-28T08:36:46.2830427Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['574'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:37:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A36%3A46.3229695Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['494'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:37:18 GMT'] + etag: [W/"datetime'2019-02-28T08%3A36%3A46.3229695Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A36%3A46.3229695Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['506'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:37:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/65e566a9-f8ec-48cf-8517-3548a66842fe?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:37:30 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/65e566a9-f8ec-48cf-8517-3548a66842fe?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/65e566a9-f8ec-48cf-8517-3548a66842fe?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/65e566a9-f8ec-48cf-8517-3548a66842fe","name":"65e566a9-f8ec-48cf-8517-3548a66842fe","status":"Succeeded","startTime":"2019-02-28T08:37:27.4067158Z","endTime":"2019-02-28T08:37:27.5628598Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:37:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:37:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:38:04 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHREZXQkg0U1ROVlpXWERGRUVHRk5SMkRUTFlGQUk3TXwwRTM0OEVFOUUxMTUyMkEwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_pool.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_pool.yaml new file mode 100644 index 00000000000..45f8f5c0f54 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_pool.yaml @@ -0,0 +1,533 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T09:32:03Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T09:32:03Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:32:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T09%3A32%3A15.8719063Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ad3192ab-3a2b-4be5-81e8-44763ef1b440?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:32:17 GMT'] + etag: [W/"datetime'2019-02-28T09%3A32%3A15.8719063Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ad3192ab-3a2b-4be5-81e8-44763ef1b440?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ad3192ab-3a2b-4be5-81e8-44763ef1b440","name":"ad3192ab-3a2b-4be5-81e8-44763ef1b440","status":"Succeeded","startTime":"2019-02-28T09:32:15.8184867Z","endTime":"2019-02-28T09:32:16.1152417Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:32:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T09%3A32%3A16.1571074Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:33:07 GMT'] + etag: [W/"datetime'2019-02-28T09%3A32%3A16.1571074Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['135'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name -l --service-level + --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A32%3A56.8139465Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/def82213-738d-45c1-aaee-92bc85774dbe?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:33:12 GMT'] + etag: [W/"datetime'2019-02-28T09%3A32%3A56.8139465Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name -l --service-level + --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/def82213-738d-45c1-aaee-92bc85774dbe?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/def82213-738d-45c1-aaee-92bc85774dbe","name":"def82213-738d-45c1-aaee-92bc85774dbe","status":"Succeeded","startTime":"2019-02-28T09:32:56.7503905Z","endTime":"2019-02-28T09:32:57.2660737Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:33:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name -l --service-level + --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A32%3A57.3002928Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"78be7485-5c9e-5ced-5635-9d543253ce03","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:33:32 GMT'] + etag: [W/"datetime'2019-02-28T09%3A32%3A57.3002928Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A32%3A57.3002928Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"78be7485-5c9e-5ced-5635-9d543253ce03","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['703'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:33:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group --account-name --pool-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2b603983-8b86-4eb2-9a05-9a3cc02ac05a?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 09:33:38 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2b603983-8b86-4eb2-9a05-9a3cc02ac05a?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2b603983-8b86-4eb2-9a05-9a3cc02ac05a?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2b603983-8b86-4eb2-9a05-9a3cc02ac05a","name":"2b603983-8b86-4eb2-9a05-9a3cc02ac05a","status":"Succeeded","startTime":"2019-02-28T09:33:39.3666427Z","endTime":"2019-02-28T09:33:42.9690047Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:34:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:34:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['135'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A34%3A19.3544568Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9c7e3ea5-7317-43f1-9c1d-c9af75f69755?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:34:22 GMT'] + etag: [W/"datetime'2019-02-28T09%3A34%3A19.3544568Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9c7e3ea5-7317-43f1-9c1d-c9af75f69755?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/9c7e3ea5-7317-43f1-9c1d-c9af75f69755","name":"9c7e3ea5-7317-43f1-9c1d-c9af75f69755","status":"Succeeded","startTime":"2019-02-28T09:34:19.1351036Z","endTime":"2019-02-28T09:34:19.6351165Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:35:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A34%3A19.6696801Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"124fdf7c-7e2e-d08b-89c3-4036902d3936","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:34:55 GMT'] + etag: [W/"datetime'2019-02-28T09%3A34%3A19.6696801Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3857123-f537-45d7-a967-0466fc26b949?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 09:35:11 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3857123-f537-45d7-a967-0466fc26b949?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3857123-f537-45d7-a967-0466fc26b949?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a3857123-f537-45d7-a967-0466fc26b949","name":"a3857123-f537-45d7-a967-0466fc26b949","status":"Succeeded","startTime":"2019-02-28T09:34:59.7584047Z","endTime":"2019-02-28T09:35:03.2303059Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:35:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:35:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 09:35:44 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHSVY2UkNYTzJQTjZRU0FMUDJUU0pXRlRHS0Q1NVdTSXwxRUFFN0YxRTI2NDE0Q0E4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_volumes.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_volumes.yaml new file mode 100644 index 00000000000..4c53c2fd71d --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_delete_volumes.yaml @@ -0,0 +1,723 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T18:08:32Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-25T18:08:32Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:08:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"009f53da-f7e0-4887-890b-8ea0d3af88dd\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"ca6fb4b4-46da-4533-90cc-33d7695fa12d\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/b0931408-9c21-4d5a-a647-5b99cdb17099?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:08:46 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/b0931408-9c21-4d5a-a647-5b99cdb17099?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:08:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"ba629d07-b3af-4336-a3d1-08bbea8bfcc2\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"ca6fb4b4-46da-4533-90cc-33d7695fa12d\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:08:51 GMT'] + etag: [W/"ba629d07-b3af-4336-a3d1-08bbea8bfcc2"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "cli-subnet-000006", "properties": {"addressPrefix": + "10.12.0.0/24", "delegations": [{"name": "0", "properties": {"serviceName": + "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['168'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"7f77bd8b-a6ad-44e3-a413-2ccddd968169\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"7f77bd8b-a6ad-44e3-a413-2ccddd968169\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/cb5bd18e-2b92-4d09-8c20-2cc55b3fd6d8?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1302'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:08:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/cb5bd18e-2b92-4d09-8c20-2cc55b3fd6d8?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:08:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"f95f9c6a-c966-400c-9ff5-ec11b6c53902\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"f95f9c6a-c966-400c-9ff5-ec11b6c53902\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1303'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:08:57 GMT'] + etag: [W/"f95f9c6a-c966-400c-9ff5-ec11b6c53902"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A09%3A02.1962617Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a1c17bb3-a891-49c2-8563-002b71246f30?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:09:03 GMT'] + etag: [W/"datetime'2019-02-25T18%3A09%3A02.1962617Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a1c17bb3-a891-49c2-8563-002b71246f30?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a1c17bb3-a891-49c2-8563-002b71246f30","name":"a1c17bb3-a891-49c2-8563-002b71246f30","status":"Succeeded","startTime":"2019-02-25T18:09:02.129443Z","endTime":"2019-02-25T18:09:02.426344Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['574'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:09:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A09%3A03.0448698Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:09:35 GMT'] + etag: [W/"datetime'2019-02-25T18%3A09%3A03.0448698Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['135'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A09%3A40.1274007Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1d084b1d-f4e8-4e5e-9d1a-74e1370a8581?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['583'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:09:41 GMT'] + etag: [W/"datetime'2019-02-25T18%3A09%3A40.1274007Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1d084b1d-f4e8-4e5e-9d1a-74e1370a8581?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1d084b1d-f4e8-4e5e-9d1a-74e1370a8581","name":"1d084b1d-f4e8-4e5e-9d1a-74e1370a8581","status":"Succeeded","startTime":"2019-02-25T18:09:40.0168163Z","endTime":"2019-02-25T18:09:40.5324011Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:10:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A09%3A40.5707186Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"poolId":"1516813c-fade-6d1f-8755-4165842e507c","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['691'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:10:13 GMT'] + etag: [W/"datetime'2019-02-25T18%3A09%3A40.5707186Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"usageThreshold": + 107374182400, "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag1": + "Value1", "Tag2": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['441'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A10%3A18.3487414Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/39931f1b-1456-4bd0-920a-3db43efd6f9f?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['951'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:10:18 GMT'] + etag: [W/"datetime'2019-02-25T18%3A10%3A18.3487414Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/39931f1b-1456-4bd0-920a-3db43efd6f9f?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/39931f1b-1456-4bd0-920a-3db43efd6f9f","name":"39931f1b-1456-4bd0-920a-3db43efd6f9f","status":"Succeeded","startTime":"2019-02-25T18:10:18.2775535Z","endTime":"2019-02-25T18:10:50.6321092Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:10:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A10%3A50.6578578Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"9e79d735-b3e4-a6cb-ed20-49275fdbfd23","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_3d98078a","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"27491942-4b86-5b61-ef12-5dfe541a3084","fileSystemId":"9e79d735-b3e4-a6cb-ed20-49275fdbfd23","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1642'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:10:51 GMT'] + etag: [W/"datetime'2019-02-25T18%3A10%3A50.6578578Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A10%3A50.6578578Z''\"","location":"westus2","tags":{"Tag1":"Value1","Tag2":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"9e79d735-b3e4-a6cb-ed20-49275fdbfd23","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_3d98078a","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"27491942-4b86-5b61-ef12-5dfe541a3084","fileSystemId":"9e79d735-b3e4-a6cb-ed20-49275fdbfd23","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}]}'} + headers: + cache-control: [no-cache] + content-length: ['1654'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:10:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:10:55 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21","name":"744f5ddd-90f2-427f-9a86-4e6036fb3e21","status":"Deleting","startTime":"2019-02-25T18:10:56.0244228Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:11:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21","name":"744f5ddd-90f2-427f-9a86-4e6036fb3e21","status":"Deleting","startTime":"2019-02-25T18:10:56.0244228Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:11:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/744f5ddd-90f2-427f-9a86-4e6036fb3e21","name":"744f5ddd-90f2-427f-9a86-4e6036fb3e21","status":"Succeeded","startTime":"2019-02-25T18:10:56.0244228Z","endTime":"2019-02-25T18:12:15.5890912Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:12:37 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHM1VPWkFJQ1dOTFhTVEVFWlFOR09NTFZRQk9LWTdKSnxDMkI0NTU3M0I4MzY2RjlCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_snapshots.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_snapshots.yaml new file mode 100644 index 00000000000..2bc3c245d4f --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_create_snapshots.yaml @@ -0,0 +1,640 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T18:29:11Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-02-25T18:29:11Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"3a90d6cc-0904-4952-90fc-5066f5e1f399\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"86caa702-8122-4134-8ed4-dcd921340d3e\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/e1a5c71d-e1fa-4965-af81-730215dd3b1a?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/e1a5c71d-e1fa-4965-af81-730215dd3b1a?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"984db690-1cc5-40d9-bc40-77a5dc37fdd5\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"86caa702-8122-4134-8ed4-dcd921340d3e\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:29 GMT'] + etag: [W/"984db690-1cc5-40d9-bc40-77a5dc37fdd5"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "cli-subnet-000007", "properties": {"addressPrefix": + "10.12.0.0/24", "delegations": [{"name": "0", "properties": {"serviceName": + "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['168'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000007\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"ce7f0cd6-e3ec-4c48-8168-141a016225db\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"ce7f0cd6-e3ec-4c48-8168-141a016225db\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/800539aa-0f63-404d-867e-bb54810941dd?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1302'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:31 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/800539aa-0f63-404d-867e-bb54810941dd?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000007\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"4e02acbf-f2c3-418c-b3e8-8dd17a2b1f4e\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"4e02acbf-f2c3-418c-b3e8-8dd17a2b1f4e\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1303'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:35 GMT'] + etag: [W/"4e02acbf-f2c3-418c-b3e8-8dd17a2b1f4e"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A29%3A40.4499096Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c1002dfc-a07b-4fb2-9338-4238c9847bfe?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:29:40 GMT'] + etag: [W/"datetime'2019-02-25T18%3A29%3A40.4499096Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c1002dfc-a07b-4fb2-9338-4238c9847bfe?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/c1002dfc-a07b-4fb2-9338-4238c9847bfe","name":"c1002dfc-a07b-4fb2-9338-4238c9847bfe","status":"Succeeded","startTime":"2019-02-25T18:29:40.383394Z","endTime":"2019-02-25T18:29:41.2585783Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:30:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A29%3A41.3035177Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:30:13 GMT'] + etag: [W/"datetime'2019-02-25T18%3A29%3A41.3035177Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A30%3A17.629504Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5009001d-5fa7-4833-8cb3-ba407a08ba30?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['541'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:30:18 GMT'] + etag: [W/"datetime'2019-02-25T18%3A30%3A17.629504Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5009001d-5fa7-4833-8cb3-ba407a08ba30?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5009001d-5fa7-4833-8cb3-ba407a08ba30","name":"5009001d-5fa7-4833-8cb3-ba407a08ba30","status":"Succeeded","startTime":"2019-02-25T18:30:17.573942Z","endTime":"2019-02-25T18:30:17.995786Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['613'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:30:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A30%3A18.0468027Z''\"","location":"westus2","properties":{"poolId":"ff39be2a-ee1d-0456-c62d-4ad6604ca8cf","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:30:50 GMT'] + etag: [W/"datetime'2019-02-25T18%3A30%3A18.0468027Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['395'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A30%3A56.4682245Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/47d3750a-0369-4371-8af6-6b127eaa37df?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['910'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:30:57 GMT'] + etag: [W/"datetime'2019-02-25T18%3A30%3A56.4682245Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/47d3750a-0369-4371-8af6-6b127eaa37df?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/47d3750a-0369-4371-8af6-6b127eaa37df","name":"47d3750a-0369-4371-8af6-6b127eaa37df","status":"Creating","startTime":"2019-02-25T18:30:56.4105119Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['636'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:31:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/47d3750a-0369-4371-8af6-6b127eaa37df?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/47d3750a-0369-4371-8af6-6b127eaa37df","name":"47d3750a-0369-4371-8af6-6b127eaa37df","status":"Succeeded","startTime":"2019-02-25T18:30:56.4105119Z","endTime":"2019-02-25T18:31:31.6472214Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['646'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:31:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A31%3A31.6772319Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"05b506e5-9c4c-6487-389e-9048144bad50","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_e68239d4","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"c2119afe-c5a2-6cdc-cbc2-c7884e184e28","fileSystemId":"05b506e5-9c4c-6487-389e-9048144bad50","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1601'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:00 GMT'] + etag: [W/"datetime'2019-02-25T18%3A31%3A31.6772319Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "05b506e5-9c4c-6487-389e-9048144bad50"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"2/25/2019 + 6:32:07 PM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"22d3eb70-5b41-6417-6d8d-b48b70565037","fileSystemId":"05b506e5-9c4c-6487-389e-9048144bad50","name":"cli-sn-000005","created":"2019-02-25T18:32:04Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['779'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot list] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"22d3eb70-5b41-6417-6d8d-b48b70565037","fileSystemId":"05b506e5-9c4c-6487-389e-9048144bad50","name":"cli-sn-000005","created":"2019-02-25T18:32:04Z"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['760'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:32:13 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdZRkJLNlpCN0UySjdKS0dLWlZEV0xTNEo3Q0pSREpHVktCM3xENkI3MjA1MzY2OENBMDMwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_account_by_name_ext.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_account_by_name_ext.yaml new file mode 100644 index 00000000000..78c91146d0e --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_account_by_name_ext.yaml @@ -0,0 +1,207 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T08:38:06Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T08:38:06Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:38:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.4441664Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/96f58db6-21d0-45f7-b9be-4c97178a2aec?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:38:17 GMT'] + etag: [W/"datetime'2019-02-28T08%3A38%3A15.4441664Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/96f58db6-21d0-45f7-b9be-4c97178a2aec?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/96f58db6-21d0-45f7-b9be-4c97178a2aec","name":"96f58db6-21d0-45f7-b9be-4c97178a2aec","status":"Succeeded","startTime":"2019-02-28T08:38:15.3241736Z","endTime":"2019-02-28T08:38:15.6837322Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:38:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.7243652Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:38:48 GMT'] + etag: [W/"datetime'2019-02-28T08%3A38%3A15.7243652Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account show] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.7243652Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:38:51 GMT'] + etag: [W/"datetime'2019-02-28T08%3A38%3A15.7243652Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account show] + Connection: [keep-alive] + ParameterSetName: [--ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.7243652Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:38:53 GMT'] + etag: [W/"datetime'2019-02-28T08%3A38%3A15.7243652Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:38:57 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHMlI2QUtOTDRESzdRN0s0RllCNFFFQkhDUk4yUkhWRXwyMjM4Mjc3MTk2MTcxQUUyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_pool_by_name.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_pool_by_name.yaml new file mode 100644 index 00000000000..55b6a594c87 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_pool_by_name.yaml @@ -0,0 +1,297 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T09:35:43Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T09:35:43Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:35:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T09%3A35%3A52.7286703Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e565952f-b20f-4b9a-85a0-683d000a30b2?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:35:53 GMT'] + etag: [W/"datetime'2019-02-28T09%3A35%3A52.7286703Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e565952f-b20f-4b9a-85a0-683d000a30b2?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e565952f-b20f-4b9a-85a0-683d000a30b2","name":"e565952f-b20f-4b9a-85a0-683d000a30b2","status":"Succeeded","startTime":"2019-02-28T09:35:52.6605761Z","endTime":"2019-02-28T09:35:52.9597367Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:36:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T09%3A35%3A53.0018625Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:36:32 GMT'] + etag: [W/"datetime'2019-02-28T09%3A35%3A53.0018625Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A36%3A34.2561174Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8752ac07-9f00-48b6-af34-8dc04f145500?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:36:46 GMT'] + etag: [W/"datetime'2019-02-28T09%3A36%3A34.2561174Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8752ac07-9f00-48b6-af34-8dc04f145500?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8752ac07-9f00-48b6-af34-8dc04f145500","name":"8752ac07-9f00-48b6-af34-8dc04f145500","status":"Succeeded","startTime":"2019-02-28T09:36:34.2000642Z","endTime":"2019-02-28T09:36:34.6531755Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:37:06 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A36%3A34.6924273Z''\"","location":"westus2","properties":{"poolId":"901e52f0-b6c6-59ca-c24b-f54fade7c68e","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:37:21 GMT'] + etag: [W/"datetime'2019-02-28T09%3A36%3A34.6924273Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool show] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A36%3A34.6924273Z''\"","location":"westus2","properties":{"poolId":"901e52f0-b6c6-59ca-c24b-f54fade7c68e","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:37:29 GMT'] + etag: [W/"datetime'2019-02-28T09%3A36%3A34.6924273Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool show] + Connection: [keep-alive] + ParameterSetName: [--ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A36%3A34.6924273Z''\"","location":"westus2","properties":{"poolId":"901e52f0-b6c6-59ca-c24b-f54fade7c68e","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:37:26 GMT'] + etag: [W/"datetime'2019-02-28T09%3A36%3A34.6924273Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 09:37:20 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHNk9FMlRCSkJRSlhaVzYyT1c2N0E3UEpJNFhYQzUzRnw0RUI5MzczREZDNkZFNjM5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_snapshot.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_snapshot.yaml new file mode 100644 index 00000000000..ef8203bd32c --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_snapshot.yaml @@ -0,0 +1,640 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T18:32:14Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-02-25T18:32:14Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"c1540df4-bac3-4af2-a06b-f48cd7366f75\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"1466b743-e849-4723-9cb0-b39fe9e63965\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/e36c6ba0-43d9-4754-bfce-87b3ee15a9d6?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/e36c6ba0-43d9-4754-bfce-87b3ee15a9d6?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000006\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"4f09819e-c61a-44b5-ac24-a5b75f491713\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"1466b743-e849-4723-9cb0-b39fe9e63965\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:25 GMT'] + etag: [W/"4f09819e-c61a-44b5-ac24-a5b75f491713"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "cli-subnet-000007", "properties": {"addressPrefix": + "10.12.0.0/24", "delegations": [{"name": "0", "properties": {"serviceName": + "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['168'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000007\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"16172ec3-3dc8-4ecb-9e3d-57e30be9360d\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"16172ec3-3dc8-4ecb-9e3d-57e30be9360d\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/ae04c876-37ce-4862-be45-d5f30219ef2e?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1302'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/ae04c876-37ce-4862-be45-d5f30219ef2e?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000007\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"502f4e8a-6883-4ef1-8e0e-1b2b2a812a09\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"502f4e8a-6883-4ef1-8e0e-1b2b2a812a09\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1303'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:31 GMT'] + etag: [W/"502f4e8a-6883-4ef1-8e0e-1b2b2a812a09"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A32%3A36.6954115Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ad2b088-8b29-44c6-b423-2ce7d82a5225?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:32:37 GMT'] + etag: [W/"datetime'2019-02-25T18%3A32%3A36.6954115Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ad2b088-8b29-44c6-b423-2ce7d82a5225?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3ad2b088-8b29-44c6-b423-2ce7d82a5225","name":"3ad2b088-8b29-44c6-b423-2ce7d82a5225","status":"Succeeded","startTime":"2019-02-25T18:32:36.6178447Z","endTime":"2019-02-25T18:32:36.9616251Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:33:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A32%3A37.0276479Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:33:09 GMT'] + etag: [W/"datetime'2019-02-25T18%3A32%3A37.0276479Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A33%3A13.970887Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5c4ed332-96de-4f71-a9fc-6e7555245105?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['541'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:33:14 GMT'] + etag: [W/"datetime'2019-02-25T18%3A33%3A13.970887Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5c4ed332-96de-4f71-a9fc-6e7555245105?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5c4ed332-96de-4f71-a9fc-6e7555245105","name":"5c4ed332-96de-4f71-a9fc-6e7555245105","status":"Succeeded","startTime":"2019-02-25T18:33:13.9013894Z","endTime":"2019-02-25T18:33:14.3545316Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:33:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A33%3A14.4071965Z''\"","location":"westus2","properties":{"poolId":"19b1bb0d-aadd-1fe4-57dd-7b566860ab80","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['649'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:33:46 GMT'] + etag: [W/"datetime'2019-02-25T18%3A33%3A14.4071965Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['395'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A33%3A51.6756671Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/613b47b4-9545-4f22-842e-650fd930bddb?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['910'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:33:51 GMT'] + etag: [W/"datetime'2019-02-25T18%3A33%3A51.6756671Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/613b47b4-9545-4f22-842e-650fd930bddb?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/613b47b4-9545-4f22-842e-650fd930bddb","name":"613b47b4-9545-4f22-842e-650fd930bddb","status":"Succeeded","startTime":"2019-02-25T18:33:51.6175952Z","endTime":"2019-02-25T18:34:22.9373778Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A34%3A22.9778989Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"db457cfd-db41-c93d-bc06-6fe2adc60753","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_80efea07","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000006/subnets/cli-subnet-000007","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"7d0f55bc-6a85-65b9-4729-04d07dfa5cc9","fileSystemId":"db457cfd-db41-c93d-bc06-6fe2adc60753","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1601'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:24 GMT'] + etag: [W/"datetime'2019-02-25T18%3A34%3A22.9778989Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "db457cfd-db41-c93d-bc06-6fe2adc60753"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"2/25/2019 + 6:34:32 PM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"f4d2bb8e-3bc0-ef03-faf1-a9ab5df08f51","fileSystemId":"db457cfd-db41-c93d-bc06-6fe2adc60753","name":"cli-sn-000005","created":"2019-02-25T18:34:29Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['779'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot show] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v -s] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"f4d2bb8e-3bc0-ef03-faf1-a9ab5df08f51","fileSystemId":"db457cfd-db41-c93d-bc06-6fe2adc60753","name":"cli-sn-000005","created":"2019-02-25T18:34:29Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['748'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot show] + Connection: [keep-alive] + ParameterSetName: [--resource-group --ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"f4d2bb8e-3bc0-ef03-faf1-a9ab5df08f51","fileSystemId":"db457cfd-db41-c93d-bc06-6fe2adc60753","name":"cli-sn-000005","created":"2019-02-25T18:34:29Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['748'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:34:40 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkcyTVNKUVRISkNDNk1VQUhOSzNNNUhHU1JJTlhCR1VFTFdUUHwzRUNFMkQxQjg0NzU1ODJCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_volume_by_name.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_volume_by_name.yaml new file mode 100644 index 00000000000..9d5dd3c9ea7 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_get_volume_by_name.yaml @@ -0,0 +1,611 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T18:12:37Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-25T18:12:37Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"3a598739-3030-43ce-9691-eb5c4d19f82d\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"07af654c-5a1c-4dc3-be97-cae4b36b956c\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/b13facfb-d5aa-443d-b3de-16e811f9ea9b?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/b13facfb-d5aa-443d-b3de-16e811f9ea9b?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:49 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"aecb57ea-dac9-4e7c-8726-6e8a0198831c\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"07af654c-5a1c-4dc3-be97-cae4b36b956c\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:50 GMT'] + etag: [W/"aecb57ea-dac9-4e7c-8726-6e8a0198831c"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "cli-subnet-000006", "properties": {"addressPrefix": + "10.12.0.0/24", "delegations": [{"name": "0", "properties": {"serviceName": + "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['168'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"15e904dc-250a-4ddc-a790-c70e3ccf8db5\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"15e904dc-250a-4ddc-a790-c70e3ccf8db5\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/d6f4ce99-97d5-4bde-948b-9024ec4e855a?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1302'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/d6f4ce99-97d5-4bde-948b-9024ec4e855a?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:55 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"c2b34261-f877-44b4-8df7-76b438a75d86\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"c2b34261-f877-44b4-8df7-76b438a75d86\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1303'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:12:56 GMT'] + etag: [W/"c2b34261-f877-44b4-8df7-76b438a75d86"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A13%3A00.9140417Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1481250d-0f4d-4308-9028-c5220cd765e5?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:13:01 GMT'] + etag: [W/"datetime'2019-02-25T18%3A13%3A00.9140417Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1481250d-0f4d-4308-9028-c5220cd765e5?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1481250d-0f4d-4308-9028-c5220cd765e5","name":"1481250d-0f4d-4308-9028-c5220cd765e5","status":"Succeeded","startTime":"2019-02-25T18:13:00.8619553Z","endTime":"2019-02-25T18:13:01.1593413Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:13:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A13%3A01.2052504Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:13:34 GMT'] + etag: [W/"datetime'2019-02-25T18%3A13%3A01.2052504Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag2": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A13%3A38.4428873Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/907be285-ea3a-4684-8932-a686118d1275?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:13:38 GMT'] + etag: [W/"datetime'2019-02-25T18%3A13%3A38.4428873Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/907be285-ea3a-4684-8932-a686118d1275?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/907be285-ea3a-4684-8932-a686118d1275","name":"907be285-ea3a-4684-8932-a686118d1275","status":"Succeeded","startTime":"2019-02-25T18:13:38.4005726Z","endTime":"2019-02-25T18:13:38.8682709Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:14:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A13%3A38.9112212Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"poolId":"d935e446-ec83-f62e-ae18-27443c1273d6","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:14:11 GMT'] + etag: [W/"datetime'2019-02-25T18%3A13%3A38.9112212Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"usageThreshold": + 107374182400, "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag2": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['423'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A14%3A16.7801233Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/282f31e7-81e7-44c7-b1ff-fe5ec0eb6043?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['935'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:14:16 GMT'] + etag: [W/"datetime'2019-02-25T18%3A14%3A16.7801233Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/282f31e7-81e7-44c7-b1ff-fe5ec0eb6043?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/282f31e7-81e7-44c7-b1ff-fe5ec0eb6043","name":"282f31e7-81e7-44c7-b1ff-fe5ec0eb6043","status":"Succeeded","startTime":"2019-02-25T18:14:16.7091383Z","endTime":"2019-02-25T18:14:46.978354Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:14:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A14%3A47.011595Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"225cba91-0bc8-6b0a-701d-c3256aefd268","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_0c8d971e","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"7c67f689-a3d6-2631-b9a3-57bda83a5788","fileSystemId":"225cba91-0bc8-6b0a-701d-c3256aefd268","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1625'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:14:49 GMT'] + etag: [W/"datetime'2019-02-25T18%3A14%3A47.011595Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume show] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A14%3A47.011595Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"225cba91-0bc8-6b0a-701d-c3256aefd268","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_0c8d971e","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"7c67f689-a3d6-2631-b9a3-57bda83a5788","fileSystemId":"225cba91-0bc8-6b0a-701d-c3256aefd268","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1625'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:14:52 GMT'] + etag: [W/"datetime'2019-02-25T18%3A14%3A47.011595Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume show] + Connection: [keep-alive] + ParameterSetName: [--resource-group --ids] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A14%3A47.011595Z''\"","location":"westus2","tags":{"Tag2":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"225cba91-0bc8-6b0a-701d-c3256aefd268","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_0c8d971e","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"7c67f689-a3d6-2631-b9a3-57bda83a5788","fileSystemId":"225cba91-0bc8-6b0a-701d-c3256aefd268","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1625'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:14:53 GMT'] + etag: [W/"datetime'2019-02-25T18%3A14%3A47.011595Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:14:58 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHT0RNUEtKSERGV0lOUVdPTFVSM1FDNDczWlFIQjdZUnxEMTcwQzI1QTExNjNFQUE1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_accounts_ext.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_accounts_ext.yaml new file mode 100644 index 00000000000..9fd7be6a812 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_accounts_ext.yaml @@ -0,0 +1,407 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T08:38:57Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T08:38:57Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:39:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A39%3A05.479645Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a4139f07-5021-46fb-9723-bfc0e9ba7015?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['476'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:39:05 GMT'] + etag: [W/"datetime'2019-02-28T08%3A39%3A05.479645Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a4139f07-5021-46fb-9723-bfc0e9ba7015?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a4139f07-5021-46fb-9723-bfc0e9ba7015","name":"a4139f07-5021-46fb-9723-bfc0e9ba7015","status":"Succeeded","startTime":"2019-02-28T08:39:05.4289715Z","endTime":"2019-02-28T08:39:05.7173751Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:39:36 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A39%3A05.7588435Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:39:36 GMT'] + etag: [W/"datetime'2019-02-28T08%3A39%3A05.7588435Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['51'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A39%3A42.0886066Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Creating","name":"cli000003"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bb6acde8-20e1-41a5-9f0b-f2fe62fea096?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['477'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:39:42 GMT'] + etag: [W/"datetime'2019-02-28T08%3A39%3A42.0886066Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bb6acde8-20e1-41a5-9f0b-f2fe62fea096?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/bb6acde8-20e1-41a5-9f0b-f2fe62fea096","name":"bb6acde8-20e1-41a5-9f0b-f2fe62fea096","status":"Succeeded","startTime":"2019-02-28T08:39:42.0292748Z","endTime":"2019-02-28T08:39:42.3335072Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:40:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A39%3A42.3788126Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:40:17 GMT'] + etag: [W/"datetime'2019-02-28T08%3A39%3A42.3788126Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account list] + Connection: [keep-alive] + ParameterSetName: [-g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A39%3A05.7588435Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003","name":"cli000003","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A39%3A42.3788126Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000003"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['969'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:40:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1731d6f4-613c-436e-b1f6-75a8d4d7a8e1?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:40:52 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1731d6f4-613c-436e-b1f6-75a8d4d7a8e1?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1731d6f4-613c-436e-b1f6-75a8d4d7a8e1?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1731d6f4-613c-436e-b1f6-75a8d4d7a8e1","name":"1731d6f4-613c-436e-b1f6-75a8d4d7a8e1","status":"Succeeded","startTime":"2019-02-28T08:40:24.8062632Z","endTime":"2019-02-28T08:40:24.9000409Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:40:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/b3cfd8db-9dc6-432e-b576-550a211a94b6?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:41:11 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/b3cfd8db-9dc6-432e-b576-550a211a94b6?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account delete] + Connection: [keep-alive] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/b3cfd8db-9dc6-432e-b576-550a211a94b6?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/b3cfd8db-9dc6-432e-b576-550a211a94b6","name":"b3cfd8db-9dc6-432e-b576-550a211a94b6","status":"Succeeded","startTime":"2019-02-28T08:41:00.2482359Z","endTime":"2019-02-28T08:41:00.4357437Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:41:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account list] + Connection: [keep-alive] + ParameterSetName: [--resource-group] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:41:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:41:36 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHSkZKVUdLMllXWkE3N1BZREFYNlFUS1o2S0I1Nk5ZMnxDMzQ4RjQ5M0YzMEI4QzI0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_mount_targets.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_mount_targets.yaml new file mode 100644 index 00000000000..78e2d65c32f --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_mount_targets.yaml @@ -0,0 +1,607 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T21:08:41Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-02-25T21:08:41Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:08:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['124'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"97c5350e-000a-44e6-9c26-3bf913e253e7\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"50223e5e-1930-4137-a3bf-f602907d5b78\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/23ab69f1-ef07-4080-939c-7960d799b157?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['805'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:08:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/23ab69f1-ef07-4080-939c-7960d799b157?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:08:57 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"523a7296-9ff4-44fa-9e22-f76a700bbf64\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"50223e5e-1930-4137-a3bf-f602907d5b78\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\"\ + : []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\":\ + \ [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:08:58 GMT'] + etag: [W/"523a7296-9ff4-44fa-9e22-f76a700bbf64"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "default", "properties": {"addressPrefix": "10.0.0.0/24", + "delegations": [{"name": "0", "properties": {"serviceName": "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['158'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"c46cee8e-12b9-42c7-aa74-ae55744de231\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"c46cee8e-12b9-42c7-aa74-ae55744de231\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/bc4e6172-28d3-4510-9d42-4ae5e02bd841?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1274'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:08:59 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/bc4e6172-28d3-4510-9d42-4ae5e02bd841?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:09:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"default\",\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default\"\ + ,\r\n \"etag\": \"W/\\\"cd1951ad-e48b-42a6-b52f-5e8655295633\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"cd1951ad-e48b-42a6-b52f-5e8655295633\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1275'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:09:04 GMT'] + etag: [W/"cd1951ad-e48b-42a6-b52f-5e8655295633"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T21%3A09%3A09.1669344Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5373dd60-37f0-4922-9525-b5ea624fa3df?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:09:09 GMT'] + etag: [W/"datetime'2019-02-25T21%3A09%3A09.1669344Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5373dd60-37f0-4922-9525-b5ea624fa3df?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/5373dd60-37f0-4922-9525-b5ea624fa3df","name":"5373dd60-37f0-4922-9525-b5ea624fa3df","status":"Succeeded","startTime":"2019-02-25T21:09:09.1103709Z","endTime":"2019-02-25T21:09:09.4084643Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:09:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T21%3A09%3A09.4541388Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:09:42 GMT'] + etag: [W/"datetime'2019-02-25T21%3A09%3A09.4541388Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T21%3A09%3A46.5474841Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8a5ad7df-792b-4345-bb07-46b607b12c72?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:09:46 GMT'] + etag: [W/"datetime'2019-02-25T21%3A09%3A46.5474841Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8a5ad7df-792b-4345-bb07-46b607b12c72?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/8a5ad7df-792b-4345-bb07-46b607b12c72","name":"8a5ad7df-792b-4345-bb07-46b607b12c72","status":"Succeeded","startTime":"2019-02-25T21:09:46.4600293Z","endTime":"2019-02-25T21:09:46.8905886Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:10:18 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T21%3A09%3A46.9447663Z''\"","location":"westus2","properties":{"poolId":"9e58c3f0-fe10-0317-05e3-ead4f608e3d9","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:10:19 GMT'] + etag: [W/"datetime'2019-02-25T21%3A09%3A46.9447663Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['386'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T21%3A10%3A24.6996296Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7dcda0a-ba63-4485-bb4e-9c921d44db58?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['901'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:10:25 GMT'] + etag: [W/"datetime'2019-02-25T21%3A10%3A24.6996296Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7dcda0a-ba63-4485-bb4e-9c921d44db58?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7dcda0a-ba63-4485-bb4e-9c921d44db58","name":"f7dcda0a-ba63-4485-bb4e-9c921d44db58","status":"Creating","startTime":"2019-02-25T21:10:24.6497002Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:10:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7dcda0a-ba63-4485-bb4e-9c921d44db58?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f7dcda0a-ba63-4485-bb4e-9c921d44db58","name":"f7dcda0a-ba63-4485-bb4e-9c921d44db58","status":"Succeeded","startTime":"2019-02-25T21:10:24.6497002Z","endTime":"2019-02-25T21:11:12.2504788Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:11:28 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T21%3A11%3A12.2756684Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"39007b90-247a-ad4f-f6e5-bb43aa47d359","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_353ee3cb","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/default","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"0a920eec-79a9-ceea-14b9-48e9b250a123","fileSystemId":"39007b90-247a-ad4f-f6e5-bb43aa47d359","startIp":"10.0.0.4","endIp":"10.0.0.4","gateway":"10.0.0.1","netmask":"255.255.255.0","ipAddress":"10.0.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1588'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:11:29 GMT'] + etag: [W/"datetime'2019-02-25T21%3A11%3A12.2756684Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf mount-target list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/mountTargets?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/mountTargets/0a920eec-79a9-ceea-14b9-48e9b250a123","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/0a920eec-79a9-ceea-14b9-48e9b250a123","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/mountTargets","location":"westus2","properties":{"provisioningState":"Succeeded","mountTargetId":"0a920eec-79a9-ceea-14b9-48e9b250a123","fileSystemId":"39007b90-247a-ad4f-f6e5-bb43aa47d359","startIp":"10.0.0.4","endIp":"10.0.0.4","gateway":"10.0.0.1","netmask":"255.255.255.0","ipAddress":"10.0.0.4"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['836'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 21:11:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 21:11:36 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdNNUVCUDJPSzJBWVZYUkRWSlVLRkFWM1BDQU5MN0FVU0hQTXw0OEQ4N0I3Rjk3MUNBREZFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_pools.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_pools.yaml new file mode 100644 index 00000000000..6a95242b69c --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_pools.yaml @@ -0,0 +1,501 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T09:37:21Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T09:37:21Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:37:22 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T09%3A37%3A30.3498945Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/67d86e44-bb09-44f9-8f5d-f360e89918af?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:37:32 GMT'] + etag: [W/"datetime'2019-02-28T09%3A37%3A30.3498945Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/67d86e44-bb09-44f9-8f5d-f360e89918af?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/67d86e44-bb09-44f9-8f5d-f360e89918af","name":"67d86e44-bb09-44f9-8f5d-f360e89918af","status":"Succeeded","startTime":"2019-02-28T09:37:30.1611814Z","endTime":"2019-02-28T09:37:30.5961328Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:38:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T09%3A37%3A30.6350961Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:38:04 GMT'] + etag: [W/"datetime'2019-02-28T09%3A37%3A30.6350961Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A38%3A08.783151Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/15166365-fd63-473d-a636-88a0e953bb25?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['566'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:38:12 GMT'] + etag: [W/"datetime'2019-02-28T09%3A38%3A08.783151Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/15166365-fd63-473d-a636-88a0e953bb25?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/15166365-fd63-473d-a636-88a0e953bb25","name":"15166365-fd63-473d-a636-88a0e953bb25","status":"Succeeded","startTime":"2019-02-28T09:38:08.7389358Z","endTime":"2019-02-28T09:38:09.1225861Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:38:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A38%3A09.1594163Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"f8ebf3b0-18c9-18d0-252f-ddd66dcc68e0","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:38:44 GMT'] + etag: [W/"datetime'2019-02-28T09%3A38%3A09.1594163Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A38%3A51.2322503Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3d4e84d5-78b7-4309-9f62-f51ca114e0f6?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:38:51 GMT'] + etag: [W/"datetime'2019-02-28T09%3A38%3A51.2322503Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3d4e84d5-78b7-4309-9f62-f51ca114e0f6?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/3d4e84d5-78b7-4309-9f62-f51ca114e0f6","name":"3d4e84d5-78b7-4309-9f62-f51ca114e0f6","status":"Succeeded","startTime":"2019-02-28T09:38:51.1908651Z","endTime":"2019-02-28T09:38:51.6143048Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:39:26 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A38%3A51.6495445Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"c6970a0a-5b02-042d-2f29-0e59dc731e97","name":"cli000002/cli000004","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['675'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:39:38 GMT'] + etag: [W/"datetime'2019-02-28T09%3A38%3A51.6495445Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool list] + Connection: [keep-alive] + ParameterSetName: [-g -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003","name":"cli000002/cli000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A38%3A09.1594163Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"f8ebf3b0-18c9-18d0-252f-ddd66dcc68e0","name":"cli000002/cli000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004","name":"cli000002/cli000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T09%3A38%3A51.6495445Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"c6970a0a-5b02-042d-2f29-0e59dc731e97","name":"cli000002/cli000004","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['1363'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:39:29 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1fdc1e12-1c13-46ab-8c61-6d584f8f5a26?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 09:39:36 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1fdc1e12-1c13-46ab-8c61-6d584f8f5a26?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1fdc1e12-1c13-46ab-8c61-6d584f8f5a26?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/1fdc1e12-1c13-46ab-8c61-6d584f8f5a26","name":"1fdc1e12-1c13-46ab-8c61-6d584f8f5a26","status":"Succeeded","startTime":"2019-02-28T09:39:33.8755426Z","endTime":"2019-02-28T09:39:37.109861Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:40:16 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/28186a4d-7e8a-427a-b051-e6682cdf2ac8?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 09:40:09 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/28186a4d-7e8a-427a-b051-e6682cdf2ac8?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool delete] + Connection: [keep-alive] + ParameterSetName: [-g -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/28186a4d-7e8a-427a-b051-e6682cdf2ac8?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/28186a4d-7e8a-427a-b051-e6682cdf2ac8","name":"28186a4d-7e8a-427a-b051-e6682cdf2ac8","status":"Succeeded","startTime":"2019-02-28T09:40:09.2021947Z","endTime":"2019-02-28T09:40:12.3234206Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools/cli000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:40:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002/capacityPools?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 09:40:47 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 09:41:02 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHVE5NWVFUSktYT1RNT1BLVEwzWExZQzZLNzUyM1JLRHwzRUU5MDY0OEQzQUYwQjc0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_snapshots.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_snapshots.yaml new file mode 100644 index 00000000000..f0173dfb8f2 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_snapshots.yaml @@ -0,0 +1,672 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T18:34:41Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","location":"westus","tags":{"date":"2019-02-25T18:34:41Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000007\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"1b14b14d-f879-4fdf-9703-7f4628e83432\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"e572b0c3-b0be-455e-95ee-e688bc8487ec\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/511c8773-1a29-4e56-a524-3ef1b47873a5?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:48 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/511c8773-1a29-4e56-a524-3ef1b47873a5?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000007\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007\"\ + ,\r\n \"etag\": \"W/\\\"078bb9bd-395a-45ca-bd2e-134f03468db9\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"e572b0c3-b0be-455e-95ee-e688bc8487ec\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:53 GMT'] + etag: [W/"078bb9bd-395a-45ca-bd2e-134f03468db9"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "cli-subnet-000008", "properties": {"addressPrefix": + "10.12.0.0/24", "delegations": [{"name": "0", "properties": {"serviceName": + "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['168'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000008\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008\"\ + ,\r\n \"etag\": \"W/\\\"e397b25d-b0e2-41fc-af5a-89e628324a70\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"e397b25d-b0e2-41fc-af5a-89e628324a70\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/b6e9c561-88f8-4b8f-bbe9-458a71da909b?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1302'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/b6e9c561-88f8-4b8f-bbe9-458a71da909b?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:58 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n --vnet-name --address-prefixes --delegations -g] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000008\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008\"\ + ,\r\n \"etag\": \"W/\\\"cd534252-242e-41ed-824d-85c5ae587dee\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"cd534252-242e-41ed-824d-85c5ae587dee\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1303'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:34:59 GMT'] + etag: [W/"cd534252-242e-41ed-824d-85c5ae587dee"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A35%3A04.2682281Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/921fae7b-eb5a-4120-8358-d87c76de20c1?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:35:04 GMT'] + etag: [W/"datetime'2019-02-25T18%3A35%3A04.2682281Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/921fae7b-eb5a-4120-8358-d87c76de20c1?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/921fae7b-eb5a-4120-8358-d87c76de20c1","name":"921fae7b-eb5a-4120-8358-d87c76de20c1","status":"Succeeded","startTime":"2019-02-25T18:35:04.1604291Z","endTime":"2019-02-25T18:35:04.5510866Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:35:35 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A35%3A04.6665093Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:35:37 GMT'] + etag: [W/"datetime'2019-02-25T18%3A35%3A04.6665093Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A35%3A41.7608558Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/7dda8181-b6c5-49e8-a74e-45b561163dec?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:35:42 GMT'] + etag: [W/"datetime'2019-02-25T18%3A35%3A41.7608558Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/7dda8181-b6c5-49e8-a74e-45b561163dec?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/7dda8181-b6c5-49e8-a74e-45b561163dec","name":"7dda8181-b6c5-49e8-a74e-45b561163dec","status":"Succeeded","startTime":"2019-02-25T18:35:41.6619982Z","endTime":"2019-02-25T18:35:42.1463329Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:36:12 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A35%3A42.2612103Z''\"","location":"westus2","properties":{"poolId":"4411ae52-43a4-a877-0b8b-ba84f661593d","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:36:13 GMT'] + etag: [W/"datetime'2019-02-25T18%3A35%3A42.2612103Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['395'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A36%3A18.4329024Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6573e9df-2409-44b9-9880-e460419592ed?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['910'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:36:18 GMT'] + etag: [W/"datetime'2019-02-25T18%3A36%3A18.4329024Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1194'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6573e9df-2409-44b9-9880-e460419592ed?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6573e9df-2409-44b9-9880-e460419592ed","name":"6573e9df-2409-44b9-9880-e460419592ed","status":"Creating","startTime":"2019-02-25T18:36:18.3790176Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:36:50 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6573e9df-2409-44b9-9880-e460419592ed?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/6573e9df-2409-44b9-9880-e460419592ed","name":"6573e9df-2409-44b9-9880-e460419592ed","status":"Succeeded","startTime":"2019-02-25T18:36:18.3790176Z","endTime":"2019-02-25T18:37:02.328375Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:37:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A37%3A02.3591012Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"966de158-1daa-3a3e-36c6-942bf3c04f71","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_208357ee","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000007/subnets/cli-subnet-000008","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"56e08be1-f0fe-961f-ed4d-baf8c1d14c1a","fileSystemId":"966de158-1daa-3a3e-36c6-942bf3c04f71","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1601'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:37:23 GMT'] + etag: [W/"datetime'2019-02-25T18%3A37%3A02.3591012Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "966de158-1daa-3a3e-36c6-942bf3c04f71"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"2/25/2019 + 6:37:30 PM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"092546d3-183b-3f98-6bec-8bda50929d9a","fileSystemId":"966de158-1daa-3a3e-36c6-942bf3c04f71","name":"cli-sn-000005","created":"2019-02-25T18:37:27Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['779'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:37:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"properties": {"fileSystemId": "966de158-1daa-3a3e-36c6-942bf3c04f71"}, + "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot create] + Connection: [keep-alive] + Content-Length: ['95'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -v -s -l --file-system-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000006?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000006","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000006","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","etag":"2/25/2019 + 6:37:37 PM","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"43b1baba-fff5-668f-545d-23d29546b1d0","fileSystemId":"966de158-1daa-3a3e-36c6-942bf3c04f71","name":"cli-sn-000006","created":"2019-02-25T18:37:35Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['779'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:37:37 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf snapshot list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000005","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000005","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"092546d3-183b-3f98-6bec-8bda50929d9a","fileSystemId":"966de158-1daa-3a3e-36c6-942bf3c04f71","name":"cli-sn-000005","created":"2019-02-25T18:37:27Z"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004/snapshots/cli-sn-000006","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004/cli-sn-000006","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots","location":"westus2","properties":{"provisioningState":"Succeeded","snapshotId":"43b1baba-fff5-668f-545d-23d29546b1d0","fileSystemId":"966de158-1daa-3a3e-36c6-942bf3c04f71","name":"cli-sn-000006","created":"2019-02-25T18:37:35Z"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['1509'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:37:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:37:44 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTElURVNUOjJFUkdQWE4yUUpTSFNNQUE1TlBES0RKSUNOWEpUTEdQSVlQU0c0NXxGRjIzOEU4RDczOTFBQTg2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_volumes.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_volumes.yaml new file mode 100644 index 00000000000..5ca81b7b37b --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_list_volumes.yaml @@ -0,0 +1,723 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T18:19:53Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-25T18:19:53Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"f2be9534-3da6-43a9-8e18-20b1f97491cc\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"592b54c1-2919-4016-baab-ec6e1d5926ee\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/47b5b043-9b9c-475a-a575-03ce857e73f8?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:07 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/47b5b043-9b9c-475a-a575-03ce857e73f8?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:11 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"2c081d1d-059c-477d-9818-99960a978074\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"592b54c1-2919-4016-baab-ec6e1d5926ee\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:12 GMT'] + etag: [W/"2c081d1d-059c-477d-9818-99960a978074"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "cli-subnet-000006", "properties": {"addressPrefix": + "10.12.0.0/24", "delegations": [{"name": "0", "properties": {"serviceName": + "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['168'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"cfa002cb-b366-43dd-8f6a-54617101617b\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"cfa002cb-b366-43dd-8f6a-54617101617b\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/59d65dcc-551c-4b86-81d8-d31d02655400?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1302'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:13 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/59d65dcc-551c-4b86-81d8-d31d02655400?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"f1e8884d-98eb-4a91-8205-ec7c85d7840f\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1303'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:18 GMT'] + etag: [W/"f1e8884d-98eb-4a91-8205-ec7c85d7840f"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A20%3A23.2023771Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/dc24e980-6d80-490b-9a56-f824150f4256?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:23 GMT'] + etag: [W/"datetime'2019-02-25T18%3A20%3A23.2023771Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/dc24e980-6d80-490b-9a56-f824150f4256?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/dc24e980-6d80-490b-9a56-f824150f4256","name":"dc24e980-6d80-490b-9a56-f824150f4256","status":"Succeeded","startTime":"2019-02-25T18:20:23.066124Z","endTime":"2019-02-25T18:20:23.416531Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['574'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:54 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A20%3A23.4625615Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:20:56 GMT'] + etag: [W/"datetime'2019-02-25T18%3A20%3A23.4625615Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Premium", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['117'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A21%3A00.5950253Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/21cda98e-5a3b-4b3b-8aa5-949797dfa511?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['567'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:21:00 GMT'] + etag: [W/"datetime'2019-02-25T18%3A21%3A00.5950253Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/21cda98e-5a3b-4b3b-8aa5-949797dfa511?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/21cda98e-5a3b-4b3b-8aa5-949797dfa511","name":"21cda98e-5a3b-4b3b-8aa5-949797dfa511","status":"Succeeded","startTime":"2019-02-25T18:21:00.5368727Z","endTime":"2019-02-25T18:21:01.177425Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['614'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:21:32 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A21%3A01.210462Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"a82ed146-bbe3-573b-19d8-d5661d20dba4","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['674'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:21:34 GMT'] + etag: [W/"datetime'2019-02-25T18%3A21%3A01.210462Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"usageThreshold": + 107374182400, "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "tags": {"Tag1": + "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['423'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A21%3A38.7643306Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a62fab96-8553-49fb-8ee4-12c3b9878232?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['935'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:21:39 GMT'] + etag: [W/"datetime'2019-02-25T18%3A21%3A38.7643306Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a62fab96-8553-49fb-8ee4-12c3b9878232?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a62fab96-8553-49fb-8ee4-12c3b9878232","name":"a62fab96-8553-49fb-8ee4-12c3b9878232","status":"Creating","startTime":"2019-02-25T18:21:38.6939627Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:22:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a62fab96-8553-49fb-8ee4-12c3b9878232?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/a62fab96-8553-49fb-8ee4-12c3b9878232","name":"a62fab96-8553-49fb-8ee4-12c3b9878232","status":"Succeeded","startTime":"2019-02-25T18:21:38.6939627Z","endTime":"2019-02-25T18:22:15.8572337Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:22:42 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A22%3A15.8938884Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"a165fd21-de01-0d77-def6-ac1ababf0dc8","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_228b3a66","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"c9a4fa0a-b9c7-70e2-3a51-a7f904dc1e4e","fileSystemId":"a165fd21-de01-0d77-def6-ac1ababf0dc8","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1625'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:22:43 GMT'] + etag: [W/"datetime'2019-02-25T18%3A22%3A15.8938884Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A22%3A15.8938884Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","fileSystemId":"a165fd21-de01-0d77-def6-ac1ababf0dc8","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_228b3a66","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"c9a4fa0a-b9c7-70e2-3a51-a7f904dc1e4e","fileSystemId":"a165fd21-de01-0d77-def6-ac1ababf0dc8","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}]}'} + headers: + cache-control: [no-cache] + content-length: ['1637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:22:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/71ba9be2-1417-4e20-b85e-eae3bec8efc9?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:22:48 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/71ba9be2-1417-4e20-b85e-eae3bec8efc9?api-version=2017-08-15&operationResultResponseType=Location'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-powered-by: [ASP.NET] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/71ba9be2-1417-4e20-b85e-eae3bec8efc9?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/71ba9be2-1417-4e20-b85e-eae3bec8efc9","name":"71ba9be2-1417-4e20-b85e-eae3bec8efc9","status":"Deleting","startTime":"2019-02-25T18:22:48.939241Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['636'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:23:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume delete] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/71ba9be2-1417-4e20-b85e-eae3bec8efc9?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/71ba9be2-1417-4e20-b85e-eae3bec8efc9","name":"71ba9be2-1417-4e20-b85e-eae3bec8efc9","status":"Succeeded","startTime":"2019-02-25T18:22:48.939241Z","endTime":"2019-02-25T18:23:44.7821227Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['647'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:23:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume list] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"value":[]}'} + headers: + cache-control: [no-cache] + content-length: ['12'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:23:53 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:23:58 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHNkJNMlNINEQ2VkhJT0NETjVOQ0RKNEJYUjUyTlNRV3xDOTU1MDg1Njc5QzlGM0NCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_account_ext.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_account_ext.yaml new file mode 100644 index 00000000000..2b5f2f17051 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_account_ext.yaml @@ -0,0 +1,210 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T08:41:36Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T08:41:36Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:41:40 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A41%3A44.6205052Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e782c69c-97d7-4ec2-8ecb-a57e16cf01e6?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:41:44 GMT'] + etag: [W/"datetime'2019-02-28T08%3A41%3A44.6205052Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e782c69c-97d7-4ec2-8ecb-a57e16cf01e6?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/e782c69c-97d7-4ec2-8ecb-a57e16cf01e6","name":"e782c69c-97d7-4ec2-8ecb-a57e16cf01e6","status":"Succeeded","startTime":"2019-02-28T08:41:44.5497543Z","endTime":"2019-02-28T08:41:44.862287Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['575'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:42:15 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A41%3A44.9077094Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:42:16 GMT'] + etag: [W/"datetime'2019-02-28T08%3A41%3A44.9077094Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account update] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A41%3A44.9077094Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:42:19 GMT'] + etag: [W/"datetime'2019-02-28T08%3A41%3A44.9077094Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account update] + Connection: [keep-alive] + Content-Length: ['28'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group -a --tags] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A42%3A21.1152954Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"provisioningState":"Succeeded","name":"cli000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['478'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 08:42:22 GMT'] + etag: [W/"datetime'2019-02-28T08%3A42%3A21.1152954Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 08:42:26 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHRTJCTTZXSkhWNFFFQTJFUzQ2NFRLTlpTNzdQT0ZRWHw2Q0REMzIzMjhEMTNDNTVFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_pool.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_pool.yaml new file mode 100644 index 00000000000..1346fa47b4f --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_pool.yaml @@ -0,0 +1,301 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T10:01:07Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T10:01:07Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:01:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T10%3A01%3A19.6665526Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ab0873ff-ab7f-43fe-9401-13ebf0846bf1?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:01:23 GMT'] + etag: [W/"datetime'2019-02-28T10%3A01%3A19.6665526Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ab0873ff-ab7f-43fe-9401-13ebf0846bf1?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/ab0873ff-ab7f-43fe-9401-13ebf0846bf1","name":"ab0873ff-ab7f-43fe-9401-13ebf0846bf1","status":"Succeeded","startTime":"2019-02-28T10:01:19.6157575Z","endTime":"2019-02-28T10:01:19.9062319Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['576'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:02:08 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T10%3A01%3A19.9517574Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:01:59 GMT'] + etag: [W/"datetime'2019-02-28T10%3A01%3A19.9517574Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T10%3A02%3A01.9910073Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/485a2f74-5b61-46ae-9462-83bd82d3d84e?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:02:00 GMT'] + etag: [W/"datetime'2019-02-28T10%3A02%3A01.9910073Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/485a2f74-5b61-46ae-9462-83bd82d3d84e?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/485a2f74-5b61-46ae-9462-83bd82d3d84e","name":"485a2f74-5b61-46ae-9462-83bd82d3d84e","status":"Succeeded","startTime":"2019-02-28T10:02:01.9235313Z","endTime":"2019-02-28T10:02:02.3419383Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:02:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T10%3A02%3A02.3942999Z''\"","location":"westus2","properties":{"poolId":"ee926ac0-d1ed-f662-391c-9199a24513b5","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:02:36 GMT'] + etag: [W/"datetime'2019-02-28T10%3A02%3A02.3942999Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool update] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T10%3A02%3A02.3942999Z''\"","location":"westus2","properties":{"poolId":"ee926ac0-d1ed-f662-391c-9199a24513b5","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:02:38 GMT'] + etag: [W/"datetime'2019-02-28T10%3A02%3A02.3942999Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"serviceLevel": "Standard", "size": 4398046511104}, + "location": "westus2", "tags": {"Tag1": "Value1"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool update] + Connection: [keep-alive] + Content-Length: ['118'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group -a -p --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-28T10%3A02%3A42.6562713Z''\"","location":"westus2","tags":{"Tag1":"Value1"},"properties":{"poolId":"ee926ac0-d1ed-f662-391c-9199a24513b5","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Standard","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['676'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 28 Feb 2019 10:02:43 GMT'] + etag: [W/"datetime'2019-02-28T10%3A02%3A42.6562713Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Thu, 28 Feb 2019 10:02:48 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHVDNMTjVFTU5JTkpaUE9TT0RRM1hWQ0hQQk5XSTdRVnw3MkI4RDczQkZGMkY5RjVGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_volume.yaml b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_volume.yaml new file mode 100644 index 00000000000..11a082bb994 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/recordings/test_ext_update_volume.yaml @@ -0,0 +1,643 @@ +interactions: +- request: + body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T18:25:03Z", + "product": "azurecli", "cause": "automation"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group create] + Connection: [keep-alive] + Content-Length: ['110'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--location --name --tag] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-25T18:25:03Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:10 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 201, message: Created} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"dhcpOptions": + {}, "addressSpace": {"addressPrefixes": ["10.12.0.0/16"]}}, "tags": {}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + Content-Length: ['125'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"a7a4b8ef-363d-44f7-8b00-cbdf2a0356cc\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Updating\",\r\n \"resourceGuid\": \"ca763692-09bf-47eb-87d6-66ed71f3f1bf\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4f5be6ea-baba-4076-af31-68d6d2c380a2?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['806'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:17 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/4f5be6ea-baba-4076-af31-68d6d2c380a2?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g -l --address-prefix] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-vnet-000005\",\r\n \"\ + id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005\"\ + ,\r\n \"etag\": \"W/\\\"f19d3916-b9eb-40d0-87fc-12e1ad7ad5bd\\\"\",\r\n \ + \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus2\"\ + ,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\":\ + \ \"Succeeded\",\r\n \"resourceGuid\": \"ca763692-09bf-47eb-87d6-66ed71f3f1bf\"\ + ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"\ + 10.12.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"\ + dnsServers\": []\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ + : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ + : false\r\n }\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['807'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:21 GMT'] + etag: [W/"f19d3916-b9eb-40d0-87fc-12e1ad7ad5bd"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"name": "cli-subnet-000006", "properties": {"addressPrefix": + "10.12.0.0/24", "delegations": [{"name": "0", "properties": {"serviceName": + "Microsoft.Netapp/volumes"}}]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + Content-Length: ['168'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"7e7b3c88-6bcb-472f-a1ef-bb8c56d22839\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"7e7b3c88-6bcb-472f-a1ef-bb8c56d22839\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/559638a7-daf5-451b-961d-4e1d1d3ea546?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1302'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus2/operations/559638a7-daf5-451b-961d-4e1d1d3ea546?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"status\": \"Succeeded\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['29'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:27 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [network vnet subnet create] + Connection: [keep-alive] + ParameterSetName: [-n -g --vnet-name --address-prefixes --delegations] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006?api-version=2018-10-01 + response: + body: {string: !!python/unicode "{\r\n \"name\": \"cli-subnet-000006\",\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006\"\ + ,\r\n \"etag\": \"W/\\\"1f560c67-c188-4dc8-8c4c-c4f806452ae9\\\"\",\r\n \ + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ + addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": [\r\n {\r\n\ + \ \"name\": \"0\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006/delegations/0\"\ + ,\r\n \"etag\": \"W/\\\"1f560c67-c188-4dc8-8c4c-c4f806452ae9\\\"\"\ + ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"serviceName\": \"Microsoft.Netapp/volumes\",\r\n \ + \ \"actions\": [\r\n \"Microsoft.Network/networkinterfaces/*\"\ + ,\r\n \"Microsoft.Network/virtualNetworks/subnets/join/action\"\ + \r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets/delegations\"\ + \r\n }\r\n ],\r\n \"purpose\": \"HostedWorkloads\"\r\n },\r\n\ + \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['1303'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:27 GMT'] + etag: [W/"1f560c67-c188-4dc8-8c4c-c4f806452ae9"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + Content-Length: ['23'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A25%3A32.7216917Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli-acc-000002"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/b1686f9d-0f20-4711-8d0e-b0d92e4466ed?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['452'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:25:33 GMT'] + etag: [W/"datetime'2019-02-25T18%3A25%3A32.7216917Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/b1686f9d-0f20-4711-8d0e-b0d92e4466ed?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/b1686f9d-0f20-4711-8d0e-b0d92e4466ed","name":"b1686f9d-0f20-4711-8d0e-b0d92e4466ed","status":"Succeeded","startTime":"2019-02-25T18:25:32.674312Z","endTime":"2019-02-25T18:25:32.955572Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['574'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:26:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf account create] + Connection: [keep-alive] + ParameterSetName: [-g -a -l] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002","name":"cli-acc-000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T18%3A25%3A33.0018925Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli-acc-000002"}}'} + headers: + cache-control: [no-cache] + content-length: ['453'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:26:05 GMT'] + etag: [W/"datetime'2019-02-25T18%3A25%3A33.0018925Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"location": "westus2", "properties": {"serviceLevel": + "Premium", "size": 4398046511104}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + Content-Length: ['89'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A26%3A09.9603316Z''\"","location":"westus2","properties":{"serviceLevel":"Premium","size":4398046511104,"provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f703a61e-6f53-4783-a071-64ee585054f7?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['542'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:26:10 GMT'] + etag: [W/"datetime'2019-02-25T18%3A26%3A09.9603316Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f703a61e-6f53-4783-a071-64ee585054f7?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/f703a61e-6f53-4783-a071-64ee585054f7","name":"f703a61e-6f53-4783-a071-64ee585054f7","status":"Succeeded","startTime":"2019-02-25T18:26:09.8699506Z","endTime":"2019-02-25T18:26:10.9012508Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003"}}'} + headers: + cache-control: [no-cache] + content-length: ['615'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:26:41 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf pool create] + Connection: [keep-alive] + ParameterSetName: [-g -a -p -l --service-level --size] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003","name":"cli-acc-000002/cli-pool-000003","type":"Microsoft.NetApp/netAppAccounts/capacityPools","etag":"W/\"datetime''2019-02-25T18%3A26%3A10.9540407Z''\"","location":"westus2","properties":{"poolId":"642e8cc3-85cd-b89d-88cd-1c6526c8b37c","name":"cli-acc-000002/cli-pool-000003","serviceLevel":"Premium","size":4398046511104,"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['650'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:26:43 GMT'] + etag: [W/"datetime'2019-02-25T18%3A26%3A10.9540407Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006", + "serviceLevel": "Premium", "creationToken": "cli-vol-000004"}, "location": "westus2"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + Content-Length: ['395'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A26%3A47.8834615Z''\"","location":"westus2","properties":{"usageThreshold":107374182400,"subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","serviceLevel":"Premium","creationToken":"cli-vol-000004","provisioningState":"Creating"}}'} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d32f637c-6ee3-4af2-86e5-b8470d43107f?api-version=2017-08-15'] + cache-control: [no-cache] + content-length: ['910'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:26:47 GMT'] + etag: [W/"datetime'2019-02-25T18%3A26%3A47.8834615Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-powered-by: [ASP.NET] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d32f637c-6ee3-4af2-86e5-b8470d43107f?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d32f637c-6ee3-4af2-86e5-b8470d43107f","name":"d32f637c-6ee3-4af2-86e5-b8470d43107f","status":"Creating","startTime":"2019-02-25T18:26:47.8412012Z","endTime":"0001-01-01T00:00:00Z","percentComplete":0.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['637'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:27:19 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d32f637c-6ee3-4af2-86e5-b8470d43107f?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/d32f637c-6ee3-4af2-86e5-b8470d43107f","name":"d32f637c-6ee3-4af2-86e5-b8470d43107f","status":"Succeeded","startTime":"2019-02-25T18:26:47.8412012Z","endTime":"2019-02-25T18:27:21.7399636Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004"}}'} + headers: + cache-control: [no-cache] + content-length: ['648'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:27:51 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume create] + Connection: [keep-alive] + ParameterSetName: [--resource-group --account-name --pool-name --volume-name + -l --service-level --usage-threshold --creation-token --subnet-id] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A27%3A21.7636974Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"ed6acbb7-9b03-bf6a-4e9e-fde900b6c6ce","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_b46b1992","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"e84058f4-c5a5-5369-69e7-7d1a06066469","fileSystemId":"ed6acbb7-9b03-bf6a-4e9e-fde900b6c6ce","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1601'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:27:53 GMT'] + etag: [W/"datetime'2019-02-25T18%3A27%3A21.7636974Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume update] + Connection: [keep-alive] + ParameterSetName: [--resource-group -a -p -v --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A27%3A21.7636974Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","fileSystemId":"ed6acbb7-9b03-bf6a-4e9e-fde900b6c6ce","serviceLevel":"Premium","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_b46b1992","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"e84058f4-c5a5-5369-69e7-7d1a06066469","fileSystemId":"ed6acbb7-9b03-bf6a-4e9e-fde900b6c6ce","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1601'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:27:54 GMT'] + etag: [W/"datetime'2019-02-25T18%3A27%3A21.7636974Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: !!python/unicode '{"properties": {"usageThreshold": 107374182400, "serviceLevel": + "Standard"}, "tags": {"Tag1": "Value2"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [anf volume update] + Connection: [keep-alive] + Content-Length: ['104'] + Content-Type: [application/json; charset=utf-8] + ParameterSetName: [--resource-group -a -p -v --tags --service-level] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004?api-version=2017-08-15 + response: + body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli-acc-000002/capacityPools/cli-pool-000003/volumes/cli-vol-000004","name":"cli-acc-000002/cli-pool-000003/cli-vol-000004","type":"Microsoft.NetApp/netAppAccounts/capacityPools/volumes","etag":"W/\"datetime''2019-02-25T18%3A28%3A01.7763218Z''\"","location":"westus2","tags":{"Tag1":"Value2"},"properties":{"provisioningState":"Succeeded","fileSystemId":"ed6acbb7-9b03-bf6a-4e9e-fde900b6c6ce","serviceLevel":"Standard","creationToken":"cli-vol-000004","ownerId":"38ab86f1-9d30-413b-8fc0-d31ad85fa6a1","usageThreshold":107374182400,"usedBytes":0,"snapshotPolicy":{"enabled":false},"exportPolicy":{"rules":[{"ruleIndex":1,"unixReadOnly":false,"unixReadWrite":true,"cifs":false,"nfsv3":true,"nfsv4":false,"allowedClients":"0.0.0.0/0"}]},"protocolTypes":["NFSv3"],"baremetalTenantId":"baremetalTenant_svm_38ab86f19d30413b8fc0d31ad85fa6a1_b46b1992","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.Network/virtualNetworks/cli-vnet-000005/subnets/cli-subnet-000006","mountTargets":[{"provisioningState":"Succeeded","mountTargetId":"e84058f4-c5a5-5369-69e7-7d1a06066469","fileSystemId":"ed6acbb7-9b03-bf6a-4e9e-fde900b6c6ce","startIp":"10.12.0.4","endIp":"10.12.0.4","gateway":"10.12.0.1","netmask":"255.255.255.0","ipAddress":"10.12.0.4"}]}}'} + headers: + cache-control: [no-cache] + content-length: ['1627'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 25 Feb 2019 18:28:02 GMT'] + etag: [W/"datetime'2019-02-25T18%3A28%3A01.7763218Z'"] + expires: ['-1'] + pragma: [no-cache] + server: [Microsoft-IIS/10.0] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-powered-by: [ASP.NET] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [group delete] + Connection: [keep-alive] + Content-Length: ['0'] + ParameterSetName: [--name --yes --no-wait] + User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34 + resourcemanagementclient/2.1.0 Azure-SDK-For-Python AZURECLI/2.0.56] + accept-language: [en-US] + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01 + response: + body: {string: !!python/unicode ''} + headers: + cache-control: [no-cache] + content-length: ['0'] + date: ['Mon, 25 Feb 2019 18:28:06 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHRkVJNDdYT01GQVBYWjVWS0pFNTdKUzRURzY2R05HTXw5RTFDQjI4REZCMjJFRDU5LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + status: {code: 202, message: Accepted} +version: 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/test_account_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_account_commands_ext.py new file mode 100644 index 00000000000..89bbaab6ecc --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_account_commands_ext.py @@ -0,0 +1,74 @@ +# -------------------------------------------------------------------------------------------- +# 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.testsdk import ScenarioTest, ResourceGroupPreparer + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesExtAccountServiceScenarioTest(ScenarioTest): + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_create_delete_account(self): + account_name = self.create_random_name(prefix='cli', length=24) + tags = 'Tag1=Value1 Tag2=Value2' + + # create and check + account = self.cmd("az anf account create --resource-group {rg} --account-name '%s' -l 'westus2' --tags '%s'" % (account_name, tags)).get_output_in_json() + assert account['name'] == account_name + assert account['tags']['Tag1'] == 'Value1' + assert account['tags']['Tag2'] == 'Value2' + + account_list = self.cmd("anf account list --resource-group {rg}").get_output_in_json() + assert len(account_list) > 0 + + # delete and recheck + self.cmd("az anf account delete --resource-group {rg} --account-name '%s'" % account_name) + account_list = self.cmd("anf account list --resource-group {rg}").get_output_in_json() + assert len(account_list) == 0 + + # and again with short forms and also unquoted + account = self.cmd("az anf account create -g {rg} -a %s -l westus2 --tags '%s'" % (account_name, tags)).get_output_in_json() + assert account['name'] == account_name + account_list = self.cmd("anf account list --resource-group {rg}").get_output_in_json() + assert len(account_list) > 0 + + self.cmd("az anf account delete --resource-group {rg} -a %s" % account_name) + account_list = self.cmd("anf account list --resource-group {rg}").get_output_in_json() + assert len(account_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_list_accounts_ext(self): + accounts = [self.create_random_name(prefix='cli', length=24), self.create_random_name(prefix='cli', length=24)] + + for account_name in accounts: + self.cmd("az anf account create -g {rg} -a %s -l 'westus2' --tags 'Tag1=Value1'" % account_name).get_output_in_json() + + account_list = self.cmd("anf account list -g {rg}").get_output_in_json() + assert len(account_list) == 2 + + for account_name in accounts: + self.cmd("az anf account delete -g {rg} -a %s" % account_name) + + account_list = self.cmd("anf account list --resource-group {rg}").get_output_in_json() + assert len(account_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_get_account_by_name_ext(self): + account_name = self.create_random_name(prefix='cli', length=24) + account = self.cmd("az anf account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + account = self.cmd("az anf account show --resource-group {rg} -a %s" % account_name).get_output_in_json() + assert account['name'] == account_name + account_from_id = self.cmd("az anf account show --ids %s" % account['id']).get_output_in_json() + assert account_from_id['name'] == account_name + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_update_account_ext(self): + account_name = self.create_random_name(prefix='cli', length=24) + tag = "Tag1=Value1" + + account = self.cmd("az anf account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + account = self.cmd("az anf account update --resource-group {rg} -a %s --tags %s" % (account_name, tag)).get_output_in_json() + assert account['name'] == account_name + assert account['tags']['Tag1'] == 'Value1' diff --git a/src/anf-preview/azext_anf_preview/tests/latest/test_mount_target_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_mount_target_commands_ext.py new file mode 100644 index 00000000000..ec3eb12a884 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_mount_target_commands_ext.py @@ -0,0 +1,44 @@ +# -------------------------------------------------------------------------------------------- +# 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.testsdk import ScenarioTest, ResourceGroupPreparer + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" +VOLUME_DEFAULT = "--service-level 'Premium' --usage-threshold 107374182400" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesExtMountTargetServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name): + self.cmd("az network vnet create -n %s --resource-group %s -l westus2" % (vnet_name, rg)) + self.cmd("az network vnet subnet create -n default --vnet-name %s --address-prefixes '10.0.0.0/24' --delegations 'Microsoft.Netapp/volumes' -g %s" % (vnet_name, rg)) + + def current_subscription(self): + subs = self.cmd("az account show").get_output_in_json() + return subs['id'] + + def create_volume(self, account_name, pool_name, volume_name1, rg, tags=None): + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/default" % (self.current_subscription(), rg, vnet_name) + tag = "--tags '%s'" % tags if tags is not None else "" + + self.setup_vnet(rg, vnet_name) + self.cmd("az anf account create -g %s -a '%s' -l 'westus2'" % (rg, account_name)).get_output_in_json() + self.cmd("az anf pool create -g %s -a %s -p %s -l 'westus2' %s %s" % (rg, account_name, pool_name, POOL_DEFAULT, tag)).get_output_in_json() + volume1 = self.cmd("az anf volume create --resource-group %s --account-name %s --pool-name %s --volume-name %s -l 'westus2' %s --creation-token %s --subnet-id %s %s" % (rg, account_name, pool_name, volume_name1, VOLUME_DEFAULT, creation_token, subnet_id, tag)).get_output_in_json() + + return volume1 + + @ResourceGroupPreparer() + def test_ext_list_mount_targets(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + self.create_volume(account_name, pool_name, volume_name, '{rg}') + + volume_list = self.cmd("anf mount-target list --resource-group {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name)).get_output_in_json() + assert len(volume_list) == 1 diff --git a/src/anf-preview/azext_anf_preview/tests/latest/test_pool_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_pool_commands_ext.py new file mode 100644 index 00000000000..ec7a3583512 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_pool_commands_ext.py @@ -0,0 +1,86 @@ +# -------------------------------------------------------------------------------------------- +# 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.testsdk import ScenarioTest, ResourceGroupPreparer + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesExtPoolServiceScenarioTest(ScenarioTest): + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_create_delete_pool(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + tags = "Tag1=Value1 Tag2=Value2" + + self.cmd("az anf account create --resource-group {rg} --account-name '%s' -l 'westus2'" % account_name).get_output_in_json() + pool = self.cmd("az anf pool create --resource-group {rg} --account-name %s --pool-name %s -l 'westus2' %s --tags '%s'" % (account_name, pool_name, POOL_DEFAULT, tags)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + assert pool['tags']['Tag1'] == 'Value1' + assert pool['tags']['Tag2'] == 'Value2' + + pool_list = self.cmd("anf pool list --resource-group {rg} --account-name %s" % account_name).get_output_in_json() + assert len(pool_list) == 1 + + self.cmd("az anf pool delete --resource-group {rg} --account-name '%s' --pool-name '%s'" % (account_name, pool_name)) + pool_list = self.cmd("anf pool list --resource-group {rg} --account-name %s" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + # and again with short forms and also unquoted + pool = self.cmd("az anf pool create -g {rg} -a %s -p %s -l 'westus2' --service-level 'Premium' --size 4398046511104 --tags '%s'" % (account_name, pool_name, tags)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + assert pool['tags']['Tag1'] == 'Value1' + assert pool['tags']['Tag2'] == 'Value2' + + self.cmd("az anf pool delete --resource-group {rg} -a %s -p %s" % (account_name, pool_name)) + pool_list = self.cmd("anf pool list --resource-group {rg} -a %s" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_list_pools(self): + account_name = self.create_random_name(prefix='cli', length=24) + pools = [self.create_random_name(prefix='cli', length=24), self.create_random_name(prefix='cli', length=24)] + self.cmd("az anf account create -g {rg} -a '%s' -l 'westus2'" % account_name).get_output_in_json() + + for pool_name in pools: + self.cmd("az anf pool create -g {rg} -a '%s' -p '%s' -l 'westus2' %s --tags 'Tag1=Value1'" % (account_name, pool_name, POOL_DEFAULT)).get_output_in_json() + + pool_list = self.cmd("anf pool list -g {rg} -a '%s'" % account_name).get_output_in_json() + assert len(pool_list) == 2 + + for pool_name in pools: + self.cmd("az anf pool delete -g {rg} -a %s -p %s" % (account_name, pool_name)) + pool_list = self.cmd("anf pool list --resource-group {rg} -a '%s'" % account_name).get_output_in_json() + assert len(pool_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_get_pool_by_name(self): + account_name = self.create_random_name(prefix='cli', length=24) + pool_name = self.create_random_name(prefix='cli', length=24) + self.cmd("az anf account create -g {rg} -a '%s' -l 'westus2'" % account_name).get_output_in_json() + self.cmd("az anf pool create -g {rg} -a %s -p %s -l 'westus2' %s" % (account_name, pool_name, POOL_DEFAULT)).get_output_in_json() + + pool = self.cmd("az anf pool show --resource-group {rg} -a %s -p %s" % (account_name, pool_name)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + pool_from_id = self.cmd("az anf pool show --ids %s" % pool['id']).get_output_in_json() + assert pool_from_id['name'] == account_name + '/' + pool_name + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_update_pool(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + tag = "Tag1=Value1" + + self.cmd("az anf account create -g {rg} -a %s -l 'westus2'" % account_name).get_output_in_json() + + pool = self.cmd("az anf pool create -g {rg} -a %s -p %s -l 'westus2' %s" % (account_name, pool_name, POOL_DEFAULT)).get_output_in_json() + + assert pool['name'] == account_name + '/' + pool_name + pool = self.cmd("az anf pool update --resource-group {rg} -a %s -p %s --tags %s --service-level 'Standard'" % (account_name, pool_name, tag)).get_output_in_json() + assert pool['name'] == account_name + '/' + pool_name + assert pool['serviceLevel'] == "Standard" + assert pool['tags']['Tag1'] == 'Value1' diff --git a/src/anf-preview/azext_anf_preview/tests/latest/test_snapshot_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_snapshot_commands_ext.py new file mode 100644 index 00000000000..f056d8e0597 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_snapshot_commands_ext.py @@ -0,0 +1,79 @@ +# -------------------------------------------------------------------------------------------- +# 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.testsdk import ScenarioTest, ResourceGroupPreparer + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" +VOLUME_DEFAULT = "--service-level 'Premium' --usage-threshold 107374182400" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesExtSnapshotServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name, subnet_name): + self.cmd("az network vnet create -n %s --resource-group %s -l westus2 --address-prefix 10.12.0.0/16" % (vnet_name, rg)) + self.cmd("az network vnet subnet create -n %s --vnet-name %s --address-prefixes '10.12.0.0/24' --delegations 'Microsoft.Netapp/volumes' -g %s" % (subnet_name, vnet_name, rg)) + + def current_subscription(self): + subs = self.cmd("az account show").get_output_in_json() + return subs['id'] + + def create_volume(self, account_name, pool_name, volume_name1, rg, tags=None): + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_name = self.create_random_name(prefix='cli-subnet-', length=16) + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/%s" % (self.current_subscription(), rg, vnet_name, subnet_name) + tag = "--tags '%s'" % tags if tags is not None else "" + + self.setup_vnet(rg, vnet_name, subnet_name) + self.cmd("anf account create -g %s -a '%s' -l 'westus2'" % (rg, account_name)).get_output_in_json() + self.cmd("anf pool create -g %s -a %s -p %s -l 'westus2' %s %s" % (rg, account_name, pool_name, POOL_DEFAULT, tag)).get_output_in_json() + volume1 = self.cmd("anf volume create --resource-group %s --account-name %s --pool-name %s --volume-name %s -l 'westus2' %s --creation-token %s --subnet-id %s %s" % (rg, account_name, pool_name, volume_name1, VOLUME_DEFAULT, creation_token, subnet_id, tag)).get_output_in_json() + + return volume1 + + @ResourceGroupPreparer() + def test_ext_create_snapshots(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + snapshot_name = self.create_random_name(prefix='cli-sn-', length=24) + rg = '{rg}' + + volume = self.create_volume(account_name, pool_name, volume_name, rg) + snapshot = self.cmd("az anf snapshot create -g %s -a %s -p %s -v %s -s %s -l 'westus2' --file-system-id %s" % (rg, account_name, pool_name, volume_name, snapshot_name, volume['fileSystemId'])).get_output_in_json() + assert snapshot['name'] == account_name + '/' + pool_name + '/' + volume_name + '/' + snapshot_name + + snapshot_list = self.cmd("az anf snapshot list --resource-group %s --account-name %s --pool-name %s --volume-name %s" % (rg, account_name, pool_name, volume_name)).get_output_in_json() + assert len(snapshot_list) == 1 + + @ResourceGroupPreparer() + def test_ext_list_snapshots(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + snapshot_name1 = self.create_random_name(prefix='cli-sn-', length=24) + snapshot_name2 = self.create_random_name(prefix='cli-sn-', length=24) + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}') + self.cmd("az anf snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westus2' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name1, volume['fileSystemId'])).get_output_in_json() + self.cmd("az anf snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westus2' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name2, volume['fileSystemId'])).get_output_in_json() + + snapshot_list = self.cmd("az anf snapshot list -g {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name)).get_output_in_json() + assert len(snapshot_list) == 2 + + @ResourceGroupPreparer() + def test_ext_get_snapshot(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + snapshot_name = self.create_random_name(prefix='cli-sn-', length=24) + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}') + snapshot = self.cmd("az anf snapshot create -g {rg} -a %s -p %s -v %s -s %s -l 'westus2' --file-system-id %s" % (account_name, pool_name, volume_name, snapshot_name, volume['fileSystemId'])).get_output_in_json() + + snapshot = self.cmd("az anf snapshot show -g {rg} -a %s -p %s -v %s -s %s" % (account_name, pool_name, volume_name, snapshot_name)).get_output_in_json() + assert snapshot['name'] == account_name + '/' + pool_name + '/' + volume_name + '/' + snapshot_name + + snapshot_from_id = self.cmd("az anf snapshot show --ids %s" % snapshot['id']).get_output_in_json() + assert snapshot_from_id['name'] == account_name + '/' + pool_name + '/' + volume_name + '/' + snapshot_name diff --git a/src/anf-preview/azext_anf_preview/tests/latest/test_volume_commands_ext.py b/src/anf-preview/azext_anf_preview/tests/latest/test_volume_commands_ext.py new file mode 100644 index 00000000000..f51b95e139d --- /dev/null +++ b/src/anf-preview/azext_anf_preview/tests/latest/test_volume_commands_ext.py @@ -0,0 +1,109 @@ +# -------------------------------------------------------------------------------------------- +# 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.testsdk import ScenarioTest, ResourceGroupPreparer + +POOL_DEFAULT = "--service-level 'Premium' --size 4398046511104" +VOLUME_DEFAULT = "--service-level 'Premium' --usage-threshold 107374182400" + +# No tidy up of tests required. The resource group is automatically removed + + +class AzureNetAppFilesExtVolumeServiceScenarioTest(ScenarioTest): + def setup_vnet(self, rg, vnet_name, subnet_name, ip_pre): + self.cmd("az network vnet create -n %s --resource-group %s -l westus2 --address-prefix %s/16" % (vnet_name, rg, ip_pre)) + self.cmd("az network vnet subnet create -n %s -g %s --vnet-name %s --address-prefixes '%s/24' --delegations 'Microsoft.Netapp/volumes'" % (subnet_name, rg, vnet_name, ip_pre)) + + def current_subscription(self): + subs = self.cmd("az account show").get_output_in_json() + return subs['id'] + + def create_volume(self, account_name, pool_name, volume_name1, rg, tags=None, volume_name2=None): + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name1 + subnet_name = self.create_random_name(prefix='cli-subnet-', length=16) + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/%s" % (self.current_subscription(), rg, vnet_name, subnet_name) + tag = "--tags '%s'" % tags if tags is not None else "" + + self.setup_vnet(rg, vnet_name, subnet_name, '10.12.0.0') + self.cmd("az anf account create -g %s -a '%s' -l 'westus2'" % (rg, account_name)).get_output_in_json() + self.cmd("az anf pool create -g %s -a %s -p %s -l 'westus2' %s %s" % (rg, account_name, pool_name, POOL_DEFAULT, tag)).get_output_in_json() + volume1 = self.cmd("az anf volume create --resource-group %s --account-name %s --pool-name %s --volume-name %s -l 'westus2' %s --creation-token %s --subnet-id %s %s" % (rg, account_name, pool_name, volume_name1, VOLUME_DEFAULT, creation_token, subnet_id, tag)).get_output_in_json() + + if volume_name2: + vnet_name = self.create_random_name(prefix='cli-vnet-', length=24) + creation_token = volume_name2 + subnet_name = self.create_random_name(prefix='cli-subnet-', length=16) + subnet_id = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/virtualNetworks/%s/subnets/%s" % (self.current_subscription(), rg, vnet_name, subnet_name) + self.setup_vnet(rg, vnet_name, subnet_name, '10.16.0.0') + self.cmd("az anf volume create -g %s -a %s -p %s -v %s -l 'westus2' %s --creation-token %s --subnet-id %s --tags '%s'" % (rg, account_name, pool_name, volume_name2, VOLUME_DEFAULT, creation_token, subnet_id, tags)).get_output_in_json() + + return volume1 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_create_delete_volumes(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag1=Value1 Tag2=Value2" + + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}', tags) + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + assert volume['tags']['Tag1'] == 'Value1' + assert volume['tags']['Tag2'] == 'Value2' + + volume_list = self.cmd("anf volume list --resource-group {rg} --account-name %s --pool-name %s" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 1 + + self.cmd("az anf volume delete --resource-group {rg} --account-name %s --pool-name %s --volume-name %s" % (account_name, pool_name, volume_name)) + volume_list = self.cmd("anf volume list --resource-group {rg} -a %s -p %s" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_list_volumes(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name1 = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag1=Value1" + self.create_volume(account_name, pool_name, volume_name1, '{rg}', tags) + + volume_list = self.cmd("anf volume list --resource-group {rg} -a '%s' -p '%s'" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 1 + + self.cmd("az anf volume delete -g {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name1)) + volume_list = self.cmd("anf volume list -g {rg} -a '%s' -p '%s'" % (account_name, pool_name)).get_output_in_json() + assert len(volume_list) == 0 + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_get_volume_by_name(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag2=Value1" + + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}', tags) + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + + volume = self.cmd("az anf volume show --resource-group {rg} -a %s -p %s -v %s" % (account_name, pool_name, volume_name)).get_output_in_json() + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + assert volume['tags']['Tag2'] == 'Value1' + + volume_from_id = self.cmd("az anf volume show --ids %s" % volume['id']).get_output_in_json() + assert volume_from_id['name'] == account_name + '/' + pool_name + '/' + volume_name + + @ResourceGroupPreparer(name_prefix='cli_tests_rg') + def test_ext_update_volume(self): + account_name = self.create_random_name(prefix='cli-acc-', length=24) + pool_name = self.create_random_name(prefix='cli-pool-', length=24) + volume_name = self.create_random_name(prefix='cli-vol-', length=24) + tags = "Tag1=Value2" + + volume = self.create_volume(account_name, pool_name, volume_name, '{rg}') + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + + volume = self.cmd("az anf volume update --resource-group {rg} -a %s -p %s -v %s --tags %s --service-level 'Standard'" % (account_name, pool_name, volume_name, tags)).get_output_in_json() + assert volume['name'] == account_name + '/' + pool_name + '/' + volume_name + assert volume['serviceLevel'] == "Standard" + assert volume['tags']['Tag1'] == 'Value2' diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/__init__.py b/src/anf-preview/azext_anf_preview/vendored_sdks/__init__.py new file mode 100644 index 00000000000..0f7bd5bf843 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .azure_net_app_files_management_client import AzureNetAppFilesManagementClient +from .version import VERSION + +__all__ = ['AzureNetAppFilesManagementClient'] + +__version__ = VERSION + diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/azure_net_app_files_management_client.py b/src/anf-preview/azext_anf_preview/vendored_sdks/azure_net_app_files_management_client.py new file mode 100644 index 00000000000..f455ceed3ee --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/azure_net_app_files_management_client.py @@ -0,0 +1,110 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.operations import Operations +from .operations.accounts_operations import AccountsOperations +from .operations.pools_operations import PoolsOperations +from .operations.volumes_operations import VolumesOperations +from .operations.mount_targets_operations import MountTargetsOperations +from .operations.snapshots_operations import SnapshotsOperations +from . import models + + +class AzureNetAppFilesManagementClientConfiguration(AzureConfiguration): + """Configuration for AzureNetAppFilesManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(AzureNetAppFilesManagementClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-netapp/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class AzureNetAppFilesManagementClient(SDKClient): + """Microsoft NetApp Azure Resource Provider specification + + :ivar config: Configuration for client. + :vartype config: AzureNetAppFilesManagementClientConfiguration + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.netapp.operations.Operations + :ivar accounts: Accounts operations + :vartype accounts: azure.mgmt.netapp.operations.AccountsOperations + :ivar pools: Pools operations + :vartype pools: azure.mgmt.netapp.operations.PoolsOperations + :ivar volumes: Volumes operations + :vartype volumes: azure.mgmt.netapp.operations.VolumesOperations + :ivar mount_targets: MountTargets operations + :vartype mount_targets: azure.mgmt.netapp.operations.MountTargetsOperations + :ivar snapshots: Snapshots operations + :vartype snapshots: azure.mgmt.netapp.operations.SnapshotsOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = AzureNetAppFilesManagementClientConfiguration(credentials, subscription_id, base_url) + super(AzureNetAppFilesManagementClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2017-08-15' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.accounts = AccountsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.pools = PoolsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.volumes = VolumesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mount_targets = MountTargetsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.snapshots = SnapshotsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/__init__.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/__init__.py new file mode 100644 index 00000000000..169f7b0f0f3 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/__init__.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from .operation_display_py3 import OperationDisplay + from .dimension_py3 import Dimension + from .metric_specification_py3 import MetricSpecification + from .service_specification_py3 import ServiceSpecification + from .operation_py3 import Operation + from .net_app_account_py3 import NetAppAccount + from .net_app_account_patch_py3 import NetAppAccountPatch + from .capacity_pool_py3 import CapacityPool + from .capacity_pool_patch_py3 import CapacityPoolPatch + from .volume_py3 import Volume + from .volume_patch_py3 import VolumePatch + from .mount_target_py3 import MountTarget + from .snapshot_py3 import Snapshot + from .snapshot_patch_py3 import SnapshotPatch + from .error_py3 import Error, ErrorException +except (SyntaxError, ImportError): + from .operation_display import OperationDisplay + from .dimension import Dimension + from .metric_specification import MetricSpecification + from .service_specification import ServiceSpecification + from .operation import Operation + from .net_app_account import NetAppAccount + from .net_app_account_patch import NetAppAccountPatch + from .capacity_pool import CapacityPool + from .capacity_pool_patch import CapacityPoolPatch + from .volume import Volume + from .volume_patch import VolumePatch + from .mount_target import MountTarget + from .snapshot import Snapshot + from .snapshot_patch import SnapshotPatch + from .error import Error, ErrorException +from .operation_paged import OperationPaged +from .net_app_account_paged import NetAppAccountPaged +from .capacity_pool_paged import CapacityPoolPaged +from .volume_paged import VolumePaged +from .mount_target_paged import MountTargetPaged +from .snapshot_paged import SnapshotPaged +from .azure_net_app_files_management_client_enums import ( + ServiceLevel, +) + +__all__ = [ + 'OperationDisplay', + 'Dimension', + 'MetricSpecification', + 'ServiceSpecification', + 'Operation', + 'NetAppAccount', + 'NetAppAccountPatch', + 'CapacityPool', + 'CapacityPoolPatch', + 'Volume', + 'VolumePatch', + 'MountTarget', + 'Snapshot', + 'SnapshotPatch', + 'Error', 'ErrorException', + 'OperationPaged', + 'NetAppAccountPaged', + 'CapacityPoolPaged', + 'VolumePaged', + 'MountTargetPaged', + 'SnapshotPaged', + 'ServiceLevel', +] diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/azure_net_app_files_management_client_enums.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/azure_net_app_files_management_client_enums.py new file mode 100644 index 00000000000..70fe875ab01 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/azure_net_app_files_management_client_enums.py @@ -0,0 +1,19 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class ServiceLevel(str, Enum): + + standard = "Standard" #: Standard service level + premium = "Premium" #: Premium service level + extreme = "Extreme" #: Extreme service level diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool.py new file mode 100644 index 00000000000..3dced303adc --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool.py @@ -0,0 +1,79 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CapacityPool(Model): + """Capacity pool resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar pool_id: poolId. UUID v4 used to identify the Pool + :vartype pool_id: str + :param size: size. Provisioned size of the pool (in bytes). Allowed values + are in 4TiB chunks (value must be multiply of 4398046511104). Default + value: 4398046511104 . + :type size: long + :param service_level: serviceLevel. The service level of the file system. + Possible values include: 'Standard', 'Premium', 'Extreme'. Default value: + "Premium" . + :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'pool_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'size': {'maximum': 549755813888000, 'minimum': 4398046511104}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'pool_id': {'key': 'properties.poolId', 'type': 'str'}, + 'size': {'key': 'properties.size', 'type': 'long'}, + 'service_level': {'key': 'properties.serviceLevel', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CapacityPool, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.id = None + self.name = None + self.type = None + self.tags = kwargs.get('tags', None) + self.pool_id = None + self.size = kwargs.get('size', 4398046511104) + self.service_level = kwargs.get('service_level', "Premium") + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_paged.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_paged.py new file mode 100644 index 00000000000..fa7c435c870 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class CapacityPoolPaged(Paged): + """ + A paging container for iterating over a list of :class:`CapacityPool ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[CapacityPool]'} + } + + def __init__(self, *args, **kwargs): + + super(CapacityPoolPaged, self).__init__(*args, **kwargs) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch.py new file mode 100644 index 00000000000..8a9840b47f7 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CapacityPoolPatch(Model): + """Capacity pool patch resource. + + :param tags: Resource tags + :type tags: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(CapacityPoolPatch, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch_py3.py new file mode 100644 index 00000000000..92c38df46b2 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_patch_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CapacityPoolPatch(Model): + """Capacity pool patch resource. + + :param tags: Resource tags + :type tags: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': 'object'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(CapacityPoolPatch, self).__init__(**kwargs) + self.tags = tags diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_py3.py new file mode 100644 index 00000000000..c2ad853f9f1 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/capacity_pool_py3.py @@ -0,0 +1,79 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CapacityPool(Model): + """Capacity pool resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar pool_id: poolId. UUID v4 used to identify the Pool + :vartype pool_id: str + :param size: size. Provisioned size of the pool (in bytes). Allowed values + are in 4TiB chunks (value must be multiply of 4398046511104). Default + value: 4398046511104 . + :type size: long + :param service_level: serviceLevel. The service level of the file system. + Possible values include: 'Standard', 'Premium', 'Extreme'. Default value: + "Premium" . + :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'pool_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'size': {'maximum': 549755813888000, 'minimum': 4398046511104}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'pool_id': {'key': 'properties.poolId', 'type': 'str'}, + 'size': {'key': 'properties.size', 'type': 'long'}, + 'service_level': {'key': 'properties.serviceLevel', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, size: int=4398046511104, service_level="Premium", **kwargs) -> None: + super(CapacityPool, self).__init__(**kwargs) + self.location = location + self.id = None + self.name = None + self.type = None + self.tags = tags + self.pool_id = None + self.size = size + self.service_level = service_level + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension.py new file mode 100644 index 00000000000..2398aa46e8f --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Dimension(Model): + """Dimension of blobs, possibly be blob type or access tier. + + :param name: Display name of dimension. + :type name: str + :param display_name: Display name of dimension. + :type display_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dimension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension_py3.py new file mode 100644 index 00000000000..af5b0aac3d2 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/dimension_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Dimension(Model): + """Dimension of blobs, possibly be blob type or access tier. + + :param name: Display name of dimension. + :type name: str + :param display_name: Display name of dimension. + :type display_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, **kwargs) -> None: + super(Dimension, self).__init__(**kwargs) + self.name = name + self.display_name = display_name diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/error.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/error.py new file mode 100644 index 00000000000..941e7ebc820 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/error.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error response describing why the operation failed. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code + :type code: str + :param message: Required. Detailed error message + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Error, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/error_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/error_py3.py new file mode 100644 index 00000000000..1c5b66b4275 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/error_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error response describing why the operation failed. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Error code + :type code: str + :param message: Required. Detailed error message + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str, message: str, **kwargs) -> None: + super(Error, self).__init__(**kwargs) + self.code = code + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification.py new file mode 100644 index 00000000000..340a905ef64 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MetricSpecification(Model): + """Metric specification of operation. + + :param name: Name of metric specification. + :type name: str + :param display_name: Display name of metric specification. + :type display_name: str + :param display_description: Display description of metric specification. + :type display_description: str + :param unit: Unit could be Bytes or Count. + :type unit: str + :param dimensions: Dimensions of blobs, including blob type and access + tier. + :type dimensions: list[~azure.mgmt.netapp.models.Dimension] + :param aggregation_type: Aggregation type could be Average. + :type aggregation_type: str + :param fill_gap_with_zero: The property to decide fill gap with zero or + not. + :type fill_gap_with_zero: bool + :param category: The category this metric specification belong to, could + be Capacity. + :type category: str + :param resource_id_dimension_name_override: Account Resource Id. + :type resource_id_dimension_name_override: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.display_description = kwargs.get('display_description', None) + self.unit = kwargs.get('unit', None) + self.dimensions = kwargs.get('dimensions', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) + self.category = kwargs.get('category', None) + self.resource_id_dimension_name_override = kwargs.get('resource_id_dimension_name_override', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification_py3.py new file mode 100644 index 00000000000..60388284198 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/metric_specification_py3.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MetricSpecification(Model): + """Metric specification of operation. + + :param name: Name of metric specification. + :type name: str + :param display_name: Display name of metric specification. + :type display_name: str + :param display_description: Display description of metric specification. + :type display_description: str + :param unit: Unit could be Bytes or Count. + :type unit: str + :param dimensions: Dimensions of blobs, including blob type and access + tier. + :type dimensions: list[~azure.mgmt.netapp.models.Dimension] + :param aggregation_type: Aggregation type could be Average. + :type aggregation_type: str + :param fill_gap_with_zero: The property to decide fill gap with zero or + not. + :type fill_gap_with_zero: bool + :param category: The category this metric specification belong to, could + be Capacity. + :type category: str + :param resource_id_dimension_name_override: Account Resource Id. + :type resource_id_dimension_name_override: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'category': {'key': 'category', 'type': 'str'}, + 'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, dimensions=None, aggregation_type: str=None, fill_gap_with_zero: bool=None, category: str=None, resource_id_dimension_name_override: str=None, **kwargs) -> None: + super(MetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.display_description = display_description + self.unit = unit + self.dimensions = dimensions + self.aggregation_type = aggregation_type + self.fill_gap_with_zero = fill_gap_with_zero + self.category = category + self.resource_id_dimension_name_override = resource_id_dimension_name_override diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target.py new file mode 100644 index 00000000000..e118f00da39 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target.py @@ -0,0 +1,97 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MountTarget(Model): + """Mount Target. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :param tags: Resource tags + :type tags: object + :ivar mount_target_id: mountTargetId. UUID v4 used to identify the + MountTarget + :vartype mount_target_id: str + :param file_system_id: Required. fileSystemId. UUID v4 used to identify + the MountTarget + :type file_system_id: str + :ivar ip_address: ipAddress. The mount target's IPv4 address + :vartype ip_address: str + :param vlan_id: vlanid. Vlan Id + :type vlan_id: int + :param start_ip: startIp. The start of IPv4 address range to use when + creating a new mount target + :type start_ip: str + :param end_ip: startIp. The end of IPv4 address range to use when creating + a new mount target + :type end_ip: str + :param gateway: gateway. The gateway of the IPv4 address range to use when + creating a new mount target + :type gateway: str + :param netmask: netmask. The netmask of the IPv4 address range to use when + creating a new mount target + :type netmask: str + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'mount_target_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'file_system_id': {'required': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'ip_address': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'mount_target_id': {'key': 'properties.mountTargetId', 'type': 'str'}, + 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + 'vlan_id': {'key': 'properties.vlanId', 'type': 'int'}, + 'start_ip': {'key': 'properties.startIp', 'type': 'str'}, + 'end_ip': {'key': 'properties.endIp', 'type': 'str'}, + 'gateway': {'key': 'properties.gateway', 'type': 'str'}, + 'netmask': {'key': 'properties.netmask', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MountTarget, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.id = None + self.name = None + self.tags = kwargs.get('tags', None) + self.mount_target_id = None + self.file_system_id = kwargs.get('file_system_id', None) + self.ip_address = None + self.vlan_id = kwargs.get('vlan_id', None) + self.start_ip = kwargs.get('start_ip', None) + self.end_ip = kwargs.get('end_ip', None) + self.gateway = kwargs.get('gateway', None) + self.netmask = kwargs.get('netmask', None) + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_paged.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_paged.py new file mode 100644 index 00000000000..8d9983678f2 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class MountTargetPaged(Paged): + """ + A paging container for iterating over a list of :class:`MountTarget ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[MountTarget]'} + } + + def __init__(self, *args, **kwargs): + + super(MountTargetPaged, self).__init__(*args, **kwargs) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_py3.py new file mode 100644 index 00000000000..b4191609e62 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/mount_target_py3.py @@ -0,0 +1,97 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MountTarget(Model): + """Mount Target. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :param tags: Resource tags + :type tags: object + :ivar mount_target_id: mountTargetId. UUID v4 used to identify the + MountTarget + :vartype mount_target_id: str + :param file_system_id: Required. fileSystemId. UUID v4 used to identify + the MountTarget + :type file_system_id: str + :ivar ip_address: ipAddress. The mount target's IPv4 address + :vartype ip_address: str + :param vlan_id: vlanid. Vlan Id + :type vlan_id: int + :param start_ip: startIp. The start of IPv4 address range to use when + creating a new mount target + :type start_ip: str + :param end_ip: startIp. The end of IPv4 address range to use when creating + a new mount target + :type end_ip: str + :param gateway: gateway. The gateway of the IPv4 address range to use when + creating a new mount target + :type gateway: str + :param netmask: netmask. The netmask of the IPv4 address range to use when + creating a new mount target + :type netmask: str + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'mount_target_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'file_system_id': {'required': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'ip_address': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'mount_target_id': {'key': 'properties.mountTargetId', 'type': 'str'}, + 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + 'vlan_id': {'key': 'properties.vlanId', 'type': 'int'}, + 'start_ip': {'key': 'properties.startIp', 'type': 'str'}, + 'end_ip': {'key': 'properties.endIp', 'type': 'str'}, + 'gateway': {'key': 'properties.gateway', 'type': 'str'}, + 'netmask': {'key': 'properties.netmask', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, location: str, file_system_id: str, tags=None, vlan_id: int=None, start_ip: str=None, end_ip: str=None, gateway: str=None, netmask: str=None, **kwargs) -> None: + super(MountTarget, self).__init__(**kwargs) + self.location = location + self.id = None + self.name = None + self.tags = tags + self.mount_target_id = None + self.file_system_id = file_system_id + self.ip_address = None + self.vlan_id = vlan_id + self.start_ip = start_ip + self.end_ip = end_ip + self.gateway = gateway + self.netmask = netmask + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account.py new file mode 100644 index 00000000000..3ec70dc97f9 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetAppAccount(Model): + """NetApp account resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetAppAccount, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.id = None + self.name = None + self.type = None + self.tags = kwargs.get('tags', None) + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_paged.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_paged.py new file mode 100644 index 00000000000..fd4a719a073 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class NetAppAccountPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetAppAccount ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetAppAccount]'} + } + + def __init__(self, *args, **kwargs): + + super(NetAppAccountPaged, self).__init__(*args, **kwargs) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch.py new file mode 100644 index 00000000000..33d4ec3da53 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetAppAccountPatch(Model): + """NetApp account patch resource. + + :param tags: Resource tags + :type tags: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(NetAppAccountPatch, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch_py3.py new file mode 100644 index 00000000000..d42966ff410 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_patch_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetAppAccountPatch(Model): + """NetApp account patch resource. + + :param tags: Resource tags + :type tags: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': 'object'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(NetAppAccountPatch, self).__init__(**kwargs) + self.tags = tags diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_py3.py new file mode 100644 index 00000000000..a2d9c5c845a --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/net_app_account_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetAppAccount(Model): + """NetApp account resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(NetAppAccount, self).__init__(**kwargs) + self.location = location + self.id = None + self.name = None + self.type = None + self.tags = tags + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation.py new file mode 100644 index 00000000000..928aa9c0a0b --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """Microsoft.NetApp REST API operation definition. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: Display metadata associated with the operation. + :type display: ~azure.mgmt.netapp.models.OperationDisplay + :param origin: The origin of operations. + :type origin: str + :param service_specification: One property of operation, include metric + specifications. + :type service_specification: + ~azure.mgmt.netapp.models.ServiceSpecification + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.service_specification = kwargs.get('service_specification', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display.py new file mode 100644 index 00000000000..e9de65b8880 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationDisplay(Model): + """Display metadata associated with the operation. + + :param provider: Service provider: Microsoft NetApp. + :type provider: str + :param resource: Resource on which the operation is performed etc. + :type resource: str + :param operation: Type of operation: get, read, delete, etc. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display_py3.py new file mode 100644 index 00000000000..a066121cec7 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_display_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationDisplay(Model): + """Display metadata associated with the operation. + + :param provider: Service provider: Microsoft NetApp. + :type provider: str + :param resource: Resource on which the operation is performed etc. + :type resource: str + :param operation: Type of operation: get, read, delete, etc. + :type operation: str + :param description: Operation description. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_paged.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_paged.py new file mode 100644 index 00000000000..75776552e32 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_py3.py new file mode 100644 index 00000000000..a4de32fddd0 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/operation_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """Microsoft.NetApp REST API operation definition. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: Display metadata associated with the operation. + :type display: ~azure.mgmt.netapp.models.OperationDisplay + :param origin: The origin of operations. + :type origin: str + :param service_specification: One property of operation, include metric + specifications. + :type service_specification: + ~azure.mgmt.netapp.models.ServiceSpecification + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, service_specification=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.service_specification = service_specification diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification.py new file mode 100644 index 00000000000..ad10cc9a95f --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceSpecification(Model): + """One property of operation, include metric specifications. + + :param metric_specifications: Metric specifications of operation. + :type metric_specifications: + list[~azure.mgmt.netapp.models.MetricSpecification] + """ + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__(self, **kwargs): + super(ServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = kwargs.get('metric_specifications', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification_py3.py new file mode 100644 index 00000000000..e6ab3038fbe --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/service_specification_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceSpecification(Model): + """One property of operation, include metric specifications. + + :param metric_specifications: Metric specifications of operation. + :type metric_specifications: + list[~azure.mgmt.netapp.models.MetricSpecification] + """ + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__(self, *, metric_specifications=None, **kwargs) -> None: + super(ServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = metric_specifications diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot.py new file mode 100644 index 00000000000..cb9b70ef4d1 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Snapshot(Model): + """Snapshot of a Volume. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot + :vartype snapshot_id: str + :param file_system_id: Required. fileSystemId. UUID v4 used to identify + the FileSystem + :type file_system_id: str + :ivar creation_date: name. The creation date of the snapshot + :vartype creation_date: datetime + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'snapshot_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'file_system_id': {'required': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'creation_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'}, + 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Snapshot, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.id = None + self.name = None + self.type = None + self.tags = kwargs.get('tags', None) + self.snapshot_id = None + self.file_system_id = kwargs.get('file_system_id', None) + self.creation_date = None + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_paged.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_paged.py new file mode 100644 index 00000000000..95ab3fde964 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class SnapshotPaged(Paged): + """ + A paging container for iterating over a list of :class:`Snapshot ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Snapshot]'} + } + + def __init__(self, *args, **kwargs): + + super(SnapshotPaged, self).__init__(*args, **kwargs) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch.py new file mode 100644 index 00000000000..9ccd3602fab --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SnapshotPatch(Model): + """Snapshot patch. + + :param tags: Resource tags + :type tags: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(SnapshotPatch, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch_py3.py new file mode 100644 index 00000000000..61ba55fecf8 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_patch_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SnapshotPatch(Model): + """Snapshot patch. + + :param tags: Resource tags + :type tags: object + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': 'object'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(SnapshotPatch, self).__init__(**kwargs) + self.tags = tags diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_py3.py new file mode 100644 index 00000000000..ac94c966980 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/snapshot_py3.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Snapshot(Model): + """Snapshot of a Volume. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar snapshot_id: snapshotId. UUID v4 used to identify the Snapshot + :vartype snapshot_id: str + :param file_system_id: Required. fileSystemId. UUID v4 used to identify + the FileSystem + :type file_system_id: str + :ivar creation_date: name. The creation date of the snapshot + :vartype creation_date: datetime + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'snapshot_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'file_system_id': {'required': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'creation_date': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'snapshot_id': {'key': 'properties.snapshotId', 'type': 'str'}, + 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, location: str, file_system_id: str, tags=None, **kwargs) -> None: + super(Snapshot, self).__init__(**kwargs) + self.location = location + self.id = None + self.name = None + self.type = None + self.tags = tags + self.snapshot_id = None + self.file_system_id = file_system_id + self.creation_date = None + self.provisioning_state = None diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume.py new file mode 100644 index 00000000000..2daa2c273f0 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Volume(Model): + """Volume resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar file_system_id: FileSystem ID. Unique FileSystem Identifier. + :vartype file_system_id: str + :param creation_token: Required. Creation Token or File Path. A unique + file path for the volume. Used when creating mount targets + :type creation_token: str + :param service_level: Required. serviceLevel. The service level of the + file system. Possible values include: 'Standard', 'Premium', 'Extreme'. + Default value: "Premium" . + :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel + :param usage_threshold: usageThreshold. Maximum storage quota allowed for + a file system in bytes. This is a soft quota used for alerting only. + Minimum size is 100 GiB. Upper limit is 100TiB. Default value: + 107374182400 . + :type usage_threshold: long + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + :param subnet_id: The Azure Resource URI for a delegated subnet. Must have + the delegation Microsoft.NetApp/volumes + :type subnet_id: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'file_system_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'creation_token': {'required': True}, + 'service_level': {'required': True}, + 'usage_threshold': {'maximum': 109951162777600, 'minimum': 107374182400}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, + 'creation_token': {'key': 'properties.creationToken', 'type': 'str'}, + 'service_level': {'key': 'properties.serviceLevel', 'type': 'str'}, + 'usage_threshold': {'key': 'properties.usageThreshold', 'type': 'long'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Volume, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.id = None + self.name = None + self.type = None + self.tags = kwargs.get('tags', None) + self.file_system_id = None + self.creation_token = kwargs.get('creation_token', None) + self.service_level = kwargs.get('service_level', "Premium") + self.usage_threshold = kwargs.get('usage_threshold', 107374182400) + self.provisioning_state = None + self.subnet_id = kwargs.get('subnet_id', None) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_paged.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_paged.py new file mode 100644 index 00000000000..17d9bd4c9d3 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VolumePaged(Paged): + """ + A paging container for iterating over a list of :class:`Volume ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Volume]'} + } + + def __init__(self, *args, **kwargs): + + super(VolumePaged, self).__init__(*args, **kwargs) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch.py new file mode 100644 index 00000000000..a3b5a30bc49 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VolumePatch(Model): + """Volume patch resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param location: Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :param service_level: serviceLevel. The service level of the file system. + Possible values include: 'Standard', 'Premium', 'Extreme'. Default value: + "Premium" . + :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel + :param usage_threshold: usageThreshold. Maximum storage quota allowed for + a file system in bytes. This is a soft quota used for alerting only. + Minimum size is 100 GiB. Upper limit is 100TiB. Default value: + 107374182400 . + :type usage_threshold: long + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'usage_threshold': {'maximum': 109951162777600, 'minimum': 107374182400}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'service_level': {'key': 'properties.serviceLevel', 'type': 'str'}, + 'usage_threshold': {'key': 'properties.usageThreshold', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(VolumePatch, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.id = None + self.name = None + self.type = None + self.tags = kwargs.get('tags', None) + self.service_level = kwargs.get('service_level', "Premium") + self.usage_threshold = kwargs.get('usage_threshold', 107374182400) diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch_py3.py new file mode 100644 index 00000000000..7d1490e1ef0 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_patch_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VolumePatch(Model): + """Volume patch resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param location: Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :param service_level: serviceLevel. The service level of the file system. + Possible values include: 'Standard', 'Premium', 'Extreme'. Default value: + "Premium" . + :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel + :param usage_threshold: usageThreshold. Maximum storage quota allowed for + a file system in bytes. This is a soft quota used for alerting only. + Minimum size is 100 GiB. Upper limit is 100TiB. Default value: + 107374182400 . + :type usage_threshold: long + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'usage_threshold': {'maximum': 109951162777600, 'minimum': 107374182400}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'service_level': {'key': 'properties.serviceLevel', 'type': 'str'}, + 'usage_threshold': {'key': 'properties.usageThreshold', 'type': 'long'}, + } + + def __init__(self, *, location: str=None, tags=None, service_level="Premium", usage_threshold: int=107374182400, **kwargs) -> None: + super(VolumePatch, self).__init__(**kwargs) + self.location = location + self.id = None + self.name = None + self.type = None + self.tags = tags + self.service_level = service_level + self.usage_threshold = usage_threshold diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_py3.py b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_py3.py new file mode 100644 index 00000000000..4a282416271 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/models/volume_py3.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Volume(Model): + """Volume resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param location: Required. Resource location + :type location: str + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param tags: Resource tags + :type tags: object + :ivar file_system_id: FileSystem ID. Unique FileSystem Identifier. + :vartype file_system_id: str + :param creation_token: Required. Creation Token or File Path. A unique + file path for the volume. Used when creating mount targets + :type creation_token: str + :param service_level: Required. serviceLevel. The service level of the + file system. Possible values include: 'Standard', 'Premium', 'Extreme'. + Default value: "Premium" . + :type service_level: str or ~azure.mgmt.netapp.models.ServiceLevel + :param usage_threshold: usageThreshold. Maximum storage quota allowed for + a file system in bytes. This is a soft quota used for alerting only. + Minimum size is 100 GiB. Upper limit is 100TiB. Default value: + 107374182400 . + :type usage_threshold: long + :ivar provisioning_state: Azure lifecycle management + :vartype provisioning_state: str + :param subnet_id: The Azure Resource URI for a delegated subnet. Must have + the delegation Microsoft.NetApp/volumes + :type subnet_id: str + """ + + _validation = { + 'location': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'file_system_id': {'readonly': True, 'max_length': 36, 'min_length': 36, 'pattern': r'^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$'}, + 'creation_token': {'required': True}, + 'service_level': {'required': True}, + 'usage_threshold': {'maximum': 109951162777600, 'minimum': 107374182400}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': 'object'}, + 'file_system_id': {'key': 'properties.fileSystemId', 'type': 'str'}, + 'creation_token': {'key': 'properties.creationToken', 'type': 'str'}, + 'service_level': {'key': 'properties.serviceLevel', 'type': 'str'}, + 'usage_threshold': {'key': 'properties.usageThreshold', 'type': 'long'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'subnet_id': {'key': 'properties.subnetId', 'type': 'str'}, + } + + def __init__(self, *, location: str, creation_token: str, tags=None, service_level="Premium", usage_threshold: int=107374182400, subnet_id: str=None, **kwargs) -> None: + super(Volume, self).__init__(**kwargs) + self.location = location + self.id = None + self.name = None + self.type = None + self.tags = tags + self.file_system_id = None + self.creation_token = creation_token + self.service_level = service_level + self.usage_threshold = usage_threshold + self.provisioning_state = None + self.subnet_id = subnet_id diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/operations/__init__.py b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/__init__.py new file mode 100644 index 00000000000..99c673b8e4d --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/__init__.py @@ -0,0 +1,26 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .operations import Operations +from .accounts_operations import AccountsOperations +from .pools_operations import PoolsOperations +from .volumes_operations import VolumesOperations +from .mount_targets_operations import MountTargetsOperations +from .snapshots_operations import SnapshotsOperations + +__all__ = [ + 'Operations', + 'AccountsOperations', + 'PoolsOperations', + 'VolumesOperations', + 'MountTargetsOperations', + 'SnapshotsOperations', +] diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/operations/accounts_operations.py b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/accounts_operations.py new file mode 100644 index 00000000000..19addfef5df --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/accounts_operations.py @@ -0,0 +1,417 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class AccountsOperations(object): + """AccountsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2017-08-15". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-08-15" + + self.config = config + + def list( + self, resource_group, 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 dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetAppAccount + :rtype: + ~azure.mgmt.netapp.models.NetAppAccountPaged[~azure.mgmt.netapp.models.NetAppAccount] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + 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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.NetAppAccountPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetAppAccountPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts'} + + def get( + self, resource_group, 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 account_name: The name of the NetApp account + :type account_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetAppAccount or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.NetAppAccount or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetAppAccount', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/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): + 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'NetAppAccount') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [201, 202]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('NetAppAccount', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group, 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 account_name: The name of the NetApp account + :type account_name: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: object + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetAppAccount or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.netapp.models.NetAppAccount] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.netapp.models.NetAppAccount]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group=resource_group, + account_name=account_name, + location=location, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetAppAccount', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + 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}'} + + + def _delete_initial( + self, resource_group, 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group, 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 account_name: The name of the NetApp account + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group=resource_group, + account_name=account_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + 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}'} + + def update( + self, resource_group, 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 account_name: The name of the NetApp account + :type account_name: str + :param tags: Resource tags + :type tags: object + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetAppAccount or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.NetAppAccount or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + body = models.NetAppAccountPatch(tags=tags) + + # Construct URL + 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'NetAppAccountPatch') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetAppAccount', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}'} diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/operations/mount_targets_operations.py b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/mount_targets_operations.py new file mode 100644 index 00000000000..a900436b7de --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/mount_targets_operations.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MountTargetsOperations(object): + """MountTargetsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2017-08-15". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-08-15" + + self.config = config + + def list( + self, resource_group, 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 account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of MountTarget + :rtype: + ~azure.mgmt.netapp.models.MountTargetPaged[~azure.mgmt.netapp.models.MountTarget] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + 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'), + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.MountTargetPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.MountTargetPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/mountTargets'} diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/operations/operations.py b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/operations.py new file mode 100644 index 00000000000..45d58bfbb76 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/operations.py @@ -0,0 +1,96 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2017-08-15". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-08-15" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available Microsoft.NetApp Rest API operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.netapp.models.OperationPaged[~azure.mgmt.netapp.models.Operation] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.NetApp/operations'} diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/operations/pools_operations.py b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/pools_operations.py new file mode 100644 index 00000000000..5bf900e3c39 --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/pools_operations.py @@ -0,0 +1,432 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class PoolsOperations(object): + """PoolsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2017-08-15". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-08-15" + + self.config = config + + def list( + self, resource_group, account_name, custom_headers=None, raw=False, **operation_config): + """Lists all capacity pools in the NetApp Account. + + :param resource_group: The name of the resource group. + :type resource_group: 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 + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of CapacityPool + :rtype: + ~azure.mgmt.netapp.models.CapacityPoolPaged[~azure.mgmt.netapp.models.CapacityPool] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.CapacityPoolPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.CapacityPoolPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools'} + + def get( + self, resource_group, account_name, pool_name, custom_headers=None, raw=False, **operation_config): + """Get a capacity pool. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: CapacityPool or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.CapacityPool or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'poolName': self._serialize.url("pool_name", pool_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('CapacityPool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}'} + + + def _create_or_update_initial( + self, body, resource_group, account_name, pool_name, custom_headers=None, raw=False, **operation_config): + # 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'poolName': self._serialize.url("pool_name", pool_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'CapacityPool') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('CapacityPool', response) + if response.status_code == 201: + deserialized = self._deserialize('CapacityPool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, body, resource_group, account_name, pool_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Create or Update a capacity pool. + + :param body: Capacity pool object supplied in the body of the + operation. + :type body: ~azure.mgmt.netapp.models.CapacityPool + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns CapacityPool or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.netapp.models.CapacityPool] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.netapp.models.CapacityPool]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + body=body, + resource_group=resource_group, + account_name=account_name, + pool_name=pool_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('CapacityPool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + 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}/capacityPools/{poolName}'} + + def update( + self, resource_group, account_name, pool_name, tags=None, custom_headers=None, raw=False, **operation_config): + """Patch a capacity pool. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param tags: Resource tags + :type tags: object + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: CapacityPool or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.CapacityPool or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + body = models.CapacityPoolPatch(tags=tags) + + # Construct URL + 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'poolName': self._serialize.url("pool_name", pool_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'CapacityPoolPatch') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('CapacityPool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}'} + + + def _delete_initial( + self, resource_group, account_name, pool_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'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'poolName': self._serialize.url("pool_name", pool_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group, account_name, pool_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Delete a capacity pool. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group=resource_group, + account_name=account_name, + pool_name=pool_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + 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}/capacityPools/{poolName}'} diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/operations/snapshots_operations.py b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/snapshots_operations.py new file mode 100644 index 00000000000..9216a465f1b --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/snapshots_operations.py @@ -0,0 +1,463 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class SnapshotsOperations(object): + """SnapshotsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2017-08-15". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-08-15" + + self.config = config + + def list( + self, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config): + """List snapshots. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Snapshot + :rtype: + ~azure.mgmt.netapp.models.SnapshotPaged[~azure.mgmt.netapp.models.Snapshot] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + 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'), + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.SnapshotPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SnapshotPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots'} + + def get( + self, resource_group, account_name, pool_name, volume_name, snapshot_name, custom_headers=None, raw=False, **operation_config): + """Get a snapshot. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_name: str + :param snapshot_name: The name of the mount target + :type snapshot_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Snapshot or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.Snapshot or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + 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'), + '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'), + 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Snapshot', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'} + + + def _create_initial( + self, body, resource_group, account_name, pool_name, volume_name, snapshot_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create.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'), + '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'), + 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'Snapshot') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [201, 202]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('Snapshot', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create( + self, body, resource_group, account_name, pool_name, volume_name, snapshot_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Create a snapshot. + + :param body: Snapshot object supplied in the body of the operation. + :type body: ~azure.mgmt.netapp.models.Snapshot + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_name: str + :param snapshot_name: The name of the mount target + :type snapshot_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Snapshot or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.netapp.models.Snapshot] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.netapp.models.Snapshot]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_initial( + body=body, + resource_group=resource_group, + account_name=account_name, + pool_name=pool_name, + volume_name=volume_name, + snapshot_name=snapshot_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Snapshot', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'} + + def update( + self, resource_group, account_name, pool_name, volume_name, snapshot_name, tags=None, custom_headers=None, raw=False, **operation_config): + """Patch a snapshot. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_name: str + :param snapshot_name: The name of the mount target + :type snapshot_name: str + :param tags: Resource tags + :type tags: object + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Snapshot or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.Snapshot or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + body = models.SnapshotPatch(tags=tags) + + # Construct URL + 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'), + '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'), + 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'SnapshotPatch') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Snapshot', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'} + + + def _delete_initial( + self, resource_group, account_name, pool_name, volume_name, snapshot_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'), + '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'), + 'snapshotName': self._serialize.url("snapshot_name", snapshot_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group, account_name, pool_name, volume_name, snapshot_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Delete snapshot. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_name: str + :param snapshot_name: The name of the mount target + :type snapshot_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group=resource_group, + account_name=account_name, + pool_name=pool_name, + volume_name=volume_name, + snapshot_name=snapshot_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + 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}/capacityPools/{poolName}/volumes/{volumeName}/snapshots/{snapshotName}'} diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/operations/volumes_operations.py b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/volumes_operations.py new file mode 100644 index 00000000000..c31c39a6abf --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/operations/volumes_operations.py @@ -0,0 +1,446 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VolumesOperations(object): + """VolumesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Version of the API to be used with the client request. Constant value: "2017-08-15". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-08-15" + + self.config = config + + def list( + self, resource_group, account_name, pool_name, custom_headers=None, raw=False, **operation_config): + """List volumes. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Volume + :rtype: + ~azure.mgmt.netapp.models.VolumePaged[~azure.mgmt.netapp.models.Volume] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + 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'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'poolName': self._serialize.url("pool_name", pool_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VolumePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VolumePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes'} + + def get( + self, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config): + """Get a volume. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Volume or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.Volume or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + 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'), + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Volume', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}'} + + + def _create_or_update_initial( + self, body, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config): + # 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'), + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'Volume') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Volume', response) + if response.status_code == 201: + deserialized = self._deserialize('Volume', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, body, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Create or update a volume. + + :param body: Volume object supplied in the body of the operation. + :type body: ~azure.mgmt.netapp.models.Volume + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Volume or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.netapp.models.Volume] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.netapp.models.Volume]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + body=body, + resource_group=resource_group, + account_name=account_name, + pool_name=pool_name, + volume_name=volume_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Volume', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + 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}/capacityPools/{poolName}/volumes/{volumeName}'} + + def update( + self, body, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, **operation_config): + """Patch a volume. + + :param body: Volume object supplied in the body of the operation. + :type body: ~azure.mgmt.netapp.models.VolumePatch + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_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 + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Volume or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.netapp.models.Volume or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + 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'), + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(body, 'VolumePatch') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Volume', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}'} + + + def _delete_initial( + self, resource_group, account_name, pool_name, volume_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'), + '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') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group, account_name, pool_name, volume_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Delete a volume. + + :param resource_group: The name of the resource group. + :type resource_group: str + :param account_name: The name of the NetApp account + :type account_name: str + :param pool_name: The name of the capacity pool + :type pool_name: str + :param volume_name: The name of the volume + :type volume_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group=resource_group, + account_name=account_name, + pool_name=pool_name, + volume_name=volume_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + 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}/capacityPools/{poolName}/volumes/{volumeName}'} diff --git a/src/anf-preview/azext_anf_preview/vendored_sdks/version.py b/src/anf-preview/azext_anf_preview/vendored_sdks/version.py new file mode 100644 index 00000000000..e0ec669828c --- /dev/null +++ b/src/anf-preview/azext_anf_preview/vendored_sdks/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "0.1.0" + diff --git a/src/anf-preview/setup.cfg b/src/anf-preview/setup.cfg new file mode 100644 index 00000000000..3c6e79cf31d --- /dev/null +++ b/src/anf-preview/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/src/anf-preview/setup.py b/src/anf-preview/setup.py new file mode 100644 index 00000000000..791b6f1c65c --- /dev/null +++ b/src/anf-preview/setup.py @@ -0,0 +1,47 @@ +#!/usr/bin/env python + +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup, find_packages + +VERSION = "0.1.0" + +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [] + +with open('README.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='anf-preview', + version=VERSION, + description='Provides a preview for upcoming Azure NetApp Files (ANF) features.', + long_description='An Azure CLI Extension for Azure NetApp Files (ANF) preview features.', + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli-extensions/tree/master/src/anf-preview', + classifiers=CLASSIFIERS, + packages=find_packages(exclude=["tests"]), + package_data={'azext_anf_preview': ['azext_metadata.json']}, + install_requires=DEPENDENCIES +)