From aa33a8c8dfcdf371c03a270e6c9a0d83570d6d9b Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Fri, 20 Mar 2020 03:09:49 +0000 Subject: [PATCH 01/23] init codegen for datashare --- src/datashare/HISTORY.rst | 8 + src/datashare/README.rst | 5 + src/datashare/azext_datashare/__init__.py | 31 + src/datashare/azext_datashare/action.py | 12 + .../azext_datashare/azext_metadata.json | 4 + src/datashare/azext_datashare/commands.py | 12 + src/datashare/azext_datashare/custom.py | 12 + .../generated/_client_factory.py | 54 + .../azext_datashare/generated/_help.py | 593 ++ .../azext_datashare/generated/_params.py | 308 + .../azext_datashare/generated/_validators.py | 18 + .../azext_datashare/generated/action.py | 25 + .../azext_datashare/generated/commands.py | 131 + .../azext_datashare/generated/custom.py | 393 ++ .../azext_datashare/tests/latest/__init__.py | 4 + .../azext_datashare/tests/latest/preparers.py | 111 + .../tests/latest/test_datashare_scenario.py | 404 ++ .../azext_datashare/vendored_sdks/__init__.py | 12 + .../vendored_sdks/datashare/__init__.py | 10 + .../vendored_sdks/datashare/_configuration.py | 60 + .../_data_share_management_client.py | 117 + .../vendored_sdks/datashare/aio/__init__.py | 10 + .../datashare/aio/_configuration_async.py | 58 + .../_data_share_management_client_async.py | 113 + .../aio/operations_async/__init__.py | 35 + .../_account_operations_async.py | 521 ++ .../_consumer_invitation_operations_async.py | 222 + ...nsumer_source_data_set_operations_async.py | 121 + .../_data_set_mapping_operations_async.py | 327 + .../_data_set_operations_async.py | 365 + .../_invitation_operations_async.py | 334 + .../_operation_operations_async.py | 100 + ...der_share_subscription_operations_async.py | 363 + .../_share_operations_async.py | 557 ++ .../_share_subscription_operations_async.py | 840 +++ ...ynchronization_setting_operations_async.py | 374 ++ .../_trigger_operations_async.py | 416 ++ .../datashare/models/__init__.py | 348 + .../_data_share_management_client_enums.py | 102 + .../vendored_sdks/datashare/models/_models.py | 5566 +++++++++++++++ .../datashare/models/_models_py3.py | 5970 +++++++++++++++++ .../datashare/operations/__init__.py | 35 + .../operations/_account_operations.py | 529 ++ .../_consumer_invitation_operations.py | 225 + .../_consumer_source_data_set_operations.py | 122 + .../_data_set_mapping_operations.py | 331 + .../operations/_data_set_operations.py | 370 + .../operations/_invitation_operations.py | 338 + .../operations/_operation_operations.py | 101 + ..._provider_share_subscription_operations.py | 368 + .../datashare/operations/_share_operations.py | 564 ++ .../_share_subscription_operations.py | 852 +++ .../_synchronization_setting_operations.py | 379 ++ .../operations/_trigger_operations.py | 422 ++ src/datashare/report.md | 483 ++ src/datashare/setup.cfg | 2 + src/datashare/setup.py | 60 + 57 files changed, 24247 insertions(+) create mode 100644 src/datashare/HISTORY.rst create mode 100644 src/datashare/README.rst create mode 100644 src/datashare/azext_datashare/__init__.py create mode 100644 src/datashare/azext_datashare/action.py create mode 100644 src/datashare/azext_datashare/azext_metadata.json create mode 100644 src/datashare/azext_datashare/commands.py create mode 100644 src/datashare/azext_datashare/custom.py create mode 100644 src/datashare/azext_datashare/generated/_client_factory.py create mode 100644 src/datashare/azext_datashare/generated/_help.py create mode 100644 src/datashare/azext_datashare/generated/_params.py create mode 100644 src/datashare/azext_datashare/generated/_validators.py create mode 100644 src/datashare/azext_datashare/generated/action.py create mode 100644 src/datashare/azext_datashare/generated/commands.py create mode 100644 src/datashare/azext_datashare/generated/custom.py create mode 100644 src/datashare/azext_datashare/tests/latest/__init__.py create mode 100644 src/datashare/azext_datashare/tests/latest/preparers.py create mode 100644 src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/__init__.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/__init__.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/_data_share_management_client.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/__init__.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/_data_share_management_client_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/__init__.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/__init__.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py create mode 100644 src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py create mode 100644 src/datashare/report.md create mode 100644 src/datashare/setup.cfg create mode 100644 src/datashare/setup.py diff --git a/src/datashare/HISTORY.rst b/src/datashare/HISTORY.rst new file mode 100644 index 00000000000..27f152061e8 --- /dev/null +++ b/src/datashare/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.1.0 +++++++ +* Initial release. diff --git a/src/datashare/README.rst b/src/datashare/README.rst new file mode 100644 index 00000000000..07996185302 --- /dev/null +++ b/src/datashare/README.rst @@ -0,0 +1,5 @@ +Microsoft Azure CLI 'datashare' Extension +========================================== + +This package is for the 'datashare' extension. +i.e. 'az datashare' diff --git a/src/datashare/azext_datashare/__init__.py b/src/datashare/azext_datashare/__init__.py new file mode 100644 index 00000000000..964eabae04c --- /dev/null +++ b/src/datashare/azext_datashare/__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 .generated._help import helps + + +class DataShareManagementClientCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + from .generated._client_factory import cf_datashare + datashare_custom = CliCommandType( + operations_tmpl='azext_datashare.custom#{}', + client_factory=cf_datashare) + super(DataShareManagementClientCommandsLoader, self).__init__(cli_ctx=cli_ctx, + custom_command_type=datashare_custom) + + def load_command_table(self, args): + from .generated.commands import load_command_table + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + from .generated._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = DataShareManagementClientCommandsLoader diff --git a/src/datashare/azext_datashare/action.py b/src/datashare/azext_datashare/action.py new file mode 100644 index 00000000000..2cb3583de76 --- /dev/null +++ b/src/datashare/azext_datashare/action.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=wildcard-import +# pylint: disable=unused-wildcard-import + +from .generated.action import * # noqa: F403 +try: + from .manual.action import * # noqa: F403 +except ImportError: + pass diff --git a/src/datashare/azext_datashare/azext_metadata.json b/src/datashare/azext_datashare/azext_metadata.json new file mode 100644 index 00000000000..fc707c41f3b --- /dev/null +++ b/src/datashare/azext_datashare/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isPreview": true, + "azext.minCliCoreVersion": "2.0.67" +} \ No newline at end of file diff --git a/src/datashare/azext_datashare/commands.py b/src/datashare/azext_datashare/commands.py new file mode 100644 index 00000000000..73c5cb52b0f --- /dev/null +++ b/src/datashare/azext_datashare/commands.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=wildcard-import +# pylint: disable=unused-wildcard-import + +from .generated.commands import * # noqa: F403 +try: + from .manual.commands import * # noqa: F403 +except ImportError: + pass diff --git a/src/datashare/azext_datashare/custom.py b/src/datashare/azext_datashare/custom.py new file mode 100644 index 00000000000..41ab47d5063 --- /dev/null +++ b/src/datashare/azext_datashare/custom.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=wildcard-import +# pylint: disable=unused-wildcard-import + +from .generated.custom import * # noqa: F403 +try: + from .manual.custom import * # noqa: F403 +except ImportError: + pass diff --git a/src/datashare/azext_datashare/generated/_client_factory.py b/src/datashare/azext_datashare/generated/_client_factory.py new file mode 100644 index 00000000000..bba6d6bcfb5 --- /dev/null +++ b/src/datashare/azext_datashare/generated/_client_factory.py @@ -0,0 +1,54 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +def cf_datashare(cli_ctx, *_): + from azure.cli.core.commands.client_factory import get_mgmt_service_client + from ..vendored_sdks.datashare import DataShareManagementClient + return get_mgmt_service_client(cli_ctx, DataShareManagementClient) + + +def cf_account(cli_ctx, *_): + return cf_datashare(cli_ctx).account + + +def cf_consumer_invitation(cli_ctx, *_): + return cf_datashare(cli_ctx).consumer_invitation + + +def cf_data_set(cli_ctx, *_): + return cf_datashare(cli_ctx).data_set + + +def cf_data_set_mapping(cli_ctx, *_): + return cf_datashare(cli_ctx).data_set_mapping + + +def cf_invitation(cli_ctx, *_): + return cf_datashare(cli_ctx).invitation + + +def cf_share(cli_ctx, *_): + return cf_datashare(cli_ctx).share + + +def cf_provider_share_subscription(cli_ctx, *_): + return cf_datashare(cli_ctx).provider_share_subscription + + +def cf_share_subscription(cli_ctx, *_): + return cf_datashare(cli_ctx).share_subscription + + +def cf_consumer_source_data_set(cli_ctx, *_): + return cf_datashare(cli_ctx).consumer_source_data_set + + +def cf_synchronization_setting(cli_ctx, *_): + return cf_datashare(cli_ctx).synchronization_setting + + +def cf_trigger(cli_ctx, *_): + return cf_datashare(cli_ctx).trigger diff --git a/src/datashare/azext_datashare/generated/_help.py b/src/datashare/azext_datashare/generated/_help.py new file mode 100644 index 00000000000..d63884e4bea --- /dev/null +++ b/src/datashare/azext_datashare/generated/_help.py @@ -0,0 +1,593 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# pylint: disable=too-many-lines + +from knack.help_files import helps + + +helps['datashare account'] = """ + type: group + short-summary: datashare account +""" + +helps['datashare account list'] = """ + type: command + short-summary: List Accounts in Subscription + examples: + - name: Accounts_ListByResourceGroup + text: |- + az datashare account list --resource-group "SampleResourceGroup" +""" + +helps['datashare account show'] = """ + type: command + short-summary: Get an account + examples: + - name: Accounts_Get + text: |- + az datashare account show --account-name "Account1" --resource-group + "SampleResourceGroup" +""" + +helps['datashare account create'] = """ + type: command + short-summary: Create an account + examples: + - name: Accounts_Create + text: |- + az datashare account create --identity type=SystemAssigned --location "West US 2" --tags + tag1=Red tag2=White --account-name "Account1" --resource-group "SampleResourceGroup" +""" + +helps['datashare account update'] = """ + type: command + short-summary: Patch an account + examples: + - name: Accounts_Update + text: |- + az datashare account update --account-name "Account1" --tags tag1=Red tag2=White + --resource-group "SampleResourceGroup" +""" + +helps['datashare account delete'] = """ + type: command + short-summary: DeleteAccount + examples: + - name: Accounts_Delete + text: |- + az datashare account delete --account-name "Account1" --resource-group + "SampleResourceGroup" +""" + +helps['datashare consumer-invitation'] = """ + type: group + short-summary: datashare consumer-invitation +""" + +helps['datashare consumer-invitation list'] = """ + type: command + short-summary: Lists invitations + examples: + - name: ConsumerInvitations_ListInvitations + text: |- + az datashare consumer-invitation list +""" + +helps['datashare consumer-invitation show'] = """ + type: command + short-summary: Get an invitation + examples: + - name: ConsumerInvitations_Get + text: |- + az datashare consumer-invitation show --invitation-id + "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" +""" + +helps['datashare consumer-invitation reject-invitation'] = """ + type: command + short-summary: Reject an invitation + examples: + - name: ConsumerInvitations_RejectInvitation + text: |- + az datashare consumer-invitation reject-invitation --properties-invitation-id + "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" +""" + +helps['datashare data-set'] = """ + type: group + short-summary: datashare data-set +""" + +helps['datashare data-set list'] = """ + type: command + short-summary: List DataSets in a share + examples: + - name: DataSets_ListByShare + text: |- + az datashare data-set list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set show'] = """ + type: command + short-summary: Get a DataSet in a share + examples: + - name: DataSets_Get + text: |- + az datashare data-set show --account-name "Account1" --data-set-name "Dataset1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set create'] = """ + type: command + short-summary: Create a DataSet + examples: + - name: DataSets_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "Blob" --data-set-name + "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_KustoCluster_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "KustoCluster" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_KustoDatabase_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "KustoDatabase" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_SqlDBTable_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "SqlDBTable" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_SqlDWTable_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "SqlDWTable" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set delete'] = """ + type: command + short-summary: Delete a DataSet in a share + examples: + - name: DataSets_Delete + text: |- + az datashare data-set delete --account-name "Account1" --data-set-name "Dataset1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set-mapping'] = """ + type: group + short-summary: datashare data-set-mapping +""" + +helps['datashare data-set-mapping list'] = """ + type: command + short-summary: List DataSetMappings in a share subscription + examples: + - name: DataSetMappings_ListByShareSubscription + text: |- + az datashare data-set-mapping list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare data-set-mapping show'] = """ + type: command + short-summary: Get a DataSetMapping in a shareSubscription + examples: + - name: DataSetMappings_Get + text: |- + az datashare data-set-mapping show --account-name "Account1" --data-set-mapping-name + "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name + "ShareSubscription1" +""" + +helps['datashare data-set-mapping create'] = """ + type: command + short-summary: Create a DataSetMapping + examples: + - name: DataSetMappings_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "Blob" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" + - name: DataSetMappings_SqlDB_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "SqlDBTable" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" + - name: DataSetMappings_SqlDWDataSetToAdlsGen2File_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "AdlsGen2File" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" + - name: DataSetMappings_SqlDW_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "SqlDWTable" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" +""" + +helps['datashare data-set-mapping delete'] = """ + type: command + short-summary: Delete a DataSetMapping in a shareSubscription + examples: + - name: DataSetMappings_Delete + text: |- + az datashare data-set-mapping delete --account-name "Account1" --data-set-mapping-name + "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name + "ShareSubscription1" +""" + +helps['datashare invitation'] = """ + type: group + short-summary: datashare invitation +""" + +helps['datashare invitation list'] = """ + type: command + short-summary: List invitations in a share + examples: + - name: Invitations_ListByShare + text: |- + az datashare invitation list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare invitation show'] = """ + type: command + short-summary: Get an invitation in a share + examples: + - name: Invitations_Get + text: |- + az datashare invitation show --account-name "Account1" --invitation-name "Invitation1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare invitation create'] = """ + type: command + short-summary: Create an invitation + examples: + - name: Invitations_Create + text: |- + az datashare invitation create --account-name "Account1" --properties-target-email + "receiver@microsoft.com" --invitation-name "Invitation1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare invitation delete'] = """ + type: command + short-summary: Delete an invitation in a share + examples: + - name: Invitations_Delete + text: |- + az datashare invitation delete --account-name "Account1" --invitation-name "Invitation1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare share'] = """ + type: group + short-summary: datashare share +""" + +helps['datashare share list'] = """ + type: command + short-summary: List shares in an account + examples: + - name: Shares_ListByAccount + text: |- + az datashare share list --account-name "Account1" --resource-group "SampleResourceGroup" +""" + +helps['datashare share show'] = """ + type: command + short-summary: Get a share + examples: + - name: Shares_Get + text: |- + az datashare share show --account-name "Account1" --resource-group "SampleResourceGroup" + --share-name "Share1" +""" + +helps['datashare share create'] = """ + type: command + short-summary: Create a share + examples: + - name: Shares_Create + text: |- + az datashare share create --account-name "Account1" --resource-group + "SampleResourceGroup" --properties-description "share description" + --properties-share-kind "CopyBased" --properties-terms "Confidential" --share-name + "Share1" +""" + +helps['datashare share delete'] = """ + type: command + short-summary: Delete a share + examples: + - name: Shares_Delete + text: |- + az datashare share delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare share list-synchronization-detail'] = """ + type: command + short-summary: List synchronization details + examples: + - name: Shares_ListSynchronizationDetails + text: |- + az datashare share list-synchronization-detail --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --synchronization-id + "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" +""" + +helps['datashare share list-synchronization'] = """ + type: command + short-summary: List synchronizations of a share + examples: + - name: Shares_ListSynchronizations + text: |- + az datashare share list-synchronization --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription'] = """ + type: group + short-summary: datashare provider-share-subscription +""" + +helps['datashare provider-share-subscription list'] = """ + type: command + short-summary: List share subscriptions in a provider share + examples: + - name: ProviderShareSubscriptions_ListByShare + text: |- + az datashare provider-share-subscription list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription show'] = """ + type: command + short-summary: Get share subscription in a provider share + examples: + - name: ProviderShareSubscriptions_GetByShare + text: |- + az datashare provider-share-subscription show --account-name "Account1" + --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription revoke'] = """ + type: command + short-summary: Revoke share subscription in a provider share + examples: + - name: ProviderShareSubscriptions_Revoke + text: |- + az datashare provider-share-subscription revoke --account-name "Account1" + --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription reinstate'] = """ + type: command + short-summary: Reinstate share subscription in a provider share + examples: + - name: ProviderShareSubscriptions_Reinstate + text: |- + az datashare provider-share-subscription reinstate --account-name "Account1" + --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare share-subscription'] = """ + type: group + short-summary: datashare share-subscription +""" + +helps['datashare share-subscription list'] = """ + type: command + short-summary: List share subscriptions in an account + examples: + - name: ShareSubscriptions_ListByAccount + text: |- + az datashare share-subscription list --account-name "Account1" --resource-group + "SampleResourceGroup" +""" + +helps['datashare share-subscription show'] = """ + type: command + short-summary: Get a shareSubscription in an account + examples: + - name: ShareSubscriptions_Get + text: |- + az datashare share-subscription show --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare share-subscription create'] = """ + type: command + short-summary: Create a shareSubscription in an account + examples: + - name: ShareSubscriptions_Create + text: |- + az datashare share-subscription create --account-name "Account1" --resource-group + "SampleResourceGroup" --properties-invitation-id "12345678-1234-1234-12345678abd" + --properties-source-share-location "eastus2" --share-subscription-name + "ShareSubscription1" +""" + +helps['datashare share-subscription delete'] = """ + type: command + short-summary: Delete a shareSubscription in an account + examples: + - name: ShareSubscriptions_Delete + text: |- + az datashare share-subscription delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare share-subscription list-synchronization-detail'] = """ + type: command + short-summary: List synchronization details + examples: + - name: ShareSubscriptions_ListSynchronizationDetails + text: |- + az datashare share-subscription list-synchronization-detail --account-name "Account1" + --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" + --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" +""" + +helps['datashare share-subscription synchronize'] = """ + type: command + short-summary: Initiate a copy + examples: + - name: ShareSubscriptions_Synchronize + text: |- + az datashare share-subscription synchronize --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + --synchronization-mode "Incremental" +""" + +helps['datashare share-subscription cancel-synchronization'] = """ + type: command + short-summary: Request to cancel a synchronization. + examples: + - name: ShareSubscriptions_CancelSynchronization + text: |- + az datashare share-subscription cancel-synchronization --account-name "Account1" + --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" +""" + +helps['datashare share-subscription list-source-share-synchronization-setting'] = """ + type: command + short-summary: Get synchronization settings set on a share + examples: + - name: ShareSubscriptions_ListSourceShareSynchronizationSettings + text: |- + az datashare share-subscription list-source-share-synchronization-setting --account-name + "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" +""" + +helps['datashare share-subscription list-synchronization'] = """ + type: command + short-summary: List synchronizations of a share subscription + examples: + - name: ShareSubscriptions_ListSynchronizations + text: |- + az datashare share-subscription list-synchronization --account-name "Account1" + --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" +""" + +helps['datashare consumer-source-data-set'] = """ + type: group + short-summary: datashare consumer-source-data-set +""" + +helps['datashare consumer-source-data-set list'] = """ + type: command + short-summary: Get source dataSets of a shareSubscription + examples: + - name: ConsumerSourceDataSets_ListByShareSubscription + text: |- + az datashare consumer-source-data-set list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "Share1" +""" + +helps['datashare synchronization-setting'] = """ + type: group + short-summary: datashare synchronization-setting +""" + +helps['datashare synchronization-setting list'] = """ + type: command + short-summary: List synchronizationSettings in a share + examples: + - name: SynchronizationSettings_ListByShare + text: |- + az datashare synchronization-setting list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare synchronization-setting show'] = """ + type: command + short-summary: Get a synchronizationSetting in a share + examples: + - name: SynchronizationSettings_Get + text: |- + az datashare synchronization-setting show --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name + "SyncrhonizationSetting1" +""" + +helps['datashare synchronization-setting create'] = """ + type: command + short-summary: Create or update a synchronizationSetting + examples: + - name: SynchronizationSettings_Create + text: |- + az datashare synchronization-setting create --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --kind "ScheduleBased" + --synchronization-setting-name "Dataset1" +""" + +helps['datashare synchronization-setting delete'] = """ + type: command + short-summary: Delete a synchronizationSetting in a share + examples: + - name: SynchronizationSettings_Delete + text: |- + az datashare synchronization-setting delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name + "SyncrhonizationSetting1" +""" + +helps['datashare trigger'] = """ + type: group + short-summary: datashare trigger +""" + +helps['datashare trigger list'] = """ + type: command + short-summary: List Triggers in a share subscription + examples: + - name: Triggers_ListByShareSubscription + text: |- + az datashare trigger list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare trigger show'] = """ + type: command + short-summary: Get a Trigger in a shareSubscription + examples: + - name: Triggers_Get + text: |- + az datashare trigger show --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name + "Trigger1" +""" + +helps['datashare trigger create'] = """ + type: command + short-summary: Create a Trigger + examples: + - name: Triggers_Create + text: |- + az datashare trigger create --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --kind + "ScheduleBased" --trigger-name "Trigger1" +""" + +helps['datashare trigger delete'] = """ + type: command + short-summary: Delete a Trigger in a shareSubscription + examples: + - name: Triggers_Delete + text: |- + az datashare trigger delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name + "Trigger1" +""" diff --git a/src/datashare/azext_datashare/generated/_params.py b/src/datashare/azext_datashare/generated/_params.py new file mode 100644 index 00000000000..275a6bb57ae --- /dev/null +++ b/src/datashare/azext_datashare/generated/_params.py @@ -0,0 +1,308 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +from knack.arguments import CLIArgumentType +from azure.cli.core.commands.parameters import ( + tags_type, + get_enum_type, + resource_group_name_type, + get_location_type +) +from azext_datashare.action import AddIdentity + + +def load_arguments(self, _): + + with self.argument_context('datashare account list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare account show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + + with self.argument_context('datashare account create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the azure resource.') + c.argument('tags', tags_type, help='Tags on the azure resource.') + c.argument('identity', action=AddIdentity, nargs='+', help='Identity of resource') + + with self.argument_context('datashare account update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('tags', tags_type, help='Tags on the azure resource.') + + with self.argument_context('datashare account delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + + with self.argument_context('datashare consumer-invitation list') as c: + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare consumer-invitation show') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') + c.argument('invitation_id', help='An invitation id') + + with self.argument_context('datashare consumer-invitation reject-invitation') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') + c.argument('properties_invitation_id', help='Unique id of the invitation.') + + with self.argument_context('datashare data-set list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare data-set show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('data_set_name', help='The name of the dataSet.') + + with self.argument_context('datashare data-set create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('data_set_name', help='The name of the dataSet.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare data-set delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('data_set_name', help='The name of the dataSet.') + + with self.argument_context('datashare data-set-mapping list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare data-set-mapping show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + + with self.argument_context('datashare data-set-mapping create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare data-set-mapping delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + + with self.argument_context('datashare invitation list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare invitation show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('invitation_name', help='The name of the invitation.') + + with self.argument_context('datashare invitation create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('invitation_name', help='The name of the invitation.') + c.argument('properties_target_active_directory_id', help='The target Azure AD Id. Can\'t be combined with email.') + c.argument('properties_target_email', help='The email the invitation is directed to.') + c.argument('properties_target_object_id', help='The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.') + + with self.argument_context('datashare invitation delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('invitation_name', help='The name of the invitation.') + + with self.argument_context('datashare share list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare share show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + + with self.argument_context('datashare share create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('properties_description', help='Share description.') + c.argument('properties_share_kind', arg_type=get_enum_type(['CopyBased', 'InPlace']), help='Share kind.') + c.argument('properties_terms', help='Share terms.') + + with self.argument_context('datashare share delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + + with self.argument_context('datashare share list-synchronization-detail') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + c.argument('consumer_email', help='Email of the user who created the synchronization') + c.argument('consumer_name', help='Name of the user who created the synchronization') + c.argument('consumer_tenant_name', help='Tenant name of the consumer who created the synchronization') + c.argument('duration_ms', help='synchronization duration') + c.argument('end_time', help='End time of synchronization') + c.argument('message', help='message of synchronization') + c.argument('start_time', help='start time of synchronization') + c.argument('status', help='Raw Status') + c.argument('synchronization_id', help='Synchronization id') + + with self.argument_context('datashare share list-synchronization') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare provider-share-subscription list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare provider-share-subscription show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('provider_share_subscription_id', help='To locate shareSubscription') + + with self.argument_context('datashare provider-share-subscription revoke') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('provider_share_subscription_id', help='To locate shareSubscription') + + with self.argument_context('datashare provider-share-subscription reinstate') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('provider_share_subscription_id', help='To locate shareSubscription') + + with self.argument_context('datashare share-subscription list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare share-subscription show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + + with self.argument_context('datashare share-subscription create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('properties_invitation_id', help='The invitation id.') + c.argument('properties_source_share_location', help='Source share location.') + + with self.argument_context('datashare share-subscription delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + + with self.argument_context('datashare share-subscription list-synchronization-detail') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + c.argument('synchronization_id', help='Synchronization id') + + with self.argument_context('datashare share-subscription synchronize') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('synchronization_mode', arg_type=get_enum_type(['Incremental', 'FullSync']), help='Synchronization mode') + + with self.argument_context('datashare share-subscription cancel-synchronization') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('synchronization_id', help='Synchronization id') + + with self.argument_context('datashare share-subscription list-source-share-synchronization-setting') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare share-subscription list-synchronization') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare consumer-source-data-set list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare synchronization-setting list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare synchronization-setting show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + + with self.argument_context('datashare synchronization-setting create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare synchronization-setting delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + + with self.argument_context('datashare trigger list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare trigger show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('trigger_name', help='The name of the trigger.') + + with self.argument_context('datashare trigger create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('trigger_name', help='The name of the trigger.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare trigger delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('trigger_name', help='The name of the trigger.') diff --git a/src/datashare/azext_datashare/generated/_validators.py b/src/datashare/azext_datashare/generated/_validators.py new file mode 100644 index 00000000000..25e260a7bb4 --- /dev/null +++ b/src/datashare/azext_datashare/generated/_validators.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + + +def example_name_or_id_validator(cmd, namespace): + from azure.cli.core.commands.client_factory import get_subscription_id + from msrestazure.tools import is_valid_resource_id, resource_id + if namespace.storage_account: + if not is_valid_resource_id(namespace.RESOURCE): + namespace.storage_account = resource_id( + subscription=get_subscription_id(cmd.cli_ctx), + resource_group=namespace.resource_group_name, + namespace='Microsoft.Storage', + type='storageAccounts', + name=namespace.storage_account + ) diff --git a/src/datashare/azext_datashare/generated/action.py b/src/datashare/azext_datashare/generated/action.py new file mode 100644 index 00000000000..93ba1972696 --- /dev/null +++ b/src/datashare/azext_datashare/generated/action.py @@ -0,0 +1,25 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=protected-access + +import argparse +from knack.util import CLIError + + +class AddIdentity(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.identity = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = dict(x.split('=', 1) for x in values) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + return d diff --git a/src/datashare/azext_datashare/generated/commands.py b/src/datashare/azext_datashare/generated/commands.py new file mode 100644 index 00000000000..b82fd6f2e92 --- /dev/null +++ b/src/datashare/azext_datashare/generated/commands.py @@ -0,0 +1,131 @@ +# -------------------------------------------------------------------------------------------- +# 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 + + +def load_command_table(self, _): + + from azext_datashare.generated._client_factory import cf_account + datashare_account = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._account_operations#AccountOperations.{}', + client_factory=cf_account) + with self.command_group('datashare account', datashare_account, client_factory=cf_account) as g: + g.custom_command('list', 'datashare_account_list') + g.custom_show_command('show', 'datashare_account_show') + g.custom_command('create', 'datashare_account_create', supports_no_wait=True) + g.custom_command('update', 'datashare_account_update') + g.custom_command('delete', 'datashare_account_delete', supports_no_wait=True) + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_consumer_invitation + datashare_consumer_invitation = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_invitation_operations#ConsumerInvitationOperations.{}', + client_factory=cf_consumer_invitation) + with self.command_group('datashare consumer-invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: + g.custom_command('list', 'datashare_consumer_invitation_list') + g.custom_show_command('show', 'datashare_consumer_invitation_show') + g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') + + from azext_datashare.generated._client_factory import cf_data_set + datashare_data_set = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_operations#DataSetOperations.{}', + client_factory=cf_data_set) + with self.command_group('datashare data-set', datashare_data_set, client_factory=cf_data_set) as g: + g.custom_command('list', 'datashare_data_set_list') + g.custom_show_command('show', 'datashare_data_set_show') + g.custom_command('create', 'datashare_data_set_create') + g.custom_command('delete', 'datashare_data_set_delete', supports_no_wait=True) + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_data_set_mapping + datashare_data_set_mapping = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_mapping_operations#DataSetMappingOperations.{}', + client_factory=cf_data_set_mapping) + with self.command_group('datashare data-set-mapping', datashare_data_set_mapping, client_factory=cf_data_set_mapping) as g: + g.custom_command('list', 'datashare_data_set_mapping_list') + g.custom_show_command('show', 'datashare_data_set_mapping_show') + g.custom_command('create', 'datashare_data_set_mapping_create') + g.custom_command('delete', 'datashare_data_set_mapping_delete') + + from azext_datashare.generated._client_factory import cf_invitation + datashare_invitation = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._invitation_operations#InvitationOperations.{}', + client_factory=cf_invitation) + with self.command_group('datashare invitation', datashare_invitation, client_factory=cf_invitation) as g: + g.custom_command('list', 'datashare_invitation_list') + g.custom_show_command('show', 'datashare_invitation_show') + g.custom_command('create', 'datashare_invitation_create') + g.custom_command('delete', 'datashare_invitation_delete') + + from azext_datashare.generated._client_factory import cf_share + datashare_share = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_operations#ShareOperations.{}', + client_factory=cf_share) + with self.command_group('datashare share', datashare_share, client_factory=cf_share) as g: + g.custom_command('list', 'datashare_share_list') + g.custom_show_command('show', 'datashare_share_show') + g.custom_command('create', 'datashare_share_create') + g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True) + g.custom_command('list-synchronization-detail', 'datashare_share_list_synchronization_detail') + g.custom_command('list-synchronization', 'datashare_share_list_synchronization') + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_provider_share_subscription + datashare_provider_share_subscription = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._provider_share_subscription_operations#ProviderShareSubscriptionOperations.{}', + client_factory=cf_provider_share_subscription) + with self.command_group('datashare provider-share-subscription', datashare_provider_share_subscription, client_factory=cf_provider_share_subscription) as g: + g.custom_command('list', 'datashare_provider_share_subscription_list') + g.custom_show_command('show', 'datashare_provider_share_subscription_show') + g.custom_command('revoke', 'datashare_provider_share_subscription_revoke', supports_no_wait=True) + g.custom_command('reinstate', 'datashare_provider_share_subscription_reinstate') + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_share_subscription + datashare_share_subscription = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_subscription_operations#ShareSubscriptionOperations.{}', + client_factory=cf_share_subscription) + with self.command_group('datashare share-subscription', datashare_share_subscription, client_factory=cf_share_subscription) as g: + g.custom_command('list', 'datashare_share_subscription_list') + g.custom_show_command('show', 'datashare_share_subscription_show') + g.custom_command('create', 'datashare_share_subscription_create') + g.custom_command('delete', 'datashare_share_subscription_delete', supports_no_wait=True) + g.custom_command('list-synchronization-detail', 'datashare_share_subscription_list_synchronization_detail') + g.custom_command('synchronize', 'datashare_share_subscription_synchronize', supports_no_wait=True) + g.custom_command('cancel-synchronization', 'datashare_share_subscription_cancel_synchronization', supports_no_wait=True) + g.custom_command('list-source-share-synchronization-setting', 'datashare_share_subscription_list_source_share_synchronization_setting') + g.custom_command('list-synchronization', 'datashare_share_subscription_list_synchronization') + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_consumer_source_data_set + datashare_consumer_source_data_set = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', + client_factory=cf_consumer_source_data_set) + with self.command_group('datashare consumer-source-data-set', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: + g.custom_command('list', 'datashare_consumer_source_data_set_list') + + from azext_datashare.generated._client_factory import cf_synchronization_setting + datashare_synchronization_setting = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._synchronization_setting_operations#SynchronizationSettingOperations.{}', + client_factory=cf_synchronization_setting) + with self.command_group('datashare synchronization-setting', datashare_synchronization_setting, client_factory=cf_synchronization_setting) as g: + g.custom_command('list', 'datashare_synchronization_setting_list') + g.custom_show_command('show', 'datashare_synchronization_setting_show') + g.custom_command('create', 'datashare_synchronization_setting_create') + g.custom_command('delete', 'datashare_synchronization_setting_delete', supports_no_wait=True) + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_trigger + datashare_trigger = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._trigger_operations#TriggerOperations.{}', + client_factory=cf_trigger) + with self.command_group('datashare trigger', datashare_trigger, client_factory=cf_trigger) as g: + g.custom_command('list', 'datashare_trigger_list') + g.custom_show_command('show', 'datashare_trigger_show') + g.custom_command('create', 'datashare_trigger_create', supports_no_wait=True) + g.custom_command('delete', 'datashare_trigger_delete', supports_no_wait=True) + g.wait_command('wait') diff --git a/src/datashare/azext_datashare/generated/custom.py b/src/datashare/azext_datashare/generated/custom.py new file mode 100644 index 00000000000..652f92eaa29 --- /dev/null +++ b/src/datashare/azext_datashare/generated/custom.py @@ -0,0 +1,393 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# pylint: disable=too-many-lines + + +def datashare_account_list(cmd, client, + resource_group_name=None, + skip_token=None): + if resource_group_name is not None: + return client.list_by_resource_group(resource_group_name=resource_group_name, skip_token=skip_token) + return client.list_by_subscription(skip_token=skip_token) + + +def datashare_account_show(cmd, client, + resource_group_name, + account_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name) + + +def datashare_account_create(cmd, client, + resource_group_name, + account_name, + identity, + location=None, + tags=None): + return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, location=location, tags=tags, identity=identity) + + +def datashare_account_update(cmd, client, + resource_group_name, + account_name, + tags=None): + return client.update(resource_group_name=resource_group_name, account_name=account_name, tags=tags) + + +def datashare_account_delete(cmd, client, + resource_group_name, + account_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name) + + +def datashare_consumer_invitation_list(cmd, client, + skip_token=None): + return client.list_invitation(skip_token=skip_token) + + +def datashare_consumer_invitation_show(cmd, client, + location, + invitation_id): + return client.get(location=location, invitation_id=invitation_id) + + +def datashare_consumer_invitation_reject_invitation(cmd, client, + location, + properties_invitation_id): + return client.reject_invitation(location=location, invitation_id=properties_invitation_id) + + +def datashare_data_set_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_data_set_show(cmd, client, + resource_group_name, + account_name, + share_name, + data_set_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) + + +def datashare_data_set_create(cmd, client, + resource_group_name, + account_name, + share_name, + data_set_name, + kind): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, kind=kind) + + +def datashare_data_set_delete(cmd, client, + resource_group_name, + account_name, + share_name, + data_set_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) + + +def datashare_data_set_mapping_list(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_data_set_mapping_show(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + data_set_mapping_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name) + + +def datashare_data_set_mapping_create(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + data_set_mapping_name, + kind): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name, kind=kind) + + +def datashare_data_set_mapping_delete(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + data_set_mapping_name): + return client.delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name) + + +def datashare_invitation_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_invitation_show(cmd, client, + resource_group_name, + account_name, + share_name, + invitation_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name) + + +def datashare_invitation_create(cmd, client, + resource_group_name, + account_name, + share_name, + invitation_name, + properties_target_active_directory_id=None, + properties_target_email=None, + properties_target_object_id=None): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name, target_active_directory_id=properties_target_active_directory_id, target_email=properties_target_email, target_object_id=properties_target_object_id) + + +def datashare_invitation_delete(cmd, client, + resource_group_name, + account_name, + share_name, + invitation_name): + return client.delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name) + + +def datashare_share_list(cmd, client, + resource_group_name, + account_name, + skip_token=None): + return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) + + +def datashare_share_show(cmd, client, + resource_group_name, + account_name, + share_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name) + + +def datashare_share_create(cmd, client, + resource_group_name, + account_name, + share_name, + properties_description=None, + properties_share_kind=None, + properties_terms=None): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, description=properties_description, share_kind=properties_share_kind, terms=properties_terms) + + +def datashare_share_delete(cmd, client, + resource_group_name, + account_name, + share_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name) + + +def datashare_share_list_synchronization_detail(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None, + consumer_email=None, + consumer_name=None, + consumer_tenant_name=None, + duration_ms=None, + end_time=None, + message=None, + start_time=None, + status=None, + synchronization_id=None): + return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token, consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) + + +def datashare_share_list_synchronization(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_provider_share_subscription_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_provider_share_subscription_show(cmd, client, + resource_group_name, + account_name, + share_name, + provider_share_subscription_id): + return client.get_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) + + +def datashare_provider_share_subscription_revoke(cmd, client, + resource_group_name, + account_name, + share_name, + provider_share_subscription_id): + return client.begin_revoke(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) + + +def datashare_provider_share_subscription_reinstate(cmd, client, + resource_group_name, + account_name, + share_name, + provider_share_subscription_id): + return client.reinstate(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) + + +def datashare_share_subscription_list(cmd, client, + resource_group_name, + account_name, + skip_token=None): + return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) + + +def datashare_share_subscription_show(cmd, client, + resource_group_name, + account_name, + share_subscription_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) + + +def datashare_share_subscription_create(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + properties_invitation_id, + properties_source_share_location): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, invitation_id=properties_invitation_id, source_share_location=properties_source_share_location) + + +def datashare_share_subscription_delete(cmd, client, + resource_group_name, + account_name, + share_subscription_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) + + +def datashare_share_subscription_list_synchronization_detail(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + synchronization_id, + skip_token=None): + return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token, synchronization_id=synchronization_id) + + +def datashare_share_subscription_synchronize(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + synchronization_mode=None): + return client.begin_synchronize(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_mode=synchronization_mode) + + +def datashare_share_subscription_cancel_synchronization(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + synchronization_id): + return client.begin_cancel_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_id=synchronization_id) + + +def datashare_share_subscription_list_source_share_synchronization_setting(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_source_share_synchronization_setting(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_share_subscription_list_synchronization(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_consumer_source_data_set_list(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_synchronization_setting_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_synchronization_setting_show(cmd, client, + resource_group_name, + account_name, + share_name, + synchronization_setting_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) + + +def datashare_synchronization_setting_create(cmd, client, + resource_group_name, + account_name, + share_name, + synchronization_setting_name, + kind): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name, kind=kind) + + +def datashare_synchronization_setting_delete(cmd, client, + resource_group_name, + account_name, + share_name, + synchronization_setting_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) + + +def datashare_trigger_list(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_trigger_show(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + trigger_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name) + + +def datashare_trigger_create(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + trigger_name, + kind): + return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name, kind=kind) + + +def datashare_trigger_delete(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + trigger_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name) diff --git a/src/datashare/azext_datashare/tests/latest/__init__.py b/src/datashare/azext_datashare/tests/latest/__init__.py new file mode 100644 index 00000000000..944e5654667 --- /dev/null +++ b/src/datashare/azext_datashare/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/datashare/azext_datashare/tests/latest/preparers.py b/src/datashare/azext_datashare/tests/latest/preparers.py new file mode 100644 index 00000000000..48c7b77dcaf --- /dev/null +++ b/src/datashare/azext_datashare/tests/latest/preparers.py @@ -0,0 +1,111 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +from datetime import datetime +from azure.cli.testsdk.preparers import NoTrafficRecordingPreparer +from azure_devtools.scenario_tests import SingleValueReplacer +from azure.cli.testsdk.exceptions import CliTestError +from azure.cli.testsdk.reverse_dependency import get_dummy_cli + + +KEY_RESOURCE_GROUP = 'rg' +KEY_VIRTUAL_NETWORK = 'vnet' +KEY_VNET_SUBNET = 'subnet' + + +class VirtualNetworkPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest.vn', + parameter_name='virtual_network', + resource_group_name=None, + resource_group_key=KEY_RESOURCE_GROUP, + dev_setting_name='AZURE_CLI_TEST_DEV_VIRTUAL_NETWORK_NAME', + random_name_length=24, key=KEY_VIRTUAL_NETWORK): + if ' ' in name_prefix: + raise CliTestError( + 'Error: Space character in name prefix \'%s\'' % name_prefix) + super(VirtualNetworkPreparer, self).__init__( + name_prefix, random_name_length) + self.cli_ctx = get_dummy_cli() + self.parameter_name = parameter_name + self.key = key + self.resource_group_name = resource_group_name + self.resource_group_key = resource_group_key + self.dev_setting_name = os.environ.get(dev_setting_name, None) + + def create_resource(self, name, **kwargs): + if self.dev_setting_name: + return {self.parameter_name: self.dev_setting_name, } + + if not self.resource_group_name: + self.resource_group_name = self.test_class_instance.kwargs.get( + self.resource_group_key) + if not self.resource_group_name: + raise CliTestError("Error: No resource group configured!") + + tags = {'product': 'azurecli', 'cause': 'automation', + 'date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')} + if 'ENV_JOB_NAME' in os.environ: + tags['job'] = os.environ['ENV_JOB_NAME'] + tags = ' '.join(['{}={}'.format(key, value) + for key, value in tags.items()]) + template = 'az network vnet create --resource-group {} --name {} --tag ' + tags + self.live_only_execute(self.cli_ctx, template.format( + self.resource_group_name, name)) + + self.test_class_instance.kwargs[self.key] = name + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + # delete vnet if test is being recorded and if the vnet is not a dev rg + if not self.dev_setting_name: + self.live_only_execute( + self.cli_ctx, 'az network vnet delete --name {} --resource-group {}'.format(name, self.resource_group_name)) + + +class VnetSubnetPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): + def __init__(self, name_prefix='clitest.vn', + parameter_name='subnet', + resource_group_name=None, + resource_group_key=KEY_RESOURCE_GROUP, + vnet_name=None, + vnet_key=KEY_VIRTUAL_NETWORK, + address_prefixes="11.0.0.0/24", + dev_setting_name='AZURE_CLI_TEST_DEV_VNET_SUBNET_NAME', + random_name_length=24, key=KEY_VNET_SUBNET): + if ' ' in name_prefix: + raise CliTestError( + 'Error: Space character in name prefix \'%s\'' % name_prefix) + super(VnetSubnetPreparer, self).__init__( + name_prefix, random_name_length) + self.cli_ctx = get_dummy_cli() + self.parameter_name = parameter_name + self.key = key + self.resource_group_name = resource_group_name + self.resource_group_key = resource_group_key + self.vnet_name = vnet_name + self.vnet_key = vnet_key + self.address_prefixes = address_prefixes + self.dev_setting_name = os.environ.get(dev_setting_name, None) + + def create_resource(self, name, **kwargs): + if self.dev_setting_name: + return {self.parameter_name: self.dev_setting_name, } + + if not self.resource_group_name: + self.resource_group_name = self.test_class_instance.kwargs.get( + self.resource_group_key) + if not self.resource_group_name: + raise CliTestError("Error: No resource group configured!") + if not self.vnet_name: + self.vnet_name = self.test_class_instance.kwargs.get(self.vnet_key) + if not self.vnet_name: + raise CliTestError("Error: No vnet configured!") + + self.test_class_instance.kwargs[self.key] = 'default' + return {self.parameter_name: name} + + def remove_resource(self, name, **kwargs): + pass diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py new file mode 100644 index 00000000000..cc0ba417727 --- /dev/null +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -0,0 +1,404 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import os +import unittest + +from azure_devtools.scenario_tests import AllowLargeResponse +from azure.cli.testsdk import ScenarioTest +from azure.cli.testsdk import ResourceGroupPreparer + + +TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) + + +class DataShareManagementClientScenarioTest(ScenarioTest): + + @ResourceGroupPreparer(name_prefix='cli_test_datashare_SampleResourceGroup'[:9], key='rg') + def test_datashare(self, resource_group): + + self.kwargs.update({ + 'Account1': self.create_random_name(prefix='cli_test_accounts'[:9], length=24), + 'Dataset1': self.create_random_name(prefix='cli_test_data_sets'[:9], length=24), + 'DatasetMapping1': self.create_random_name(prefix='cli_test_data_set_mappings'[:9], length=24), + 'Invitation1': self.create_random_name(prefix='cli_test_invitations'[:9], length=24), + 'Share1': self.create_random_name(prefix='cli_test_shares'[:9], length=24), + 'ShareSubscription1': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), + 'ShareSubscriptions_2': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), + 'ShareSubscriptions_3': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), + 'Dataset1': self.create_random_name(prefix='cli_test_synchronization_settings'[:9], length=24), + 'SynchronizationSettings_2': self.create_random_name(prefix='cli_test_synchronization_settings'[:9], length=24), + 'Trigger1': self.create_random_name(prefix='cli_test_triggers'[:9], length=24), + }) + + self.cmd('az datashare account create ' + '--identity type=SystemAssigned ' + '--location "West US 2" ' + '--tags tag1=Red tag2=White ' + '--account-name "{Account1}" ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az datashare share create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--properties-description "share description" ' + '--properties-share-kind "CopyBased" ' + '--properties-terms "Confidential" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare data-set create ' + '--account-name "{Account1}" ' + '--kind "SqlDWTable" ' + '--data-set-name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare data-set create ' + '--account-name "{Account1}" ' + '--kind "SqlDBTable" ' + '--data-set-name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare data-set create ' + '--account-name "{Account1}" ' + '--kind "KustoDatabase" ' + '--data-set-name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare data-set create ' + '--account-name "{Account1}" ' + '--kind "KustoCluster" ' + '--data-set-name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare data-set create ' + '--account-name "{Account1}" ' + '--kind "Blob" ' + '--data-set-name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare share-subscription create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--properties-invitation-id "12345678-1234-1234-12345678abd" ' + '--properties-source-share-location "eastus2" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare invitation create ' + '--account-name "{Account1}" ' + '--properties-target-email "receiver@microsoft.com" ' + '--invitation-name "{Invitation1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare trigger create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--kind "ScheduleBased" ' + '--trigger-name "{Trigger1}"', + checks=[]) + + self.cmd('az datashare synchronization-setting create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '--kind "ScheduleBased" ' + '--synchronization-setting-name "{Dataset1}"', + checks=[]) + + self.cmd('az datashare data-set-mapping create ' + '--account-name "{Account1}" ' + '--kind "SqlDWTable" ' + '--data-set-mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare data-set-mapping create ' + '--account-name "{Account1}" ' + '--kind "AdlsGen2File" ' + '--data-set-mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare data-set-mapping create ' + '--account-name "{Account1}" ' + '--kind "SqlDBTable" ' + '--data-set-mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare data-set-mapping create ' + '--account-name "{Account1}" ' + '--kind "Blob" ' + '--data-set-mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare data-set-mapping show ' + '--account-name "{Account1}" ' + '--data-set-mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare provider-share-subscription show ' + '--account-name "{Account1}" ' + '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare synchronization-setting show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '--synchronization-setting-name "{SynchronizationSettings_2}"', + checks=[]) + + self.cmd('az datashare trigger show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--trigger-name "{Trigger1}"', + checks=[]) + + self.cmd('az datashare invitation show ' + '--account-name "{Account1}" ' + '--invitation-name "{Invitation1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare share-subscription show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare data-set show ' + '--account-name "{Account1}" ' + '--data-set-name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare share show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare account show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az datashare consumer-invitation show ' + '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' + '--location "East US 2"', + checks=[]) + + self.cmd('az datashare consumer-source-data-set list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_2}"', + checks=[]) + + self.cmd('az datashare data-set-mapping list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare trigger list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare provider-share-subscription list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare synchronization-setting list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare invitation list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare data-set list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare share-subscription list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az datashare share list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az datashare account list ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az datashare account list', + checks=[]) + + self.cmd('az datashare consumer-invitation list', + checks=[]) + + self.cmd('az datashare provider-share-subscription reinstate ' + '--account-name "{Account1}" ' + '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare provider-share-subscription revoke ' + '--account-name "{Account1}" ' + '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_3}"', + checks=[]) + + self.cmd('az datashare share-subscription list-synchronization-detail ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_3}" ' + '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + checks=[]) + + self.cmd('az datashare share-subscription cancel-synchronization ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + checks=[]) + + self.cmd('az datashare share-subscription list-synchronization ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_3}"', + checks=[]) + + self.cmd('az datashare share-subscription synchronize ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--synchronization-mode "Incremental"', + checks=[]) + + self.cmd('az datashare share list-synchronization-detail ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + checks=[]) + + self.cmd('az datashare share list-synchronization ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare account update ' + '--account-name "{Account1}" ' + '--tags tag1=Red tag2=White ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az datashare consumer-invitation reject-invitation ' + '--properties-invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' + '--location "East US 2"', + checks=[]) + + self.cmd('az datashare data-set-mapping delete ' + '--account-name "{Account1}" ' + '--data-set-mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare synchronization-setting delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '--synchronization-setting-name "{SynchronizationSettings_2}"', + checks=[]) + + self.cmd('az datashare trigger delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--trigger-name "{Trigger1}"', + checks=[]) + + self.cmd('az datashare invitation delete ' + '--account-name "{Account1}" ' + '--invitation-name "{Invitation1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare share-subscription delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare data-set delete ' + '--account-name "{Account1}" ' + '--data-set-name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare share delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare account delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}"', + checks=[]) diff --git a/src/datashare/azext_datashare/vendored_sdks/__init__.py b/src/datashare/azext_datashare/vendored_sdks/__init__.py new file mode 100644 index 00000000000..8d86d5a6be1 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/__init__.py @@ -0,0 +1,12 @@ +# 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. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/__init__.py b/src/datashare/azext_datashare/vendored_sdks/datashare/__init__.py new file mode 100644 index 00000000000..eb57d0ef34e --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/__init__.py @@ -0,0 +1,10 @@ +# 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 ._data_share_management_client import DataShareManagementClient +__all__ = ['DataShareManagementClient'] diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py b/src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py new file mode 100644 index 00000000000..1a27f2bab3a --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py @@ -0,0 +1,60 @@ +# 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 typing import Any + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +VERSION = "unknown" + +class DataShareManagementClientConfiguration(Configuration): + """Configuration for DataShareManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription identifier. + :type subscription_id: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(DataShareManagementClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2019-11-01" + self._configure(**kwargs) + self.user_agent_policy.add_user_agent('azsdk-python-datasharemanagementclient/{}'.format(VERSION)) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, **kwargs) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/_data_share_management_client.py b/src/datashare/azext_datashare/vendored_sdks/datashare/_data_share_management_client.py new file mode 100644 index 00000000000..c36cabec848 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/_data_share_management_client.py @@ -0,0 +1,117 @@ +# 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 typing import Any, Optional + +from azure.core import PipelineClient +from msrest import Deserializer, Serializer + +from ._configuration import DataShareManagementClientConfiguration +from .operations import AccountOperations +from .operations import ConsumerInvitationOperations +from .operations import DataSetOperations +from .operations import DataSetMappingOperations +from .operations import InvitationOperations +from .operations import OperationOperations +from .operations import ShareOperations +from .operations import ProviderShareSubscriptionOperations +from .operations import ShareSubscriptionOperations +from .operations import ConsumerSourceDataSetOperations +from .operations import SynchronizationSettingOperations +from .operations import TriggerOperations +from . import models + + +class DataShareManagementClient(object): + """Creates a Microsoft.DataShare management client. + + :ivar account: AccountOperations operations + :vartype account: data_share_management_client.operations.AccountOperations + :ivar consumer_invitation: ConsumerInvitationOperations operations + :vartype consumer_invitation: data_share_management_client.operations.ConsumerInvitationOperations + :ivar data_set: DataSetOperations operations + :vartype data_set: data_share_management_client.operations.DataSetOperations + :ivar data_set_mapping: DataSetMappingOperations operations + :vartype data_set_mapping: data_share_management_client.operations.DataSetMappingOperations + :ivar invitation: InvitationOperations operations + :vartype invitation: data_share_management_client.operations.InvitationOperations + :ivar operation: OperationOperations operations + :vartype operation: data_share_management_client.operations.OperationOperations + :ivar share: ShareOperations operations + :vartype share: data_share_management_client.operations.ShareOperations + :ivar provider_share_subscription: ProviderShareSubscriptionOperations operations + :vartype provider_share_subscription: data_share_management_client.operations.ProviderShareSubscriptionOperations + :ivar share_subscription: ShareSubscriptionOperations operations + :vartype share_subscription: data_share_management_client.operations.ShareSubscriptionOperations + :ivar consumer_source_data_set: ConsumerSourceDataSetOperations operations + :vartype consumer_source_data_set: data_share_management_client.operations.ConsumerSourceDataSetOperations + :ivar synchronization_setting: SynchronizationSettingOperations operations + :vartype synchronization_setting: data_share_management_client.operations.SynchronizationSettingOperations + :ivar trigger: TriggerOperations operations + :vartype trigger: data_share_management_client.operations.TriggerOperations + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription identifier. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, + credential, # type: "TokenCredential" + subscription_id, # type: str + base_url=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> None + if not base_url: + base_url = 'https://management.azure.com' + self._config = DataShareManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.account = AccountOperations( + self._client, self._config, self._serialize, self._deserialize) + self.consumer_invitation = ConsumerInvitationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.data_set = DataSetOperations( + self._client, self._config, self._serialize, self._deserialize) + self.data_set_mapping = DataSetMappingOperations( + self._client, self._config, self._serialize, self._deserialize) + self.invitation = InvitationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operation = OperationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.share = ShareOperations( + self._client, self._config, self._serialize, self._deserialize) + self.provider_share_subscription = ProviderShareSubscriptionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.share_subscription = ShareSubscriptionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.consumer_source_data_set = ConsumerSourceDataSetOperations( + self._client, self._config, self._serialize, self._deserialize) + self.synchronization_setting = SynchronizationSettingOperations( + self._client, self._config, self._serialize, self._deserialize) + self.trigger = TriggerOperations( + self._client, self._config, self._serialize, self._deserialize) + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> DataShareManagementClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/__init__.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/__init__.py new file mode 100644 index 00000000000..e14f4db6b79 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/__init__.py @@ -0,0 +1,10 @@ +# 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 ._data_share_management_client_async import DataShareManagementClient +__all__ = ['DataShareManagementClient'] diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py new file mode 100644 index 00000000000..1c3a7221af6 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py @@ -0,0 +1,58 @@ +# 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 typing import Any + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +VERSION = "unknown" + +class DataShareManagementClientConfiguration(Configuration): + """Configuration for DataShareManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription identifier. + :type subscription_id: str + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + **kwargs: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + super(DataShareManagementClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.subscription_id = subscription_id + self.api_version = "2019-11-01" + self._configure(**kwargs) + self.user_agent_policy.add_user_agent('azsdk-python-datasharemanagementclient/{}'.format(VERSION)) + + def _configure( + self, + **kwargs: Any + ) -> None: + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, **kwargs) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_data_share_management_client_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_data_share_management_client_async.py new file mode 100644 index 00000000000..0609b8e2594 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_data_share_management_client_async.py @@ -0,0 +1,113 @@ +# 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 typing import Any, Optional + +from azure.core import AsyncPipelineClient +from msrest import Deserializer, Serializer + +from ._configuration_async import DataShareManagementClientConfiguration +from .operations_async import AccountOperations +from .operations_async import ConsumerInvitationOperations +from .operations_async import DataSetOperations +from .operations_async import DataSetMappingOperations +from .operations_async import InvitationOperations +from .operations_async import OperationOperations +from .operations_async import ShareOperations +from .operations_async import ProviderShareSubscriptionOperations +from .operations_async import ShareSubscriptionOperations +from .operations_async import ConsumerSourceDataSetOperations +from .operations_async import SynchronizationSettingOperations +from .operations_async import TriggerOperations +from .. import models + + +class DataShareManagementClient(object): + """Creates a Microsoft.DataShare management client. + + :ivar account: AccountOperations operations + :vartype account: data_share_management_client.aio.operations_async.AccountOperations + :ivar consumer_invitation: ConsumerInvitationOperations operations + :vartype consumer_invitation: data_share_management_client.aio.operations_async.ConsumerInvitationOperations + :ivar data_set: DataSetOperations operations + :vartype data_set: data_share_management_client.aio.operations_async.DataSetOperations + :ivar data_set_mapping: DataSetMappingOperations operations + :vartype data_set_mapping: data_share_management_client.aio.operations_async.DataSetMappingOperations + :ivar invitation: InvitationOperations operations + :vartype invitation: data_share_management_client.aio.operations_async.InvitationOperations + :ivar operation: OperationOperations operations + :vartype operation: data_share_management_client.aio.operations_async.OperationOperations + :ivar share: ShareOperations operations + :vartype share: data_share_management_client.aio.operations_async.ShareOperations + :ivar provider_share_subscription: ProviderShareSubscriptionOperations operations + :vartype provider_share_subscription: data_share_management_client.aio.operations_async.ProviderShareSubscriptionOperations + :ivar share_subscription: ShareSubscriptionOperations operations + :vartype share_subscription: data_share_management_client.aio.operations_async.ShareSubscriptionOperations + :ivar consumer_source_data_set: ConsumerSourceDataSetOperations operations + :vartype consumer_source_data_set: data_share_management_client.aio.operations_async.ConsumerSourceDataSetOperations + :ivar synchronization_setting: SynchronizationSettingOperations operations + :vartype synchronization_setting: data_share_management_client.aio.operations_async.SynchronizationSettingOperations + :ivar trigger: TriggerOperations operations + :vartype trigger: data_share_management_client.aio.operations_async.TriggerOperations + :param credential: Credential needed for the client to connect to Azure. + :type credential: azure.core.credentials.TokenCredential + :param subscription_id: The subscription identifier. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, + credential: "TokenCredential", + subscription_id: str, + base_url: Optional[str] = None, + **kwargs: Any + ) -> None: + if not base_url: + base_url = 'https://management.azure.com' + self._config = DataShareManagementClientConfiguration(credential, subscription_id, **kwargs) + self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.account = AccountOperations( + self._client, self._config, self._serialize, self._deserialize) + self.consumer_invitation = ConsumerInvitationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.data_set = DataSetOperations( + self._client, self._config, self._serialize, self._deserialize) + self.data_set_mapping = DataSetMappingOperations( + self._client, self._config, self._serialize, self._deserialize) + self.invitation = InvitationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.operation = OperationOperations( + self._client, self._config, self._serialize, self._deserialize) + self.share = ShareOperations( + self._client, self._config, self._serialize, self._deserialize) + self.provider_share_subscription = ProviderShareSubscriptionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.share_subscription = ShareSubscriptionOperations( + self._client, self._config, self._serialize, self._deserialize) + self.consumer_source_data_set = ConsumerSourceDataSetOperations( + self._client, self._config, self._serialize, self._deserialize) + self.synchronization_setting = SynchronizationSettingOperations( + self._client, self._config, self._serialize, self._deserialize) + self.trigger = TriggerOperations( + self._client, self._config, self._serialize, self._deserialize) + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "DataShareManagementClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/__init__.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/__init__.py new file mode 100644 index 00000000000..c50fe5e6a33 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/__init__.py @@ -0,0 +1,35 @@ +# 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 ._account_operations_async import AccountOperations +from ._consumer_invitation_operations_async import ConsumerInvitationOperations +from ._data_set_operations_async import DataSetOperations +from ._data_set_mapping_operations_async import DataSetMappingOperations +from ._invitation_operations_async import InvitationOperations +from ._operation_operations_async import OperationOperations +from ._share_operations_async import ShareOperations +from ._provider_share_subscription_operations_async import ProviderShareSubscriptionOperations +from ._share_subscription_operations_async import ShareSubscriptionOperations +from ._consumer_source_data_set_operations_async import ConsumerSourceDataSetOperations +from ._synchronization_setting_operations_async import SynchronizationSettingOperations +from ._trigger_operations_async import TriggerOperations + +__all__ = [ + 'AccountOperations', + 'ConsumerInvitationOperations', + 'DataSetOperations', + 'DataSetMappingOperations', + 'InvitationOperations', + 'OperationOperations', + 'ShareOperations', + 'ProviderShareSubscriptionOperations', + 'ShareSubscriptionOperations', + 'ConsumerSourceDataSetOperations', + 'SynchronizationSettingOperations', + 'TriggerOperations', +] diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py new file mode 100644 index 00000000000..9df82e713de --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py @@ -0,0 +1,521 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class AccountOperations: + """AccountOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + **kwargs + ) -> "models.Account": + """Get an account. + + Get an account under a resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Account or the result of cls(response) + :rtype: ~data_share_management_client.models.Account + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.Account"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + async def _create_initial( + self, + resource_group_name: str, + account_name: str, + identity: "models.Identity", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ) -> "models.Account": + cls: ClsType["models.Account"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + account = models.Account(location=location, tags=tags, identity=identity) + api_version = "2019-11-01" + + # Construct URL + url = self._create_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(account, 'Account') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Account', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + identity: "models.Identity", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ) -> "models.Account": + """Create an account. + + Create an account in the given resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param identity: Identity of resource. + :type identity: ~data_share_management_client.models.Identity + :param location: Location of the azure resource. + :type location: str + :param tags: Tags on the azure resource. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns Account + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Account] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.Account"] = kwargs.pop('cls', None ) + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + account_name=account_name, + identity=identity, + location=location, + tags=tags, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + async def _delete_initial( + self, + resource_group_name: str, + account_name: str, + **kwargs + ) -> "models.OperationResponse": + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + **kwargs + ) -> "models.OperationResponse": + """DeleteAccount. + + Delete an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + async def update( + self, + resource_group_name: str, + account_name: str, + tags: Optional[Dict[str, str]] = None, + **kwargs + ) -> "models.Account": + """Patch an account. + + Patch a given account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param tags: Tags on the azure resource. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Account or the result of cls(response) + :rtype: ~data_share_management_client.models.Account + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.Account"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + account_update_parameters = models.AccountUpdateParameters(tags=tags) + api_version = "2019-11-01" + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(account_update_parameters, 'AccountUpdateParameters') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + def list_by_subscription( + self, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.AccountList": + """List Accounts in Subscription. + + List Accounts in a subscription. + + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AccountList or the result of cls(response) + :rtype: ~data_share_management_client.models.AccountList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.AccountList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AccountList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts'} + + def list_by_resource_group( + self, + resource_group_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.AccountList": + """List Accounts in ResourceGroup. + + List Accounts in a resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AccountList or the result of cls(response) + :rtype: ~data_share_management_client.models.AccountList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.AccountList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('AccountList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py new file mode 100644 index 00000000000..20f0863e494 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py @@ -0,0 +1,222 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ConsumerInvitationOperations: + """ConsumerInvitationOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def reject_invitation( + self, + location: str, + invitation_id: str, + **kwargs + ) -> "models.ConsumerInvitation": + """Reject an invitation. + + Rejects the invitation identified by invitationId. + + :param location: Location of the invitation. + :type location: str + :param invitation_id: Unique id of the invitation. + :type invitation_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerInvitation or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerInvitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ConsumerInvitation"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + invitation = models.ConsumerInvitation(invitation_id=invitation_id) + api_version = "2019-11-01" + + # Construct URL + url = self.reject_invitation.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(invitation, 'ConsumerInvitation') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ConsumerInvitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + reject_invitation.metadata = {'url': '/providers/Microsoft.DataShare/locations/{location}/RejectInvitation'} + + async def get( + self, + location: str, + invitation_id: str, + **kwargs + ) -> "models.ConsumerInvitation": + """Get an invitation. + + Gets the invitation identified by invitationId. + + :param location: Location of the invitation. + :type location: str + :param invitation_id: An invitation id. + :type invitation_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerInvitation or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerInvitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ConsumerInvitation"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'invitationId': self._serialize.url("invitation_id", invitation_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ConsumerInvitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/providers/Microsoft.DataShare/locations/{location}/consumerInvitations/{invitationId}'} + + def list_invitation( + self, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.ConsumerInvitationList": + """Lists invitations. + + List the invitations. + + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerInvitationList or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerInvitationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ConsumerInvitationList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_invitation.metadata['url'] + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ConsumerInvitationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_invitation.metadata = {'url': '/providers/Microsoft.DataShare/ListInvitations'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py new file mode 100644 index 00000000000..abf8b7bce8f --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py @@ -0,0 +1,121 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ConsumerSourceDataSetOperations: + """ConsumerSourceDataSetOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_share_subscription( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.ConsumerSourceDataSetList": + """Get source dataSets of a shareSubscription. + + Get source dataSets of a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerSourceDataSetList or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerSourceDataSetList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ConsumerSourceDataSetList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ConsumerSourceDataSetList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_share_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/ConsumerSourceDataSets'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py new file mode 100644 index 00000000000..6898ca6b0f5 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py @@ -0,0 +1,327 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class DataSetMappingOperations: + """DataSetMappingOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + data_set_mapping_name: str, + **kwargs + ) -> "models.DataSetMapping": + """Get a DataSetMapping in a shareSubscription. + + Get DataSetMapping in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param data_set_mapping_name: The name of the dataSetMapping. + :type data_set_mapping_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetMapping or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetMapping + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.DataSetMapping"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'dataSetMappingName': self._serialize.url("data_set_mapping_name", data_set_mapping_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('DataSetMapping', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + data_set_mapping_name: str, + kind: Union[str, "models.Kind"], + **kwargs + ) -> "models.DataSetMapping": + """Create a DataSetMapping. + + Maps a source data set in the source share to a sink data set in the share subscription. + Enables copying the data set from source to destination. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param data_set_mapping_name: The name of the dataSetMapping. + :type data_set_mapping_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetMapping or DataSetMapping or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetMapping or ~data_share_management_client.models.DataSetMapping + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.DataSetMapping"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + data_set_mapping = models.DataSetMapping(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'dataSetMappingName': self._serialize.url("data_set_mapping_name", data_set_mapping_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(data_set_mapping, 'DataSetMapping') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DataSetMapping', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DataSetMapping', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + data_set_mapping_name: str, + **kwargs + ) -> None: + """Delete a DataSetMapping in a shareSubscription. + + Delete DataSetMapping in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param data_set_mapping_name: The name of the dataSetMapping. + :type data_set_mapping_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'dataSetMappingName': self._serialize.url("data_set_mapping_name", data_set_mapping_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}'} + + def list_by_share_subscription( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.DataSetMappingList": + """List DataSetMappings in a share subscription. + + List DataSetMappings in a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetMappingList or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetMappingList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.DataSetMappingList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('DataSetMappingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_share_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py new file mode 100644 index 00000000000..a336706875a --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py @@ -0,0 +1,365 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class DataSetOperations: + """DataSetOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + share_name: str, + data_set_name: str, + **kwargs + ) -> "models.DataSet": + """Get a DataSet in a share. + + Get DataSet in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param data_set_name: The name of the dataSet. + :type data_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSet or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSet + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.DataSet"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'dataSetName': self._serialize.url("data_set_name", data_set_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('DataSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + share_name: str, + data_set_name: str, + kind: Union[str, "models.Kind"], + **kwargs + ) -> "models.DataSet": + """Create a DataSet. + + Adds a new data set to an existing share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param data_set_name: The name of the dataSet. + :type data_set_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSet or DataSet or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSet or ~data_share_management_client.models.DataSet + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.DataSet"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + data_set = models.DataSet(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'dataSetName': self._serialize.url("data_set_name", data_set_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(data_set, 'DataSet') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DataSet', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DataSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + async def _delete_initial( + self, + resource_group_name: str, + account_name: str, + share_name: str, + data_set_name: str, + **kwargs + ) -> None: + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'dataSetName': self._serialize.url("data_set_name", data_set_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + share_name: str, + data_set_name: str, + **kwargs + ) -> None: + """Delete a DataSet in a share. + + Delete DataSet in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param data_set_name: The name of the dataSet. + :type data_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType[None] = kwargs.pop('cls', None ) + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + data_set_name=data_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + def list_by_share( + self, + resource_group_name: str, + account_name: str, + share_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.DataSetList": + """List DataSets in a share. + + List DataSets in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetList or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.DataSetList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('DataSetList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py new file mode 100644 index 00000000000..a514fda2cc0 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py @@ -0,0 +1,334 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class InvitationOperations: + """InvitationOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + share_name: str, + invitation_name: str, + **kwargs + ) -> "models.Invitation": + """Get an invitation in a share. + + Get Invitation in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param invitation_name: The name of the invitation. + :type invitation_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Invitation or the result of cls(response) + :rtype: ~data_share_management_client.models.Invitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.Invitation"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'invitationName': self._serialize.url("invitation_name", invitation_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Invitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + share_name: str, + invitation_name: str, + target_active_directory_id: Optional[str] = None, + target_email: Optional[str] = None, + target_object_id: Optional[str] = None, + **kwargs + ) -> "models.Invitation": + """Create an invitation. + + Sends a new invitation to a recipient to access a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param invitation_name: The name of the invitation. + :type invitation_name: str + :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. + :type target_active_directory_id: str + :param target_email: The email the invitation is directed to. + :type target_email: str + :param target_object_id: The target user or application Id that invitation is being sent to. + Must be specified along TargetActiveDirectoryId. This enables sending + invitations to specific users or applications in an AD tenant. + :type target_object_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Invitation or Invitation or the result of cls(response) + :rtype: ~data_share_management_client.models.Invitation or ~data_share_management_client.models.Invitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.Invitation"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + invitation = models.Invitation(target_active_directory_id=target_active_directory_id, target_email=target_email, target_object_id=target_object_id) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'invitationName': self._serialize.url("invitation_name", invitation_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(invitation, 'Invitation') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Invitation', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Invitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + share_name: str, + invitation_name: str, + **kwargs + ) -> None: + """Delete an invitation in a share. + + Delete Invitation in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param invitation_name: The name of the invitation. + :type invitation_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType[None] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'invitationName': self._serialize.url("invitation_name", invitation_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}'} + + def list_by_share( + self, + resource_group_name: str, + account_name: str, + share_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.InvitationList": + """List invitations in a share. + + List all Invitations in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: InvitationList or the result of cls(response) + :rtype: ~data_share_management_client.models.InvitationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.InvitationList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('InvitationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py new file mode 100644 index 00000000000..98ef7e89d4f --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py @@ -0,0 +1,100 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class OperationOperations: + """OperationOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs + ) -> "models.OperationList": + """List of available operations. + + Lists the available operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OperationList or the result of cls(response) + :rtype: ~data_share_management_client.models.OperationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.OperationList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('OperationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/providers/Microsoft.DataShare/operations'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py new file mode 100644 index 00000000000..10d4e876a9a --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py @@ -0,0 +1,363 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ProviderShareSubscriptionOperations: + """ProviderShareSubscriptionOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get_by_share( + self, + resource_group_name: str, + account_name: str, + share_name: str, + provider_share_subscription_id: str, + **kwargs + ) -> "models.ProviderShareSubscription": + """Get share subscription in a provider share. + + Get share subscription in a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param provider_share_subscription_id: To locate shareSubscription. + :type provider_share_subscription_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProviderShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ProviderShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'providerShareSubscriptionId': self._serialize.url("provider_share_subscription_id", provider_share_subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}'} + + def list_by_share( + self, + resource_group_name: str, + account_name: str, + share_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.ProviderShareSubscriptionList": + """List share subscriptions in a provider share. + + List of available share subscriptions to a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProviderShareSubscriptionList or the result of cls(response) + :rtype: ~data_share_management_client.models.ProviderShareSubscriptionList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ProviderShareSubscriptionList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ProviderShareSubscriptionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions'} + + async def _revoke_initial( + self, + resource_group_name: str, + account_name: str, + share_name: str, + provider_share_subscription_id: str, + **kwargs + ) -> "models.ProviderShareSubscription": + cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._revoke_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'providerShareSubscriptionId': self._serialize.url("provider_share_subscription_id", provider_share_subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _revoke_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/revoke'} + + async def revoke( + self, + resource_group_name: str, + account_name: str, + share_name: str, + provider_share_subscription_id: str, + **kwargs + ) -> "models.ProviderShareSubscription": + """Revoke share subscription in a provider share. + + Revoke share subscription in a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param provider_share_subscription_id: To locate shareSubscription. + :type provider_share_subscription_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns ProviderShareSubscription + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ProviderShareSubscription] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) + raw_result = await self._revoke_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + provider_share_subscription_id=provider_share_subscription_id, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + revoke.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/revoke'} + + async def reinstate( + self, + resource_group_name: str, + account_name: str, + share_name: str, + provider_share_subscription_id: str, + **kwargs + ) -> "models.ProviderShareSubscription": + """Reinstate share subscription in a provider share. + + Reinstate share subscription in a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param provider_share_subscription_id: To locate shareSubscription. + :type provider_share_subscription_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProviderShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ProviderShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.reinstate.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'providerShareSubscriptionId': self._serialize.url("provider_share_subscription_id", provider_share_subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + reinstate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/reinstate'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py new file mode 100644 index 00000000000..09710475c99 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py @@ -0,0 +1,557 @@ +# 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 datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ShareOperations: + """ShareOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + share_name: str, + **kwargs + ) -> "models.Share": + """Get a share. + + Get a specified share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Share or the result of cls(response) + :rtype: ~data_share_management_client.models.Share + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.Share"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Share', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + share_name: str, + description: Optional[str] = None, + share_kind: Optional[Union[str, "models.ShareKind"]] = None, + terms: Optional[str] = None, + **kwargs + ) -> "models.Share": + """Create a share. + + Create a share in the given account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param description: Share description. + :type description: str + :param share_kind: Share kind. + :type share_kind: str or ~data_share_management_client.models.ShareKind + :param terms: Share terms. + :type terms: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Share or Share or the result of cls(response) + :rtype: ~data_share_management_client.models.Share or ~data_share_management_client.models.Share + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.Share"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + share = models.Share(description=description, share_kind=share_kind, terms=terms) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share, 'Share') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Share', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Share', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + async def _delete_initial( + self, + resource_group_name: str, + account_name: str, + share_name: str, + **kwargs + ) -> "models.OperationResponse": + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + share_name: str, + **kwargs + ) -> "models.OperationResponse": + """Delete a share. + + Deletes a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + def list_by_account( + self, + resource_group_name: str, + account_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.ShareList": + """List shares in an account. + + List of available shares under an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ShareList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_account.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ShareList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares'} + + def list_synchronization( + self, + resource_group_name: str, + account_name: str, + share_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.ShareSynchronizationList": + """List synchronizations of a share. + + List Synchronizations in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSynchronizationList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSynchronizationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ShareSynchronizationList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ShareSynchronizationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_synchronization.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizations'} + + def list_synchronization_detail( + self, + resource_group_name: str, + account_name: str, + share_name: str, + skip_token: Optional[str] = None, + consumer_email: Optional[str] = None, + consumer_name: Optional[str] = None, + consumer_tenant_name: Optional[str] = None, + duration_ms: Optional[int] = None, + end_time: Optional[datetime.datetime] = None, + message: Optional[str] = None, + start_time: Optional[datetime.datetime] = None, + status: Optional[str] = None, + synchronization_id: Optional[str] = None, + **kwargs + ) -> "models.SynchronizationDetailsList": + """List synchronization details. + + List data set level details for a share synchronization. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :param consumer_email: Email of the user who created the synchronization. + :type consumer_email: str + :param consumer_name: Name of the user who created the synchronization. + :type consumer_name: str + :param consumer_tenant_name: Tenant name of the consumer who created the synchronization. + :type consumer_tenant_name: str + :param duration_ms: synchronization duration. + :type duration_ms: int + :param end_time: End time of synchronization. + :type end_time: ~datetime.datetime + :param message: message of synchronization. + :type message: str + :param start_time: start time of synchronization. + :type start_time: ~datetime.datetime + :param status: Raw Status. + :type status: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationDetailsList or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationDetailsList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.SynchronizationDetailsList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + share_synchronization = models.ShareSynchronization(consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization_detail.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_synchronization, 'ShareSynchronization') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SynchronizationDetailsList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_synchronization_detail.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizationDetails'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py new file mode 100644 index 00000000000..68df8d65aed --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py @@ -0,0 +1,840 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class ShareSubscriptionOperations: + """ShareSubscriptionOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + **kwargs + ) -> "models.ShareSubscription": + """Get a shareSubscription in an account. + + Get shareSubscription in an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ShareSubscription"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + invitation_id: str, + source_share_location: str, + **kwargs + ) -> "models.ShareSubscription": + """Create a shareSubscription in an account. + + Create shareSubscription in an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param invitation_id: The invitation id. + :type invitation_id: str + :param source_share_location: Source share location. + :type source_share_location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscription or ShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscription or ~data_share_management_client.models.ShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ShareSubscription"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + share_subscription = models.ShareSubscription(invitation_id=invitation_id, source_share_location=source_share_location) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_subscription, 'ShareSubscription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ShareSubscription', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + async def _delete_initial( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + **kwargs + ) -> "models.OperationResponse": + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + **kwargs + ) -> "models.OperationResponse": + """Delete a shareSubscription in an account. + + Delete shareSubscription in an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + def list_by_account( + self, + resource_group_name: str, + account_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.ShareSubscriptionList": + """List share subscriptions in an account. + + List of available share subscriptions under an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscriptionList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscriptionList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ShareSubscriptionList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_account.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions'} + + def list_source_share_synchronization_setting( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.SourceShareSynchronizationSettingList": + """Get synchronization settings set on a share. + + Get source share synchronization settings for a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SourceShareSynchronizationSettingList or the result of cls(response) + :rtype: ~data_share_management_client.models.SourceShareSynchronizationSettingList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.SourceShareSynchronizationSettingList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_source_share_synchronization_setting.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SourceShareSynchronizationSettingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_source_share_synchronization_setting.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSourceShareSynchronizationSettings'} + + def list_synchronization( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.ShareSubscriptionSynchronizationList": + """List synchronizations of a share subscription. + + List Synchronizations in a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscriptionSynchronizationList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscriptionSynchronizationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.ShareSubscriptionSynchronizationList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionSynchronizationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_synchronization.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizations'} + + def list_synchronization_detail( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + synchronization_id: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.SynchronizationDetailsList": + """List synchronization details. + + List data set level details for a share subscription synchronization. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationDetailsList or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationDetailsList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.SynchronizationDetailsList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization_detail.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SynchronizationDetailsList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_synchronization_detail.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizationDetails'} + + async def _synchronize_initial( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + synchronization_mode: Optional[Union[str, "models.SynchronizationMode"]] = None, + **kwargs + ) -> "models.ShareSubscriptionSynchronization": + cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + synchronize = models.Synchronize(synchronization_mode=synchronization_mode) + api_version = "2019-11-01" + + # Construct URL + url = self._synchronize_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(synchronize, 'Synchronize') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _synchronize_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/Synchronize'} + + async def synchronize( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + synchronization_mode: Optional[Union[str, "models.SynchronizationMode"]] = None, + **kwargs + ) -> "models.ShareSubscriptionSynchronization": + """Initiate a copy. + + Initiate an asynchronous data share job. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param synchronization_mode: Synchronization mode. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns ShareSubscriptionSynchronization + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) + raw_result = await self._synchronize_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + synchronization_mode=synchronization_mode, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + synchronize.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/Synchronize'} + + async def _cancel_synchronization_initial( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + synchronization_id: str, + **kwargs + ) -> "models.ShareSubscriptionSynchronization": + cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + api_version = "2019-11-01" + + # Construct URL + url = self._cancel_synchronization_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _cancel_synchronization_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization'} + + async def cancel_synchronization( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + synchronization_id: str, + **kwargs + ) -> "models.ShareSubscriptionSynchronization": + """Request to cancel a synchronization. + + Request cancellation of a data share snapshot. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns ShareSubscriptionSynchronization + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) + raw_result = await self._cancel_synchronization_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + synchronization_id=synchronization_id, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + cancel_synchronization.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py new file mode 100644 index 00000000000..63c19ba7a8e --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py @@ -0,0 +1,374 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class SynchronizationSettingOperations: + """SynchronizationSettingOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + share_name: str, + synchronization_setting_name: str, + **kwargs + ) -> "models.SynchronizationSetting": + """Get a synchronizationSetting in a share. + + Get synchronizationSetting in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param synchronization_setting_name: The name of the synchronizationSetting. + :type synchronization_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationSetting or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationSetting + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.SynchronizationSetting"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'synchronizationSettingName': self._serialize.url("synchronization_setting_name", synchronization_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('SynchronizationSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + share_name: str, + synchronization_setting_name: str, + kind: Union[str, "models.Kind"], + **kwargs + ) -> "models.SynchronizationSetting": + """Create or update a synchronizationSetting. + + Adds a new synchronization setting to an existing share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param synchronization_setting_name: The name of the synchronizationSetting. + :type synchronization_setting_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationSetting or SynchronizationSetting or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationSetting or ~data_share_management_client.models.SynchronizationSetting + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.SynchronizationSetting"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + synchronization_setting = models.SynchronizationSetting(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'synchronizationSettingName': self._serialize.url("synchronization_setting_name", synchronization_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(synchronization_setting, 'SynchronizationSetting') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('SynchronizationSetting', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('SynchronizationSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + async def _delete_initial( + self, + resource_group_name: str, + account_name: str, + share_name: str, + synchronization_setting_name: str, + **kwargs + ) -> "models.OperationResponse": + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'synchronizationSettingName': self._serialize.url("synchronization_setting_name", synchronization_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + share_name: str, + synchronization_setting_name: str, + **kwargs + ) -> "models.OperationResponse": + """Delete a synchronizationSetting in a share. + + Delete synchronizationSetting in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param synchronization_setting_name: The name of the synchronizationSetting. + :type synchronization_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + synchronization_setting_name=synchronization_setting_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + def list_by_share( + self, + resource_group_name: str, + account_name: str, + share_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.SynchronizationSettingList": + """List synchronizationSettings in a share. + + List synchronizationSettings in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationSettingList or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationSettingList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.SynchronizationSettingList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('SynchronizationSettingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py new file mode 100644 index 00000000000..a8d96d3327a --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py @@ -0,0 +1,416 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class TriggerOperations: + """TriggerOperations async operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + async def get( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + trigger_name: str, + **kwargs + ) -> "models.Trigger": + """Get a Trigger in a shareSubscription. + + Get Trigger in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param trigger_name: The name of the trigger. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Trigger or the result of cls(response) + :rtype: ~data_share_management_client.models.Trigger + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.Trigger"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Trigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + async def _create_initial( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + trigger_name: str, + kind: Union[str, "models.Kind"], + **kwargs + ) -> "models.Trigger": + cls: ClsType["models.Trigger"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + + trigger = models.Trigger(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self._create_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(trigger, 'Trigger') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Trigger', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Trigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + async def create( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + trigger_name: str, + kind: Union[str, "models.Kind"], + **kwargs + ) -> "models.Trigger": + """Create a Trigger. + + This method creates a trigger for a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param trigger_name: The name of the trigger. + :type trigger_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns Trigger + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Trigger] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.Trigger"] = kwargs.pop('cls', None ) + raw_result = await self._create_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + trigger_name=trigger_name, + kind=kind, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Trigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + async def _delete_initial( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + trigger_name: str, + **kwargs + ) -> "models.OperationResponse": + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + async def delete( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + trigger_name: str, + **kwargs + ) -> "models.OperationResponse": + """Delete a Trigger in a shareSubscription. + + Delete Trigger in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param trigger_name: The name of the trigger. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) + cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + trigger_name=trigger_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + return await async_poller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + def list_by_share_subscription( + self, + resource_group_name: str, + account_name: str, + share_subscription_name: str, + skip_token: Optional[str] = None, + **kwargs + ) -> "models.TriggerList": + """List Triggers in a share subscription. + + List Triggers in a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: TriggerList or the result of cls(response) + :rtype: ~data_share_management_client.models.TriggerList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls: ClsType["models.TriggerList"] = kwargs.pop('cls', None ) + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters: Dict[str, Any] = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters: Dict[str, Any] = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('TriggerList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_share_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py new file mode 100644 index 00000000000..687379bca3a --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py @@ -0,0 +1,348 @@ +# 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 ._models_py3 import Account + from ._models_py3 import AccountList + from ._models_py3 import AccountProperties + from ._models_py3 import AccountUpdateParameters + from ._models_py3 import AdlsGen1FileDataSet + from ._models_py3 import AdlsGen1FileProperties + from ._models_py3 import AdlsGen1FolderDataSet + from ._models_py3 import AdlsGen1FolderProperties + from ._models_py3 import AdlsGen2FileDataSet + from ._models_py3 import AdlsGen2FileDataSetMapping + from ._models_py3 import AdlsGen2FileDataSetMappingProperties + from ._models_py3 import AdlsGen2FileProperties + from ._models_py3 import AdlsGen2FileSystemDataSet + from ._models_py3 import AdlsGen2FileSystemDataSetMapping + from ._models_py3 import AdlsGen2FileSystemDataSetMappingProperties + from ._models_py3 import AdlsGen2FileSystemProperties + from ._models_py3 import AdlsGen2FolderDataSet + from ._models_py3 import AdlsGen2FolderDataSetMapping + from ._models_py3 import AdlsGen2FolderDataSetMappingProperties + from ._models_py3 import AdlsGen2FolderProperties + from ._models_py3 import BlobContainerDataSet + from ._models_py3 import BlobContainerDataSetMapping + from ._models_py3 import BlobContainerMappingProperties + from ._models_py3 import BlobContainerProperties + from ._models_py3 import BlobDataSet + from ._models_py3 import BlobDataSetMapping + from ._models_py3 import BlobFolderDataSet + from ._models_py3 import BlobFolderDataSetMapping + from ._models_py3 import BlobFolderMappingProperties + from ._models_py3 import BlobFolderProperties + from ._models_py3 import BlobMappingProperties + from ._models_py3 import BlobProperties + from ._models_py3 import ConsumerInvitation + from ._models_py3 import ConsumerInvitationList + from ._models_py3 import ConsumerInvitationProperties + from ._models_py3 import ConsumerSourceDataSet + from ._models_py3 import ConsumerSourceDataSetList + from ._models_py3 import ConsumerSourceDataSetProperties + from ._models_py3 import DataSet + from ._models_py3 import DataSetList + from ._models_py3 import DataSetMapping + from ._models_py3 import DataSetMappingList + from ._models_py3 import DataShareError, DataShareErrorException + from ._models_py3 import DataShareErrorInfo + from ._models_py3 import DefaultDto + from ._models_py3 import DimensionProperties + from ._models_py3 import Identity + from ._models_py3 import Invitation + from ._models_py3 import InvitationList + from ._models_py3 import InvitationProperties + from ._models_py3 import KustoClusterDataSet + from ._models_py3 import KustoClusterDataSetMapping + from ._models_py3 import KustoClusterDataSetMappingProperties + from ._models_py3 import KustoClusterDataSetProperties + from ._models_py3 import KustoDatabaseDataSet + from ._models_py3 import KustoDatabaseDataSetMapping + from ._models_py3 import KustoDatabaseDataSetMappingProperties + from ._models_py3 import KustoDatabaseDataSetProperties + from ._models_py3 import OperationList + from ._models_py3 import OperationMetaLogSpecification + from ._models_py3 import OperationMetaMetricSpecification + from ._models_py3 import OperationMetaPropertyInfo + from ._models_py3 import OperationMetaServiceSpecification + from ._models_py3 import OperationModel + from ._models_py3 import OperationModelProperties + from ._models_py3 import OperationResponse + from ._models_py3 import ProviderShareSubscription + from ._models_py3 import ProviderShareSubscriptionList + from ._models_py3 import ProviderShareSubscriptionProperties + from ._models_py3 import ProxyDto + from ._models_py3 import ScheduledSourceShareSynchronizationSettingProperties + from ._models_py3 import ScheduledSourceSynchronizationSetting + from ._models_py3 import ScheduledSynchronizationSetting + from ._models_py3 import ScheduledSynchronizationSettingProperties + from ._models_py3 import ScheduledTrigger + from ._models_py3 import ScheduledTriggerProperties + from ._models_py3 import Share + from ._models_py3 import ShareList + from ._models_py3 import ShareProperties + from ._models_py3 import ShareSubscription + from ._models_py3 import ShareSubscriptionList + from ._models_py3 import ShareSubscriptionProperties + from ._models_py3 import ShareSubscriptionSynchronization + from ._models_py3 import ShareSubscriptionSynchronizationList + from ._models_py3 import ShareSynchronization + from ._models_py3 import ShareSynchronizationList + from ._models_py3 import SourceShareSynchronizationSetting + from ._models_py3 import SourceShareSynchronizationSettingList + from ._models_py3 import SqlDbTableDataSet + from ._models_py3 import SqlDbTableDataSetMapping + from ._models_py3 import SqlDbTableDataSetMappingProperties + from ._models_py3 import SqlDbTableProperties + from ._models_py3 import SqlDwTableDataSet + from ._models_py3 import SqlDwTableDataSetMapping + from ._models_py3 import SqlDwTableDataSetMappingProperties + from ._models_py3 import SqlDwTableProperties + from ._models_py3 import SynchronizationDetails + from ._models_py3 import SynchronizationDetailsList + from ._models_py3 import SynchronizationSetting + from ._models_py3 import SynchronizationSettingList + from ._models_py3 import Synchronize + from ._models_py3 import Trigger + from ._models_py3 import TriggerList +except (SyntaxError, ImportError): + from ._models import Account # type: ignore + from ._models import AccountList # type: ignore + from ._models import AccountProperties # type: ignore + from ._models import AccountUpdateParameters # type: ignore + from ._models import AdlsGen1FileDataSet # type: ignore + from ._models import AdlsGen1FileProperties # type: ignore + from ._models import AdlsGen1FolderDataSet # type: ignore + from ._models import AdlsGen1FolderProperties # type: ignore + from ._models import AdlsGen2FileDataSet # type: ignore + from ._models import AdlsGen2FileDataSetMapping # type: ignore + from ._models import AdlsGen2FileDataSetMappingProperties # type: ignore + from ._models import AdlsGen2FileProperties # type: ignore + from ._models import AdlsGen2FileSystemDataSet # type: ignore + from ._models import AdlsGen2FileSystemDataSetMapping # type: ignore + from ._models import AdlsGen2FileSystemDataSetMappingProperties # type: ignore + from ._models import AdlsGen2FileSystemProperties # type: ignore + from ._models import AdlsGen2FolderDataSet # type: ignore + from ._models import AdlsGen2FolderDataSetMapping # type: ignore + from ._models import AdlsGen2FolderDataSetMappingProperties # type: ignore + from ._models import AdlsGen2FolderProperties # type: ignore + from ._models import BlobContainerDataSet # type: ignore + from ._models import BlobContainerDataSetMapping # type: ignore + from ._models import BlobContainerMappingProperties # type: ignore + from ._models import BlobContainerProperties # type: ignore + from ._models import BlobDataSet # type: ignore + from ._models import BlobDataSetMapping # type: ignore + from ._models import BlobFolderDataSet # type: ignore + from ._models import BlobFolderDataSetMapping # type: ignore + from ._models import BlobFolderMappingProperties # type: ignore + from ._models import BlobFolderProperties # type: ignore + from ._models import BlobMappingProperties # type: ignore + from ._models import BlobProperties # type: ignore + from ._models import ConsumerInvitation # type: ignore + from ._models import ConsumerInvitationList # type: ignore + from ._models import ConsumerInvitationProperties # type: ignore + from ._models import ConsumerSourceDataSet # type: ignore + from ._models import ConsumerSourceDataSetList # type: ignore + from ._models import ConsumerSourceDataSetProperties # type: ignore + from ._models import DataSet # type: ignore + from ._models import DataSetList # type: ignore + from ._models import DataSetMapping # type: ignore + from ._models import DataSetMappingList # type: ignore + from ._models import DataShareError, DataShareErrorException # type: ignore + from ._models import DataShareErrorInfo # type: ignore + from ._models import DefaultDto # type: ignore + from ._models import DimensionProperties # type: ignore + from ._models import Identity # type: ignore + from ._models import Invitation # type: ignore + from ._models import InvitationList # type: ignore + from ._models import InvitationProperties # type: ignore + from ._models import KustoClusterDataSet # type: ignore + from ._models import KustoClusterDataSetMapping # type: ignore + from ._models import KustoClusterDataSetMappingProperties # type: ignore + from ._models import KustoClusterDataSetProperties # type: ignore + from ._models import KustoDatabaseDataSet # type: ignore + from ._models import KustoDatabaseDataSetMapping # type: ignore + from ._models import KustoDatabaseDataSetMappingProperties # type: ignore + from ._models import KustoDatabaseDataSetProperties # type: ignore + from ._models import OperationList # type: ignore + from ._models import OperationMetaLogSpecification # type: ignore + from ._models import OperationMetaMetricSpecification # type: ignore + from ._models import OperationMetaPropertyInfo # type: ignore + from ._models import OperationMetaServiceSpecification # type: ignore + from ._models import OperationModel # type: ignore + from ._models import OperationModelProperties # type: ignore + from ._models import OperationResponse # type: ignore + from ._models import ProviderShareSubscription # type: ignore + from ._models import ProviderShareSubscriptionList # type: ignore + from ._models import ProviderShareSubscriptionProperties # type: ignore + from ._models import ProxyDto # type: ignore + from ._models import ScheduledSourceShareSynchronizationSettingProperties # type: ignore + from ._models import ScheduledSourceSynchronizationSetting # type: ignore + from ._models import ScheduledSynchronizationSetting # type: ignore + from ._models import ScheduledSynchronizationSettingProperties # type: ignore + from ._models import ScheduledTrigger # type: ignore + from ._models import ScheduledTriggerProperties # type: ignore + from ._models import Share # type: ignore + from ._models import ShareList # type: ignore + from ._models import ShareProperties # type: ignore + from ._models import ShareSubscription # type: ignore + from ._models import ShareSubscriptionList # type: ignore + from ._models import ShareSubscriptionProperties # type: ignore + from ._models import ShareSubscriptionSynchronization # type: ignore + from ._models import ShareSubscriptionSynchronizationList # type: ignore + from ._models import ShareSynchronization # type: ignore + from ._models import ShareSynchronizationList # type: ignore + from ._models import SourceShareSynchronizationSetting # type: ignore + from ._models import SourceShareSynchronizationSettingList # type: ignore + from ._models import SqlDbTableDataSet # type: ignore + from ._models import SqlDbTableDataSetMapping # type: ignore + from ._models import SqlDbTableDataSetMappingProperties # type: ignore + from ._models import SqlDbTableProperties # type: ignore + from ._models import SqlDwTableDataSet # type: ignore + from ._models import SqlDwTableDataSetMapping # type: ignore + from ._models import SqlDwTableDataSetMappingProperties # type: ignore + from ._models import SqlDwTableProperties # type: ignore + from ._models import SynchronizationDetails # type: ignore + from ._models import SynchronizationDetailsList # type: ignore + from ._models import SynchronizationSetting # type: ignore + from ._models import SynchronizationSettingList # type: ignore + from ._models import Synchronize # type: ignore + from ._models import Trigger # type: ignore + from ._models import TriggerList # type: ignore +from ._data_share_management_client_enums import ( + DataSetMappingStatus, + DataSetType, + InvitationStatus, + Kind, + OutputType, + ProvisioningState, + RecurrenceInterval, + ShareKind, + ShareSubscriptionStatus, + Status, + SynchronizationMode, + TriggerStatus, +) + +__all__ = [ + 'Account', + 'AccountList', + 'AccountProperties', + 'AccountUpdateParameters', + 'AdlsGen1FileDataSet', + 'AdlsGen1FileProperties', + 'AdlsGen1FolderDataSet', + 'AdlsGen1FolderProperties', + 'AdlsGen2FileDataSet', + 'AdlsGen2FileDataSetMapping', + 'AdlsGen2FileDataSetMappingProperties', + 'AdlsGen2FileProperties', + 'AdlsGen2FileSystemDataSet', + 'AdlsGen2FileSystemDataSetMapping', + 'AdlsGen2FileSystemDataSetMappingProperties', + 'AdlsGen2FileSystemProperties', + 'AdlsGen2FolderDataSet', + 'AdlsGen2FolderDataSetMapping', + 'AdlsGen2FolderDataSetMappingProperties', + 'AdlsGen2FolderProperties', + 'BlobContainerDataSet', + 'BlobContainerDataSetMapping', + 'BlobContainerMappingProperties', + 'BlobContainerProperties', + 'BlobDataSet', + 'BlobDataSetMapping', + 'BlobFolderDataSet', + 'BlobFolderDataSetMapping', + 'BlobFolderMappingProperties', + 'BlobFolderProperties', + 'BlobMappingProperties', + 'BlobProperties', + 'ConsumerInvitation', + 'ConsumerInvitationList', + 'ConsumerInvitationProperties', + 'ConsumerSourceDataSet', + 'ConsumerSourceDataSetList', + 'ConsumerSourceDataSetProperties', + 'DataSet', + 'DataSetList', + 'DataSetMapping', + 'DataSetMappingList', + 'DataShareError', 'DataShareErrorException', + 'DataShareErrorInfo', + 'DefaultDto', + 'DimensionProperties', + 'Identity', + 'Invitation', + 'InvitationList', + 'InvitationProperties', + 'KustoClusterDataSet', + 'KustoClusterDataSetMapping', + 'KustoClusterDataSetMappingProperties', + 'KustoClusterDataSetProperties', + 'KustoDatabaseDataSet', + 'KustoDatabaseDataSetMapping', + 'KustoDatabaseDataSetMappingProperties', + 'KustoDatabaseDataSetProperties', + 'OperationList', + 'OperationMetaLogSpecification', + 'OperationMetaMetricSpecification', + 'OperationMetaPropertyInfo', + 'OperationMetaServiceSpecification', + 'OperationModel', + 'OperationModelProperties', + 'OperationResponse', + 'ProviderShareSubscription', + 'ProviderShareSubscriptionList', + 'ProviderShareSubscriptionProperties', + 'ProxyDto', + 'ScheduledSourceShareSynchronizationSettingProperties', + 'ScheduledSourceSynchronizationSetting', + 'ScheduledSynchronizationSetting', + 'ScheduledSynchronizationSettingProperties', + 'ScheduledTrigger', + 'ScheduledTriggerProperties', + 'Share', + 'ShareList', + 'ShareProperties', + 'ShareSubscription', + 'ShareSubscriptionList', + 'ShareSubscriptionProperties', + 'ShareSubscriptionSynchronization', + 'ShareSubscriptionSynchronizationList', + 'ShareSynchronization', + 'ShareSynchronizationList', + 'SourceShareSynchronizationSetting', + 'SourceShareSynchronizationSettingList', + 'SqlDbTableDataSet', + 'SqlDbTableDataSetMapping', + 'SqlDbTableDataSetMappingProperties', + 'SqlDbTableProperties', + 'SqlDwTableDataSet', + 'SqlDwTableDataSetMapping', + 'SqlDwTableDataSetMappingProperties', + 'SqlDwTableProperties', + 'SynchronizationDetails', + 'SynchronizationDetailsList', + 'SynchronizationSetting', + 'SynchronizationSettingList', + 'Synchronize', + 'Trigger', + 'TriggerList', + 'DataSetMappingStatus', + 'DataSetType', + 'InvitationStatus', + 'Kind', + 'OutputType', + 'ProvisioningState', + 'RecurrenceInterval', + 'ShareKind', + 'ShareSubscriptionStatus', + 'Status', + 'SynchronizationMode', + 'TriggerStatus', +] diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py new file mode 100644 index 00000000000..339cef931bc --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py @@ -0,0 +1,102 @@ +# 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 ProvisioningState(str, Enum): + + succeeded = "Succeeded" + creating = "Creating" + deleting = "Deleting" + moving = "Moving" + failed = "Failed" + +class InvitationStatus(str, Enum): + + pending = "Pending" + accepted = "Accepted" + rejected = "Rejected" + withdrawn = "Withdrawn" + +class Kind(str, Enum): + + blob = "Blob" + container = "Container" + blob_folder = "BlobFolder" + adls_gen2_file_system = "AdlsGen2FileSystem" + adls_gen2_folder = "AdlsGen2Folder" + adls_gen2_file = "AdlsGen2File" + adls_gen1_folder = "AdlsGen1Folder" + adls_gen1_file = "AdlsGen1File" + kusto_cluster = "KustoCluster" + kusto_database = "KustoDatabase" + sql_db_table = "SqlDBTable" + sql_dw_table = "SqlDWTable" + schedule_based = "ScheduleBased" + +class ShareKind(str, Enum): + + copy_based = "CopyBased" + in_place = "InPlace" + +class SynchronizationMode(str, Enum): + + incremental = "Incremental" + full_sync = "FullSync" + +class DataSetType(str, Enum): + + blob = "Blob" + container = "Container" + blob_folder = "BlobFolder" + adls_gen2_file_system = "AdlsGen2FileSystem" + adls_gen2_folder = "AdlsGen2Folder" + adls_gen2_file = "AdlsGen2File" + adls_gen1_folder = "AdlsGen1Folder" + adls_gen1_file = "AdlsGen1File" + kusto_cluster = "KustoCluster" + kusto_database = "KustoDatabase" + sql_db_table = "SqlDBTable" + sql_dw_table = "SqlDWTable" + +class ShareSubscriptionStatus(str, Enum): + + active = "Active" + revoked = "Revoked" + source_deleted = "SourceDeleted" + revoking = "Revoking" + +class Status(str, Enum): + + accepted = "Accepted" + in_progress = "InProgress" + transient_failure = "TransientFailure" + succeeded = "Succeeded" + failed = "Failed" + canceled = "Canceled" + +class RecurrenceInterval(str, Enum): + + hour = "Hour" + day = "Day" + +class TriggerStatus(str, Enum): + + active = "Active" + inactive = "Inactive" + source_synchronization_setting_deleted = "SourceSynchronizationSettingDeleted" + +class DataSetMappingStatus(str, Enum): + + ok = "Ok" + broken = "Broken" + +class OutputType(str, Enum): + + csv = "Csv" + parquet = "Parquet" diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py new file mode 100644 index 00000000000..cd488569da8 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py @@ -0,0 +1,5566 @@ +# 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.core.exceptions import HttpResponseError +import msrest.serialization + + +class DefaultDto(msrest.serialization.Model): + """Base data transfer object implementation for default resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :param location: Location of the azure resource. + :type location: str + :ivar name: Name of the azure resource. + :vartype name: str + :param tags: A set of tags. Tags on the azure resource. + :type tags: dict[str, str] + :ivar type: Type of the azure resource. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DefaultDto, self).__init__(**kwargs) + self.id = None + self.location = kwargs.get('location', None) + self.name = None + self.tags = kwargs.get('tags', None) + self.type = None + + +class Account(DefaultDto): + """An account data transfer object. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :param location: Location of the azure resource. + :type location: str + :ivar name: Name of the azure resource. + :vartype name: str + :param tags: A set of tags. Tags on the azure resource. + :type tags: dict[str, str] + :ivar type: Type of the azure resource. + :vartype type: str + :param identity: Required. Identity of resource. + :type identity: ~data_share_management_client.models.Identity + :ivar created_at: Time at which the account was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'identity': {'required': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Account, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.created_at = None + self.provisioning_state = None + self.user_email = None + self.user_name = None + + +class AccountList(msrest.serialization.Model): + """List response for get Accounts. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Account] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Account]'}, + } + + def __init__( + self, + **kwargs + ): + super(AccountList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class AccountProperties(msrest.serialization.Model): + """Account property bag. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_at: Time at which the account was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AccountProperties, self).__init__(**kwargs) + self.created_at = None + self.provisioning_state = None + self.user_email = None + self.user_name = None + + +class AccountUpdateParameters(msrest.serialization.Model): + """Update parameters for accounts. + + :param tags: A set of tags. Tags on the azure resource. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(AccountUpdateParameters, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + + +class ProxyDto(msrest.serialization.Model): + """Base data transfer object implementation for proxy resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyDto, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class DataSet(ProxyDto): + """A DataSet data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AdlsGen1FileDataSet, AdlsGen1FolderDataSet, AdlsGen2FileDataSet, AdlsGen2FileSystemDataSet, AdlsGen2FolderDataSet, BlobDataSet, BlobFolderDataSet, BlobContainerDataSet, KustoClusterDataSet, KustoDatabaseDataSet, SqlDbTableDataSet, SqlDwTableDataSet. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AdlsGen1File': 'AdlsGen1FileDataSet', 'AdlsGen1Folder': 'AdlsGen1FolderDataSet', 'AdlsGen2File': 'AdlsGen2FileDataSet', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSet', 'AdlsGen2Folder': 'AdlsGen2FolderDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDbTableDataSet', 'SqlDWTable': 'SqlDwTableDataSet'} + } + + def __init__( + self, + **kwargs + ): + super(DataSet, self).__init__(**kwargs) + self.kind = 'DataSet' + + +class AdlsGen1FileDataSet(DataSet): + """An ADLS Gen 1 file data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_name: Required. The file name in the ADLS account. + :type file_name: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_name': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'properties.accountName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_name': {'key': 'properties.fileName', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen1FileDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen1File' + self.account_name = kwargs.get('account_name', None) + self.data_set_id = None + self.file_name = kwargs.get('file_name', None) + self.folder_path = kwargs.get('folder_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen1FileProperties(msrest.serialization.Model): + """Properties of the ADLS Gen1 file data set. + + 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 account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_name: Required. The file name in the ADLS account. + :type file_name: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_name': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen1FileProperties, self).__init__(**kwargs) + self.account_name = kwargs.get('account_name', None) + self.data_set_id = None + self.file_name = kwargs.get('file_name', None) + self.folder_path = kwargs.get('folder_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen1FolderDataSet(DataSet): + """An ADLS Gen 1 folder data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'properties.accountName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen1FolderDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen1Folder' + self.account_name = kwargs.get('account_name', None) + self.data_set_id = None + self.folder_path = kwargs.get('folder_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen1FolderProperties(msrest.serialization.Model): + """Properties of the ADLS Gen1 folder data set. + + 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 account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen1FolderProperties, self).__init__(**kwargs) + self.account_name = kwargs.get('account_name', None) + self.data_set_id = None + self.folder_path = kwargs.get('folder_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FileDataSet(DataSet): + """An ADLS Gen 2 file data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2File' + self.data_set_id = None + self.file_path = kwargs.get('file_path', None) + self.file_system = kwargs.get('file_system', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class DataSetMapping(ProxyDto): + """A data set mapping data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AdlsGen2FileDataSetMapping, AdlsGen2FileSystemDataSetMapping, AdlsGen2FolderDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping, BlobContainerDataSetMapping, KustoClusterDataSetMapping, KustoDatabaseDataSetMapping, SqlDbTableDataSetMapping, SqlDwTableDataSetMapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AdlsGen2File': 'AdlsGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'AdlsGen2FolderDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDbTableDataSetMapping', 'SqlDWTable': 'SqlDwTableDataSetMapping'} + } + + def __init__( + self, + **kwargs + ): + super(DataSetMapping, self).__init__(**kwargs) + self.kind = 'DataSetMapping' + + +class AdlsGen2FileDataSetMapping(DataSetMapping): + """An ADLS Gen2 file data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'output_type': {'key': 'properties.outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2File' + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_path = kwargs.get('file_path', None) + self.file_system = kwargs.get('file_system', None) + self.output_type = kwargs.get('output_type', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FileDataSetMappingProperties(msrest.serialization.Model): + """ADLS Gen 2 file data set mapping property bag. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'output_type': {'key': 'outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_path = kwargs.get('file_path', None) + self.file_system = kwargs.get('file_system', None) + self.output_type = kwargs.get('output_type', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FileProperties(msrest.serialization.Model): + """Properties of the ADLS Gen2 file data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileProperties, self).__init__(**kwargs) + self.data_set_id = None + self.file_path = kwargs.get('file_path', None) + self.file_system = kwargs.get('file_system', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FileSystemDataSet(DataSet): + """An ADLS Gen 2 file system data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. The file system name. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileSystemDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2FileSystem' + self.data_set_id = None + self.file_system = kwargs.get('file_system', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FileSystemDataSetMapping(DataSetMapping): + """An ADLS Gen2 file system data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. The file system name. + :type file_system: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileSystemDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2FileSystem' + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_system = kwargs.get('file_system', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FileSystemDataSetMappingProperties(msrest.serialization.Model): + """ADLS Gen 2 file system data set mapping property bag. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. The file system name. + :type file_system: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileSystemDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_system = kwargs.get('file_system', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FileSystemProperties(msrest.serialization.Model): + """Properties of the ADLS Gen2 file system data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. The file system name. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FileSystemProperties, self).__init__(**kwargs) + self.data_set_id = None + self.file_system = kwargs.get('file_system', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FolderDataSet(DataSet): + """An ADLS Gen 2 folder data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FolderDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2Folder' + self.data_set_id = None + self.file_system = kwargs.get('file_system', None) + self.folder_path = kwargs.get('folder_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FolderDataSetMapping(DataSetMapping): + """An ADLS Gen2 folder data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FolderDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2Folder' + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_system = kwargs.get('file_system', None) + self.folder_path = kwargs.get('folder_path', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FolderDataSetMappingProperties(msrest.serialization.Model): + """ADLS Gen 2 folder data set mapping property bag. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FolderDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_system = kwargs.get('file_system', None) + self.folder_path = kwargs.get('folder_path', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class AdlsGen2FolderProperties(msrest.serialization.Model): + """Properties of the ADLS Gen2 folder data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AdlsGen2FolderProperties, self).__init__(**kwargs) + self.data_set_id = None + self.file_system = kwargs.get('file_system', None) + self.folder_path = kwargs.get('folder_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobContainerDataSet(DataSet): + """An Azure storage blob container data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobContainerDataSet, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobContainerDataSetMapping(DataSetMapping): + """A Blob container data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobContainerDataSetMapping, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobContainerMappingProperties(msrest.serialization.Model): + """Azure storage Blob container data set mapping property bag. + + 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 container_name: Required. BLOB Container name. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobContainerMappingProperties, self).__init__(**kwargs) + self.container_name = kwargs.get('container_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobContainerProperties(msrest.serialization.Model): + """Properties of the BLOB container data set. + + 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 container_name: Required. BLOB Container name. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobContainerProperties, self).__init__(**kwargs) + self.container_name = kwargs.get('container_name', None) + self.data_set_id = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobDataSet(DataSet): + """An Azure storage blob data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the source data set. + :type file_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobDataSet, self).__init__(**kwargs) + self.kind = 'Blob' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = None + self.file_path = kwargs.get('file_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobDataSetMapping(DataSetMapping): + """A Blob data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the source data set. + :type file_path: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'output_type': {'key': 'properties.outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobDataSetMapping, self).__init__(**kwargs) + self.kind = 'Blob' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_path = kwargs.get('file_path', None) + self.output_type = kwargs.get('output_type', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobFolderDataSet(DataSet): + """An Azure storage blob folder data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'prefix': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobFolderDataSet, self).__init__(**kwargs) + self.kind = 'BlobFolder' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = None + self.prefix = kwargs.get('prefix', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobFolderDataSetMapping(DataSetMapping): + """A Blob folder data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'prefix': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobFolderDataSetMapping, self).__init__(**kwargs) + self.kind = 'BlobFolder' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.prefix = kwargs.get('prefix', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobFolderMappingProperties(msrest.serialization.Model): + """Azure storage Blob folder data set mapping property bag. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'prefix': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobFolderMappingProperties, self).__init__(**kwargs) + self.container_name = kwargs.get('container_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.prefix = kwargs.get('prefix', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobFolderProperties(msrest.serialization.Model): + """Properties of the blob folder data set. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'prefix': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobFolderProperties, self).__init__(**kwargs) + self.container_name = kwargs.get('container_name', None) + self.data_set_id = None + self.prefix = kwargs.get('prefix', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobMappingProperties(msrest.serialization.Model): + """Azure storage Blob data set mapping property bag. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the source data set. + :type file_path: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'output_type': {'key': 'outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobMappingProperties, self).__init__(**kwargs) + self.container_name = kwargs.get('container_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.file_path = kwargs.get('file_path', None) + self.output_type = kwargs.get('output_type', None) + self.provisioning_state = None + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class BlobProperties(msrest.serialization.Model): + """Properties of the blob data set. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the source data set. + :type file_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(BlobProperties, self).__init__(**kwargs) + self.container_name = kwargs.get('container_name', None) + self.data_set_id = None + self.file_path = kwargs.get('file_path', None) + self.resource_group = kwargs.get('resource_group', None) + self.storage_account_name = kwargs.get('storage_account_name', None) + self.subscription_id = kwargs.get('subscription_id', None) + + +class ConsumerInvitation(ProxyDto): + """A consumer Invitation data transfer object. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar data_set_count: Number of data sets in a share. + :vartype data_set_count: int + :ivar description: Description shared when the invitation was created. + :vartype description: str + :param invitation_id: Required. Unique id of the invitation. + :type invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar location: invitation location. + :vartype location: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :ivar share_name: Gets the source share Name. + :vartype share_name: str + :ivar terms_of_use: Terms of use shared when the invitation was created. + :vartype terms_of_use: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'data_set_count': {'readonly': True}, + 'description': {'readonly': True}, + 'invitation_id': {'required': True}, + 'invitation_status': {'readonly': True}, + 'location': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'share_name': {'readonly': True}, + 'terms_of_use': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'data_set_count': {'key': 'properties.dataSetCount', 'type': 'int'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'properties.invitationStatus', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, + 'responded_at': {'key': 'properties.respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'properties.sentAt', 'type': 'iso-8601'}, + 'share_name': {'key': 'properties.shareName', 'type': 'str'}, + 'terms_of_use': {'key': 'properties.termsOfUse', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerInvitation, self).__init__(**kwargs) + self.data_set_count = None + self.description = None + self.invitation_id = kwargs.get('invitation_id', None) + self.invitation_status = None + self.location = None + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.responded_at = None + self.sent_at = None + self.share_name = None + self.terms_of_use = None + self.user_email = None + self.user_name = None + + +class ConsumerInvitationList(msrest.serialization.Model): + """List response for get InvitationList. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ConsumerInvitation] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ConsumerInvitation]'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerInvitationList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class ConsumerInvitationProperties(msrest.serialization.Model): + """Properties of consumer invitation. + + 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. + + :ivar data_set_count: Number of data sets in a share. + :vartype data_set_count: int + :ivar description: Description shared when the invitation was created. + :vartype description: str + :param invitation_id: Required. Unique id of the invitation. + :type invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar location: invitation location. + :vartype location: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :ivar share_name: Gets the source share Name. + :vartype share_name: str + :ivar terms_of_use: Terms of use shared when the invitation was created. + :vartype terms_of_use: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'data_set_count': {'readonly': True}, + 'description': {'readonly': True}, + 'invitation_id': {'required': True}, + 'invitation_status': {'readonly': True}, + 'location': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'share_name': {'readonly': True}, + 'terms_of_use': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'data_set_count': {'key': 'dataSetCount', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'invitation_id': {'key': 'invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provider_email': {'key': 'providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, + 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + 'terms_of_use': {'key': 'termsOfUse', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerInvitationProperties, self).__init__(**kwargs) + self.data_set_count = None + self.description = None + self.invitation_id = kwargs.get('invitation_id', None) + self.invitation_status = None + self.location = None + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.responded_at = None + self.sent_at = None + self.share_name = None + self.terms_of_use = None + self.user_email = None + self.user_name = None + + +class ConsumerSourceDataSet(ProxyDto): + """A consumer side dataSet data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar data_set_id: DataSet Id. + :vartype data_set_id: str + :ivar data_set_location: Location of the data set. + :vartype data_set_location: str + :ivar data_set_name: DataSet name. + :vartype data_set_name: str + :ivar data_set_path: DataSet path. + :vartype data_set_path: str + :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', + 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. + :vartype data_set_type: str or ~data_share_management_client.models.DataSetType + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'data_set_id': {'readonly': True}, + 'data_set_location': {'readonly': True}, + 'data_set_name': {'readonly': True}, + 'data_set_path': {'readonly': True}, + 'data_set_type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_location': {'key': 'properties.dataSetLocation', 'type': 'str'}, + 'data_set_name': {'key': 'properties.dataSetName', 'type': 'str'}, + 'data_set_path': {'key': 'properties.dataSetPath', 'type': 'str'}, + 'data_set_type': {'key': 'properties.dataSetType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerSourceDataSet, self).__init__(**kwargs) + self.data_set_id = None + self.data_set_location = None + self.data_set_name = None + self.data_set_path = None + self.data_set_type = None + + +class ConsumerSourceDataSetList(msrest.serialization.Model): + """A consumer side list of source dataSets. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ConsumerSourceDataSet] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ConsumerSourceDataSet]'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerSourceDataSetList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class ConsumerSourceDataSetProperties(msrest.serialization.Model): + """Properties of consumer source dataSet. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar data_set_id: DataSet Id. + :vartype data_set_id: str + :ivar data_set_location: Location of the data set. + :vartype data_set_location: str + :ivar data_set_name: DataSet name. + :vartype data_set_name: str + :ivar data_set_path: DataSet path. + :vartype data_set_path: str + :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', + 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. + :vartype data_set_type: str or ~data_share_management_client.models.DataSetType + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'data_set_location': {'readonly': True}, + 'data_set_name': {'readonly': True}, + 'data_set_path': {'readonly': True}, + 'data_set_type': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_location': {'key': 'dataSetLocation', 'type': 'str'}, + 'data_set_name': {'key': 'dataSetName', 'type': 'str'}, + 'data_set_path': {'key': 'dataSetPath', 'type': 'str'}, + 'data_set_type': {'key': 'dataSetType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerSourceDataSetProperties, self).__init__(**kwargs) + self.data_set_id = None + self.data_set_location = None + self.data_set_name = None + self.data_set_path = None + self.data_set_type = None + + +class DataSetList(msrest.serialization.Model): + """List response for get DataSets. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.DataSet] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[DataSet]'}, + } + + def __init__( + self, + **kwargs + ): + super(DataSetList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class DataSetMappingList(msrest.serialization.Model): + """List response for get DataSetMappings. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.DataSetMapping] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[DataSetMapping]'}, + } + + def __init__( + self, + **kwargs + ): + super(DataSetMappingList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class DataShareErrorException(HttpResponseError): + """Server responded with exception of type: 'DataShareError'. + + :param response: Server response to be deserialized. + :param error_model: A deserialized model of the response body as model. + """ + + def __init__(self, response, error_model): + self.error = error_model + super(DataShareErrorException, self).__init__(response=response, error_model=error_model) + + @classmethod + def from_response(cls, response, deserialize): + """Deserialize this response as this exception, or a subclass of this exception. + + :param response: Server response to be deserialized. + :param deserialize: A deserializer + """ + model_name = 'DataShareError' + error = deserialize(model_name, response) + if error is None: + error = deserialize.dependencies[model_name]() + return error._EXCEPTION_TYPE(response, error) + + +class DataShareError(msrest.serialization.Model): + """The data share error model. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. The data share error body model. + :type error: ~data_share_management_client.models.DataShareErrorInfo + """ + _EXCEPTION_TYPE = DataShareErrorException + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'DataShareErrorInfo'}, + } + + def __init__( + self, + **kwargs + ): + super(DataShareError, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class DataShareErrorInfo(msrest.serialization.Model): + """The data share error body model. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Code of the error. + :type code: str + :param details: Nested details of the error model. + :type details: list[~data_share_management_client.models.DataShareErrorInfo] + :param message: Required. Message of the error. + :type message: str + :param target: Target of the error. + :type target: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[DataShareErrorInfo]'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DataShareErrorInfo, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.details = kwargs.get('details', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + + +class DimensionProperties(msrest.serialization.Model): + """properties for dimension. + + :param display_name: localized display name of the dimension to customer. + :type display_name: str + :param name: dimension name. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(DimensionProperties, self).__init__(**kwargs) + self.display_name = kwargs.get('display_name', None) + self.name = kwargs.get('name', None) + + +class Identity(msrest.serialization.Model): + """Identity of resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: service principal Id. + :vartype principal_id: str + :ivar tenant_id: Tenant Id. + :vartype tenant_id: str + :ivar type: Identity Type. Default value: "SystemAssigned". + :vartype type: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'constant': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "SystemAssigned" + + def __init__( + self, + **kwargs + ): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + + +class Invitation(ProxyDto): + """A Invitation data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar invitation_id: unique invitation id. + :vartype invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. + :type target_active_directory_id: str + :param target_email: The email the invitation is directed to. + :type target_email: str + :param target_object_id: The target user or application Id that invitation is being sent to. + Must be specified along TargetActiveDirectoryId. This enables sending + invitations to specific users or applications in an AD tenant. + :type target_object_id: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'invitation_id': {'readonly': True}, + 'invitation_status': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'properties.invitationStatus', 'type': 'str'}, + 'responded_at': {'key': 'properties.respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'properties.sentAt', 'type': 'iso-8601'}, + 'target_active_directory_id': {'key': 'properties.targetActiveDirectoryId', 'type': 'str'}, + 'target_email': {'key': 'properties.targetEmail', 'type': 'str'}, + 'target_object_id': {'key': 'properties.targetObjectId', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Invitation, self).__init__(**kwargs) + self.invitation_id = None + self.invitation_status = None + self.responded_at = None + self.sent_at = None + self.target_active_directory_id = kwargs.get('target_active_directory_id', None) + self.target_email = kwargs.get('target_email', None) + self.target_object_id = kwargs.get('target_object_id', None) + self.user_email = None + self.user_name = None + + +class InvitationList(msrest.serialization.Model): + """List response for get InvitationList. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Invitation] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Invitation]'}, + } + + def __init__( + self, + **kwargs + ): + super(InvitationList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class InvitationProperties(msrest.serialization.Model): + """Invitation property bag. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invitation_id: unique invitation id. + :vartype invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. + :type target_active_directory_id: str + :param target_email: The email the invitation is directed to. + :type target_email: str + :param target_object_id: The target user or application Id that invitation is being sent to. + Must be specified along TargetActiveDirectoryId. This enables sending + invitations to specific users or applications in an AD tenant. + :type target_object_id: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'invitation_id': {'readonly': True}, + 'invitation_status': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'invitation_id': {'key': 'invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, + 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, + 'target_active_directory_id': {'key': 'targetActiveDirectoryId', 'type': 'str'}, + 'target_email': {'key': 'targetEmail', 'type': 'str'}, + 'target_object_id': {'key': 'targetObjectId', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(InvitationProperties, self).__init__(**kwargs) + self.invitation_id = None + self.invitation_status = None + self.responded_at = None + self.sent_at = None + self.target_active_directory_id = kwargs.get('target_active_directory_id', None) + self.target_email = kwargs.get('target_email', None) + self.target_object_id = kwargs.get('target_object_id', None) + self.user_email = None + self.user_name = None + + +class KustoClusterDataSet(DataSet): + """A kusto cluster data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_cluster_resource_id: Required. Resource id of the kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoClusterDataSet, self).__init__(**kwargs) + self.kind = 'KustoCluster' + self.data_set_id = None + self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) + self.location = None + self.provisioning_state = None + + +class KustoClusterDataSetMapping(DataSetMapping): + """A Kusto cluster data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoClusterDataSetMapping, self).__init__(**kwargs) + self.kind = 'KustoCluster' + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) + self.location = None + self.provisioning_state = None + + +class KustoClusterDataSetMappingProperties(msrest.serialization.Model): + """Properties of the Kusto cluster data set mapping. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoClusterDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) + self.location = None + self.provisioning_state = None + + +class KustoClusterDataSetProperties(msrest.serialization.Model): + """Properties of the kusto cluster data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_cluster_resource_id: Required. Resource id of the kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoClusterDataSetProperties, self).__init__(**kwargs) + self.data_set_id = None + self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSet(DataSet): + """A kusto database data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_database_resource_id: Required. Resource id of the kusto database. + :type kusto_database_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'kusto_database_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'kusto_database_resource_id': {'key': 'properties.kustoDatabaseResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoDatabaseDataSet, self).__init__(**kwargs) + self.kind = 'KustoDatabase' + self.data_set_id = None + self.kusto_database_resource_id = kwargs.get('kusto_database_resource_id', None) + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSetMapping(DataSetMapping): + """A Kusto database data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoDatabaseDataSetMapping, self).__init__(**kwargs) + self.kind = 'KustoDatabase' + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSetMappingProperties(msrest.serialization.Model): + """Properties of the Kusto database data set mapping. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoDatabaseDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSetProperties(msrest.serialization.Model): + """Properties of the kusto database data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_database_resource_id: Required. Resource id of the kusto database. + :type kusto_database_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'kusto_database_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'kusto_database_resource_id': {'key': 'kustoDatabaseResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KustoDatabaseDataSetProperties, self).__init__(**kwargs) + self.data_set_id = None + self.kusto_database_resource_id = kwargs.get('kusto_database_resource_id', None) + self.location = None + self.provisioning_state = None + + +class OperationList(msrest.serialization.Model): + """List response for get operations. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.OperationModel] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[OperationModel]'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class OperationMetaLogSpecification(msrest.serialization.Model): + """log specifications for operation api. + + :param blob_duration: blob duration of the log. + :type blob_duration: str + :param display_name: localized name of the log category. + :type display_name: str + :param name: name of the log category. + :type name: str + """ + + _attribute_map = { + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationMetaLogSpecification, self).__init__(**kwargs) + self.blob_duration = kwargs.get('blob_duration', None) + self.display_name = kwargs.get('display_name', None) + self.name = kwargs.get('name', None) + + +class OperationMetaMetricSpecification(msrest.serialization.Model): + """metric specifications for the operation. + + :param aggregation_type: aggregation type of metric. + :type aggregation_type: str + :param dimensions: properties for dimension. + :type dimensions: list[~data_share_management_client.models.DimensionProperties] + :param display_description: description of the metric. + :type display_description: str + :param display_name: localized name of the metric. + :type display_name: str + :param enable_regional_mdm_account: enable regional mdm account. + :type enable_regional_mdm_account: str + :param internal_metric_name: internal metric name. + :type internal_metric_name: str + :param name: name of the metric. + :type name: str + :param resource_id_dimension_name_override: dimension name use to replace resource id if + specified. + :type resource_id_dimension_name_override: str + :param supported_aggregation_types: supported aggregation types. + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: supported time grain types. + :type supported_time_grain_types: list[str] + :param unit: units for the metric. + :type unit: str + """ + + _attribute_map = { + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[DimensionProperties]'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'unit': {'key': 'unit', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationMetaMetricSpecification, self).__init__(**kwargs) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.dimensions = kwargs.get('dimensions', None) + self.display_description = kwargs.get('display_description', None) + self.display_name = kwargs.get('display_name', None) + self.enable_regional_mdm_account = kwargs.get('enable_regional_mdm_account', None) + self.internal_metric_name = kwargs.get('internal_metric_name', None) + self.name = kwargs.get('name', None) + self.resource_id_dimension_name_override = kwargs.get('resource_id_dimension_name_override', None) + self.supported_aggregation_types = kwargs.get('supported_aggregation_types', None) + self.supported_time_grain_types = kwargs.get('supported_time_grain_types', None) + self.unit = kwargs.get('unit', None) + + +class OperationMetaPropertyInfo(msrest.serialization.Model): + """properties on meta info. + + :param service_specification: The operation meta service specification. + :type service_specification: + ~data_share_management_client.models.OperationMetaServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationMetaPropertyInfo, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) + + +class OperationMetaServiceSpecification(msrest.serialization.Model): + """The operation meta service specification. + + :param log_specifications: log specifications for the operation. + :type log_specifications: + list[~data_share_management_client.models.OperationMetaLogSpecification] + :param metric_specifications: metric specifications for the operation. + :type metric_specifications: + list[~data_share_management_client.models.OperationMetaMetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[OperationMetaLogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[OperationMetaMetricSpecification]'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationMetaServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) + + +class OperationModel(msrest.serialization.Model): + """The response model for get operations. + + :param display: Properties on operations. + :type display: ~data_share_management_client.models.OperationModelProperties + :param name: Operation name for display purposes. + :type name: str + :param origin: origin of the operation. + :type origin: str + :param service_specification: The operation meta service specification. + :type service_specification: + ~data_share_management_client.models.OperationMetaServiceSpecification + """ + + _attribute_map = { + 'display': {'key': 'display', 'type': 'OperationModelProperties'}, + 'name': {'key': 'name', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationModel, self).__init__(**kwargs) + self.display = kwargs.get('display', None) + self.name = kwargs.get('name', None) + self.origin = kwargs.get('origin', None) + self.service_specification = kwargs.get('service_specification', None) + + +class OperationModelProperties(msrest.serialization.Model): + """Properties on operations. + + :param description: Description of the operation for display purposes. + :type description: str + :param operation: Name of the operation for display purposes. + :type operation: str + :param provider: Name of the provider for display purposes. + :type provider: str + :param resource: Name of the resource type for display purposes. + :type resource: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationModelProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.operation = kwargs.get('operation', None) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + + +class OperationResponse(msrest.serialization.Model): + """Response for long running operation. + + All required parameters must be populated in order to send to Azure. + + :param end_time: start time. + :type end_time: ~datetime.datetime + :param error: The data share error body model. + :type error: ~data_share_management_client.models.DataShareErrorInfo + :param start_time: start time. + :type start_time: ~datetime.datetime + :param status: Required. Operation state of the long running operation. Possible values + include: 'Accepted', 'InProgress', 'TransientFailure', 'Succeeded', 'Failed', 'Canceled'. + :type status: str or ~data_share_management_client.models.Status + """ + + _validation = { + 'status': {'required': True}, + } + + _attribute_map = { + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'DataShareErrorInfo'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationResponse, self).__init__(**kwargs) + self.end_time = kwargs.get('end_time', None) + self.error = kwargs.get('error', None) + self.start_time = kwargs.get('start_time', None) + self.status = kwargs.get('status', None) + + +class ProviderShareSubscription(ProxyDto): + """A provider side share subscription data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar consumer_email: Email of the consumer who created the share subscription. + :vartype consumer_email: str + :ivar consumer_name: Name of the consumer who created the share subscription. + :vartype consumer_name: str + :ivar consumer_tenant_name: Tenant name of the consumer who created the share subscription. + :vartype consumer_tenant_name: str + :ivar created_at: created at. + :vartype created_at: ~datetime.datetime + :ivar provider_email: Email of the provider who created the share. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the share. + :vartype provider_name: str + :ivar shared_at: Shared at. + :vartype shared_at: ~datetime.datetime + :ivar share_subscription_object_id: share Subscription Object Id. + :vartype share_subscription_object_id: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'consumer_email': {'readonly': True}, + 'consumer_name': {'readonly': True}, + 'consumer_tenant_name': {'readonly': True}, + 'created_at': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'shared_at': {'readonly': True}, + 'share_subscription_object_id': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'consumer_email': {'key': 'properties.consumerEmail', 'type': 'str'}, + 'consumer_name': {'key': 'properties.consumerName', 'type': 'str'}, + 'consumer_tenant_name': {'key': 'properties.consumerTenantName', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'shared_at': {'key': 'properties.sharedAt', 'type': 'iso-8601'}, + 'share_subscription_object_id': {'key': 'properties.shareSubscriptionObjectId', 'type': 'str'}, + 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProviderShareSubscription, self).__init__(**kwargs) + self.consumer_email = None + self.consumer_name = None + self.consumer_tenant_name = None + self.created_at = None + self.provider_email = None + self.provider_name = None + self.shared_at = None + self.share_subscription_object_id = None + self.share_subscription_status = None + + +class ProviderShareSubscriptionList(msrest.serialization.Model): + """List response for get ShareSubscription. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ProviderShareSubscription] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ProviderShareSubscription]'}, + } + + def __init__( + self, + **kwargs + ): + super(ProviderShareSubscriptionList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class ProviderShareSubscriptionProperties(msrest.serialization.Model): + """Provider share subscription properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar consumer_email: Email of the consumer who created the share subscription. + :vartype consumer_email: str + :ivar consumer_name: Name of the consumer who created the share subscription. + :vartype consumer_name: str + :ivar consumer_tenant_name: Tenant name of the consumer who created the share subscription. + :vartype consumer_tenant_name: str + :ivar created_at: created at. + :vartype created_at: ~datetime.datetime + :ivar provider_email: Email of the provider who created the share. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the share. + :vartype provider_name: str + :ivar shared_at: Shared at. + :vartype shared_at: ~datetime.datetime + :ivar share_subscription_object_id: share Subscription Object Id. + :vartype share_subscription_object_id: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + """ + + _validation = { + 'consumer_email': {'readonly': True}, + 'consumer_name': {'readonly': True}, + 'consumer_tenant_name': {'readonly': True}, + 'created_at': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'shared_at': {'readonly': True}, + 'share_subscription_object_id': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + } + + _attribute_map = { + 'consumer_email': {'key': 'consumerEmail', 'type': 'str'}, + 'consumer_name': {'key': 'consumerName', 'type': 'str'}, + 'consumer_tenant_name': {'key': 'consumerTenantName', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provider_email': {'key': 'providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'shared_at': {'key': 'sharedAt', 'type': 'iso-8601'}, + 'share_subscription_object_id': {'key': 'shareSubscriptionObjectId', 'type': 'str'}, + 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProviderShareSubscriptionProperties, self).__init__(**kwargs) + self.consumer_email = None + self.consumer_name = None + self.consumer_tenant_name = None + self.created_at = None + self.provider_email = None + self.provider_name = None + self.shared_at = None + self.share_subscription_object_id = None + self.share_subscription_status = None + + +class ScheduledSourceShareSynchronizationSettingProperties(msrest.serialization.Model): + """A Scheduled source synchronization setting data transfer object. + + :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Synchronization time. + :type synchronization_time: ~datetime.datetime + """ + + _attribute_map = { + 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ScheduledSourceShareSynchronizationSettingProperties, self).__init__(**kwargs) + self.recurrence_interval = kwargs.get('recurrence_interval', None) + self.synchronization_time = kwargs.get('synchronization_time', None) + + +class SourceShareSynchronizationSetting(msrest.serialization.Model): + """A view of synchronization setting added by the provider. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ScheduledSourceSynchronizationSetting. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ScheduleBased': 'ScheduledSourceSynchronizationSetting'} + } + + def __init__( + self, + **kwargs + ): + super(SourceShareSynchronizationSetting, self).__init__(**kwargs) + self.kind = None + + +class ScheduledSourceSynchronizationSetting(SourceShareSynchronizationSetting): + """A type of synchronization setting based on schedule. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Synchronization time. + :type synchronization_time: ~datetime.datetime + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ScheduledSourceSynchronizationSetting, self).__init__(**kwargs) + self.kind = 'ScheduleBased' + self.recurrence_interval = kwargs.get('recurrence_interval', None) + self.synchronization_time = kwargs.get('synchronization_time', None) + + +class SynchronizationSetting(ProxyDto): + """A Synchronization Setting data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ScheduledSynchronizationSetting. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ScheduleBased': 'ScheduledSynchronizationSetting'} + } + + def __init__( + self, + **kwargs + ): + super(SynchronizationSetting, self).__init__(**kwargs) + self.kind = 'SynchronizationSetting' + + +class ScheduledSynchronizationSetting(SynchronizationSetting): + """A type of synchronization setting based on schedule. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar created_at: Time at which the synchronization setting was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar user_name: Name of the user who created the synchronization setting. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScheduledSynchronizationSetting, self).__init__(**kwargs) + self.kind = 'ScheduleBased' + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = kwargs.get('recurrence_interval', None) + self.synchronization_time = kwargs.get('synchronization_time', None) + self.user_name = None + + +class ScheduledSynchronizationSettingProperties(msrest.serialization.Model): + """A Scheduled synchronization setting data transfer object. + + 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. + + :ivar created_at: Time at which the synchronization setting was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar user_name: Name of the user who created the synchronization setting. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScheduledSynchronizationSettingProperties, self).__init__(**kwargs) + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = kwargs.get('recurrence_interval', None) + self.synchronization_time = kwargs.get('synchronization_time', None) + self.user_name = None + + +class Trigger(ProxyDto): + """A Trigger data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ScheduledTrigger. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ScheduleBased': 'ScheduledTrigger'} + } + + def __init__( + self, + **kwargs + ): + super(Trigger, self).__init__(**kwargs) + self.kind = 'Trigger' + + +class ScheduledTrigger(Trigger): + """A type of trigger based on schedule. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar created_at: Time at which the trigger was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar trigger_status: Gets the trigger state. Possible values include: 'Active', 'Inactive', + 'SourceSynchronizationSettingDeleted'. + :vartype trigger_status: str or ~data_share_management_client.models.TriggerStatus + :ivar user_name: Name of the user who created the trigger. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'trigger_status': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_mode': {'key': 'properties.synchronizationMode', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + 'trigger_status': {'key': 'properties.triggerStatus', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScheduledTrigger, self).__init__(**kwargs) + self.kind = 'ScheduleBased' + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = kwargs.get('recurrence_interval', None) + self.synchronization_mode = kwargs.get('synchronization_mode', None) + self.synchronization_time = kwargs.get('synchronization_time', None) + self.trigger_status = None + self.user_name = None + + +class ScheduledTriggerProperties(msrest.serialization.Model): + """A Scheduled trigger data transfer object. + + 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. + + :ivar created_at: Time at which the trigger was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar trigger_status: Gets the trigger state. Possible values include: 'Active', 'Inactive', + 'SourceSynchronizationSettingDeleted'. + :vartype trigger_status: str or ~data_share_management_client.models.TriggerStatus + :ivar user_name: Name of the user who created the trigger. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'trigger_status': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, + 'trigger_status': {'key': 'triggerStatus', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ScheduledTriggerProperties, self).__init__(**kwargs) + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = kwargs.get('recurrence_interval', None) + self.synchronization_mode = kwargs.get('synchronization_mode', None) + self.synchronization_time = kwargs.get('synchronization_time', None) + self.trigger_status = None + self.user_name = None + + +class Share(ProxyDto): + """A share data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar created_at: Time at which the share was created. + :vartype created_at: ~datetime.datetime + :param description: Share description. + :type description: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :type share_kind: str or ~data_share_management_client.models.ShareKind + :param terms: Share terms. + :type terms: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, + 'terms': {'key': 'properties.terms', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Share, self).__init__(**kwargs) + self.created_at = None + self.description = kwargs.get('description', None) + self.provisioning_state = None + self.share_kind = kwargs.get('share_kind', None) + self.terms = kwargs.get('terms', None) + self.user_email = None + self.user_name = None + + +class ShareList(msrest.serialization.Model): + """List response for get Shares. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Share] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Share]'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class ShareProperties(msrest.serialization.Model): + """Share property bag. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_at: Time at which the share was created. + :vartype created_at: ~datetime.datetime + :param description: Share description. + :type description: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :type share_kind: str or ~data_share_management_client.models.ShareKind + :param terms: Share terms. + :type terms: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'share_kind': {'key': 'shareKind', 'type': 'str'}, + 'terms': {'key': 'terms', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareProperties, self).__init__(**kwargs) + self.created_at = None + self.description = kwargs.get('description', None) + self.provisioning_state = None + self.share_kind = kwargs.get('share_kind', None) + self.terms = kwargs.get('terms', None) + self.user_email = None + self.user_name = None + + +class ShareSubscription(ProxyDto): + """A share subscription data transfer object. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar created_at: Time at which the share subscription was created. + :vartype created_at: ~datetime.datetime + :param invitation_id: Required. The invitation id. + :type invitation_id: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar share_description: Description of share. + :vartype share_description: str + :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :vartype share_kind: str or ~data_share_management_client.models.ShareKind + :ivar share_name: Name of the share. + :vartype share_name: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + :ivar share_terms: Terms of a share. + :vartype share_terms: str + :param source_share_location: Required. Source share location. + :type source_share_location: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_at': {'readonly': True}, + 'invitation_id': {'required': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'share_description': {'readonly': True}, + 'share_kind': {'readonly': True}, + 'share_name': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + 'share_terms': {'readonly': True}, + 'source_share_location': {'required': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'share_description': {'key': 'properties.shareDescription', 'type': 'str'}, + 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, + 'share_name': {'key': 'properties.shareName', 'type': 'str'}, + 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, + 'share_terms': {'key': 'properties.shareTerms', 'type': 'str'}, + 'source_share_location': {'key': 'properties.sourceShareLocation', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSubscription, self).__init__(**kwargs) + self.created_at = None + self.invitation_id = kwargs.get('invitation_id', None) + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.provisioning_state = None + self.share_description = None + self.share_kind = None + self.share_name = None + self.share_subscription_status = None + self.share_terms = None + self.source_share_location = kwargs.get('source_share_location', None) + self.user_email = None + self.user_name = None + + +class ShareSubscriptionList(msrest.serialization.Model): + """List response for get ShareSubscription. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSubscription] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSubscription]'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSubscriptionList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class ShareSubscriptionProperties(msrest.serialization.Model): + """Share subscription property bag. + + 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. + + :ivar created_at: Time at which the share subscription was created. + :vartype created_at: ~datetime.datetime + :param invitation_id: Required. The invitation id. + :type invitation_id: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar share_description: Description of share. + :vartype share_description: str + :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :vartype share_kind: str or ~data_share_management_client.models.ShareKind + :ivar share_name: Name of the share. + :vartype share_name: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + :ivar share_terms: Terms of a share. + :vartype share_terms: str + :param source_share_location: Required. Source share location. + :type source_share_location: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'invitation_id': {'required': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'share_description': {'readonly': True}, + 'share_kind': {'readonly': True}, + 'share_name': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + 'share_terms': {'readonly': True}, + 'source_share_location': {'required': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'invitation_id': {'key': 'invitationId', 'type': 'str'}, + 'provider_email': {'key': 'providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'share_description': {'key': 'shareDescription', 'type': 'str'}, + 'share_kind': {'key': 'shareKind', 'type': 'str'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, + 'share_terms': {'key': 'shareTerms', 'type': 'str'}, + 'source_share_location': {'key': 'sourceShareLocation', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSubscriptionProperties, self).__init__(**kwargs) + self.created_at = None + self.invitation_id = kwargs.get('invitation_id', None) + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.provisioning_state = None + self.share_description = None + self.share_kind = None + self.share_name = None + self.share_subscription_status = None + self.share_terms = None + self.source_share_location = kwargs.get('source_share_location', None) + self.user_email = None + self.user_name = None + + +class ShareSubscriptionSynchronization(msrest.serialization.Model): + """A ShareSubscriptionSynchronization data transfer object. + + 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. + + :ivar duration_ms: Synchronization duration. + :vartype duration_ms: int + :ivar end_time: End time of synchronization. + :vartype end_time: ~datetime.datetime + :ivar message: message of Synchronization. + :vartype message: str + :ivar start_time: start time of synchronization. + :vartype start_time: ~datetime.datetime + :ivar status: Raw Status. + :vartype status: str + :param synchronization_id: Required. Synchronization id. + :type synchronization_id: str + :ivar synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :vartype synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + """ + + _validation = { + 'duration_ms': {'readonly': True}, + 'end_time': {'readonly': True}, + 'message': {'readonly': True}, + 'start_time': {'readonly': True}, + 'status': {'readonly': True}, + 'synchronization_id': {'required': True}, + 'synchronization_mode': {'readonly': True}, + } + + _attribute_map = { + 'duration_ms': {'key': 'durationMs', 'type': 'int'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'synchronization_id': {'key': 'synchronizationId', 'type': 'str'}, + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSubscriptionSynchronization, self).__init__(**kwargs) + self.duration_ms = None + self.end_time = None + self.message = None + self.start_time = None + self.status = None + self.synchronization_id = kwargs.get('synchronization_id', None) + self.synchronization_mode = None + + +class ShareSubscriptionSynchronizationList(msrest.serialization.Model): + """A consumer side list of share subscription synchronizations. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSubscriptionSynchronization] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSubscriptionSynchronization]'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSubscriptionSynchronizationList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class ShareSynchronization(msrest.serialization.Model): + """A ShareSynchronization data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param consumer_email: Email of the user who created the synchronization. + :type consumer_email: str + :param consumer_name: Name of the user who created the synchronization. + :type consumer_name: str + :param consumer_tenant_name: Tenant name of the consumer who created the synchronization. + :type consumer_tenant_name: str + :param duration_ms: synchronization duration. + :type duration_ms: int + :param end_time: End time of synchronization. + :type end_time: ~datetime.datetime + :param message: message of synchronization. + :type message: str + :param start_time: start time of synchronization. + :type start_time: ~datetime.datetime + :param status: Raw Status. + :type status: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :ivar synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :vartype synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + """ + + _validation = { + 'synchronization_mode': {'readonly': True}, + } + + _attribute_map = { + 'consumer_email': {'key': 'consumerEmail', 'type': 'str'}, + 'consumer_name': {'key': 'consumerName', 'type': 'str'}, + 'consumer_tenant_name': {'key': 'consumerTenantName', 'type': 'str'}, + 'duration_ms': {'key': 'durationMs', 'type': 'int'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'synchronization_id': {'key': 'synchronizationId', 'type': 'str'}, + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSynchronization, self).__init__(**kwargs) + self.consumer_email = kwargs.get('consumer_email', None) + self.consumer_name = kwargs.get('consumer_name', None) + self.consumer_tenant_name = kwargs.get('consumer_tenant_name', None) + self.duration_ms = kwargs.get('duration_ms', None) + self.end_time = kwargs.get('end_time', None) + self.message = kwargs.get('message', None) + self.start_time = kwargs.get('start_time', None) + self.status = kwargs.get('status', None) + self.synchronization_id = kwargs.get('synchronization_id', None) + self.synchronization_mode = None + + +class ShareSynchronizationList(msrest.serialization.Model): + """List response for get ShareSynchronization. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSynchronization] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSynchronization]'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSynchronizationList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class SourceShareSynchronizationSettingList(msrest.serialization.Model): + """List response for get source share Synchronization settings. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.SourceShareSynchronizationSetting] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[SourceShareSynchronizationSetting]'}, + } + + def __init__( + self, + **kwargs + ): + super(SourceShareSynchronizationSettingList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class SqlDbTableDataSet(DataSet): + """A SQL DB table data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param database_name: Database name of the source data set. + :type database_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param schema_name: Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: SQL DB table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDbTableDataSet, self).__init__(**kwargs) + self.kind = 'SqlDBTable' + self.database_name = kwargs.get('database_name', None) + self.data_set_id = None + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SqlDbTableDataSetMapping(DataSetMapping): + """A SQL DB Table data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param database_name: Required. DatabaseName name of the sink data set. + :type database_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DB table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'database_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDbTableDataSetMapping, self).__init__(**kwargs) + self.kind = 'SqlDBTable' + self.database_name = kwargs.get('database_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.provisioning_state = None + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SqlDbTableDataSetMappingProperties(msrest.serialization.Model): + """Properties of the SQL DB table data set mapping. + + 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 database_name: Required. DatabaseName name of the sink data set. + :type database_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DB table name. + :type table_name: str + """ + + _validation = { + 'database_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDbTableDataSetMappingProperties, self).__init__(**kwargs) + self.database_name = kwargs.get('database_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.provisioning_state = None + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SqlDbTableProperties(msrest.serialization.Model): + """Properties of the SQL DB table data set. + + 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 database_name: Required. Database name of the source data set. + :type database_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DB table name. + :type table_name: str + """ + + _validation = { + 'database_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDbTableProperties, self).__init__(**kwargs) + self.database_name = kwargs.get('database_name', None) + self.data_set_id = None + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SqlDwTableDataSet(DataSet): + """A SQL DW table data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param data_warehouse_name: DataWarehouse name of the source data set. + :type data_warehouse_name: str + :param schema_name: Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: SQL DW table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_warehouse_name': {'key': 'properties.dataWarehouseName', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDwTableDataSet, self).__init__(**kwargs) + self.kind = 'SqlDWTable' + self.data_set_id = None + self.data_warehouse_name = kwargs.get('data_warehouse_name', None) + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SqlDwTableDataSetMapping(DataSetMapping): + """A SQL DW Table data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param data_warehouse_name: Required. DataWarehouse name of the source data set. + :type data_warehouse_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DW table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'data_warehouse_name': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'data_warehouse_name': {'key': 'properties.dataWarehouseName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDwTableDataSetMapping, self).__init__(**kwargs) + self.kind = 'SqlDWTable' + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.data_warehouse_name = kwargs.get('data_warehouse_name', None) + self.provisioning_state = None + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SqlDwTableDataSetMappingProperties(msrest.serialization.Model): + """Properties of the SQL DW table data set mapping. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param data_warehouse_name: Required. DataWarehouse name of the source data set. + :type data_warehouse_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DW table name. + :type table_name: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'data_warehouse_name': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDwTableDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.data_warehouse_name = kwargs.get('data_warehouse_name', None) + self.provisioning_state = None + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SqlDwTableProperties(msrest.serialization.Model): + """Properties of the SQL DW table data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param data_warehouse_name: Required. DataWarehouse name of the source data set. + :type data_warehouse_name: str + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DW table name. + :type table_name: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'data_warehouse_name': {'required': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SqlDwTableProperties, self).__init__(**kwargs) + self.data_set_id = None + self.data_warehouse_name = kwargs.get('data_warehouse_name', None) + self.schema_name = kwargs.get('schema_name', None) + self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) + self.table_name = kwargs.get('table_name', None) + + +class SynchronizationDetails(msrest.serialization.Model): + """Synchronization details at data set level. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar data_set_id: Id of data set. + :vartype data_set_id: str + :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', + 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. + :vartype data_set_type: str or ~data_share_management_client.models.DataSetType + :ivar duration_ms: Duration of data set level copy. + :vartype duration_ms: int + :ivar end_time: End time of data set level copy. + :vartype end_time: ~datetime.datetime + :ivar files_read: The number of files read from the source data set. + :vartype files_read: long + :ivar files_written: The number of files written into the sink data set. + :vartype files_written: long + :ivar message: Error message if any. + :vartype message: str + :ivar name: Name of the data set. + :vartype name: str + :ivar rows_copied: The number of files copied into the sink data set. + :vartype rows_copied: long + :ivar rows_read: The number of rows read from the source data set. + :vartype rows_read: long + :ivar size_read: The size of the data read from the source data set in bytes. + :vartype size_read: long + :ivar size_written: The size of the data written into the sink data set in bytes. + :vartype size_written: long + :ivar start_time: Start time of data set level copy. + :vartype start_time: ~datetime.datetime + :ivar status: Raw Status. + :vartype status: str + :ivar v_core: The vCore units consumed for the data set synchronization. + :vartype v_core: long + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'data_set_type': {'readonly': True}, + 'duration_ms': {'readonly': True}, + 'end_time': {'readonly': True}, + 'files_read': {'readonly': True}, + 'files_written': {'readonly': True}, + 'message': {'readonly': True}, + 'name': {'readonly': True}, + 'rows_copied': {'readonly': True}, + 'rows_read': {'readonly': True}, + 'size_read': {'readonly': True}, + 'size_written': {'readonly': True}, + 'start_time': {'readonly': True}, + 'status': {'readonly': True}, + 'v_core': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_type': {'key': 'dataSetType', 'type': 'str'}, + 'duration_ms': {'key': 'durationMs', 'type': 'int'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'files_read': {'key': 'filesRead', 'type': 'long'}, + 'files_written': {'key': 'filesWritten', 'type': 'long'}, + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rows_copied': {'key': 'rowsCopied', 'type': 'long'}, + 'rows_read': {'key': 'rowsRead', 'type': 'long'}, + 'size_read': {'key': 'sizeRead', 'type': 'long'}, + 'size_written': {'key': 'sizeWritten', 'type': 'long'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'v_core': {'key': 'vCore', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(SynchronizationDetails, self).__init__(**kwargs) + self.data_set_id = None + self.data_set_type = None + self.duration_ms = None + self.end_time = None + self.files_read = None + self.files_written = None + self.message = None + self.name = None + self.rows_copied = None + self.rows_read = None + self.size_read = None + self.size_written = None + self.start_time = None + self.status = None + self.v_core = None + + +class SynchronizationDetailsList(msrest.serialization.Model): + """details of synchronization. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.SynchronizationDetails] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[SynchronizationDetails]'}, + } + + def __init__( + self, + **kwargs + ): + super(SynchronizationDetailsList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class SynchronizationSettingList(msrest.serialization.Model): + """List response for get Synchronization settings. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.SynchronizationSetting] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[SynchronizationSetting]'}, + } + + def __init__( + self, + **kwargs + ): + super(SynchronizationSettingList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + +class Synchronize(msrest.serialization.Model): + """Payload for the synchronizing the data. + + :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + """ + + _attribute_map = { + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Synchronize, self).__init__(**kwargs) + self.synchronization_mode = kwargs.get('synchronization_mode', None) + + +class TriggerList(msrest.serialization.Model): + """List response for get triggers. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Trigger] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Trigger]'}, + } + + def __init__( + self, + **kwargs + ): + super(TriggerList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py new file mode 100644 index 00000000000..b0ec92783d0 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py @@ -0,0 +1,5970 @@ +# 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 datetime +from typing import Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class DefaultDto(msrest.serialization.Model): + """Base data transfer object implementation for default resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :param location: Location of the azure resource. + :type location: str + :ivar name: Name of the azure resource. + :vartype name: str + :param tags: A set of tags. Tags on the azure resource. + :type tags: dict[str, str] + :ivar type: Type of the azure resource. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + *, + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(DefaultDto, self).__init__(**kwargs) + self.id = None + self.location = location + self.name = None + self.tags = tags + self.type = None + + +class Account(DefaultDto): + """An account data transfer object. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :param location: Location of the azure resource. + :type location: str + :ivar name: Name of the azure resource. + :vartype name: str + :param tags: A set of tags. Tags on the azure resource. + :type tags: dict[str, str] + :ivar type: Type of the azure resource. + :vartype type: str + :param identity: Required. Identity of resource. + :type identity: ~data_share_management_client.models.Identity + :ivar created_at: Time at which the account was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'identity': {'required': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'type': {'key': 'type', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + *, + identity: "Identity", + location: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(Account, self).__init__(location=location, tags=tags, **kwargs) + self.identity = identity + self.created_at = None + self.provisioning_state = None + self.user_email = None + self.user_name = None + + +class AccountList(msrest.serialization.Model): + """List response for get Accounts. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Account] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Account]'}, + } + + def __init__( + self, + *, + value: List["Account"], + next_link: Optional[str] = None, + **kwargs + ): + super(AccountList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class AccountProperties(msrest.serialization.Model): + """Account property bag. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_at: Time at which the account was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AccountProperties, self).__init__(**kwargs) + self.created_at = None + self.provisioning_state = None + self.user_email = None + self.user_name = None + + +class AccountUpdateParameters(msrest.serialization.Model): + """Update parameters for accounts. + + :param tags: A set of tags. Tags on the azure resource. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(AccountUpdateParameters, self).__init__(**kwargs) + self.tags = tags + + +class ProxyDto(msrest.serialization.Model): + """Base data transfer object implementation for proxy resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyDto, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class DataSet(ProxyDto): + """A DataSet data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AdlsGen1FileDataSet, AdlsGen1FolderDataSet, AdlsGen2FileDataSet, AdlsGen2FileSystemDataSet, AdlsGen2FolderDataSet, BlobDataSet, BlobFolderDataSet, BlobContainerDataSet, KustoClusterDataSet, KustoDatabaseDataSet, SqlDbTableDataSet, SqlDwTableDataSet. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AdlsGen1File': 'AdlsGen1FileDataSet', 'AdlsGen1Folder': 'AdlsGen1FolderDataSet', 'AdlsGen2File': 'AdlsGen2FileDataSet', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSet', 'AdlsGen2Folder': 'AdlsGen2FolderDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDbTableDataSet', 'SqlDWTable': 'SqlDwTableDataSet'} + } + + def __init__( + self, + **kwargs + ): + super(DataSet, self).__init__(**kwargs) + self.kind = 'DataSet' + + +class AdlsGen1FileDataSet(DataSet): + """An ADLS Gen 1 file data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_name: Required. The file name in the ADLS account. + :type file_name: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_name': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'properties.accountName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_name': {'key': 'properties.fileName', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + account_name: str, + file_name: str, + folder_path: str, + resource_group: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen1FileDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen1File' + self.account_name = account_name + self.data_set_id = None + self.file_name = file_name + self.folder_path = folder_path + self.resource_group = resource_group + self.subscription_id = subscription_id + + +class AdlsGen1FileProperties(msrest.serialization.Model): + """Properties of the ADLS Gen1 file data set. + + 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 account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_name: Required. The file name in the ADLS account. + :type file_name: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_name': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_name': {'key': 'fileName', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + account_name: str, + file_name: str, + folder_path: str, + resource_group: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen1FileProperties, self).__init__(**kwargs) + self.account_name = account_name + self.data_set_id = None + self.file_name = file_name + self.folder_path = folder_path + self.resource_group = resource_group + self.subscription_id = subscription_id + + +class AdlsGen1FolderDataSet(DataSet): + """An ADLS Gen 1 folder data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'properties.accountName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + account_name: str, + folder_path: str, + resource_group: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen1FolderDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen1Folder' + self.account_name = account_name + self.data_set_id = None + self.folder_path = folder_path + self.resource_group = resource_group + self.subscription_id = subscription_id + + +class AdlsGen1FolderProperties(msrest.serialization.Model): + """Properties of the ADLS Gen1 folder data set. + + 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 account_name: Required. The ADLS account name. + :type account_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param folder_path: Required. The folder path within the ADLS account. + :type folder_path: str + :param resource_group: Required. Resource group of ADLS account. + :type resource_group: str + :param subscription_id: Required. Subscription id of ADLS account. + :type subscription_id: str + """ + + _validation = { + 'account_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + account_name: str, + folder_path: str, + resource_group: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen1FolderProperties, self).__init__(**kwargs) + self.account_name = account_name + self.data_set_id = None + self.folder_path = folder_path + self.resource_group = resource_group + self.subscription_id = subscription_id + + +class AdlsGen2FileDataSet(DataSet): + """An ADLS Gen 2 file data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + file_path: str, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FileDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2File' + self.data_set_id = None + self.file_path = file_path + self.file_system = file_system + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class DataSetMapping(ProxyDto): + """A data set mapping data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AdlsGen2FileDataSetMapping, AdlsGen2FileSystemDataSetMapping, AdlsGen2FolderDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping, BlobContainerDataSetMapping, KustoClusterDataSetMapping, KustoDatabaseDataSetMapping, SqlDbTableDataSetMapping, SqlDwTableDataSetMapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AdlsGen2File': 'AdlsGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'AdlsGen2FolderDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDbTableDataSetMapping', 'SqlDWTable': 'SqlDwTableDataSetMapping'} + } + + def __init__( + self, + **kwargs + ): + super(DataSetMapping, self).__init__(**kwargs) + self.kind = 'DataSetMapping' + + +class AdlsGen2FileDataSetMapping(DataSetMapping): + """An ADLS Gen2 file data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'output_type': {'key': 'properties.outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + file_path: str, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + output_type: Optional[Union[str, "OutputType"]] = None, + **kwargs + ): + super(AdlsGen2FileDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2File' + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_path = file_path + self.file_system = file_system + self.output_type = output_type + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FileDataSetMappingProperties(msrest.serialization.Model): + """ADLS Gen 2 file data set mapping property bag. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'output_type': {'key': 'outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + file_path: str, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + output_type: Optional[Union[str, "OutputType"]] = None, + **kwargs + ): + super(AdlsGen2FileDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_path = file_path + self.file_system = file_system + self.output_type = output_type + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FileProperties(msrest.serialization.Model): + """Properties of the ADLS Gen2 file data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the file system. + :type file_path: str + :param file_system: Required. File system to which the file belongs. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + file_path: str, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FileProperties, self).__init__(**kwargs) + self.data_set_id = None + self.file_path = file_path + self.file_system = file_system + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FileSystemDataSet(DataSet): + """An ADLS Gen 2 file system data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. The file system name. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FileSystemDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2FileSystem' + self.data_set_id = None + self.file_system = file_system + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FileSystemDataSetMapping(DataSetMapping): + """An ADLS Gen2 file system data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. The file system name. + :type file_system: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FileSystemDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2FileSystem' + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_system = file_system + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FileSystemDataSetMappingProperties(msrest.serialization.Model): + """ADLS Gen 2 file system data set mapping property bag. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. The file system name. + :type file_system: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FileSystemDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_system = file_system + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FileSystemProperties(msrest.serialization.Model): + """Properties of the ADLS Gen2 file system data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. The file system name. + :type file_system: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + file_system: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FileSystemProperties, self).__init__(**kwargs) + self.data_set_id = None + self.file_system = file_system + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FolderDataSet(DataSet): + """An ADLS Gen 2 folder data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + file_system: str, + folder_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FolderDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2Folder' + self.data_set_id = None + self.file_system = file_system + self.folder_path = folder_path + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FolderDataSetMapping(DataSetMapping): + """An ADLS Gen2 folder data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + file_system: str, + folder_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FolderDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2Folder' + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_system = file_system + self.folder_path = folder_path + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FolderDataSetMappingProperties(msrest.serialization.Model): + """ADLS Gen 2 folder data set mapping property bag. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + file_system: str, + folder_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FolderDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_system = file_system + self.folder_path = folder_path + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class AdlsGen2FolderProperties(msrest.serialization.Model): + """Properties of the ADLS Gen2 folder data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. File system to which the folder belongs. + :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'file_system': {'required': True}, + 'folder_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_system': {'key': 'fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'folderPath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + file_system: str, + folder_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(AdlsGen2FolderProperties, self).__init__(**kwargs) + self.data_set_id = None + self.file_system = file_system + self.folder_path = folder_path + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobContainerDataSet(DataSet): + """An Azure storage blob container data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobContainerDataSet, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = container_name + self.data_set_id = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobContainerDataSetMapping(DataSetMapping): + """A Blob container data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + data_set_id: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobContainerDataSetMapping, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = container_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobContainerMappingProperties(msrest.serialization.Model): + """Azure storage Blob container data set mapping property bag. + + 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 container_name: Required. BLOB Container name. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + data_set_id: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobContainerMappingProperties, self).__init__(**kwargs) + self.container_name = container_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobContainerProperties(msrest.serialization.Model): + """Properties of the BLOB container data set. + + 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 container_name: Required. BLOB Container name. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobContainerProperties, self).__init__(**kwargs) + self.container_name = container_name + self.data_set_id = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobDataSet(DataSet): + """An Azure storage blob data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the source data set. + :type file_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + file_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobDataSet, self).__init__(**kwargs) + self.kind = 'Blob' + self.container_name = container_name + self.data_set_id = None + self.file_path = file_path + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobDataSetMapping(DataSetMapping): + """A Blob data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the source data set. + :type file_path: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'output_type': {'key': 'properties.outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + data_set_id: str, + file_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + output_type: Optional[Union[str, "OutputType"]] = None, + **kwargs + ): + super(BlobDataSetMapping, self).__init__(**kwargs) + self.kind = 'Blob' + self.container_name = container_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_path = file_path + self.output_type = output_type + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobFolderDataSet(DataSet): + """An Azure storage blob folder data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'prefix': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + prefix: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobFolderDataSet, self).__init__(**kwargs) + self.kind = 'BlobFolder' + self.container_name = container_name + self.data_set_id = None + self.prefix = prefix + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobFolderDataSetMapping(DataSetMapping): + """A Blob folder data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'prefix': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + data_set_id: str, + prefix: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobFolderDataSetMapping, self).__init__(**kwargs) + self.kind = 'BlobFolder' + self.container_name = container_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.prefix = prefix + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobFolderMappingProperties(msrest.serialization.Model): + """Azure storage Blob folder data set mapping property bag. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'prefix': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + data_set_id: str, + prefix: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobFolderMappingProperties, self).__init__(**kwargs) + self.container_name = container_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.prefix = prefix + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobFolderProperties(msrest.serialization.Model): + """Properties of the blob folder data set. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'prefix': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + prefix: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobFolderProperties, self).__init__(**kwargs) + self.container_name = container_name + self.data_set_id = None + self.prefix = prefix + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobMappingProperties(msrest.serialization.Model): + """Azure storage Blob data set mapping property bag. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_path: Required. File path within the source data set. + :type file_path: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'output_type': {'key': 'outputType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + data_set_id: str, + file_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + output_type: Optional[Union[str, "OutputType"]] = None, + **kwargs + ): + super(BlobMappingProperties, self).__init__(**kwargs) + self.container_name = container_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.file_path = file_path + self.output_type = output_type + self.provisioning_state = None + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class BlobProperties(msrest.serialization.Model): + """Properties of the blob data set. + + 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 container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_path: Required. File path within the source data set. + :type file_path: str + :param resource_group: Required. Resource group of storage account. + :type resource_group: str + :param storage_account_name: Required. Storage account name of the source data set. + :type storage_account_name: str + :param subscription_id: Required. Subscription id of storage account. + :type subscription_id: str + """ + + _validation = { + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, + 'resource_group': {'required': True}, + 'storage_account_name': {'required': True}, + 'subscription_id': {'required': True}, + } + + _attribute_map = { + 'container_name': {'key': 'containerName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + } + + def __init__( + self, + *, + container_name: str, + file_path: str, + resource_group: str, + storage_account_name: str, + subscription_id: str, + **kwargs + ): + super(BlobProperties, self).__init__(**kwargs) + self.container_name = container_name + self.data_set_id = None + self.file_path = file_path + self.resource_group = resource_group + self.storage_account_name = storage_account_name + self.subscription_id = subscription_id + + +class ConsumerInvitation(ProxyDto): + """A consumer Invitation data transfer object. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar data_set_count: Number of data sets in a share. + :vartype data_set_count: int + :ivar description: Description shared when the invitation was created. + :vartype description: str + :param invitation_id: Required. Unique id of the invitation. + :type invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar location: invitation location. + :vartype location: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :ivar share_name: Gets the source share Name. + :vartype share_name: str + :ivar terms_of_use: Terms of use shared when the invitation was created. + :vartype terms_of_use: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'data_set_count': {'readonly': True}, + 'description': {'readonly': True}, + 'invitation_id': {'required': True}, + 'invitation_status': {'readonly': True}, + 'location': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'share_name': {'readonly': True}, + 'terms_of_use': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'data_set_count': {'key': 'properties.dataSetCount', 'type': 'int'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'properties.invitationStatus', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, + 'responded_at': {'key': 'properties.respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'properties.sentAt', 'type': 'iso-8601'}, + 'share_name': {'key': 'properties.shareName', 'type': 'str'}, + 'terms_of_use': {'key': 'properties.termsOfUse', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + *, + invitation_id: str, + **kwargs + ): + super(ConsumerInvitation, self).__init__(**kwargs) + self.data_set_count = None + self.description = None + self.invitation_id = invitation_id + self.invitation_status = None + self.location = None + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.responded_at = None + self.sent_at = None + self.share_name = None + self.terms_of_use = None + self.user_email = None + self.user_name = None + + +class ConsumerInvitationList(msrest.serialization.Model): + """List response for get InvitationList. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ConsumerInvitation] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ConsumerInvitation]'}, + } + + def __init__( + self, + *, + value: List["ConsumerInvitation"], + next_link: Optional[str] = None, + **kwargs + ): + super(ConsumerInvitationList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class ConsumerInvitationProperties(msrest.serialization.Model): + """Properties of consumer invitation. + + 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. + + :ivar data_set_count: Number of data sets in a share. + :vartype data_set_count: int + :ivar description: Description shared when the invitation was created. + :vartype description: str + :param invitation_id: Required. Unique id of the invitation. + :type invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar location: invitation location. + :vartype location: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :ivar share_name: Gets the source share Name. + :vartype share_name: str + :ivar terms_of_use: Terms of use shared when the invitation was created. + :vartype terms_of_use: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'data_set_count': {'readonly': True}, + 'description': {'readonly': True}, + 'invitation_id': {'required': True}, + 'invitation_status': {'readonly': True}, + 'location': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'share_name': {'readonly': True}, + 'terms_of_use': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'data_set_count': {'key': 'dataSetCount', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + 'invitation_id': {'key': 'invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provider_email': {'key': 'providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, + 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + 'terms_of_use': {'key': 'termsOfUse', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + *, + invitation_id: str, + **kwargs + ): + super(ConsumerInvitationProperties, self).__init__(**kwargs) + self.data_set_count = None + self.description = None + self.invitation_id = invitation_id + self.invitation_status = None + self.location = None + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.responded_at = None + self.sent_at = None + self.share_name = None + self.terms_of_use = None + self.user_email = None + self.user_name = None + + +class ConsumerSourceDataSet(ProxyDto): + """A consumer side dataSet data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar data_set_id: DataSet Id. + :vartype data_set_id: str + :ivar data_set_location: Location of the data set. + :vartype data_set_location: str + :ivar data_set_name: DataSet name. + :vartype data_set_name: str + :ivar data_set_path: DataSet path. + :vartype data_set_path: str + :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', + 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. + :vartype data_set_type: str or ~data_share_management_client.models.DataSetType + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'data_set_id': {'readonly': True}, + 'data_set_location': {'readonly': True}, + 'data_set_name': {'readonly': True}, + 'data_set_path': {'readonly': True}, + 'data_set_type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_location': {'key': 'properties.dataSetLocation', 'type': 'str'}, + 'data_set_name': {'key': 'properties.dataSetName', 'type': 'str'}, + 'data_set_path': {'key': 'properties.dataSetPath', 'type': 'str'}, + 'data_set_type': {'key': 'properties.dataSetType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerSourceDataSet, self).__init__(**kwargs) + self.data_set_id = None + self.data_set_location = None + self.data_set_name = None + self.data_set_path = None + self.data_set_type = None + + +class ConsumerSourceDataSetList(msrest.serialization.Model): + """A consumer side list of source dataSets. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ConsumerSourceDataSet] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ConsumerSourceDataSet]'}, + } + + def __init__( + self, + *, + value: List["ConsumerSourceDataSet"], + next_link: Optional[str] = None, + **kwargs + ): + super(ConsumerSourceDataSetList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class ConsumerSourceDataSetProperties(msrest.serialization.Model): + """Properties of consumer source dataSet. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar data_set_id: DataSet Id. + :vartype data_set_id: str + :ivar data_set_location: Location of the data set. + :vartype data_set_location: str + :ivar data_set_name: DataSet name. + :vartype data_set_name: str + :ivar data_set_path: DataSet path. + :vartype data_set_path: str + :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', + 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. + :vartype data_set_type: str or ~data_share_management_client.models.DataSetType + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'data_set_location': {'readonly': True}, + 'data_set_name': {'readonly': True}, + 'data_set_path': {'readonly': True}, + 'data_set_type': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_location': {'key': 'dataSetLocation', 'type': 'str'}, + 'data_set_name': {'key': 'dataSetName', 'type': 'str'}, + 'data_set_path': {'key': 'dataSetPath', 'type': 'str'}, + 'data_set_type': {'key': 'dataSetType', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerSourceDataSetProperties, self).__init__(**kwargs) + self.data_set_id = None + self.data_set_location = None + self.data_set_name = None + self.data_set_path = None + self.data_set_type = None + + +class DataSetList(msrest.serialization.Model): + """List response for get DataSets. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.DataSet] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[DataSet]'}, + } + + def __init__( + self, + *, + value: List["DataSet"], + next_link: Optional[str] = None, + **kwargs + ): + super(DataSetList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class DataSetMappingList(msrest.serialization.Model): + """List response for get DataSetMappings. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.DataSetMapping] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[DataSetMapping]'}, + } + + def __init__( + self, + *, + value: List["DataSetMapping"], + next_link: Optional[str] = None, + **kwargs + ): + super(DataSetMappingList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class DataShareErrorException(HttpResponseError): + """Server responded with exception of type: 'DataShareError'. + + :param response: Server response to be deserialized. + :param error_model: A deserialized model of the response body as model. + """ + + def __init__(self, response, error_model): + self.error = error_model + super(DataShareErrorException, self).__init__(response=response, error_model=error_model) + + @classmethod + def from_response(cls, response, deserialize): + """Deserialize this response as this exception, or a subclass of this exception. + + :param response: Server response to be deserialized. + :param deserialize: A deserializer + """ + model_name = 'DataShareError' + error = deserialize(model_name, response) + if error is None: + error = deserialize.dependencies[model_name]() + return error._EXCEPTION_TYPE(response, error) + + +class DataShareError(msrest.serialization.Model): + """The data share error model. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. The data share error body model. + :type error: ~data_share_management_client.models.DataShareErrorInfo + """ + _EXCEPTION_TYPE = DataShareErrorException + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'DataShareErrorInfo'}, + } + + def __init__( + self, + *, + error: "DataShareErrorInfo", + **kwargs + ): + super(DataShareError, self).__init__(**kwargs) + self.error = error + + +class DataShareErrorInfo(msrest.serialization.Model): + """The data share error body model. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. Code of the error. + :type code: str + :param details: Nested details of the error model. + :type details: list[~data_share_management_client.models.DataShareErrorInfo] + :param message: Required. Message of the error. + :type message: str + :param target: Target of the error. + :type target: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[DataShareErrorInfo]'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + } + + def __init__( + self, + *, + code: str, + message: str, + details: Optional[List["DataShareErrorInfo"]] = None, + target: Optional[str] = None, + **kwargs + ): + super(DataShareErrorInfo, self).__init__(**kwargs) + self.code = code + self.details = details + self.message = message + self.target = target + + +class DimensionProperties(msrest.serialization.Model): + """properties for dimension. + + :param display_name: localized display name of the dimension to customer. + :type display_name: str + :param name: dimension name. + :type name: str + """ + + _attribute_map = { + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + *, + display_name: Optional[str] = None, + name: Optional[str] = None, + **kwargs + ): + super(DimensionProperties, self).__init__(**kwargs) + self.display_name = display_name + self.name = name + + +class Identity(msrest.serialization.Model): + """Identity of resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: service principal Id. + :vartype principal_id: str + :ivar tenant_id: Tenant Id. + :vartype tenant_id: str + :ivar type: Identity Type. Default value: "SystemAssigned". + :vartype type: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'constant': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "SystemAssigned" + + def __init__( + self, + **kwargs + ): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + + +class Invitation(ProxyDto): + """A Invitation data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar invitation_id: unique invitation id. + :vartype invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. + :type target_active_directory_id: str + :param target_email: The email the invitation is directed to. + :type target_email: str + :param target_object_id: The target user or application Id that invitation is being sent to. + Must be specified along TargetActiveDirectoryId. This enables sending + invitations to specific users or applications in an AD tenant. + :type target_object_id: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'invitation_id': {'readonly': True}, + 'invitation_status': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'properties.invitationStatus', 'type': 'str'}, + 'responded_at': {'key': 'properties.respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'properties.sentAt', 'type': 'iso-8601'}, + 'target_active_directory_id': {'key': 'properties.targetActiveDirectoryId', 'type': 'str'}, + 'target_email': {'key': 'properties.targetEmail', 'type': 'str'}, + 'target_object_id': {'key': 'properties.targetObjectId', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + *, + target_active_directory_id: Optional[str] = None, + target_email: Optional[str] = None, + target_object_id: Optional[str] = None, + **kwargs + ): + super(Invitation, self).__init__(**kwargs) + self.invitation_id = None + self.invitation_status = None + self.responded_at = None + self.sent_at = None + self.target_active_directory_id = target_active_directory_id + self.target_email = target_email + self.target_object_id = target_object_id + self.user_email = None + self.user_name = None + + +class InvitationList(msrest.serialization.Model): + """List response for get InvitationList. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Invitation] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Invitation]'}, + } + + def __init__( + self, + *, + value: List["Invitation"], + next_link: Optional[str] = None, + **kwargs + ): + super(InvitationList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class InvitationProperties(msrest.serialization.Model): + """Invitation property bag. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar invitation_id: unique invitation id. + :vartype invitation_id: str + :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', + 'Accepted', 'Rejected', 'Withdrawn'. + :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus + :ivar responded_at: The time the recipient responded to the invitation. + :vartype responded_at: ~datetime.datetime + :ivar sent_at: Gets the time at which the invitation was sent. + :vartype sent_at: ~datetime.datetime + :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. + :type target_active_directory_id: str + :param target_email: The email the invitation is directed to. + :type target_email: str + :param target_object_id: The target user or application Id that invitation is being sent to. + Must be specified along TargetActiveDirectoryId. This enables sending + invitations to specific users or applications in an AD tenant. + :type target_object_id: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'invitation_id': {'readonly': True}, + 'invitation_status': {'readonly': True}, + 'responded_at': {'readonly': True}, + 'sent_at': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'invitation_id': {'key': 'invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, + 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, + 'target_active_directory_id': {'key': 'targetActiveDirectoryId', 'type': 'str'}, + 'target_email': {'key': 'targetEmail', 'type': 'str'}, + 'target_object_id': {'key': 'targetObjectId', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + *, + target_active_directory_id: Optional[str] = None, + target_email: Optional[str] = None, + target_object_id: Optional[str] = None, + **kwargs + ): + super(InvitationProperties, self).__init__(**kwargs) + self.invitation_id = None + self.invitation_status = None + self.responded_at = None + self.sent_at = None + self.target_active_directory_id = target_active_directory_id + self.target_email = target_email + self.target_object_id = target_object_id + self.user_email = None + self.user_name = None + + +class KustoClusterDataSet(DataSet): + """A kusto cluster data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_cluster_resource_id: Required. Resource id of the kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + kusto_cluster_resource_id: str, + **kwargs + ): + super(KustoClusterDataSet, self).__init__(**kwargs) + self.kind = 'KustoCluster' + self.data_set_id = None + self.kusto_cluster_resource_id = kusto_cluster_resource_id + self.location = None + self.provisioning_state = None + + +class KustoClusterDataSetMapping(DataSetMapping): + """A Kusto cluster data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + kusto_cluster_resource_id: str, + **kwargs + ): + super(KustoClusterDataSetMapping, self).__init__(**kwargs) + self.kind = 'KustoCluster' + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kusto_cluster_resource_id + self.location = None + self.provisioning_state = None + + +class KustoClusterDataSetMappingProperties(msrest.serialization.Model): + """Properties of the Kusto cluster data set mapping. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + kusto_cluster_resource_id: str, + **kwargs + ): + super(KustoClusterDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kusto_cluster_resource_id + self.location = None + self.provisioning_state = None + + +class KustoClusterDataSetProperties(msrest.serialization.Model): + """Properties of the kusto cluster data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_cluster_resource_id: Required. Resource id of the kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + kusto_cluster_resource_id: str, + **kwargs + ): + super(KustoClusterDataSetProperties, self).__init__(**kwargs) + self.data_set_id = None + self.kusto_cluster_resource_id = kusto_cluster_resource_id + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSet(DataSet): + """A kusto database data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_database_resource_id: Required. Resource id of the kusto database. + :type kusto_database_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + 'kusto_database_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'kusto_database_resource_id': {'key': 'properties.kustoDatabaseResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + kusto_database_resource_id: str, + **kwargs + ): + super(KustoDatabaseDataSet, self).__init__(**kwargs) + self.kind = 'KustoDatabase' + self.data_set_id = None + self.kusto_database_resource_id = kusto_database_resource_id + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSetMapping(DataSetMapping): + """A Kusto database data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + kusto_cluster_resource_id: str, + **kwargs + ): + super(KustoDatabaseDataSetMapping, self).__init__(**kwargs) + self.kind = 'KustoDatabase' + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kusto_cluster_resource_id + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSetMappingProperties(msrest.serialization.Model): + """Properties of the Kusto database data set mapping. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. + :type kusto_cluster_resource_id: str + :ivar location: Location of the sink kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'kusto_cluster_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + kusto_cluster_resource_id: str, + **kwargs + ): + super(KustoDatabaseDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.kusto_cluster_resource_id = kusto_cluster_resource_id + self.location = None + self.provisioning_state = None + + +class KustoDatabaseDataSetProperties(msrest.serialization.Model): + """Properties of the kusto database data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param kusto_database_resource_id: Required. Resource id of the kusto database. + :type kusto_database_resource_id: str + :ivar location: Location of the kusto cluster. + :vartype location: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'kusto_database_resource_id': {'required': True}, + 'location': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'kusto_database_resource_id': {'key': 'kustoDatabaseResourceId', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + kusto_database_resource_id: str, + **kwargs + ): + super(KustoDatabaseDataSetProperties, self).__init__(**kwargs) + self.data_set_id = None + self.kusto_database_resource_id = kusto_database_resource_id + self.location = None + self.provisioning_state = None + + +class OperationList(msrest.serialization.Model): + """List response for get operations. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.OperationModel] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[OperationModel]'}, + } + + def __init__( + self, + *, + value: List["OperationModel"], + next_link: Optional[str] = None, + **kwargs + ): + super(OperationList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class OperationMetaLogSpecification(msrest.serialization.Model): + """log specifications for operation api. + + :param blob_duration: blob duration of the log. + :type blob_duration: str + :param display_name: localized name of the log category. + :type display_name: str + :param name: name of the log category. + :type name: str + """ + + _attribute_map = { + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__( + self, + *, + blob_duration: Optional[str] = None, + display_name: Optional[str] = None, + name: Optional[str] = None, + **kwargs + ): + super(OperationMetaLogSpecification, self).__init__(**kwargs) + self.blob_duration = blob_duration + self.display_name = display_name + self.name = name + + +class OperationMetaMetricSpecification(msrest.serialization.Model): + """metric specifications for the operation. + + :param aggregation_type: aggregation type of metric. + :type aggregation_type: str + :param dimensions: properties for dimension. + :type dimensions: list[~data_share_management_client.models.DimensionProperties] + :param display_description: description of the metric. + :type display_description: str + :param display_name: localized name of the metric. + :type display_name: str + :param enable_regional_mdm_account: enable regional mdm account. + :type enable_regional_mdm_account: str + :param internal_metric_name: internal metric name. + :type internal_metric_name: str + :param name: name of the metric. + :type name: str + :param resource_id_dimension_name_override: dimension name use to replace resource id if + specified. + :type resource_id_dimension_name_override: str + :param supported_aggregation_types: supported aggregation types. + :type supported_aggregation_types: list[str] + :param supported_time_grain_types: supported time grain types. + :type supported_time_grain_types: list[str] + :param unit: units for the metric. + :type unit: str + """ + + _attribute_map = { + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[DimensionProperties]'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'}, + 'supported_aggregation_types': {'key': 'supportedAggregationTypes', 'type': '[str]'}, + 'supported_time_grain_types': {'key': 'supportedTimeGrainTypes', 'type': '[str]'}, + 'unit': {'key': 'unit', 'type': 'str'}, + } + + def __init__( + self, + *, + aggregation_type: Optional[str] = None, + dimensions: Optional[List["DimensionProperties"]] = None, + display_description: Optional[str] = None, + display_name: Optional[str] = None, + enable_regional_mdm_account: Optional[str] = None, + internal_metric_name: Optional[str] = None, + name: Optional[str] = None, + resource_id_dimension_name_override: Optional[str] = None, + supported_aggregation_types: Optional[List[str]] = None, + supported_time_grain_types: Optional[List[str]] = None, + unit: Optional[str] = None, + **kwargs + ): + super(OperationMetaMetricSpecification, self).__init__(**kwargs) + self.aggregation_type = aggregation_type + self.dimensions = dimensions + self.display_description = display_description + self.display_name = display_name + self.enable_regional_mdm_account = enable_regional_mdm_account + self.internal_metric_name = internal_metric_name + self.name = name + self.resource_id_dimension_name_override = resource_id_dimension_name_override + self.supported_aggregation_types = supported_aggregation_types + self.supported_time_grain_types = supported_time_grain_types + self.unit = unit + + +class OperationMetaPropertyInfo(msrest.serialization.Model): + """properties on meta info. + + :param service_specification: The operation meta service specification. + :type service_specification: + ~data_share_management_client.models.OperationMetaServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, + } + + def __init__( + self, + *, + service_specification: Optional["OperationMetaServiceSpecification"] = None, + **kwargs + ): + super(OperationMetaPropertyInfo, self).__init__(**kwargs) + self.service_specification = service_specification + + +class OperationMetaServiceSpecification(msrest.serialization.Model): + """The operation meta service specification. + + :param log_specifications: log specifications for the operation. + :type log_specifications: + list[~data_share_management_client.models.OperationMetaLogSpecification] + :param metric_specifications: metric specifications for the operation. + :type metric_specifications: + list[~data_share_management_client.models.OperationMetaMetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[OperationMetaLogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[OperationMetaMetricSpecification]'}, + } + + def __init__( + self, + *, + log_specifications: Optional[List["OperationMetaLogSpecification"]] = None, + metric_specifications: Optional[List["OperationMetaMetricSpecification"]] = None, + **kwargs + ): + super(OperationMetaServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications + + +class OperationModel(msrest.serialization.Model): + """The response model for get operations. + + :param display: Properties on operations. + :type display: ~data_share_management_client.models.OperationModelProperties + :param name: Operation name for display purposes. + :type name: str + :param origin: origin of the operation. + :type origin: str + :param service_specification: The operation meta service specification. + :type service_specification: + ~data_share_management_client.models.OperationMetaServiceSpecification + """ + + _attribute_map = { + 'display': {'key': 'display', 'type': 'OperationModelProperties'}, + 'name': {'key': 'name', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, + } + + def __init__( + self, + *, + display: Optional["OperationModelProperties"] = None, + name: Optional[str] = None, + origin: Optional[str] = None, + service_specification: Optional["OperationMetaServiceSpecification"] = None, + **kwargs + ): + super(OperationModel, self).__init__(**kwargs) + self.display = display + self.name = name + self.origin = origin + self.service_specification = service_specification + + +class OperationModelProperties(msrest.serialization.Model): + """Properties on operations. + + :param description: Description of the operation for display purposes. + :type description: str + :param operation: Name of the operation for display purposes. + :type operation: str + :param provider: Name of the provider for display purposes. + :type provider: str + :param resource: Name of the resource type for display purposes. + :type resource: str + """ + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + } + + def __init__( + self, + *, + description: Optional[str] = None, + operation: Optional[str] = None, + provider: Optional[str] = None, + resource: Optional[str] = None, + **kwargs + ): + super(OperationModelProperties, self).__init__(**kwargs) + self.description = description + self.operation = operation + self.provider = provider + self.resource = resource + + +class OperationResponse(msrest.serialization.Model): + """Response for long running operation. + + All required parameters must be populated in order to send to Azure. + + :param end_time: start time. + :type end_time: ~datetime.datetime + :param error: The data share error body model. + :type error: ~data_share_management_client.models.DataShareErrorInfo + :param start_time: start time. + :type start_time: ~datetime.datetime + :param status: Required. Operation state of the long running operation. Possible values + include: 'Accepted', 'InProgress', 'TransientFailure', 'Succeeded', 'Failed', 'Canceled'. + :type status: str or ~data_share_management_client.models.Status + """ + + _validation = { + 'status': {'required': True}, + } + + _attribute_map = { + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'DataShareErrorInfo'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + status: Union[str, "Status"], + end_time: Optional[datetime.datetime] = None, + error: Optional["DataShareErrorInfo"] = None, + start_time: Optional[datetime.datetime] = None, + **kwargs + ): + super(OperationResponse, self).__init__(**kwargs) + self.end_time = end_time + self.error = error + self.start_time = start_time + self.status = status + + +class ProviderShareSubscription(ProxyDto): + """A provider side share subscription data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar consumer_email: Email of the consumer who created the share subscription. + :vartype consumer_email: str + :ivar consumer_name: Name of the consumer who created the share subscription. + :vartype consumer_name: str + :ivar consumer_tenant_name: Tenant name of the consumer who created the share subscription. + :vartype consumer_tenant_name: str + :ivar created_at: created at. + :vartype created_at: ~datetime.datetime + :ivar provider_email: Email of the provider who created the share. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the share. + :vartype provider_name: str + :ivar shared_at: Shared at. + :vartype shared_at: ~datetime.datetime + :ivar share_subscription_object_id: share Subscription Object Id. + :vartype share_subscription_object_id: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'consumer_email': {'readonly': True}, + 'consumer_name': {'readonly': True}, + 'consumer_tenant_name': {'readonly': True}, + 'created_at': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'shared_at': {'readonly': True}, + 'share_subscription_object_id': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'consumer_email': {'key': 'properties.consumerEmail', 'type': 'str'}, + 'consumer_name': {'key': 'properties.consumerName', 'type': 'str'}, + 'consumer_tenant_name': {'key': 'properties.consumerTenantName', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'shared_at': {'key': 'properties.sharedAt', 'type': 'iso-8601'}, + 'share_subscription_object_id': {'key': 'properties.shareSubscriptionObjectId', 'type': 'str'}, + 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProviderShareSubscription, self).__init__(**kwargs) + self.consumer_email = None + self.consumer_name = None + self.consumer_tenant_name = None + self.created_at = None + self.provider_email = None + self.provider_name = None + self.shared_at = None + self.share_subscription_object_id = None + self.share_subscription_status = None + + +class ProviderShareSubscriptionList(msrest.serialization.Model): + """List response for get ShareSubscription. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ProviderShareSubscription] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ProviderShareSubscription]'}, + } + + def __init__( + self, + *, + value: List["ProviderShareSubscription"], + next_link: Optional[str] = None, + **kwargs + ): + super(ProviderShareSubscriptionList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class ProviderShareSubscriptionProperties(msrest.serialization.Model): + """Provider share subscription properties. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar consumer_email: Email of the consumer who created the share subscription. + :vartype consumer_email: str + :ivar consumer_name: Name of the consumer who created the share subscription. + :vartype consumer_name: str + :ivar consumer_tenant_name: Tenant name of the consumer who created the share subscription. + :vartype consumer_tenant_name: str + :ivar created_at: created at. + :vartype created_at: ~datetime.datetime + :ivar provider_email: Email of the provider who created the share. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the share. + :vartype provider_name: str + :ivar shared_at: Shared at. + :vartype shared_at: ~datetime.datetime + :ivar share_subscription_object_id: share Subscription Object Id. + :vartype share_subscription_object_id: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + """ + + _validation = { + 'consumer_email': {'readonly': True}, + 'consumer_name': {'readonly': True}, + 'consumer_tenant_name': {'readonly': True}, + 'created_at': {'readonly': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'shared_at': {'readonly': True}, + 'share_subscription_object_id': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + } + + _attribute_map = { + 'consumer_email': {'key': 'consumerEmail', 'type': 'str'}, + 'consumer_name': {'key': 'consumerName', 'type': 'str'}, + 'consumer_tenant_name': {'key': 'consumerTenantName', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provider_email': {'key': 'providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'shared_at': {'key': 'sharedAt', 'type': 'iso-8601'}, + 'share_subscription_object_id': {'key': 'shareSubscriptionObjectId', 'type': 'str'}, + 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ProviderShareSubscriptionProperties, self).__init__(**kwargs) + self.consumer_email = None + self.consumer_name = None + self.consumer_tenant_name = None + self.created_at = None + self.provider_email = None + self.provider_name = None + self.shared_at = None + self.share_subscription_object_id = None + self.share_subscription_status = None + + +class ScheduledSourceShareSynchronizationSettingProperties(msrest.serialization.Model): + """A Scheduled source synchronization setting data transfer object. + + :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Synchronization time. + :type synchronization_time: ~datetime.datetime + """ + + _attribute_map = { + 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + recurrence_interval: Optional[Union[str, "RecurrenceInterval"]] = None, + synchronization_time: Optional[datetime.datetime] = None, + **kwargs + ): + super(ScheduledSourceShareSynchronizationSettingProperties, self).__init__(**kwargs) + self.recurrence_interval = recurrence_interval + self.synchronization_time = synchronization_time + + +class SourceShareSynchronizationSetting(msrest.serialization.Model): + """A view of synchronization setting added by the provider. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ScheduledSourceSynchronizationSetting. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ScheduleBased': 'ScheduledSourceSynchronizationSetting'} + } + + def __init__( + self, + **kwargs + ): + super(SourceShareSynchronizationSetting, self).__init__(**kwargs) + self.kind = None + + +class ScheduledSourceSynchronizationSetting(SourceShareSynchronizationSetting): + """A type of synchronization setting based on schedule. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Synchronization time. + :type synchronization_time: ~datetime.datetime + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + recurrence_interval: Optional[Union[str, "RecurrenceInterval"]] = None, + synchronization_time: Optional[datetime.datetime] = None, + **kwargs + ): + super(ScheduledSourceSynchronizationSetting, self).__init__(**kwargs) + self.kind = 'ScheduleBased' + self.recurrence_interval = recurrence_interval + self.synchronization_time = synchronization_time + + +class SynchronizationSetting(ProxyDto): + """A Synchronization Setting data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ScheduledSynchronizationSetting. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ScheduleBased': 'ScheduledSynchronizationSetting'} + } + + def __init__( + self, + **kwargs + ): + super(SynchronizationSetting, self).__init__(**kwargs) + self.kind = 'SynchronizationSetting' + + +class ScheduledSynchronizationSetting(SynchronizationSetting): + """A type of synchronization setting based on schedule. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar created_at: Time at which the synchronization setting was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar user_name: Name of the user who created the synchronization setting. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + *, + recurrence_interval: Union[str, "RecurrenceInterval"], + synchronization_time: datetime.datetime, + **kwargs + ): + super(ScheduledSynchronizationSetting, self).__init__(**kwargs) + self.kind = 'ScheduleBased' + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = recurrence_interval + self.synchronization_time = synchronization_time + self.user_name = None + + +class ScheduledSynchronizationSettingProperties(msrest.serialization.Model): + """A Scheduled synchronization setting data transfer object. + + 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. + + :ivar created_at: Time at which the synchronization setting was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar user_name: Name of the user who created the synchronization setting. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + *, + recurrence_interval: Union[str, "RecurrenceInterval"], + synchronization_time: datetime.datetime, + **kwargs + ): + super(ScheduledSynchronizationSettingProperties, self).__init__(**kwargs) + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = recurrence_interval + self.synchronization_time = synchronization_time + self.user_name = None + + +class Trigger(ProxyDto): + """A Trigger data transfer object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ScheduledTrigger. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ScheduleBased': 'ScheduledTrigger'} + } + + def __init__( + self, + **kwargs + ): + super(Trigger, self).__init__(**kwargs) + self.kind = 'Trigger' + + +class ScheduledTrigger(Trigger): + """A type of trigger based on schedule. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar created_at: Time at which the trigger was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar trigger_status: Gets the trigger state. Possible values include: 'Active', 'Inactive', + 'SourceSynchronizationSettingDeleted'. + :vartype trigger_status: str or ~data_share_management_client.models.TriggerStatus + :ivar user_name: Name of the user who created the trigger. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'trigger_status': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_mode': {'key': 'properties.synchronizationMode', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + 'trigger_status': {'key': 'properties.triggerStatus', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + *, + recurrence_interval: Union[str, "RecurrenceInterval"], + synchronization_time: datetime.datetime, + synchronization_mode: Optional[Union[str, "SynchronizationMode"]] = None, + **kwargs + ): + super(ScheduledTrigger, self).__init__(**kwargs) + self.kind = 'ScheduleBased' + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = recurrence_interval + self.synchronization_mode = synchronization_mode + self.synchronization_time = synchronization_time + self.trigger_status = None + self.user_name = None + + +class ScheduledTriggerProperties(msrest.serialization.Model): + """A Scheduled trigger data transfer object. + + 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. + + :ivar created_at: Time at which the trigger was created. + :vartype created_at: ~datetime.datetime + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', + 'Day'. + :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval + :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + :param synchronization_time: Required. Synchronization time. + :type synchronization_time: ~datetime.datetime + :ivar trigger_status: Gets the trigger state. Possible values include: 'Active', 'Inactive', + 'SourceSynchronizationSettingDeleted'. + :vartype trigger_status: str or ~data_share_management_client.models.TriggerStatus + :ivar user_name: Name of the user who created the trigger. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'recurrence_interval': {'required': True}, + 'synchronization_time': {'required': True}, + 'trigger_status': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, + 'trigger_status': {'key': 'triggerStatus', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + *, + recurrence_interval: Union[str, "RecurrenceInterval"], + synchronization_time: datetime.datetime, + synchronization_mode: Optional[Union[str, "SynchronizationMode"]] = None, + **kwargs + ): + super(ScheduledTriggerProperties, self).__init__(**kwargs) + self.created_at = None + self.provisioning_state = None + self.recurrence_interval = recurrence_interval + self.synchronization_mode = synchronization_mode + self.synchronization_time = synchronization_time + self.trigger_status = None + self.user_name = None + + +class Share(ProxyDto): + """A share data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar created_at: Time at which the share was created. + :vartype created_at: ~datetime.datetime + :param description: Share description. + :type description: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :type share_kind: str or ~data_share_management_client.models.ShareKind + :param terms: Share terms. + :type terms: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, + 'terms': {'key': 'properties.terms', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + *, + description: Optional[str] = None, + share_kind: Optional[Union[str, "ShareKind"]] = None, + terms: Optional[str] = None, + **kwargs + ): + super(Share, self).__init__(**kwargs) + self.created_at = None + self.description = description + self.provisioning_state = None + self.share_kind = share_kind + self.terms = terms + self.user_email = None + self.user_name = None + + +class ShareList(msrest.serialization.Model): + """List response for get Shares. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Share] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Share]'}, + } + + def __init__( + self, + *, + value: List["Share"], + next_link: Optional[str] = None, + **kwargs + ): + super(ShareList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class ShareProperties(msrest.serialization.Model): + """Share property bag. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar created_at: Time at which the share was created. + :vartype created_at: ~datetime.datetime + :param description: Share description. + :type description: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :type share_kind: str or ~data_share_management_client.models.ShareKind + :param terms: Share terms. + :type terms: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'description': {'key': 'description', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'share_kind': {'key': 'shareKind', 'type': 'str'}, + 'terms': {'key': 'terms', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + *, + description: Optional[str] = None, + share_kind: Optional[Union[str, "ShareKind"]] = None, + terms: Optional[str] = None, + **kwargs + ): + super(ShareProperties, self).__init__(**kwargs) + self.created_at = None + self.description = description + self.provisioning_state = None + self.share_kind = share_kind + self.terms = terms + self.user_email = None + self.user_name = None + + +class ShareSubscription(ProxyDto): + """A share subscription data transfer object. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :ivar created_at: Time at which the share subscription was created. + :vartype created_at: ~datetime.datetime + :param invitation_id: Required. The invitation id. + :type invitation_id: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar share_description: Description of share. + :vartype share_description: str + :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :vartype share_kind: str or ~data_share_management_client.models.ShareKind + :ivar share_name: Name of the share. + :vartype share_name: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + :ivar share_terms: Terms of a share. + :vartype share_terms: str + :param source_share_location: Required. Source share location. + :type source_share_location: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_at': {'readonly': True}, + 'invitation_id': {'required': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'share_description': {'readonly': True}, + 'share_kind': {'readonly': True}, + 'share_name': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + 'share_terms': {'readonly': True}, + 'source_share_location': {'required': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'share_description': {'key': 'properties.shareDescription', 'type': 'str'}, + 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, + 'share_name': {'key': 'properties.shareName', 'type': 'str'}, + 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, + 'share_terms': {'key': 'properties.shareTerms', 'type': 'str'}, + 'source_share_location': {'key': 'properties.sourceShareLocation', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, + } + + def __init__( + self, + *, + invitation_id: str, + source_share_location: str, + **kwargs + ): + super(ShareSubscription, self).__init__(**kwargs) + self.created_at = None + self.invitation_id = invitation_id + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.provisioning_state = None + self.share_description = None + self.share_kind = None + self.share_name = None + self.share_subscription_status = None + self.share_terms = None + self.source_share_location = source_share_location + self.user_email = None + self.user_name = None + + +class ShareSubscriptionList(msrest.serialization.Model): + """List response for get ShareSubscription. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSubscription] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSubscription]'}, + } + + def __init__( + self, + *, + value: List["ShareSubscription"], + next_link: Optional[str] = None, + **kwargs + ): + super(ShareSubscriptionList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class ShareSubscriptionProperties(msrest.serialization.Model): + """Share subscription property bag. + + 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. + + :ivar created_at: Time at which the share subscription was created. + :vartype created_at: ~datetime.datetime + :param invitation_id: Required. The invitation id. + :type invitation_id: str + :ivar provider_email: Email of the provider who created the resource. + :vartype provider_email: str + :ivar provider_name: Name of the provider who created the resource. + :vartype provider_name: str + :ivar provider_tenant_name: Tenant name of the provider who created the resource. + :vartype provider_tenant_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar share_description: Description of share. + :vartype share_description: str + :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :vartype share_kind: str or ~data_share_management_client.models.ShareKind + :ivar share_name: Name of the share. + :vartype share_name: str + :ivar share_subscription_status: Gets the status of share subscription. Possible values + include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. + :vartype share_subscription_status: str or + ~data_share_management_client.models.ShareSubscriptionStatus + :ivar share_terms: Terms of a share. + :vartype share_terms: str + :param source_share_location: Required. Source share location. + :type source_share_location: str + :ivar user_email: Email of the user who created the resource. + :vartype user_email: str + :ivar user_name: Name of the user who created the resource. + :vartype user_name: str + """ + + _validation = { + 'created_at': {'readonly': True}, + 'invitation_id': {'required': True}, + 'provider_email': {'readonly': True}, + 'provider_name': {'readonly': True}, + 'provider_tenant_name': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'share_description': {'readonly': True}, + 'share_kind': {'readonly': True}, + 'share_name': {'readonly': True}, + 'share_subscription_status': {'readonly': True}, + 'share_terms': {'readonly': True}, + 'source_share_location': {'required': True}, + 'user_email': {'readonly': True}, + 'user_name': {'readonly': True}, + } + + _attribute_map = { + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'invitation_id': {'key': 'invitationId', 'type': 'str'}, + 'provider_email': {'key': 'providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'share_description': {'key': 'shareDescription', 'type': 'str'}, + 'share_kind': {'key': 'shareKind', 'type': 'str'}, + 'share_name': {'key': 'shareName', 'type': 'str'}, + 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, + 'share_terms': {'key': 'shareTerms', 'type': 'str'}, + 'source_share_location': {'key': 'sourceShareLocation', 'type': 'str'}, + 'user_email': {'key': 'userEmail', 'type': 'str'}, + 'user_name': {'key': 'userName', 'type': 'str'}, + } + + def __init__( + self, + *, + invitation_id: str, + source_share_location: str, + **kwargs + ): + super(ShareSubscriptionProperties, self).__init__(**kwargs) + self.created_at = None + self.invitation_id = invitation_id + self.provider_email = None + self.provider_name = None + self.provider_tenant_name = None + self.provisioning_state = None + self.share_description = None + self.share_kind = None + self.share_name = None + self.share_subscription_status = None + self.share_terms = None + self.source_share_location = source_share_location + self.user_email = None + self.user_name = None + + +class ShareSubscriptionSynchronization(msrest.serialization.Model): + """A ShareSubscriptionSynchronization data transfer object. + + 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. + + :ivar duration_ms: Synchronization duration. + :vartype duration_ms: int + :ivar end_time: End time of synchronization. + :vartype end_time: ~datetime.datetime + :ivar message: message of Synchronization. + :vartype message: str + :ivar start_time: start time of synchronization. + :vartype start_time: ~datetime.datetime + :ivar status: Raw Status. + :vartype status: str + :param synchronization_id: Required. Synchronization id. + :type synchronization_id: str + :ivar synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :vartype synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + """ + + _validation = { + 'duration_ms': {'readonly': True}, + 'end_time': {'readonly': True}, + 'message': {'readonly': True}, + 'start_time': {'readonly': True}, + 'status': {'readonly': True}, + 'synchronization_id': {'required': True}, + 'synchronization_mode': {'readonly': True}, + } + + _attribute_map = { + 'duration_ms': {'key': 'durationMs', 'type': 'int'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'synchronization_id': {'key': 'synchronizationId', 'type': 'str'}, + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + } + + def __init__( + self, + *, + synchronization_id: str, + **kwargs + ): + super(ShareSubscriptionSynchronization, self).__init__(**kwargs) + self.duration_ms = None + self.end_time = None + self.message = None + self.start_time = None + self.status = None + self.synchronization_id = synchronization_id + self.synchronization_mode = None + + +class ShareSubscriptionSynchronizationList(msrest.serialization.Model): + """A consumer side list of share subscription synchronizations. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSubscriptionSynchronization] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSubscriptionSynchronization]'}, + } + + def __init__( + self, + *, + value: List["ShareSubscriptionSynchronization"], + next_link: Optional[str] = None, + **kwargs + ): + super(ShareSubscriptionSynchronizationList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class ShareSynchronization(msrest.serialization.Model): + """A ShareSynchronization data transfer object. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param consumer_email: Email of the user who created the synchronization. + :type consumer_email: str + :param consumer_name: Name of the user who created the synchronization. + :type consumer_name: str + :param consumer_tenant_name: Tenant name of the consumer who created the synchronization. + :type consumer_tenant_name: str + :param duration_ms: synchronization duration. + :type duration_ms: int + :param end_time: End time of synchronization. + :type end_time: ~datetime.datetime + :param message: message of synchronization. + :type message: str + :param start_time: start time of synchronization. + :type start_time: ~datetime.datetime + :param status: Raw Status. + :type status: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :ivar synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :vartype synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + """ + + _validation = { + 'synchronization_mode': {'readonly': True}, + } + + _attribute_map = { + 'consumer_email': {'key': 'consumerEmail', 'type': 'str'}, + 'consumer_name': {'key': 'consumerName', 'type': 'str'}, + 'consumer_tenant_name': {'key': 'consumerTenantName', 'type': 'str'}, + 'duration_ms': {'key': 'durationMs', 'type': 'int'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'synchronization_id': {'key': 'synchronizationId', 'type': 'str'}, + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + } + + def __init__( + self, + *, + consumer_email: Optional[str] = None, + consumer_name: Optional[str] = None, + consumer_tenant_name: Optional[str] = None, + duration_ms: Optional[int] = None, + end_time: Optional[datetime.datetime] = None, + message: Optional[str] = None, + start_time: Optional[datetime.datetime] = None, + status: Optional[str] = None, + synchronization_id: Optional[str] = None, + **kwargs + ): + super(ShareSynchronization, self).__init__(**kwargs) + self.consumer_email = consumer_email + self.consumer_name = consumer_name + self.consumer_tenant_name = consumer_tenant_name + self.duration_ms = duration_ms + self.end_time = end_time + self.message = message + self.start_time = start_time + self.status = status + self.synchronization_id = synchronization_id + self.synchronization_mode = None + + +class ShareSynchronizationList(msrest.serialization.Model): + """List response for get ShareSynchronization. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSynchronization] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSynchronization]'}, + } + + def __init__( + self, + *, + value: List["ShareSynchronization"], + next_link: Optional[str] = None, + **kwargs + ): + super(ShareSynchronizationList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class SourceShareSynchronizationSettingList(msrest.serialization.Model): + """List response for get source share Synchronization settings. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.SourceShareSynchronizationSetting] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[SourceShareSynchronizationSetting]'}, + } + + def __init__( + self, + *, + value: List["SourceShareSynchronizationSetting"], + next_link: Optional[str] = None, + **kwargs + ): + super(SourceShareSynchronizationSettingList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class SqlDbTableDataSet(DataSet): + """A SQL DB table data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param database_name: Database name of the source data set. + :type database_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param schema_name: Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: SQL DB table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + database_name: Optional[str] = None, + schema_name: Optional[str] = None, + sql_server_resource_id: Optional[str] = None, + table_name: Optional[str] = None, + **kwargs + ): + super(SqlDbTableDataSet, self).__init__(**kwargs) + self.kind = 'SqlDBTable' + self.database_name = database_name + self.data_set_id = None + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SqlDbTableDataSetMapping(DataSetMapping): + """A SQL DB Table data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param database_name: Required. DatabaseName name of the sink data set. + :type database_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DB table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'database_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + database_name: str, + data_set_id: str, + schema_name: str, + sql_server_resource_id: str, + table_name: str, + **kwargs + ): + super(SqlDbTableDataSetMapping, self).__init__(**kwargs) + self.kind = 'SqlDBTable' + self.database_name = database_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.provisioning_state = None + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SqlDbTableDataSetMappingProperties(msrest.serialization.Model): + """Properties of the SQL DB table data set mapping. + + 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 database_name: Required. DatabaseName name of the sink data set. + :type database_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DB table name. + :type table_name: str + """ + + _validation = { + 'database_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + database_name: str, + data_set_id: str, + schema_name: str, + sql_server_resource_id: str, + table_name: str, + **kwargs + ): + super(SqlDbTableDataSetMappingProperties, self).__init__(**kwargs) + self.database_name = database_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.provisioning_state = None + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SqlDbTableProperties(msrest.serialization.Model): + """Properties of the SQL DB table data set. + + 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 database_name: Required. Database name of the source data set. + :type database_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DB table name. + :type table_name: str + """ + + _validation = { + 'database_name': {'required': True}, + 'data_set_id': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'database_name': {'key': 'databaseName', 'type': 'str'}, + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + database_name: str, + schema_name: str, + sql_server_resource_id: str, + table_name: str, + **kwargs + ): + super(SqlDbTableProperties, self).__init__(**kwargs) + self.database_name = database_name + self.data_set_id = None + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SqlDwTableDataSet(DataSet): + """A SQL DW table data set. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param data_warehouse_name: DataWarehouse name of the source data set. + :type data_warehouse_name: str + :param schema_name: Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: SQL DW table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_warehouse_name': {'key': 'properties.dataWarehouseName', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + data_warehouse_name: Optional[str] = None, + schema_name: Optional[str] = None, + sql_server_resource_id: Optional[str] = None, + table_name: Optional[str] = None, + **kwargs + ): + super(SqlDwTableDataSet, self).__init__(**kwargs) + self.kind = 'SqlDWTable' + self.data_set_id = None + self.data_warehouse_name = data_warehouse_name + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SqlDwTableDataSetMapping(DataSetMapping): + """A SQL DW Table data set mapping. + + 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. + + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param data_warehouse_name: Required. DataWarehouse name of the source data set. + :type data_warehouse_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DW table name. + :type table_name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'data_warehouse_name': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'data_warehouse_name': {'key': 'properties.dataWarehouseName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'properties.schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'properties.sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'properties.tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + data_warehouse_name: str, + schema_name: str, + sql_server_resource_id: str, + table_name: str, + **kwargs + ): + super(SqlDwTableDataSetMapping, self).__init__(**kwargs) + self.kind = 'SqlDWTable' + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.data_warehouse_name = data_warehouse_name + self.provisioning_state = None + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SqlDwTableDataSetMappingProperties(msrest.serialization.Model): + """Properties of the SQL DW table data set mapping. + + 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 data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param data_warehouse_name: Required. DataWarehouse name of the source data set. + :type data_warehouse_name: str + :ivar provisioning_state: Provisioning state of the Account. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DW table name. + :type table_name: str + """ + + _validation = { + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'data_warehouse_name': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, + 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + data_set_id: str, + data_warehouse_name: str, + schema_name: str, + sql_server_resource_id: str, + table_name: str, + **kwargs + ): + super(SqlDwTableDataSetMappingProperties, self).__init__(**kwargs) + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.data_warehouse_name = data_warehouse_name + self.provisioning_state = None + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SqlDwTableProperties(msrest.serialization.Model): + """Properties of the SQL DW table data set. + + 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. + + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param data_warehouse_name: Required. DataWarehouse name of the source data set. + :type data_warehouse_name: str + :param schema_name: Required. Schema of the table. Default value is dbo. + :type schema_name: str + :param sql_server_resource_id: Required. Resource id of SQL server. + :type sql_server_resource_id: str + :param table_name: Required. SQL DW table name. + :type table_name: str + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'data_warehouse_name': {'required': True}, + 'schema_name': {'required': True}, + 'sql_server_resource_id': {'required': True}, + 'table_name': {'required': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, + 'schema_name': {'key': 'schemaName', 'type': 'str'}, + 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, + 'table_name': {'key': 'tableName', 'type': 'str'}, + } + + def __init__( + self, + *, + data_warehouse_name: str, + schema_name: str, + sql_server_resource_id: str, + table_name: str, + **kwargs + ): + super(SqlDwTableProperties, self).__init__(**kwargs) + self.data_set_id = None + self.data_warehouse_name = data_warehouse_name + self.schema_name = schema_name + self.sql_server_resource_id = sql_server_resource_id + self.table_name = table_name + + +class SynchronizationDetails(msrest.serialization.Model): + """Synchronization details at data set level. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar data_set_id: Id of data set. + :vartype data_set_id: str + :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', + 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. + :vartype data_set_type: str or ~data_share_management_client.models.DataSetType + :ivar duration_ms: Duration of data set level copy. + :vartype duration_ms: int + :ivar end_time: End time of data set level copy. + :vartype end_time: ~datetime.datetime + :ivar files_read: The number of files read from the source data set. + :vartype files_read: long + :ivar files_written: The number of files written into the sink data set. + :vartype files_written: long + :ivar message: Error message if any. + :vartype message: str + :ivar name: Name of the data set. + :vartype name: str + :ivar rows_copied: The number of files copied into the sink data set. + :vartype rows_copied: long + :ivar rows_read: The number of rows read from the source data set. + :vartype rows_read: long + :ivar size_read: The size of the data read from the source data set in bytes. + :vartype size_read: long + :ivar size_written: The size of the data written into the sink data set in bytes. + :vartype size_written: long + :ivar start_time: Start time of data set level copy. + :vartype start_time: ~datetime.datetime + :ivar status: Raw Status. + :vartype status: str + :ivar v_core: The vCore units consumed for the data set synchronization. + :vartype v_core: long + """ + + _validation = { + 'data_set_id': {'readonly': True}, + 'data_set_type': {'readonly': True}, + 'duration_ms': {'readonly': True}, + 'end_time': {'readonly': True}, + 'files_read': {'readonly': True}, + 'files_written': {'readonly': True}, + 'message': {'readonly': True}, + 'name': {'readonly': True}, + 'rows_copied': {'readonly': True}, + 'rows_read': {'readonly': True}, + 'size_read': {'readonly': True}, + 'size_written': {'readonly': True}, + 'start_time': {'readonly': True}, + 'status': {'readonly': True}, + 'v_core': {'readonly': True}, + } + + _attribute_map = { + 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, + 'data_set_type': {'key': 'dataSetType', 'type': 'str'}, + 'duration_ms': {'key': 'durationMs', 'type': 'int'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'files_read': {'key': 'filesRead', 'type': 'long'}, + 'files_written': {'key': 'filesWritten', 'type': 'long'}, + 'message': {'key': 'message', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'rows_copied': {'key': 'rowsCopied', 'type': 'long'}, + 'rows_read': {'key': 'rowsRead', 'type': 'long'}, + 'size_read': {'key': 'sizeRead', 'type': 'long'}, + 'size_written': {'key': 'sizeWritten', 'type': 'long'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'status': {'key': 'status', 'type': 'str'}, + 'v_core': {'key': 'vCore', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(SynchronizationDetails, self).__init__(**kwargs) + self.data_set_id = None + self.data_set_type = None + self.duration_ms = None + self.end_time = None + self.files_read = None + self.files_written = None + self.message = None + self.name = None + self.rows_copied = None + self.rows_read = None + self.size_read = None + self.size_written = None + self.start_time = None + self.status = None + self.v_core = None + + +class SynchronizationDetailsList(msrest.serialization.Model): + """details of synchronization. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.SynchronizationDetails] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[SynchronizationDetails]'}, + } + + def __init__( + self, + *, + value: List["SynchronizationDetails"], + next_link: Optional[str] = None, + **kwargs + ): + super(SynchronizationDetailsList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class SynchronizationSettingList(msrest.serialization.Model): + """List response for get Synchronization settings. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.SynchronizationSetting] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[SynchronizationSetting]'}, + } + + def __init__( + self, + *, + value: List["SynchronizationSetting"], + next_link: Optional[str] = None, + **kwargs + ): + super(SynchronizationSettingList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + +class Synchronize(msrest.serialization.Model): + """Payload for the synchronizing the data. + + :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + 'FullSync'. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + """ + + _attribute_map = { + 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, + } + + def __init__( + self, + *, + synchronization_mode: Optional[Union[str, "SynchronizationMode"]] = None, + **kwargs + ): + super(Synchronize, self).__init__(**kwargs) + self.synchronization_mode = synchronization_mode + + +class TriggerList(msrest.serialization.Model): + """List response for get triggers. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.Trigger] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Trigger]'}, + } + + def __init__( + self, + *, + value: List["Trigger"], + next_link: Optional[str] = None, + **kwargs + ): + super(TriggerList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/__init__.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/__init__.py new file mode 100644 index 00000000000..72ad85b0b3c --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/__init__.py @@ -0,0 +1,35 @@ +# 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 ._account_operations import AccountOperations +from ._consumer_invitation_operations import ConsumerInvitationOperations +from ._data_set_operations import DataSetOperations +from ._data_set_mapping_operations import DataSetMappingOperations +from ._invitation_operations import InvitationOperations +from ._operation_operations import OperationOperations +from ._share_operations import ShareOperations +from ._provider_share_subscription_operations import ProviderShareSubscriptionOperations +from ._share_subscription_operations import ShareSubscriptionOperations +from ._consumer_source_data_set_operations import ConsumerSourceDataSetOperations +from ._synchronization_setting_operations import SynchronizationSettingOperations +from ._trigger_operations import TriggerOperations + +__all__ = [ + 'AccountOperations', + 'ConsumerInvitationOperations', + 'DataSetOperations', + 'DataSetMappingOperations', + 'InvitationOperations', + 'OperationOperations', + 'ShareOperations', + 'ProviderShareSubscriptionOperations', + 'ShareSubscriptionOperations', + 'ConsumerSourceDataSetOperations', + 'SynchronizationSettingOperations', + 'TriggerOperations', +] diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py new file mode 100644 index 00000000000..2cb571c9739 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py @@ -0,0 +1,529 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class AccountOperations(object): + """AccountOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.Account" + """Get an account. + + Get an account under a resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Account or the result of cls(response) + :rtype: ~data_share_management_client.models.Account + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, '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("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + def _create_initial( + self, + resource_group_name, # type: str + account_name, # type: str + identity, # type: "models.Identity" + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + **kwargs # type: Any + ): + # type: (...) -> "models.Account" + cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {}) + + account = models.Account(location=location, tags=tags, identity=identity) + api_version = "2019-11-01" + + # Construct URL + url = self._create_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, '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("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(account, 'Account') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Account', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + def begin_create( + self, + resource_group_name, # type: str + account_name, # type: str + identity, # type: "models.Identity" + location=None, # type: Optional[str] + tags=None, # type: Optional[Dict[str, str]] + **kwargs # type: Any + ): + # type: (...) -> "models.Account" + """Create an account. + + Create an account in the given resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param identity: Identity of resource. + :type identity: ~data_share_management_client.models.Identity + :param location: Location of the azure resource. + :type location: str + :param tags: Tags on the azure resource. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns Account + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Account] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] + raw_result = self._create_initial( + resource_group_name=resource_group_name, + account_name=account_name, + identity=identity, + location=location, + tags=tags, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + def _delete_initial( + self, + resource_group_name, # type: str + account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, '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("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + def begin_delete( + self, + resource_group_name, # type: str + account_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + """DeleteAccount. + + Delete an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + def update( + self, + resource_group_name, # type: str + account_name, # type: str + tags=None, # type: Optional[Dict[str, str]] + **kwargs # type: Any + ): + # type: (...) -> "models.Account" + """Patch an account. + + Patch a given account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param tags: Tags on the azure resource. + :type tags: dict[str, str] + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Account or the result of cls(response) + :rtype: ~data_share_management_client.models.Account + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {}) + + account_update_parameters = models.AccountUpdateParameters(tags=tags) + api_version = "2019-11-01" + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, '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("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(account_update_parameters, 'AccountUpdateParameters') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Account', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}'} + + def list_by_subscription( + self, + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.AccountList" + """List Accounts in Subscription. + + List Accounts in a subscription. + + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AccountList or the result of cls(response) + :rtype: ~data_share_management_client.models.AccountList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.AccountList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AccountList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts'} + + def list_by_resource_group( + self, + resource_group_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.AccountList" + """List Accounts in ResourceGroup. + + List Accounts in a resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AccountList or the result of cls(response) + :rtype: ~data_share_management_client.models.AccountList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.AccountList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('AccountList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py new file mode 100644 index 00000000000..84ef9fafeb0 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py @@ -0,0 +1,225 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ConsumerInvitationOperations(object): + """ConsumerInvitationOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def reject_invitation( + self, + location, # type: str + invitation_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ConsumerInvitation" + """Reject an invitation. + + Rejects the invitation identified by invitationId. + + :param location: Location of the invitation. + :type location: str + :param invitation_id: Unique id of the invitation. + :type invitation_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerInvitation or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerInvitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerInvitation"] + error_map = kwargs.pop('error_map', {}) + + invitation = models.ConsumerInvitation(invitation_id=invitation_id) + api_version = "2019-11-01" + + # Construct URL + url = self.reject_invitation.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(invitation, 'ConsumerInvitation') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ConsumerInvitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + reject_invitation.metadata = {'url': '/providers/Microsoft.DataShare/locations/{location}/RejectInvitation'} + + def get( + self, + location, # type: str + invitation_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ConsumerInvitation" + """Get an invitation. + + Gets the invitation identified by invitationId. + + :param location: Location of the invitation. + :type location: str + :param invitation_id: An invitation id. + :type invitation_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerInvitation or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerInvitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerInvitation"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'invitationId': self._serialize.url("invitation_id", invitation_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ConsumerInvitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/providers/Microsoft.DataShare/locations/{location}/consumerInvitations/{invitationId}'} + + def list_invitation( + self, + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.ConsumerInvitationList" + """Lists invitations. + + List the invitations. + + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerInvitationList or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerInvitationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerInvitationList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_invitation.metadata['url'] + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ConsumerInvitationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_invitation.metadata = {'url': '/providers/Microsoft.DataShare/ListInvitations'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py new file mode 100644 index 00000000000..b37d5d57cc4 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py @@ -0,0 +1,122 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ConsumerSourceDataSetOperations(object): + """ConsumerSourceDataSetOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_share_subscription( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.ConsumerSourceDataSetList" + """Get source dataSets of a shareSubscription. + + Get source dataSets of a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ConsumerSourceDataSetList or the result of cls(response) + :rtype: ~data_share_management_client.models.ConsumerSourceDataSetList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerSourceDataSetList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ConsumerSourceDataSetList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_share_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/ConsumerSourceDataSets'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py new file mode 100644 index 00000000000..cd58b696922 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py @@ -0,0 +1,331 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class DataSetMappingOperations(object): + """DataSetMappingOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + data_set_mapping_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.DataSetMapping" + """Get a DataSetMapping in a shareSubscription. + + Get DataSetMapping in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param data_set_mapping_name: The name of the dataSetMapping. + :type data_set_mapping_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetMapping or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetMapping + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetMapping"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'dataSetMappingName': self._serialize.url("data_set_mapping_name", data_set_mapping_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('DataSetMapping', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}'} + + def create( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + data_set_mapping_name, # type: str + kind, # type: Union[str, "models.Kind"] + **kwargs # type: Any + ): + # type: (...) -> "models.DataSetMapping" + """Create a DataSetMapping. + + Maps a source data set in the source share to a sink data set in the share subscription. + Enables copying the data set from source to destination. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param data_set_mapping_name: The name of the dataSetMapping. + :type data_set_mapping_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetMapping or DataSetMapping or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetMapping or ~data_share_management_client.models.DataSetMapping + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetMapping"] + error_map = kwargs.pop('error_map', {}) + + data_set_mapping = models.DataSetMapping(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'dataSetMappingName': self._serialize.url("data_set_mapping_name", data_set_mapping_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(data_set_mapping, 'DataSetMapping') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DataSetMapping', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DataSetMapping', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}'} + + def delete( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + data_set_mapping_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete a DataSetMapping in a shareSubscription. + + Delete DataSetMapping in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param data_set_mapping_name: The name of the dataSetMapping. + :type data_set_mapping_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'dataSetMappingName': self._serialize.url("data_set_mapping_name", data_set_mapping_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings/{dataSetMappingName}'} + + def list_by_share_subscription( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.DataSetMappingList" + """List DataSetMappings in a share subscription. + + List DataSetMappings in a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetMappingList or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetMappingList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetMappingList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('DataSetMappingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_share_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/dataSetMappings'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py new file mode 100644 index 00000000000..1050414b4f3 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py @@ -0,0 +1,370 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class DataSetOperations(object): + """DataSetOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + data_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.DataSet" + """Get a DataSet in a share. + + Get DataSet in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param data_set_name: The name of the dataSet. + :type data_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSet or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSet + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSet"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'dataSetName': self._serialize.url("data_set_name", data_set_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('DataSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + def create( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + data_set_name, # type: str + kind, # type: Union[str, "models.Kind"] + **kwargs # type: Any + ): + # type: (...) -> "models.DataSet" + """Create a DataSet. + + Adds a new data set to an existing share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param data_set_name: The name of the dataSet. + :type data_set_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSet or DataSet or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSet or ~data_share_management_client.models.DataSet + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSet"] + error_map = kwargs.pop('error_map', {}) + + data_set = models.DataSet(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'dataSetName': self._serialize.url("data_set_name", data_set_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(data_set, 'DataSet') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('DataSet', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('DataSet', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + def _delete_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + data_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'dataSetName': self._serialize.url("data_set_name", data_set_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + def begin_delete( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + data_set_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete a DataSet in a share. + + Delete DataSet in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param data_set_name: The name of the dataSet. + :type data_set_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns None + :rtype: ~azure.core.polling.LROPoller[None] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType[None] + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + data_set_name=data_set_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}'} + + def list_by_share( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.DataSetList" + """List DataSets in a share. + + List DataSets in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: DataSetList or the result of cls(response) + :rtype: ~data_share_management_client.models.DataSetList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('DataSetList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py new file mode 100644 index 00000000000..83014f235da --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py @@ -0,0 +1,338 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class InvitationOperations(object): + """InvitationOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + invitation_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.Invitation" + """Get an invitation in a share. + + Get Invitation in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param invitation_name: The name of the invitation. + :type invitation_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Invitation or the result of cls(response) + :rtype: ~data_share_management_client.models.Invitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Invitation"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'invitationName': self._serialize.url("invitation_name", invitation_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Invitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}'} + + def create( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + invitation_name, # type: str + target_active_directory_id=None, # type: Optional[str] + target_email=None, # type: Optional[str] + target_object_id=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.Invitation" + """Create an invitation. + + Sends a new invitation to a recipient to access a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param invitation_name: The name of the invitation. + :type invitation_name: str + :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. + :type target_active_directory_id: str + :param target_email: The email the invitation is directed to. + :type target_email: str + :param target_object_id: The target user or application Id that invitation is being sent to. + Must be specified along TargetActiveDirectoryId. This enables sending + invitations to specific users or applications in an AD tenant. + :type target_object_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Invitation or Invitation or the result of cls(response) + :rtype: ~data_share_management_client.models.Invitation or ~data_share_management_client.models.Invitation + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Invitation"] + error_map = kwargs.pop('error_map', {}) + + invitation = models.Invitation(target_active_directory_id=target_active_directory_id, target_email=target_email, target_object_id=target_object_id) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'invitationName': self._serialize.url("invitation_name", invitation_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(invitation, 'Invitation') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Invitation', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Invitation', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}'} + + def delete( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + invitation_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete an invitation in a share. + + Delete Invitation in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param invitation_name: The name of the invitation. + :type invitation_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None or the result of cls(response) + :rtype: None + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType[None] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'invitationName': self._serialize.url("invitation_name", invitation_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + if cls: + return cls(pipeline_response, None, {}) + + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations/{invitationName}'} + + def list_by_share( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.InvitationList" + """List invitations in a share. + + List all Invitations in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: InvitationList or the result of cls(response) + :rtype: ~data_share_management_client.models.InvitationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.InvitationList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('InvitationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/invitations'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py new file mode 100644 index 00000000000..a642dd0a566 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py @@ -0,0 +1,101 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class OperationOperations(object): + """OperationOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list( + self, + **kwargs # type: Any + ): + # type: (...) -> "models.OperationList" + """List of available operations. + + Lists the available operations. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: OperationList or the result of cls(response) + :rtype: ~data_share_management_client.models.OperationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.metadata['url'] + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('OperationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list.metadata = {'url': '/providers/Microsoft.DataShare/operations'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py new file mode 100644 index 00000000000..2f02f2533de --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py @@ -0,0 +1,368 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ProviderShareSubscriptionOperations(object): + """ProviderShareSubscriptionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get_by_share( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + provider_share_subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ProviderShareSubscription" + """Get share subscription in a provider share. + + Get share subscription in a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param provider_share_subscription_id: To locate shareSubscription. + :type provider_share_subscription_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProviderShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ProviderShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'providerShareSubscriptionId': self._serialize.url("provider_share_subscription_id", provider_share_subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}'} + + def list_by_share( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.ProviderShareSubscriptionList" + """List share subscriptions in a provider share. + + List of available share subscriptions to a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProviderShareSubscriptionList or the result of cls(response) + :rtype: ~data_share_management_client.models.ProviderShareSubscriptionList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscriptionList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ProviderShareSubscriptionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions'} + + def _revoke_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + provider_share_subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ProviderShareSubscription" + cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._revoke_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'providerShareSubscriptionId': self._serialize.url("provider_share_subscription_id", provider_share_subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _revoke_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/revoke'} + + def begin_revoke( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + provider_share_subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ProviderShareSubscription" + """Revoke share subscription in a provider share. + + Revoke share subscription in a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param provider_share_subscription_id: To locate shareSubscription. + :type provider_share_subscription_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns ProviderShareSubscription + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ProviderShareSubscription] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] + raw_result = self._revoke_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + provider_share_subscription_id=provider_share_subscription_id, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_revoke.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/revoke'} + + def reinstate( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + provider_share_subscription_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ProviderShareSubscription" + """Reinstate share subscription in a provider share. + + Reinstate share subscription in a provider share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param provider_share_subscription_id: To locate shareSubscription. + :type provider_share_subscription_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ProviderShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ProviderShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.reinstate.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'providerShareSubscriptionId': self._serialize.url("provider_share_subscription_id", provider_share_subscription_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + reinstate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/reinstate'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py new file mode 100644 index 00000000000..fc0b3d401e2 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py @@ -0,0 +1,564 @@ +# 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 datetime +from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ShareOperations(object): + """ShareOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.Share" + """Get a share. + + Get a specified share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Share or the result of cls(response) + :rtype: ~data_share_management_client.models.Share + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Share"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Share', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + def create( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + description=None, # type: Optional[str] + share_kind=None, # type: Optional[Union[str, "models.ShareKind"]] + terms=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.Share" + """Create a share. + + Create a share in the given account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param description: Share description. + :type description: str + :param share_kind: Share kind. + :type share_kind: str or ~data_share_management_client.models.ShareKind + :param terms: Share terms. + :type terms: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Share or Share or the result of cls(response) + :rtype: ~data_share_management_client.models.Share or ~data_share_management_client.models.Share + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Share"] + error_map = kwargs.pop('error_map', {}) + + share = models.Share(description=description, share_kind=share_kind, terms=terms) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share, 'Share') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Share', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Share', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + def _delete_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + def begin_delete( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + """Delete a share. + + Deletes a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}'} + + def list_by_account( + self, + resource_group_name, # type: str + account_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.ShareList" + """List shares in an account. + + List of available shares under an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_account.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ShareList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares'} + + def list_synchronization( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSynchronizationList" + """List synchronizations of a share. + + List Synchronizations in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSynchronizationList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSynchronizationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSynchronizationList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ShareSynchronizationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_synchronization.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizations'} + + def list_synchronization_detail( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + skip_token=None, # type: Optional[str] + consumer_email=None, # type: Optional[str] + consumer_name=None, # type: Optional[str] + consumer_tenant_name=None, # type: Optional[str] + duration_ms=None, # type: Optional[int] + end_time=None, # type: Optional[datetime.datetime] + message=None, # type: Optional[str] + start_time=None, # type: Optional[datetime.datetime] + status=None, # type: Optional[str] + synchronization_id=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.SynchronizationDetailsList" + """List synchronization details. + + List data set level details for a share synchronization. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :param consumer_email: Email of the user who created the synchronization. + :type consumer_email: str + :param consumer_name: Name of the user who created the synchronization. + :type consumer_name: str + :param consumer_tenant_name: Tenant name of the consumer who created the synchronization. + :type consumer_tenant_name: str + :param duration_ms: synchronization duration. + :type duration_ms: int + :param end_time: End time of synchronization. + :type end_time: ~datetime.datetime + :param message: message of synchronization. + :type message: str + :param start_time: start time of synchronization. + :type start_time: ~datetime.datetime + :param status: Raw Status. + :type status: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationDetailsList or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationDetailsList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationDetailsList"] + error_map = kwargs.pop('error_map', {}) + share_synchronization = models.ShareSynchronization(consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization_detail.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_synchronization, 'ShareSynchronization') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SynchronizationDetailsList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_synchronization_detail.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizationDetails'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py new file mode 100644 index 00000000000..73215a27613 --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py @@ -0,0 +1,852 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class ShareSubscriptionOperations(object): + """ShareSubscriptionOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscription" + """Get a shareSubscription in an account. + + Get shareSubscription in an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscription"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('ShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + def create( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + invitation_id, # type: str + source_share_location, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscription" + """Create a shareSubscription in an account. + + Create shareSubscription in an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param invitation_id: The invitation id. + :type invitation_id: str + :param source_share_location: Source share location. + :type source_share_location: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscription or ShareSubscription or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscription or ~data_share_management_client.models.ShareSubscription + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscription"] + error_map = kwargs.pop('error_map', {}) + + share_subscription = models.ShareSubscription(invitation_id=invitation_id, source_share_location=source_share_location) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_subscription, 'ShareSubscription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ShareSubscription', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('ShareSubscription', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + def _delete_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + def begin_delete( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + """Delete a shareSubscription in an account. + + Delete shareSubscription in an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}'} + + def list_by_account( + self, + resource_group_name, # type: str + account_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscriptionList" + """List share subscriptions in an account. + + List of available share subscriptions under an account. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscriptionList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscriptionList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_account.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_account.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions'} + + def list_source_share_synchronization_setting( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.SourceShareSynchronizationSettingList" + """Get synchronization settings set on a share. + + Get source share synchronization settings for a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SourceShareSynchronizationSettingList or the result of cls(response) + :rtype: ~data_share_management_client.models.SourceShareSynchronizationSettingList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.SourceShareSynchronizationSettingList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_source_share_synchronization_setting.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SourceShareSynchronizationSettingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_source_share_synchronization_setting.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSourceShareSynchronizationSettings'} + + def list_synchronization( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscriptionSynchronizationList" + """List synchronizations of a share subscription. + + List Synchronizations in a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: ShareSubscriptionSynchronizationList or the result of cls(response) + :rtype: ~data_share_management_client.models.ShareSubscriptionSynchronizationList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronizationList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionSynchronizationList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_synchronization.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizations'} + + def list_synchronization_detail( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + synchronization_id, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.SynchronizationDetailsList" + """List synchronization details. + + List data set level details for a share subscription synchronization. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationDetailsList or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationDetailsList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationDetailsList"] + error_map = kwargs.pop('error_map', {}) + share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_synchronization_detail.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SynchronizationDetailsList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_synchronization_detail.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizationDetails'} + + def _synchronize_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + synchronization_mode=None, # type: Optional[Union[str, "models.SynchronizationMode"]] + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscriptionSynchronization" + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] + error_map = kwargs.pop('error_map', {}) + + synchronize = models.Synchronize(synchronization_mode=synchronization_mode) + api_version = "2019-11-01" + + # Construct URL + url = self._synchronize_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(synchronize, 'Synchronize') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _synchronize_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/Synchronize'} + + def begin_synchronize( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + synchronization_mode=None, # type: Optional[Union[str, "models.SynchronizationMode"]] + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscriptionSynchronization" + """Initiate a copy. + + Initiate an asynchronous data share job. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param synchronization_mode: Synchronization mode. + :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns ShareSubscriptionSynchronization + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] + raw_result = self._synchronize_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + synchronization_mode=synchronization_mode, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_synchronize.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/Synchronize'} + + def _cancel_synchronization_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + synchronization_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscriptionSynchronization" + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] + error_map = kwargs.pop('error_map', {}) + + share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + api_version = "2019-11-01" + + # Construct URL + url = self._cancel_synchronization_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if response.status_code == 202: + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _cancel_synchronization_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization'} + + def begin_cancel_synchronization( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + synchronization_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.ShareSubscriptionSynchronization" + """Request to cancel a synchronization. + + Request cancellation of a data share snapshot. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param synchronization_id: Synchronization id. + :type synchronization_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns ShareSubscriptionSynchronization + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] + raw_result = self._cancel_synchronization_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + synchronization_id=synchronization_id, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('ShareSubscriptionSynchronization', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_cancel_synchronization.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py new file mode 100644 index 00000000000..fa84cf664eb --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py @@ -0,0 +1,379 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class SynchronizationSettingOperations(object): + """SynchronizationSettingOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + synchronization_setting_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.SynchronizationSetting" + """Get a synchronizationSetting in a share. + + Get synchronizationSetting in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param synchronization_setting_name: The name of the synchronizationSetting. + :type synchronization_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationSetting or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationSetting + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationSetting"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'synchronizationSettingName': self._serialize.url("synchronization_setting_name", synchronization_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('SynchronizationSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + def create( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + synchronization_setting_name, # type: str + kind, # type: Union[str, "models.Kind"] + **kwargs # type: Any + ): + # type: (...) -> "models.SynchronizationSetting" + """Create or update a synchronizationSetting. + + Adds a new synchronization setting to an existing share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param synchronization_setting_name: The name of the synchronizationSetting. + :type synchronization_setting_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationSetting or SynchronizationSetting or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationSetting or ~data_share_management_client.models.SynchronizationSetting + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationSetting"] + error_map = kwargs.pop('error_map', {}) + + synchronization_setting = models.SynchronizationSetting(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'synchronizationSettingName': self._serialize.url("synchronization_setting_name", synchronization_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(synchronization_setting, 'SynchronizationSetting') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('SynchronizationSetting', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('SynchronizationSetting', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + def _delete_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + synchronization_setting_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + 'synchronizationSettingName': self._serialize.url("synchronization_setting_name", synchronization_setting_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + def begin_delete( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + synchronization_setting_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + """Delete a synchronizationSetting in a share. + + Delete synchronizationSetting in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param synchronization_setting_name: The name of the synchronizationSetting. + :type synchronization_setting_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + synchronization_setting_name=synchronization_setting_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings/{synchronizationSettingName}'} + + def list_by_share( + self, + resource_group_name, # type: str + account_name, # type: str + share_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.SynchronizationSettingList" + """List synchronizationSettings in a share. + + List synchronizationSettings in a share. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_name: The name of the share. + :type share_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: SynchronizationSettingList or the result of cls(response) + :rtype: ~data_share_management_client.models.SynchronizationSettingList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationSettingList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareName': self._serialize.url("share_name", share_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('SynchronizationSettingList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_share.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/synchronizationSettings'} diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py new file mode 100644 index 00000000000..eb7410c6a4c --- /dev/null +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py @@ -0,0 +1,422 @@ +# 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 typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.exceptions import map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class TriggerOperations(object): + """TriggerOperations operations. + + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~data_share_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def get( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.Trigger" + """Get a Trigger in a shareSubscription. + + Get Trigger in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param trigger_name: The name of the trigger. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Trigger or the result of cls(response) + :rtype: ~data_share_management_client.models.Trigger + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.Trigger"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = self._deserialize('Trigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + def _create_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + trigger_name, # type: str + kind, # type: Union[str, "models.Kind"] + **kwargs # type: Any + ): + # type: (...) -> "models.Trigger" + cls = kwargs.pop('cls', None ) # type: ClsType["models.Trigger"] + error_map = kwargs.pop('error_map', {}) + + trigger = models.Trigger(kind=kind) + api_version = "2019-11-01" + + # Construct URL + url = self._create_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json' + + # Construct body + body_content = self._serialize.body(trigger, 'Trigger') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('Trigger', pipeline_response) + + if response.status_code == 201: + deserialized = self._deserialize('Trigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + def begin_create( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + trigger_name, # type: str + kind, # type: Union[str, "models.Kind"] + **kwargs # type: Any + ): + # type: (...) -> "models.Trigger" + """Create a Trigger. + + This method creates a trigger for a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param trigger_name: The name of the trigger. + :type trigger_name: str + :param kind: Kind of data set. + :type kind: str or ~data_share_management_client.models.Kind + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns Trigger + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Trigger] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.Trigger"] + raw_result = self._create_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + trigger_name=trigger_name, + kind=kind, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('Trigger', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + def _delete_initial( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + # Construct URL + url = self._delete_initial.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + def begin_delete( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + trigger_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.OperationResponse" + """Delete a Trigger in a shareSubscription. + + Delete Trigger in a shareSubscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param trigger_name: The name of the trigger. + :type trigger_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :return: An instance of LROPoller that returns OperationResponse + :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] + + :raises ~data_share_management_client.models.DataShareErrorException: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + trigger_name=trigger_name, + cls=lambda x,y,z: x, + **kwargs + ) + + def get_long_running_output(pipeline_response): + deserialized = self._deserialize('OperationResponse', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + return deserialized + + lro_delay = kwargs.get( + 'polling_interval', + self._config.polling_interval + ) + if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers/{triggerName}'} + + def list_by_share_subscription( + self, + resource_group_name, # type: str + account_name, # type: str + share_subscription_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> "models.TriggerList" + """List Triggers in a share subscription. + + List Triggers in a share subscription. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param account_name: The name of the share account. + :type account_name: str + :param share_subscription_name: The name of the shareSubscription. + :type share_subscription_name: str + :param skip_token: Continuation token. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: TriggerList or the result of cls(response) + :rtype: ~data_share_management_client.models.TriggerList + :raises: ~data_share_management_client.models.DataShareErrorException: + """ + cls = kwargs.pop('cls', None ) # type: ClsType["models.TriggerList"] + error_map = kwargs.pop('error_map', {}) + api_version = "2019-11-01" + + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_share_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'accountName': self._serialize.url("account_name", account_name, 'str'), + 'shareSubscriptionName': self._serialize.url("share_subscription_name", share_subscription_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + else: + url = next_link + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('TriggerList', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise models.DataShareErrorException.from_response(response, self._deserialize) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_share_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/triggers'} diff --git a/src/datashare/report.md b/src/datashare/report.md new file mode 100644 index 00000000000..652f8051a95 --- /dev/null +++ b/src/datashare/report.md @@ -0,0 +1,483 @@ +# Azure CLI Module Creation Report + +### datashare account create + +create a datashare account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--identity**|object|Identity of resource|identity|identity| +|**--location**|string|Location of the azure resource.|location|location| +|**--tags**|dictionary|Tags on the azure resource.|tags|tags| +### datashare account delete + +delete a datashare account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +### datashare account list + +list a datashare account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare account show + +show a datashare account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +### datashare account update + +update a datashare account. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--tags**|dictionary|Tags on the azure resource.|tags|tags| +### datashare consumer-invitation list + +list a datashare consumer-invitation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare consumer-invitation reject-invitation + +reject-invitation a datashare consumer-invitation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--location**|string|Location of the invitation|location|location| +|**--invitation_id**|string|Unique id of the invitation.|invitation_id|properties_invitation_id| +### datashare consumer-invitation show + +show a datashare consumer-invitation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--location**|string|Location of the invitation|location|location| +|**--invitation_id**|string|An invitation id|invitation_id|invitation_id| +### datashare consumer-source-data-set list + +list a datashare consumer-source-data-set. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare data-set create + +create a datashare data-set. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--data_set_name**|string|The name of the dataSet.|data_set_name|data_set_name| +|**--kind**|choice|Kind of data set.|kind|kind| +### datashare data-set delete + +delete a datashare data-set. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--data_set_name**|string|The name of the dataSet.|data_set_name|data_set_name| +### datashare data-set list + +list a datashare data-set. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare data-set show + +show a datashare data-set. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--data_set_name**|string|The name of the dataSet.|data_set_name|data_set_name| +### datashare data-set-mapping create + +create a datashare data-set-mapping. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--data_set_mapping_name**|string|The name of the dataSetMapping.|data_set_mapping_name|data_set_mapping_name| +|**--kind**|choice|Kind of data set.|kind|kind| +### datashare data-set-mapping delete + +delete a datashare data-set-mapping. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--data_set_mapping_name**|string|The name of the dataSetMapping.|data_set_mapping_name|data_set_mapping_name| +### datashare data-set-mapping list + +list a datashare data-set-mapping. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare data-set-mapping show + +show a datashare data-set-mapping. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--data_set_mapping_name**|string|The name of the dataSetMapping.|data_set_mapping_name|data_set_mapping_name| +### datashare invitation create + +create a datashare invitation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--invitation_name**|string|The name of the invitation.|invitation_name|invitation_name| +|**--target_active_directory_id**|string|The target Azure AD Id. Can't be combined with email.|target_active_directory_id|properties_target_active_directory_id| +|**--target_email**|string|The email the invitation is directed to.|target_email|properties_target_email| +|**--target_object_id**|string|The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.|target_object_id|properties_target_object_id| +### datashare invitation delete + +delete a datashare invitation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--invitation_name**|string|The name of the invitation.|invitation_name|invitation_name| +### datashare invitation list + +list a datashare invitation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare invitation show + +show a datashare invitation. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--invitation_name**|string|The name of the invitation.|invitation_name|invitation_name| +### datashare provider-share-subscription list + +list a datashare provider-share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare provider-share-subscription reinstate + +reinstate a datashare provider-share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--provider_share_subscription_id**|string|To locate shareSubscription|provider_share_subscription_id|provider_share_subscription_id| +### datashare provider-share-subscription revoke + +revoke a datashare provider-share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--provider_share_subscription_id**|string|To locate shareSubscription|provider_share_subscription_id|provider_share_subscription_id| +### datashare provider-share-subscription show + +show a datashare provider-share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--provider_share_subscription_id**|string|To locate shareSubscription|provider_share_subscription_id|provider_share_subscription_id| +### datashare share create + +create a datashare share. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--description**|string|Share description.|description|properties_description| +|**--share_kind**|choice|Share kind.|share_kind|properties_share_kind| +|**--terms**|string|Share terms.|terms|properties_terms| +### datashare share delete + +delete a datashare share. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +### datashare share list + +list a datashare share. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare share list-synchronization + +list-synchronization a datashare share. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare share list-synchronization-detail + +list-synchronization-detail a datashare share. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +|**--consumer_email**|string|Email of the user who created the synchronization|consumer_email|consumer_email| +|**--consumer_name**|string|Name of the user who created the synchronization|consumer_name|consumer_name| +|**--consumer_tenant_name**|string|Tenant name of the consumer who created the synchronization|consumer_tenant_name|consumer_tenant_name| +|**--duration_ms**|integer|synchronization duration|duration_ms|duration_ms| +|**--end_time**|date-time|End time of synchronization|end_time|end_time| +|**--message**|string|message of synchronization|message|message| +|**--start_time**|date-time|start time of synchronization|start_time|start_time| +|**--status**|string|Raw Status|status|status| +|**--synchronization_id**|string|Synchronization id|synchronization_id|synchronization_id| +### datashare share show + +show a datashare share. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +### datashare share-subscription cancel-synchronization + +cancel-synchronization a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--synchronization_id**|string|Synchronization id|synchronization_id|synchronization_id| +### datashare share-subscription create + +create a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--invitation_id**|string|The invitation id.|invitation_id|properties_invitation_id| +|**--source_share_location**|string|Source share location.|source_share_location|properties_source_share_location| +### datashare share-subscription delete + +delete a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +### datashare share-subscription list + +list a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare share-subscription list-source-share-synchronization-setting + +list-source-share-synchronization-setting a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare share-subscription list-synchronization + +list-synchronization a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare share-subscription list-synchronization-detail + +list-synchronization-detail a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--synchronization_id**|string|Synchronization id|synchronization_id|synchronization_id| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare share-subscription show + +show a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +### datashare share-subscription synchronize + +synchronize a datashare share-subscription. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--synchronization_mode**|choice|Synchronization mode|synchronization_mode|synchronization_mode| +### datashare synchronization-setting create + +create a datashare synchronization-setting. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--synchronization_setting_name**|string|The name of the synchronizationSetting.|synchronization_setting_name|synchronization_setting_name| +|**--kind**|choice|Kind of data set.|kind|kind| +### datashare synchronization-setting delete + +delete a datashare synchronization-setting. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--synchronization_setting_name**|string|The name of the synchronizationSetting.|synchronization_setting_name|synchronization_setting_name| +### datashare synchronization-setting list + +list a datashare synchronization-setting. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare synchronization-setting show + +show a datashare synchronization-setting. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_name**|string|The name of the share.|share_name|share_name| +|**--synchronization_setting_name**|string|The name of the synchronizationSetting.|synchronization_setting_name|synchronization_setting_name| +### datashare trigger create + +create a datashare trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--trigger_name**|string|The name of the trigger.|trigger_name|trigger_name| +|**--kind**|choice|Kind of data set.|kind|kind| +### datashare trigger delete + +delete a datashare trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--trigger_name**|string|The name of the trigger.|trigger_name|trigger_name| +### datashare trigger list + +list a datashare trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--skip_token**|string|Continuation token|skip_token|skip_token| +### datashare trigger show + +show a datashare trigger. + +|Option|Type|Description|Path (SDK)|Path (swagger)| +|------|----|-----------|----------|--------------| +|**--resource_group_name**|string|The resource group name.|resource_group_name|resource_group_name| +|**--account_name**|string|The name of the share account.|account_name|account_name| +|**--share_subscription_name**|string|The name of the shareSubscription.|share_subscription_name|share_subscription_name| +|**--trigger_name**|string|The name of the trigger.|trigger_name|trigger_name| \ No newline at end of file diff --git a/src/datashare/setup.cfg b/src/datashare/setup.cfg new file mode 100644 index 00000000000..5eab412034f --- /dev/null +++ b/src/datashare/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/src/datashare/setup.py b/src/datashare/setup.py new file mode 100644 index 00000000000..341cdbd87ed --- /dev/null +++ b/src/datashare/setup.py @@ -0,0 +1,60 @@ +#!/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 +try: + from azure_bdist_wheel import cmdclass +except ImportError: + from distutils import log as logger + logger.warn("Wheel is not available, disabling bdist_wheel hook") + +# TODO: Confirm this is the right version number you want and it matches your +# HISTORY.rst entry. +VERSION = '0.1.0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', +] + +# TODO: Add any additional SDK dependencies here +DEPENDENCIES = [] + +with open('README.rst', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='datashare', + version=VERSION, + description='Microsoft Azure Command-Line Tools DataShareManagementClient Extension', + # TODO: Update author and email, if applicable + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + # TODO: consider pointing directly to your source code instead of the generic repo + url='https://github.com/Azure/azure-cli-extensions', + long_description=README + '\n\n' + HISTORY, + license='MIT', + classifiers=CLASSIFIERS, + packages=find_packages(), + install_requires=DEPENDENCIES, + package_data={'azext_datashare': ['azext_metadata.json']}, +) From 254f368e7d266903f9742126a99fdbc8266402d7 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Mon, 23 Mar 2020 11:52:27 +0800 Subject: [PATCH 02/23] add manual code --- src/datashare/azext_datashare/__init__.py | 6 +- src/datashare/azext_datashare/_help.py | 12 + src/datashare/azext_datashare/_params.py | 12 + src/datashare/azext_datashare/manual/_help.py | 593 ++++++++++++++++++ .../azext_datashare/manual/_params.py | 308 +++++++++ .../azext_datashare/manual/custom.py | 393 ++++++++++++ 6 files changed, 1321 insertions(+), 3 deletions(-) create mode 100644 src/datashare/azext_datashare/_help.py create mode 100644 src/datashare/azext_datashare/_params.py create mode 100644 src/datashare/azext_datashare/manual/_help.py create mode 100644 src/datashare/azext_datashare/manual/_params.py create mode 100644 src/datashare/azext_datashare/manual/custom.py diff --git a/src/datashare/azext_datashare/__init__.py b/src/datashare/azext_datashare/__init__.py index 964eabae04c..32cb1f7e6e4 100644 --- a/src/datashare/azext_datashare/__init__.py +++ b/src/datashare/azext_datashare/__init__.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- from azure.cli.core import AzCommandsLoader -from .generated._help import helps +from ._help import helps class DataShareManagementClientCommandsLoader(AzCommandsLoader): @@ -19,12 +19,12 @@ def __init__(self, cli_ctx=None): custom_command_type=datashare_custom) def load_command_table(self, args): - from .generated.commands import load_command_table + from .commands import load_command_table load_command_table(self, args) return self.command_table def load_arguments(self, command): - from .generated._params import load_arguments + from ._params import load_arguments load_arguments(self, command) diff --git a/src/datashare/azext_datashare/_help.py b/src/datashare/azext_datashare/_help.py new file mode 100644 index 00000000000..3bee6f19af4 --- /dev/null +++ b/src/datashare/azext_datashare/_help.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=wildcard-import +# pylint: disable=unused-wildcard-import + +from .generated._help import * # noqa: F403 +try: + from .manual._help import * # noqa: F403 +except ImportError: + pass diff --git a/src/datashare/azext_datashare/_params.py b/src/datashare/azext_datashare/_params.py new file mode 100644 index 00000000000..008d4cdb489 --- /dev/null +++ b/src/datashare/azext_datashare/_params.py @@ -0,0 +1,12 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=wildcard-import +# pylint: disable=unused-wildcard-import + +from .generated._params import * # noqa: F403 +try: + from .manual._params import * # noqa: F403 +except ImportError: + pass diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py new file mode 100644 index 00000000000..3504d3eae5c --- /dev/null +++ b/src/datashare/azext_datashare/manual/_help.py @@ -0,0 +1,593 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# pylint: disable=too-many-lines + +from knack.help_files import helps + + +helps['datashare account'] = """ + type: group + short-summary: datashare account +""" + +helps['datashare account list'] = """ + type: command + short-summary: List Accounts in Subscription + examples: + - name: Accounts_ListByResourceGroup + text: |- + az datashare account list --resource-group "SampleResourceGroup" +""" + +helps['datashare account show'] = """ + type: command + short-summary: Get an account + examples: + - name: Accounts_Get + text: |- + az datashare account show --account-name "Account1" --resource-group + "SampleResourceGroup" +""" + +helps['datashare account create'] = """ + type: command + short-summary: Create an account + examples: + - name: Accounts_Create + text: |- + az datashare account create --identity type=SystemAssigned --location "West US 2" --tags + tag1=Red tag2=White --account-name "Account1" --resource-group "SampleResourceGroup" +""" + +helps['datashare account update'] = """ + type: command + short-summary: Patch an account + examples: + - name: Accounts_Update + text: |- + az datashare account update --account-name "Account1" --tags tag1=Red tag2=White + --resource-group "SampleResourceGroup" +""" + +helps['datashare account delete'] = """ + type: command + short-summary: DeleteAccount + examples: + - name: Accounts_Delete + text: |- + az datashare account delete --account-name "Account1" --resource-group + "SampleResourceGroup" +""" + +helps['datashare consumer-invitation'] = """ + type: group + short-summary: datashare consumer-invitation +""" + +helps['datashare consumer-invitation list'] = """ + type: command + short-summary: Lists invitations + examples: + - name: ConsumerInvitations_ListInvitations + text: |- + az datashare consumer-invitation list +""" + +helps['datashare consumer-invitation show'] = """ + type: command + short-summary: Get an invitation + examples: + - name: ConsumerInvitations_Get + text: |- + az datashare consumer-invitation show --invitation-id + "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" +""" + +helps['datashare consumer-invitation reject-invitation'] = """ + type: command + short-summary: Reject an invitation + examples: + - name: ConsumerInvitations_RejectInvitation + text: |- + az datashare consumer-invitation reject-invitation --properties-invitation-id + "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" +""" + +helps['datashare data-set'] = """ + type: group + short-summary: datashare data-set +""" + +helps['datashare data-set list'] = """ + type: command + short-summary: List DataSets in a share + examples: + - name: DataSets_ListByShare + text: |- + az datashare data-set list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set show'] = """ + type: command + short-summary: Get a DataSet in a share + examples: + - name: DataSets_Get + text: |- + az datashare data-set show --account-name "Account1" --data-set-name "Dataset1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set create'] = """ + type: command + short-summary: Create a DataSet + examples: + - name: DataSets_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "Blob" --data-set-name + "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_KustoCluster_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "KustoCluster" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_KustoDatabase_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "KustoDatabase" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_SqlDBTable_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "SqlDBTable" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + - name: DataSets_SqlDWTable_Create + text: |- + az datashare data-set create --account-name "Account1" --kind "SqlDWTable" + --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set delete'] = """ + type: command + short-summary: Delete a DataSet in a share + examples: + - name: DataSets_Delete + text: |- + az datashare data-set delete --account-name "Account1" --data-set-name "Dataset1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare data-set-mapping'] = """ + type: group + short-summary: datashare data-set-mapping +""" + +helps['datashare data-set-mapping list'] = """ + type: command + short-summary: List DataSetMappings in a share subscription + examples: + - name: DataSetMappings_ListByShareSubscription + text: |- + az datashare data-set-mapping list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare data-set-mapping show'] = """ + type: command + short-summary: Get a DataSetMapping in a shareSubscription + examples: + - name: DataSetMappings_Get + text: |- + az datashare data-set-mapping show --account-name "Account1" --data-set-mapping-name + "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name + "ShareSubscription1" +""" + +helps['datashare data-set-mapping create'] = """ + type: command + short-summary: Create a DataSetMapping + examples: + - name: DataSetMappings_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "Blob" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" + - name: DataSetMappings_SqlDB_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "SqlDBTable" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" + - name: DataSetMappings_SqlDWDataSetToAdlsGen2File_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "AdlsGen2File" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" + - name: DataSetMappings_SqlDW_Create + text: |- + az datashare data-set-mapping create --account-name "Account1" --kind "SqlDWTable" + --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + --share-subscription-name "ShareSubscription1" +""" + +helps['datashare data-set-mapping delete'] = """ + type: command + short-summary: Delete a DataSetMapping in a shareSubscription + examples: + - name: DataSetMappings_Delete + text: |- + az datashare data-set-mapping delete --account-name "Account1" --data-set-mapping-name + "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name + "ShareSubscription1" +""" + +helps['datashare invitation'] = """ + type: group + short-summary: datashare invitation +""" + +helps['datashare invitation list'] = """ + type: command + short-summary: List invitations in a share + examples: + - name: Invitations_ListByShare + text: |- + az datashare invitation list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare invitation show'] = """ + type: command + short-summary: Get an invitation in a share + examples: + - name: Invitations_Get + text: |- + az datashare invitation show --account-name "Account1" --invitation-name "Invitation1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare invitation create'] = """ + type: command + short-summary: Create an invitation + examples: + - name: Invitations_Create + text: |- + az datashare invitation create --account-name "Account1" --properties-target-email + "receiver@microsoft.com" --invitation-name "Invitation1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare invitation delete'] = """ + type: command + short-summary: Delete an invitation in a share + examples: + - name: Invitations_Delete + text: |- + az datashare invitation delete --account-name "Account1" --invitation-name "Invitation1" + --resource-group "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare share'] = """ + type: group + short-summary: datashare share +""" + +helps['datashare share list'] = """ + type: command + short-summary: List shares in an account + examples: + - name: Shares_ListByAccount + text: |- + az datashare share list --account-name "Account1" --resource-group "SampleResourceGroup" +""" + +helps['datashare share show'] = """ + type: command + short-summary: Get a share + examples: + - name: Shares_Get + text: |- + az datashare share show --account-name "Account1" --resource-group "SampleResourceGroup" + --share-name "Share1" +""" + +helps['datashare share create'] = """ + type: command + short-summary: Create a share + examples: + - name: Shares_Create + text: |- + az datashare share create --account-name "Account1" --resource-group + "SampleResourceGroup" --properties-description "share description" + --properties-share-kind "CopyBased" --properties-terms "Confidential" --share-name + "Share1" +""" + +helps['datashare share delete'] = """ + type: command + short-summary: Delete a share + examples: + - name: Shares_Delete + text: |- + az datashare share delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare share list-synchronization-detail'] = """ + type: command + short-summary: List synchronization details + examples: + - name: Shares_ListSynchronizationDetails + text: |- + az datashare share list-synchronization-detail --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --synchronization-id + "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" +""" + +helps['datashare share list-synchronization'] = """ + type: command + short-summary: List synchronizations of a share + examples: + - name: Shares_ListSynchronizations + text: |- + az datashare share list-synchronization --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription'] = """ + type: group + short-summary: datashare provider-share-subscription +""" + +helps['datashare provider-share-subscription list'] = """ + type: command + short-summary: List share subscriptions in a provider share + examples: + - name: ProviderShareSubscriptions_ListByShare + text: |- + az datashare provider-share-subscription list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription show'] = """ + type: command + short-summary: Get share subscription in a provider share + examples: + - name: ProviderShareSubscriptions_GetByShare + text: |- + az datashare provider-share-subscription show --account-name "Account1" + --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription revoke'] = """ + type: command + short-summary: Revoke share subscription in a provider share + examples: + - name: ProviderShareSubscriptions_Revoke + text: |- + az datashare provider-share-subscription revoke --account-name "Account1" + --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare provider-share-subscription reinstate'] = """ + type: command + short-summary: Reinstate share subscription in a provider share + examples: + - name: ProviderShareSubscriptions_Reinstate + text: |- + az datashare provider-share-subscription reinstate --account-name "Account1" + --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare share-subscription'] = """ + type: group + short-summary: datashare share-subscription +""" + +helps['datashare share-subscription list'] = """ + type: command + short-summary: List share subscriptions in an account + examples: + - name: ShareSubscriptions_ListByAccount + text: |- + az datashare share-subscription list --account-name "Account1" --resource-group + "SampleResourceGroup" +""" + +helps['datashare share-subscription show'] = """ + type: command + short-summary: Get a shareSubscription in an account + examples: + - name: ShareSubscriptions_Get + text: |- + az datashare share-subscription show --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare share-subscription create'] = """ + type: command + short-summary: Create a shareSubscription in an account + examples: + - name: ShareSubscriptions_Create + text: |- + az datashare share-subscription create --account-name "Account1" --resource-group + "SampleResourceGroup" --properties-invitation-id "12345678-1234-1234-12345678abd" + --properties-source-share-location "eastus2" --share-subscription-name + "ShareSubscription1" +""" + +helps['datashare share-subscription delete'] = """ + type: command + short-summary: Delete a shareSubscription in an account + examples: + - name: ShareSubscriptions_Delete + text: |- + az datashare share-subscription delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare share-subscription list-synchronization-detail'] = """ + type: command + short-summary: List synchronization details + examples: + - name: ShareSubscriptions_ListSynchronizationDetails + text: |- + az datashare share-subscription list-synchronization-detail --account-name "Account1" + --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" + --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" +""" + +helps['datashare share-subscription synchronize'] = """ + type: command + short-summary: Initiate a copy + examples: + - name: ShareSubscriptions_Synchronize + text: |- + az datashare share-subscription synchronize --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + --synchronization-mode "Incremental" +""" + +helps['datashare share-subscription cancel-synchronization'] = """ + type: command + short-summary: Request to cancel a synchronization. + examples: + - name: ShareSubscriptions_CancelSynchronization + text: |- + az datashare share-subscription cancel-synchronization --account-name "Account1" + --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" +""" + +helps['datashare share-subscription list-source-share-synchronization-setting'] = """ + type: command + short-summary: Get synchronization settings set on a share + examples: + - name: ShareSubscriptions_ListSourceShareSynchronizationSettings + text: |- + az datashare share-subscription list-source-share-synchronization-setting --account-name + "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" +""" + +helps['datashare share-subscription list-synchronization'] = """ + type: command + short-summary: List synchronizations of a share subscription + examples: + - name: ShareSubscriptions_ListSynchronizations + text: |- + az datashare share-subscription list-synchronization --account-name "Account1" + --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" +""" + +helps['datashare consumer-source-data-set'] = """ + type: group + short-summary: datashare consumer-source-data-set +""" + +helps['datashare consumer-source-data-set list'] = """ + type: command + short-summary: Get source dataSets of a shareSubscription + examples: + - name: ConsumerSourceDataSets_ListByShareSubscription + text: |- + az datashare consumer-source-data-set list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "Share1" +""" + +helps['datashare synchronization-setting'] = """ + type: group + short-summary: datashare synchronization-setting +""" + +helps['datashare synchronization-setting list'] = """ + type: command + short-summary: List synchronizationSettings in a share + examples: + - name: SynchronizationSettings_ListByShare + text: |- + az datashare synchronization-setting list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" +""" + +helps['datashare synchronization-setting show'] = """ + type: command + short-summary: Get a synchronizationSetting in a share + examples: + - name: SynchronizationSettings_Get + text: |- + az datashare synchronization-setting show --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name + "SyncrhonizationSetting1" +""" + +helps['datashare synchronization-setting create'] = """ + type: command + short-summary: Create or update a synchronizationSetting + examples: + - name: SynchronizationSettings_Create + text: |- + az datashare synchronization-setting create --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --kind "ScheduleBased" + --synchronization-setting-name "Dataset1" +""" + +helps['datashare synchronization-setting delete'] = """ + type: command + short-summary: Delete a synchronizationSetting in a share + examples: + - name: SynchronizationSettings_Delete + text: |- + az datashare synchronization-setting delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name + "SyncrhonizationSetting1" +""" + +helps['datashare trigger'] = """ + type: group + short-summary: datashare trigger +""" + +helps['datashare trigger list'] = """ + type: command + short-summary: List Triggers in a share subscription + examples: + - name: Triggers_ListByShareSubscription + text: |- + az datashare trigger list --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" +""" + +helps['datashare trigger show'] = """ + type: command + short-summary: Get a Trigger in a shareSubscription + examples: + - name: Triggers_Get + text: |- + az datashare trigger show --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name + "Trigger1" +""" + +helps['datashare trigger create'] = """ + type: command + short-summary: Create a Trigger + examples: + - name: Triggers_Create + text: |- + az datashare trigger create --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --kind + "ScheduleBased" --trigger-name "Trigger1" +""" + +helps['datashare trigger delete'] = """ + type: command + short-summary: Delete a Trigger in a shareSubscription + examples: + - name: Triggers_Delete + text: |- + az datashare trigger delete --account-name "Account1" --resource-group + "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name + "Trigger1" +""" diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py new file mode 100644 index 00000000000..19b644da231 --- /dev/null +++ b/src/datashare/azext_datashare/manual/_params.py @@ -0,0 +1,308 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +from knack.arguments import CLIArgumentType +from azure.cli.core.commands.parameters import ( + tags_type, + get_enum_type, + resource_group_name_type, + get_location_type +) +from azext_datashare.action import AddIdentity + + +def load_arguments(self, _): + + with self.argument_context('datashare account list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare account show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + + with self.argument_context('datashare account create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the azure resource.') + c.argument('tags', tags_type, help='Tags on the azure resource.') + c.argument('identity', action=AddIdentity, nargs='+', help='Identity of resource') + + with self.argument_context('datashare account update') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('tags', tags_type, help='Tags on the azure resource.') + + with self.argument_context('datashare account delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + + with self.argument_context('datashare consumer-invitation list') as c: + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare consumer-invitation show') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') + c.argument('invitation_id', help='An invitation id') + + with self.argument_context('datashare consumer-invitation reject-invitation') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') + c.argument('properties_invitation_id', help='Unique id of the invitation.') + + with self.argument_context('datashare data-set list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare data-set show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('data_set_name', help='The name of the dataSet.') + + with self.argument_context('datashare data-set create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('data_set_name', help='The name of the dataSet.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare data-set delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('data_set_name', help='The name of the dataSet.') + + with self.argument_context('datashare data-set-mapping list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare data-set-mapping show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + + with self.argument_context('datashare data-set-mapping create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare data-set-mapping delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + + with self.argument_context('datashare invitation list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare invitation show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('invitation_name', help='The name of the invitation.') + + with self.argument_context('datashare invitation create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('invitation_name', help='The name of the invitation.') + c.argument('properties_target_active_directory_id', help='The target Azure AD Id. Can\'t be combined with email.') + c.argument('properties_target_email', help='The email the invitation is directed to.') + c.argument('properties_target_object_id', help='The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.') + + with self.argument_context('datashare invitation delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('invitation_name', help='The name of the invitation.') + + with self.argument_context('datashare share list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare share show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + + with self.argument_context('datashare share create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('properties_description', help='Share description.') + c.argument('properties_share_kind', arg_type=get_enum_type(['CopyBased', 'InPlace']), help='Share kind.') + c.argument('properties_terms', help='Share terms.') + + with self.argument_context('datashare share delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + + with self.argument_context('datashare share list-synchronization-detail') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + c.argument('consumer_email', help='Email of the user who created the synchronization') + c.argument('consumer_name', help='Name of the user who created the synchronization') + c.argument('consumer_tenant_name', help='Tenant name of the consumer who created the synchronization') + c.argument('duration_ms', help='synchronization duration') + c.argument('end_time', help='End time of synchronization') + c.argument('message', help='message of synchronization') + c.argument('start_time', help='start time of synchronization') + c.argument('status', help='Raw Status') + c.argument('synchronization_id', help='Synchronization id') + + with self.argument_context('datashare share list-synchronization') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare provider-share-subscription list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare provider-share-subscription show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('provider_share_subscription_id', help='To locate shareSubscription') + + with self.argument_context('datashare provider-share-subscription revoke') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('provider_share_subscription_id', help='To locate shareSubscription') + + with self.argument_context('datashare provider-share-subscription reinstate') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('provider_share_subscription_id', help='To locate shareSubscription') + + with self.argument_context('datashare share-subscription list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare share-subscription show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + + with self.argument_context('datashare share-subscription create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('properties_invitation_id', help='The invitation id.') + c.argument('properties_source_share_location', help='Source share location.') + + with self.argument_context('datashare share-subscription delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + + with self.argument_context('datashare share-subscription list-synchronization-detail') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + c.argument('synchronization_id', help='Synchronization id') + + with self.argument_context('datashare share-subscription synchronize') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('synchronization_mode', arg_type=get_enum_type(['Incremental', 'FullSync']), help='Synchronization mode') + + with self.argument_context('datashare share-subscription cancel-synchronization') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('synchronization_id', help='Synchronization id') + + with self.argument_context('datashare share-subscription list-source-share-synchronization-setting') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare share-subscription list-synchronization') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare consumer-source-data-set list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare synchronization-setting list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare synchronization-setting show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + + with self.argument_context('datashare synchronization-setting create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare synchronization-setting delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') + c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + + with self.argument_context('datashare trigger list') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('skip_token', help='Continuation token') + + with self.argument_context('datashare trigger show') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('trigger_name', help='The name of the trigger.') + + with self.argument_context('datashare trigger create') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('trigger_name', help='The name of the trigger.') + c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + + with self.argument_context('datashare trigger delete') as c: + c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('trigger_name', help='The name of the trigger.') diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py new file mode 100644 index 00000000000..b54f948e3e7 --- /dev/null +++ b/src/datashare/azext_datashare/manual/custom.py @@ -0,0 +1,393 @@ +# -------------------------------------------------------------------------------------------- +# 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 +# pylint: disable=too-many-lines + + +def datashare_account_list(cmd, client, + resource_group_name=None, + skip_token=None): + if resource_group_name is not None: + return client.list_by_resource_group(resource_group_name=resource_group_name, skip_token=skip_token) + return client.list_by_subscription(skip_token=skip_token) + + +def datashare_account_show(cmd, client, + resource_group_name, + account_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name) + + +def datashare_account_create(cmd, client, + resource_group_name, + account_name, + identity, + location=None, + tags=None): + return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, location=location, tags=tags, identity=identity) + + +def datashare_account_update(cmd, client, + resource_group_name, + account_name, + tags=None): + return client.update(resource_group_name=resource_group_name, account_name=account_name, tags=tags) + + +def datashare_account_delete(cmd, client, + resource_group_name, + account_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name) + + +def datashare_consumer_invitation_list(cmd, client, + skip_token=None): + return client.list_invitation(skip_token=skip_token) + + +def datashare_consumer_invitation_show(cmd, client, + location, + invitation_id): + return client.get(location=location, invitation_id=invitation_id) + + +def datashare_consumer_invitation_reject_invitation(cmd, client, + location, + properties_invitation_id): + return client.reject_invitation(location=location, invitation_id=properties_invitation_id) + + +def datashare_data_set_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_data_set_show(cmd, client, + resource_group_name, + account_name, + share_name, + data_set_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) + + +def datashare_data_set_create(cmd, client, + resource_group_name, + account_name, + share_name, + data_set_name, + kind): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, kind=kind) + + +def datashare_data_set_delete(cmd, client, + resource_group_name, + account_name, + share_name, + data_set_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) + + +def datashare_data_set_mapping_list(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_data_set_mapping_show(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + data_set_mapping_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name) + + +def datashare_data_set_mapping_create(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + data_set_mapping_name, + kind): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name, kind=kind) + + +def datashare_data_set_mapping_delete(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + data_set_mapping_name): + return client.delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name) + + +def datashare_invitation_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_invitation_show(cmd, client, + resource_group_name, + account_name, + share_name, + invitation_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name) + + +def datashare_invitation_create(cmd, client, + resource_group_name, + account_name, + share_name, + invitation_name, + properties_target_active_directory_id=None, + properties_target_email=None, + properties_target_object_id=None): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name, target_active_directory_id=properties_target_active_directory_id, target_email=properties_target_email, target_object_id=properties_target_object_id) + + +def datashare_invitation_delete(cmd, client, + resource_group_name, + account_name, + share_name, + invitation_name): + return client.delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name) + + +def datashare_share_list(cmd, client, + resource_group_name, + account_name, + skip_token=None): + return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) + + +def datashare_share_show(cmd, client, + resource_group_name, + account_name, + share_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name) + + +def datashare_share_create(cmd, client, + resource_group_name, + account_name, + share_name, + properties_description=None, + properties_share_kind=None, + properties_terms=None): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, description=properties_description, share_kind=properties_share_kind, terms=properties_terms) + + +def datashare_share_delete(cmd, client, + resource_group_name, + account_name, + share_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name) + + +def datashare_share_list_synchronization_detail(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None, + consumer_email=None, + consumer_name=None, + consumer_tenant_name=None, + duration_ms=None, + end_time=None, + message=None, + start_time=None, + status=None, + synchronization_id=None): + return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token, consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) + + +def datashare_share_list_synchronization(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_provider_share_subscription_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_provider_share_subscription_show(cmd, client, + resource_group_name, + account_name, + share_name, + provider_share_subscription_id): + return client.get_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) + + +def datashare_provider_share_subscription_revoke(cmd, client, + resource_group_name, + account_name, + share_name, + provider_share_subscription_id): + return client.begin_revoke(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) + + +def datashare_provider_share_subscription_reinstate(cmd, client, + resource_group_name, + account_name, + share_name, + provider_share_subscription_id): + return client.reinstate(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) + + +def datashare_share_subscription_list(cmd, client, + resource_group_name, + account_name, + skip_token=None): + return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) + + +def datashare_share_subscription_show(cmd, client, + resource_group_name, + account_name, + share_subscription_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) + + +def datashare_share_subscription_create(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + properties_invitation_id, + properties_source_share_location): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, invitation_id=properties_invitation_id, source_share_location=properties_source_share_location) + + +def datashare_share_subscription_delete(cmd, client, + resource_group_name, + account_name, + share_subscription_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) + + +def datashare_share_subscription_list_synchronization_detail(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + synchronization_id, + skip_token=None): + return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token, synchronization_id=synchronization_id) + + +def datashare_share_subscription_synchronize(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + synchronization_mode=None): + return client.begin_synchronize(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_mode=synchronization_mode) + + +def datashare_share_subscription_cancel_synchronization(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + synchronization_id): + return client.begin_cancel_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_id=synchronization_id) + + +def datashare_share_subscription_list_source_share_synchronization_setting(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_source_share_synchronization_setting(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_share_subscription_list_synchronization(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_consumer_source_data_set_list(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_synchronization_setting_list(cmd, client, + resource_group_name, + account_name, + share_name, + skip_token=None): + return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + + +def datashare_synchronization_setting_show(cmd, client, + resource_group_name, + account_name, + share_name, + synchronization_setting_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) + + +def datashare_synchronization_setting_create(cmd, client, + resource_group_name, + account_name, + share_name, + synchronization_setting_name, + kind): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name, kind=kind) + + +def datashare_synchronization_setting_delete(cmd, client, + resource_group_name, + account_name, + share_name, + synchronization_setting_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) + + +def datashare_trigger_list(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + skip_token=None): + return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + + +def datashare_trigger_show(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + trigger_name): + return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name) + + +def datashare_trigger_create(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + trigger_name, + kind): + return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name, kind=kind) + + +def datashare_trigger_delete(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + trigger_name): + return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name) From 736f686363d2cf6b69b41d064fefed434934c4af Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Tue, 24 Mar 2020 10:43:48 +0800 Subject: [PATCH 03/23] modify help --- src/datashare/azext_datashare/manual/_help.py | 202 +++++++++--------- 1 file changed, 101 insertions(+), 101 deletions(-) diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 3504d3eae5c..b230650c916 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -19,7 +19,7 @@ examples: - name: Accounts_ListByResourceGroup text: |- - az datashare account list --resource-group "SampleResourceGroup" + az datashare account list --resource-group MyResourceGroup """ helps['datashare account show'] = """ @@ -28,8 +28,8 @@ examples: - name: Accounts_Get text: |- - az datashare account show --account-name "Account1" --resource-group - "SampleResourceGroup" + az datashare account show --account-name MyAccount --resource-group + MyResourceGroup """ helps['datashare account create'] = """ @@ -39,7 +39,7 @@ - name: Accounts_Create text: |- az datashare account create --identity type=SystemAssigned --location "West US 2" --tags - tag1=Red tag2=White --account-name "Account1" --resource-group "SampleResourceGroup" + tag1=Red tag2=White --account-name MyAccount --resource-group MyResourceGroup """ helps['datashare account update'] = """ @@ -48,18 +48,18 @@ examples: - name: Accounts_Update text: |- - az datashare account update --account-name "Account1" --tags tag1=Red tag2=White - --resource-group "SampleResourceGroup" + az datashare account update --account-name MyAccount --tags tag1=Red tag2=White + --resource-group MyResourceGroup """ helps['datashare account delete'] = """ type: command - short-summary: DeleteAccount + short-summary: Delete an account examples: - - name: Accounts_Delete + - name: Delete the account text: |- - az datashare account delete --account-name "Account1" --resource-group - "SampleResourceGroup" + az datashare account delete --account-name MyAccount --resource-group + MyResourceGroup """ helps['datashare consumer-invitation'] = """ @@ -107,8 +107,8 @@ examples: - name: DataSets_ListByShare text: |- - az datashare data-set list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" + az datashare data-set list --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" """ helps['datashare data-set show'] = """ @@ -117,8 +117,8 @@ examples: - name: DataSets_Get text: |- - az datashare data-set show --account-name "Account1" --data-set-name "Dataset1" - --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare data-set show --account-name MyAccount --data-set-name "Dataset1" + --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare data-set create'] = """ @@ -127,24 +127,24 @@ examples: - name: DataSets_Create text: |- - az datashare data-set create --account-name "Account1" --kind "Blob" --data-set-name - "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare data-set create --account-name MyAccount --kind "Blob" --data-set-name + "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_KustoCluster_Create text: |- - az datashare data-set create --account-name "Account1" --kind "KustoCluster" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare data-set create --account-name MyAccount --kind "KustoCluster" + --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_KustoDatabase_Create text: |- - az datashare data-set create --account-name "Account1" --kind "KustoDatabase" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare data-set create --account-name MyAccount --kind "KustoDatabase" + --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_SqlDBTable_Create text: |- - az datashare data-set create --account-name "Account1" --kind "SqlDBTable" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare data-set create --account-name MyAccount --kind "SqlDBTable" + --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_SqlDWTable_Create text: |- - az datashare data-set create --account-name "Account1" --kind "SqlDWTable" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare data-set create --account-name MyAccount --kind "SqlDWTable" + --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare data-set delete'] = """ @@ -153,8 +153,8 @@ examples: - name: DataSets_Delete text: |- - az datashare data-set delete --account-name "Account1" --data-set-name "Dataset1" - --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare data-set delete --account-name MyAccount --data-set-name "Dataset1" + --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare data-set-mapping'] = """ @@ -168,8 +168,8 @@ examples: - name: DataSetMappings_ListByShareSubscription text: |- - az datashare data-set-mapping list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + az datashare data-set-mapping list --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" """ helps['datashare data-set-mapping show'] = """ @@ -178,8 +178,8 @@ examples: - name: DataSetMappings_Get text: |- - az datashare data-set-mapping show --account-name "Account1" --data-set-mapping-name - "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name + az datashare data-set-mapping show --account-name MyAccount --data-set-mapping-name + "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ @@ -189,23 +189,23 @@ examples: - name: DataSetMappings_Create text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "Blob" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + az datashare data-set-mapping create --account-name MyAccount --kind "Blob" + --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" - name: DataSetMappings_SqlDB_Create text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "SqlDBTable" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + az datashare data-set-mapping create --account-name MyAccount --kind "SqlDBTable" + --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" - name: DataSetMappings_SqlDWDataSetToAdlsGen2File_Create text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "AdlsGen2File" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + az datashare data-set-mapping create --account-name MyAccount --kind "AdlsGen2File" + --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" - name: DataSetMappings_SqlDW_Create text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "SqlDWTable" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" + az datashare data-set-mapping create --account-name MyAccount --kind "SqlDWTable" + --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ @@ -215,8 +215,8 @@ examples: - name: DataSetMappings_Delete text: |- - az datashare data-set-mapping delete --account-name "Account1" --data-set-mapping-name - "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name + az datashare data-set-mapping delete --account-name MyAccount --data-set-mapping-name + "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ @@ -231,8 +231,8 @@ examples: - name: Invitations_ListByShare text: |- - az datashare invitation list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" + az datashare invitation list --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" """ helps['datashare invitation show'] = """ @@ -241,8 +241,8 @@ examples: - name: Invitations_Get text: |- - az datashare invitation show --account-name "Account1" --invitation-name "Invitation1" - --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare invitation show --account-name MyAccount --invitation-name "Invitation1" + --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare invitation create'] = """ @@ -251,9 +251,9 @@ examples: - name: Invitations_Create text: |- - az datashare invitation create --account-name "Account1" --properties-target-email + az datashare invitation create --account-name MyAccount --properties-target-email "receiver@microsoft.com" --invitation-name "Invitation1" --resource-group - "SampleResourceGroup" --share-name "Share1" + MyResourceGroup --share-name "Share1" """ helps['datashare invitation delete'] = """ @@ -262,8 +262,8 @@ examples: - name: Invitations_Delete text: |- - az datashare invitation delete --account-name "Account1" --invitation-name "Invitation1" - --resource-group "SampleResourceGroup" --share-name "Share1" + az datashare invitation delete --account-name MyAccount --invitation-name "Invitation1" + --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare share'] = """ @@ -277,7 +277,7 @@ examples: - name: Shares_ListByAccount text: |- - az datashare share list --account-name "Account1" --resource-group "SampleResourceGroup" + az datashare share list --account-name MyAccount --resource-group MyResourceGroup """ helps['datashare share show'] = """ @@ -286,7 +286,7 @@ examples: - name: Shares_Get text: |- - az datashare share show --account-name "Account1" --resource-group "SampleResourceGroup" + az datashare share show --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ @@ -296,8 +296,8 @@ examples: - name: Shares_Create text: |- - az datashare share create --account-name "Account1" --resource-group - "SampleResourceGroup" --properties-description "share description" + az datashare share create --account-name MyAccount --resource-group + MyResourceGroup --properties-description "share description" --properties-share-kind "CopyBased" --properties-terms "Confidential" --share-name "Share1" """ @@ -308,8 +308,8 @@ examples: - name: Shares_Delete text: |- - az datashare share delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" + az datashare share delete --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" """ helps['datashare share list-synchronization-detail'] = """ @@ -318,8 +318,8 @@ examples: - name: Shares_ListSynchronizationDetails text: |- - az datashare share list-synchronization-detail --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --synchronization-id + az datashare share list-synchronization-detail --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ @@ -329,8 +329,8 @@ examples: - name: Shares_ListSynchronizations text: |- - az datashare share list-synchronization --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" + az datashare share list-synchronization --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription'] = """ @@ -344,8 +344,8 @@ examples: - name: ProviderShareSubscriptions_ListByShare text: |- - az datashare provider-share-subscription list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" + az datashare provider-share-subscription list --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription show'] = """ @@ -354,9 +354,9 @@ examples: - name: ProviderShareSubscriptions_GetByShare text: |- - az datashare provider-share-subscription show --account-name "Account1" + az datashare provider-share-subscription show --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - "SampleResourceGroup" --share-name "Share1" + MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription revoke'] = """ @@ -365,9 +365,9 @@ examples: - name: ProviderShareSubscriptions_Revoke text: |- - az datashare provider-share-subscription revoke --account-name "Account1" + az datashare provider-share-subscription revoke --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - "SampleResourceGroup" --share-name "Share1" + MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription reinstate'] = """ @@ -376,9 +376,9 @@ examples: - name: ProviderShareSubscriptions_Reinstate text: |- - az datashare provider-share-subscription reinstate --account-name "Account1" + az datashare provider-share-subscription reinstate --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - "SampleResourceGroup" --share-name "Share1" + MyResourceGroup --share-name "Share1" """ helps['datashare share-subscription'] = """ @@ -392,8 +392,8 @@ examples: - name: ShareSubscriptions_ListByAccount text: |- - az datashare share-subscription list --account-name "Account1" --resource-group - "SampleResourceGroup" + az datashare share-subscription list --account-name MyAccount --resource-group + MyResourceGroup """ helps['datashare share-subscription show'] = """ @@ -402,8 +402,8 @@ examples: - name: ShareSubscriptions_Get text: |- - az datashare share-subscription show --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + az datashare share-subscription show --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" """ helps['datashare share-subscription create'] = """ @@ -412,8 +412,8 @@ examples: - name: ShareSubscriptions_Create text: |- - az datashare share-subscription create --account-name "Account1" --resource-group - "SampleResourceGroup" --properties-invitation-id "12345678-1234-1234-12345678abd" + az datashare share-subscription create --account-name MyAccount --resource-group + MyResourceGroup --properties-invitation-id "12345678-1234-1234-12345678abd" --properties-source-share-location "eastus2" --share-subscription-name "ShareSubscription1" """ @@ -424,8 +424,8 @@ examples: - name: ShareSubscriptions_Delete text: |- - az datashare share-subscription delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + az datashare share-subscription delete --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" """ helps['datashare share-subscription list-synchronization-detail'] = """ @@ -434,8 +434,8 @@ examples: - name: ShareSubscriptions_ListSynchronizationDetails text: |- - az datashare share-subscription list-synchronization-detail --account-name "Account1" - --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" + az datashare share-subscription list-synchronization-detail --account-name MyAccount + --resource-group MyResourceGroup --share-subscription-name "ShareSub1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ @@ -445,8 +445,8 @@ examples: - name: ShareSubscriptions_Synchronize text: |- - az datashare share-subscription synchronize --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + az datashare share-subscription synchronize --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-mode "Incremental" """ @@ -456,8 +456,8 @@ examples: - name: ShareSubscriptions_CancelSynchronization text: |- - az datashare share-subscription cancel-synchronization --account-name "Account1" - --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + az datashare share-subscription cancel-synchronization --account-name MyAccount + --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ @@ -468,7 +468,7 @@ - name: ShareSubscriptions_ListSourceShareSynchronizationSettings text: |- az datashare share-subscription list-source-share-synchronization-setting --account-name - "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" + MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" """ helps['datashare share-subscription list-synchronization'] = """ @@ -477,8 +477,8 @@ examples: - name: ShareSubscriptions_ListSynchronizations text: |- - az datashare share-subscription list-synchronization --account-name "Account1" - --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" + az datashare share-subscription list-synchronization --account-name MyAccount + --resource-group MyResourceGroup --share-subscription-name "ShareSub1" """ helps['datashare consumer-source-data-set'] = """ @@ -492,8 +492,8 @@ examples: - name: ConsumerSourceDataSets_ListByShareSubscription text: |- - az datashare consumer-source-data-set list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "Share1" + az datashare consumer-source-data-set list --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "Share1" """ helps['datashare synchronization-setting'] = """ @@ -507,8 +507,8 @@ examples: - name: SynchronizationSettings_ListByShare text: |- - az datashare synchronization-setting list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" + az datashare synchronization-setting list --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" """ helps['datashare synchronization-setting show'] = """ @@ -517,8 +517,8 @@ examples: - name: SynchronizationSettings_Get text: |- - az datashare synchronization-setting show --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name + az datashare synchronization-setting show --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" --synchronization-setting-name "SyncrhonizationSetting1" """ @@ -528,8 +528,8 @@ examples: - name: SynchronizationSettings_Create text: |- - az datashare synchronization-setting create --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --kind "ScheduleBased" + az datashare synchronization-setting create --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" --kind "ScheduleBased" --synchronization-setting-name "Dataset1" """ @@ -539,8 +539,8 @@ examples: - name: SynchronizationSettings_Delete text: |- - az datashare synchronization-setting delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name + az datashare synchronization-setting delete --account-name MyAccount --resource-group + MyResourceGroup --share-name "Share1" --synchronization-setting-name "SyncrhonizationSetting1" """ @@ -555,8 +555,8 @@ examples: - name: Triggers_ListByShareSubscription text: |- - az datashare trigger list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" + az datashare trigger list --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" """ helps['datashare trigger show'] = """ @@ -565,8 +565,8 @@ examples: - name: Triggers_Get text: |- - az datashare trigger show --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name + az datashare trigger show --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" --trigger-name "Trigger1" """ @@ -576,8 +576,8 @@ examples: - name: Triggers_Create text: |- - az datashare trigger create --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --kind + az datashare trigger create --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" --kind "ScheduleBased" --trigger-name "Trigger1" """ @@ -587,7 +587,7 @@ examples: - name: Triggers_Delete text: |- - az datashare trigger delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name + az datashare trigger delete --account-name MyAccount --resource-group + MyResourceGroup --share-subscription-name "ShareSubscription1" --trigger-name "Trigger1" """ From 7af1a13affa6ed9706d83e8cf63f4811e6439ea0 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Mon, 30 Mar 2020 11:01:22 +0800 Subject: [PATCH 04/23] modify datashare account --- src/datashare/azext_datashare/manual/_help.py | 9 +++++++-- src/datashare/azext_datashare/manual/_params.py | 16 ++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index b230650c916..2669e9d78e4 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -35,12 +35,17 @@ helps['datashare account create'] = """ type: command short-summary: Create an account + parameters: + - name: --identity + short-summary: Identity of resource. + long-summary: | + Usage: --identity [type=SystemAssigned] [tenantId=VAL principalId=VAL] examples: - name: Accounts_Create text: |- az datashare account create --identity type=SystemAssigned --location "West US 2" --tags - tag1=Red tag2=White --account-name MyAccount --resource-group MyResourceGroup -""" + tag1=Red tag2=White --name MyAccount --resource-group MyResourceGroup +""" # modified helps['datashare account update'] = """ type: command diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 19b644da231..3aa5c4f2237 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -13,6 +13,7 @@ resource_group_name_type, get_location_type ) +from azure.cli.core.commands.validators import get_default_location_from_resource_group from azext_datashare.action import AddIdentity @@ -24,24 +25,27 @@ def load_arguments(self, _): with self.argument_context('datashare account show') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') + c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified with self.argument_context('datashare account create') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the azure resource.') - c.argument('tags', tags_type, help='Tags on the azure resource.') - c.argument('identity', action=AddIdentity, nargs='+', help='Identity of resource') + c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified + c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group) # modified + c.argument('tags', tags_type) # modified + c.argument('identity', action=AddIdentity, nargs='+') # modified with self.argument_context('datashare account update') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') + c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified c.argument('tags', tags_type, help='Tags on the azure resource.') with self.argument_context('datashare account delete') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') c.argument('account_name', help='The name of the share account.') + with self.argument_context('datashare account wait') as c: + c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified + with self.argument_context('datashare consumer-invitation list') as c: c.argument('skip_token', help='Continuation token') From ecd30366b9b1e3327b71e05b61d674af6d2519f1 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Wed, 1 Apr 2020 01:14:28 +0800 Subject: [PATCH 05/23] modify params --- .../azext_datashare/manual/_params.py | 271 +++---- .../azext_datashare/manual/commands.py | 131 +++ .../azext_datashare/manual/custom.py | 2 +- .../tests/latest/test_datashare_scenario.py | 760 +++++++++--------- 4 files changed, 667 insertions(+), 497 deletions(-) create mode 100644 src/datashare/azext_datashare/manual/commands.py diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 3aa5c4f2237..426a236810b 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -15,152 +15,153 @@ ) from azure.cli.core.commands.validators import get_default_location_from_resource_group from azext_datashare.action import AddIdentity +from ..vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode def load_arguments(self, _): with self.argument_context('datashare account list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('skip_token', help='Continuation token') with self.argument_context('datashare account show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', options_list=['--name', '-n'], id_part='name', help='The name of the share account.') # modified with self.argument_context('datashare account create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group) # modified c.argument('tags', tags_type) # modified - c.argument('identity', action=AddIdentity, nargs='+') # modified + c.argument('identity', action=AddIdentity, nargs='+', help='Identity of resource') with self.argument_context('datashare account update') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', options_list=['--name', '-n'], id_part='name', help='The name of the share account.') # modified c.argument('tags', tags_type, help='Tags on the azure resource.') with self.argument_context('datashare account delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', options_list=['--name', '-n'], id_part='name', help='The name of the share account.') with self.argument_context('datashare account wait') as c: - c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified + c.argument('account_name', options_list=['--name', '-n'], id_part='name', help='The name of the share account.') # modified with self.argument_context('datashare consumer-invitation list') as c: c.argument('skip_token', help='Continuation token') with self.argument_context('datashare consumer-invitation show') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') + c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified c.argument('invitation_id', help='An invitation id') with self.argument_context('datashare consumer-invitation reject-invitation') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') - c.argument('properties_invitation_id', help='Unique id of the invitation.') + c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified + c.argument('invitation_id', help='Unique id of the invitation.') # modified - with self.argument_context('datashare data-set list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare dataset list') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') c.argument('skip_token', help='Continuation token') - with self.argument_context('datashare data-set show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('data_set_name', help='The name of the dataSet.') + with self.argument_context('datashare dataset show') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataSet.') # modified - with self.argument_context('datashare data-set create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare dataset create') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('data_set_name', help='The name of the dataSet.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + c.argument('data_set_name', options_list=['--name', '-n'], help='The name of the dataSet.') # modified + c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified - with self.argument_context('datashare data-set delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('data_set_name', help='The name of the dataSet.') + with self.argument_context('datashare dataset delete') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataSet.') # modified - with self.argument_context('datashare data-set-mapping list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare dataset-mapping list') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') - with self.argument_context('datashare data-set-mapping show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare dataset-mapping show') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified - with self.argument_context('datashare data-set-mapping create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare dataset-mapping create') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified + c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified - with self.argument_context('datashare data-set-mapping delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare dataset-mapping delete') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') + c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified with self.argument_context('datashare invitation list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') c.argument('skip_token', help='Continuation token') with self.argument_context('datashare invitation show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('invitation_name', help='The name of the invitation.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('invitation_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the invitation.') # modified with self.argument_context('datashare invitation create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('invitation_name', help='The name of the invitation.') - c.argument('properties_target_active_directory_id', help='The target Azure AD Id. Can\'t be combined with email.') - c.argument('properties_target_email', help='The email the invitation is directed to.') - c.argument('properties_target_object_id', help='The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.') + c.argument('invitation_name', options_list=['--name', '-n'], help='The name of the invitation.') # modified + c.argument('target_active_directory_id', help='The target Azure AD Id. Can\'t be combined with email.') # modified + c.argument('target_email', help='The email the invitation is directed to.') # modified + c.argument('target_object_id', help='The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.') # modified with self.argument_context('datashare invitation delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('invitation_name', help='The name of the invitation.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('invitation_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the invitation.') # modified - with self.argument_context('datashare share list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare list') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('skip_token', help='Continuation token') - with self.argument_context('datashare share show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') + with self.argument_context('datashare show') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified - with self.argument_context('datashare share create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare create') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('properties_description', help='Share description.') - c.argument('properties_share_kind', arg_type=get_enum_type(['CopyBased', 'InPlace']), help='Share kind.') - c.argument('properties_terms', help='Share terms.') + c.argument('share_name', options_list=['--name', '-n'], help='The name of the share.') # modified + c.argument('description', help='Share description.') # modified + c.argument('share_kind', arg_type=get_enum_type(ShareKind), help='Share kind.') # modified + c.argument('terms', help='Share terms.') # modified - with self.argument_context('datashare share delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') + with self.argument_context('datashare delete') as c: + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified - with self.argument_context('datashare share list-synchronization-detail') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') + with self.argument_context('datashare list-synchronization-detail') as c: + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified c.argument('skip_token', help='Continuation token') c.argument('consumer_email', help='Email of the user who created the synchronization') c.argument('consumer_name', help='Name of the user who created the synchronization') @@ -172,141 +173,141 @@ def load_arguments(self, _): c.argument('status', help='Raw Status') c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare share list-synchronization') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') + with self.argument_context('datashare list-synchronization') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified c.argument('skip_token', help='Continuation token') with self.argument_context('datashare provider-share-subscription list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') c.argument('skip_token', help='Continuation token') with self.argument_context('datashare provider-share-subscription show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('provider_share_subscription_id', help='To locate shareSubscription') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified with self.argument_context('datashare provider-share-subscription revoke') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('provider_share_subscription_id', help='To locate shareSubscription') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified with self.argument_context('datashare provider-share-subscription reinstate') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('provider_share_subscription_id', help='To locate shareSubscription') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified with self.argument_context('datashare share-subscription list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('skip_token', help='Continuation token') with self.argument_context('datashare share-subscription show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the shareSubscription.') # modified with self.argument_context('datashare share-subscription create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('properties_invitation_id', help='The invitation id.') - c.argument('properties_source_share_location', help='Source share location.') + c.argument('share_subscription_name', help='The name of the shareSubscription.') # modified + c.argument('invitation_id', help='The invitation id.') # modified + c.argument('source_share_location', help='Source share location.') # modified with self.argument_context('datashare share-subscription delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the shareSubscription.') # modified with self.argument_context('datashare share-subscription list-synchronization-detail') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') c.argument('synchronization_id', help='Synchronization id') with self.argument_context('datashare share-subscription synchronize') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('synchronization_mode', arg_type=get_enum_type(['Incremental', 'FullSync']), help='Synchronization mode') + c.argument('synchronization_mode', arg_type=get_enum_type(SynchronizationMode), help='Synchronization mode') # modified with self.argument_context('datashare share-subscription cancel-synchronization') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('synchronization_id', help='Synchronization id') with self.argument_context('datashare share-subscription list-source-share-synchronization-setting') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') with self.argument_context('datashare share-subscription list-synchronization') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') - with self.argument_context('datashare consumer-source-data-set list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + with self.argument_context('datashare consumer-source-dataset list') as c: + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') with self.argument_context('datashare synchronization-setting list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') c.argument('skip_token', help='Continuation token') with self.argument_context('datashare synchronization-setting show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified with self.argument_context('datashare synchronization-setting create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified + c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified with self.argument_context('datashare synchronization-setting delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified with self.argument_context('datashare trigger list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') with self.argument_context('datashare trigger show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('trigger_name', help='The name of the trigger.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the shareSubscription.') + c.argument('trigger_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the trigger.') with self.argument_context('datashare trigger create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') + c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('trigger_name', help='The name of the trigger.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') + c.argument('trigger_name', options_list=['--name', '-n'], help='The name of the trigger.') # modified + c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified with self.argument_context('datashare trigger delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('trigger_name', help='The name of the trigger.') + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the shareSubscription.') # modified + c.argument('trigger_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the trigger.') # modified diff --git a/src/datashare/azext_datashare/manual/commands.py b/src/datashare/azext_datashare/manual/commands.py new file mode 100644 index 00000000000..7eea3a5f115 --- /dev/null +++ b/src/datashare/azext_datashare/manual/commands.py @@ -0,0 +1,131 @@ +# -------------------------------------------------------------------------------------------- +# 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 + + +def load_command_table(self, _): + + from azext_datashare.generated._client_factory import cf_account + datashare_account = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._account_operations#AccountOperations.{}', + client_factory=cf_account) + with self.command_group('datashare account', datashare_account, client_factory=cf_account) as g: + g.custom_command('list', 'datashare_account_list') + g.custom_show_command('show', 'datashare_account_show') + g.custom_command('create', 'datashare_account_create', supports_no_wait=True) + g.custom_command('update', 'datashare_account_update') + g.custom_command('delete', 'datashare_account_delete', supports_no_wait=True) + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_consumer_invitation + datashare_consumer_invitation = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_invitation_operations#ConsumerInvitationOperations.{}', + client_factory=cf_consumer_invitation) + with self.command_group('datashare consumer-invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: + g.custom_command('list', 'datashare_consumer_invitation_list') + g.custom_show_command('show', 'datashare_consumer_invitation_show') + g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') + + from azext_datashare.generated._client_factory import cf_data_set + datashare_data_set = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_operations#DataSetOperations.{}', + client_factory=cf_data_set) + with self.command_group('datashare dataset', datashare_data_set, client_factory=cf_data_set) as g: # modified + g.custom_command('list', 'datashare_data_set_list') + g.custom_show_command('show', 'datashare_data_set_show') + g.custom_command('create', 'datashare_data_set_create') + g.custom_command('delete', 'datashare_data_set_delete', supports_no_wait=True) + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_data_set_mapping + datashare_data_set_mapping = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_mapping_operations#DataSetMappingOperations.{}', + client_factory=cf_data_set_mapping) + with self.command_group('datashare dataset-mapping', datashare_data_set_mapping, client_factory=cf_data_set_mapping) as g: # modified + g.custom_command('list', 'datashare_data_set_mapping_list') + g.custom_show_command('show', 'datashare_data_set_mapping_show') + g.custom_command('create', 'datashare_data_set_mapping_create') + g.custom_command('delete', 'datashare_data_set_mapping_delete') + + from azext_datashare.generated._client_factory import cf_invitation + datashare_invitation = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._invitation_operations#InvitationOperations.{}', + client_factory=cf_invitation) + with self.command_group('datashare invitation', datashare_invitation, client_factory=cf_invitation) as g: + g.custom_command('list', 'datashare_invitation_list') + g.custom_show_command('show', 'datashare_invitation_show') + g.custom_command('create', 'datashare_invitation_create') + g.custom_command('delete', 'datashare_invitation_delete') + + from azext_datashare.generated._client_factory import cf_share + datashare_share = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_operations#ShareOperations.{}', + client_factory=cf_share) + with self.command_group('datashare', datashare_share, client_factory=cf_share) as g: # modified + g.custom_command('list', 'datashare_share_list') + g.custom_show_command('show', 'datashare_share_show') + g.custom_command('create', 'datashare_share_create') + g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True) + g.custom_command('list-synchronization-detail', 'datashare_share_list_synchronization_detail') + g.custom_command('list-synchronization', 'datashare_share_list_synchronization') + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_provider_share_subscription + datashare_provider_share_subscription = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._provider_share_subscription_operations#ProviderShareSubscriptionOperations.{}', + client_factory=cf_provider_share_subscription) + with self.command_group('datashare provider-share-subscription', datashare_provider_share_subscription, client_factory=cf_provider_share_subscription) as g: + g.custom_command('list', 'datashare_provider_share_subscription_list') + g.custom_show_command('show', 'datashare_provider_share_subscription_show') + g.custom_command('revoke', 'datashare_provider_share_subscription_revoke', supports_no_wait=True) + g.custom_command('reinstate', 'datashare_provider_share_subscription_reinstate') + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_share_subscription + datashare_share_subscription = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_subscription_operations#ShareSubscriptionOperations.{}', + client_factory=cf_share_subscription) + with self.command_group('datashare share-subscription', datashare_share_subscription, client_factory=cf_share_subscription) as g: + g.custom_command('list', 'datashare_share_subscription_list') + g.custom_show_command('show', 'datashare_share_subscription_show') + g.custom_command('create', 'datashare_share_subscription_create') + g.custom_command('delete', 'datashare_share_subscription_delete', supports_no_wait=True) + g.custom_command('list-synchronization-detail', 'datashare_share_subscription_list_synchronization_detail') + g.custom_command('synchronize', 'datashare_share_subscription_synchronize', supports_no_wait=True) + g.custom_command('cancel-synchronization', 'datashare_share_subscription_cancel_synchronization', supports_no_wait=True) + g.custom_command('list-source-share-synchronization-setting', 'datashare_share_subscription_list_source_share_synchronization_setting') + g.custom_command('list-synchronization', 'datashare_share_subscription_list_synchronization') + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_consumer_source_data_set + datashare_consumer_source_data_set = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', + client_factory=cf_consumer_source_data_set) + with self.command_group('datashare consumer-source-data-set', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: + g.custom_command('list', 'datashare_consumer_source_data_set_list') + + from azext_datashare.generated._client_factory import cf_synchronization_setting + datashare_synchronization_setting = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._synchronization_setting_operations#SynchronizationSettingOperations.{}', + client_factory=cf_synchronization_setting) + with self.command_group('datashare synchronization-setting', datashare_synchronization_setting, client_factory=cf_synchronization_setting) as g: + g.custom_command('list', 'datashare_synchronization_setting_list') + g.custom_show_command('show', 'datashare_synchronization_setting_show') + g.custom_command('create', 'datashare_synchronization_setting_create') + g.custom_command('delete', 'datashare_synchronization_setting_delete', supports_no_wait=True) + g.wait_command('wait') + + from azext_datashare.generated._client_factory import cf_trigger + datashare_trigger = CliCommandType( + operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._trigger_operations#TriggerOperations.{}', + client_factory=cf_trigger) + with self.command_group('datashare trigger', datashare_trigger, client_factory=cf_trigger) as g: + g.custom_command('list', 'datashare_trigger_list') + g.custom_show_command('show', 'datashare_trigger_show') + g.custom_command('create', 'datashare_trigger_create', supports_no_wait=True) + g.custom_command('delete', 'datashare_trigger_delete', supports_no_wait=True) + g.wait_command('wait') diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index b54f948e3e7..7e2d08fd80b 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -9,7 +9,7 @@ def datashare_account_list(cmd, client, resource_group_name=None, skip_token=None): - if resource_group_name is not None: + if resource_group_name: return client.list_by_resource_group(resource_group_name=resource_group_name, skip_token=skip_token) return client.list_by_subscription(skip_token=skip_token) diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index cc0ba417727..3de74ba202a 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -7,9 +7,9 @@ import unittest from azure_devtools.scenario_tests import AllowLargeResponse -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer - +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, + JMESPathCheck, JMESPathCheckExists, + NoneCheck) TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) @@ -33,372 +33,410 @@ def test_datashare(self, resource_group): 'Trigger1': self.create_random_name(prefix='cli_test_triggers'[:9], length=24), }) - self.cmd('az datashare account create ' - '--identity type=SystemAssigned ' - '--location "West US 2" ' - '--tags tag1=Red tag2=White ' - '--account-name "{Account1}" ' - '--resource-group "{rg}"', - checks=[]) - - self.cmd('az datashare share create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--properties-description "share description" ' - '--properties-share-kind "CopyBased" ' - '--properties-terms "Confidential" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare data-set create ' - '--account-name "{Account1}" ' - '--kind "SqlDWTable" ' - '--data-set-name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare data-set create ' - '--account-name "{Account1}" ' - '--kind "SqlDBTable" ' - '--data-set-name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare data-set create ' - '--account-name "{Account1}" ' - '--kind "KustoDatabase" ' - '--data-set-name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare data-set create ' - '--account-name "{Account1}" ' - '--kind "KustoCluster" ' - '--data-set-name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare data-set create ' - '--account-name "{Account1}" ' - '--kind "Blob" ' - '--data-set-name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share-subscription create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--properties-invitation-id "12345678-1234-1234-12345678abd" ' - '--properties-source-share-location "eastus2" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare invitation create ' - '--account-name "{Account1}" ' - '--properties-target-email "receiver@microsoft.com" ' - '--invitation-name "{Invitation1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare trigger create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--kind "ScheduleBased" ' - '--trigger-name "{Trigger1}"', - checks=[]) - - self.cmd('az datashare synchronization-setting create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--kind "ScheduleBased" ' - '--synchronization-setting-name "{Dataset1}"', - checks=[]) - - self.cmd('az datashare data-set-mapping create ' - '--account-name "{Account1}" ' - '--kind "SqlDWTable" ' - '--data-set-mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare data-set-mapping create ' - '--account-name "{Account1}" ' - '--kind "AdlsGen2File" ' - '--data-set-mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare data-set-mapping create ' - '--account-name "{Account1}" ' - '--kind "SqlDBTable" ' - '--data-set-mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare data-set-mapping create ' - '--account-name "{Account1}" ' - '--kind "Blob" ' - '--data-set-mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare data-set-mapping show ' - '--account-name "{Account1}" ' - '--data-set-mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare provider-share-subscription show ' - '--account-name "{Account1}" ' - '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare synchronization-setting show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--synchronization-setting-name "{SynchronizationSettings_2}"', - checks=[]) - - self.cmd('az datashare trigger show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--trigger-name "{Trigger1}"', - checks=[]) - - self.cmd('az datashare invitation show ' - '--account-name "{Account1}" ' - '--invitation-name "{Invitation1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share-subscription show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare data-set show ' - '--account-name "{Account1}" ' - '--data-set-name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - + datashareAccount = self.cmd('az datashare account create ' + '--identity type=SystemAssigned ' + '--location "West US 2" ' + '--tags tag1=Red tag2=White ' + '--name "{Account1}" ' + '--resource-group "{rg}"', + checks=[JMESPathCheck('name', self.kwargs.get('Account1', '')), + JMESPathCheck('location', 'westus2'), + # JMESPathCheck('provisioningState', 'Succeeded'), + JMESPathCheck('resourceGroup', self.kwargs.get('rg', '')), + JMESPathCheck('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]).get_output_in_json() + + self.cmd('az datashare account wait ' + '--name "{Account1}" ' + '--resource-group "{rg}" ' + '--created', + checks=[]) + + accountId = datashareAccount['id'] self.cmd('az datashare account show ' - '--account-name "{Account1}" ' + '-n "{Account1}" ' '--resource-group "{rg}"', - checks=[]) - - self.cmd('az datashare consumer-invitation show ' - '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' - '--location "East US 2"', - checks=[]) - - self.cmd('az datashare consumer-source-data-set list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_2}"', - checks=[]) - - self.cmd('az datashare data-set-mapping list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare trigger list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare provider-share-subscription list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare synchronization-setting list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare invitation list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare data-set list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share-subscription list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}"', - checks=[]) - - self.cmd('az datashare share list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}"', - checks=[]) + checks=[JMESPathCheck('name', self.kwargs.get('Account1', '')), + JMESPathCheck('location', 'westus2'), + # JMESPathCheck('provisioningState', 'Succeeded'), + JMESPathCheck('resourceGroup', self.kwargs.get('rg', '')), + JMESPathCheck('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]) self.cmd('az datashare account list ' '--resource-group "{rg}"', - checks=[]) - - self.cmd('az datashare account list', - checks=[]) - - self.cmd('az datashare consumer-invitation list', - checks=[]) - - self.cmd('az datashare provider-share-subscription reinstate ' - '--account-name "{Account1}" ' - '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare provider-share-subscription revoke ' - '--account-name "{Account1}" ' - '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_3}"', - checks=[]) - - self.cmd('az datashare share-subscription list-synchronization-detail ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_3}" ' - '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - checks=[]) - - self.cmd('az datashare share-subscription cancel-synchronization ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - checks=[]) - - self.cmd('az datashare share-subscription list-synchronization ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_3}"', - checks=[]) - - self.cmd('az datashare share-subscription synchronize ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--synchronization-mode "Incremental"', - checks=[]) - - self.cmd('az datashare share list-synchronization-detail ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - checks=[]) - - self.cmd('az datashare share list-synchronization ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare account update ' - '--account-name "{Account1}" ' - '--tags tag1=Red tag2=White ' - '--resource-group "{rg}"', - checks=[]) + checks=[JMESPathCheck("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), + JMESPathCheck("[?id=='{}'].location | [0]".format(accountId), 'westus2'), + # JMESPathCheck("[?id=='{}'].provisioningState | [0]".format(accountId), 'Succeeded'), + JMESPathCheck("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), + JMESPathCheck("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]) + + # self.cmd('az datashare share create ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--properties-description "share description" ' + # '--properties-share-kind "CopyBased" ' + # '--properties-terms "Confidential" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare data-set create ' + # '--account-name "{Account1}" ' + # '--kind "SqlDWTable" ' + # '--data-set-name "{Dataset1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare data-set create ' + # '--account-name "{Account1}" ' + # '--kind "SqlDBTable" ' + # '--data-set-name "{Dataset1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare data-set create ' + # '--account-name "{Account1}" ' + # '--kind "KustoDatabase" ' + # '--data-set-name "{Dataset1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare data-set create ' + # '--account-name "{Account1}" ' + # '--kind "KustoCluster" ' + # '--data-set-name "{Dataset1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare data-set create ' + # '--account-name "{Account1}" ' + # '--kind "Blob" ' + # '--data-set-name "{Dataset1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare share-subscription create ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--properties-invitation-id "12345678-1234-1234-12345678abd" ' + # '--properties-source-share-location "eastus2" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare invitation create ' + # '--account-name "{Account1}" ' + # '--properties-target-email "receiver@microsoft.com" ' + # '--invitation-name "{Invitation1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare trigger create ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}" ' + # '--kind "ScheduleBased" ' + # '--trigger-name "{Trigger1}"', + # checks=[]) + + # self.cmd('az datashare synchronization-setting create ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}" ' + # '--kind "ScheduleBased" ' + # '--synchronization-setting-name "{Dataset1}"', + # checks=[]) + + # self.cmd('az datashare data-set-mapping create ' + # '--account-name "{Account1}" ' + # '--kind "SqlDWTable" ' + # '--data-set-mapping-name "{DatasetMapping1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare data-set-mapping create ' + # '--account-name "{Account1}" ' + # '--kind "AdlsGen2File" ' + # '--data-set-mapping-name "{DatasetMapping1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare data-set-mapping create ' + # '--account-name "{Account1}" ' + # '--kind "SqlDBTable" ' + # '--data-set-mapping-name "{DatasetMapping1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare data-set-mapping create ' + # '--account-name "{Account1}" ' + # '--kind "Blob" ' + # '--data-set-mapping-name "{DatasetMapping1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare data-set-mapping show ' + # '--account-name "{Account1}" ' + # '--data-set-mapping-name "{DatasetMapping1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare provider-share-subscription show ' + # '--account-name "{Account1}" ' + # '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare synchronization-setting show ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}" ' + # '--synchronization-setting-name "{SynchronizationSettings_2}"', + # checks=[]) + + # self.cmd('az datashare trigger show ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}" ' + # '--trigger-name "{Trigger1}"', + # checks=[]) + + # self.cmd('az datashare invitation show ' + # '--account-name "{Account1}" ' + # '--invitation-name "{Invitation1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare share-subscription show ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare data-set show ' + # '--account-name "{Account1}" ' + # '--data-set-name "{Dataset1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare share show ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare account show ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}"', + # checks=[]) + + # self.cmd('az datashare consumer-invitation show ' + # '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' + # '--location "East US 2"', + # checks=[]) + + # self.cmd('az datashare consumer-source-data-set list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscriptions_2}"', + # checks=[]) + + # self.cmd('az datashare data-set-mapping list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare trigger list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare provider-share-subscription list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare synchronization-setting list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare invitation list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare data-set list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare share-subscription list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}"', + # checks=[]) + + # self.cmd('az datashare share list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}"', + # checks=[]) + + # self.cmd('az datashare account list ' + # '--resource-group "{rg}"', + # checks=[]) + + # self.cmd('az datashare account list', + # checks=[]) + + # self.cmd('az datashare consumer-invitation list', + # checks=[]) + + # self.cmd('az datashare provider-share-subscription reinstate ' + # '--account-name "{Account1}" ' + # '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare provider-share-subscription revoke ' + # '--account-name "{Account1}" ' + # '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscriptions_3}"', + # checks=[]) + + # self.cmd('az datashare share-subscription list-synchronization-detail ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscriptions_3}" ' + # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + # checks=[]) + + # self.cmd('az datashare share-subscription cancel-synchronization ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}" ' + # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + # checks=[]) + + # self.cmd('az datashare share-subscription list-synchronization ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscriptions_3}"', + # checks=[]) + + # self.cmd('az datashare share-subscription synchronize ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}" ' + # '--synchronization-mode "Incremental"', + # checks=[]) + + # self.cmd('az datashare share list-synchronization-detail ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}" ' + # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + # checks=[]) + + # self.cmd('az datashare share list-synchronization ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare account update ' + # '--account-name "{Account1}" ' + # '--tags tag1=Red tag2=White ' + # '--resource-group "{rg}"', + # checks=[]) + + # self.cmd('az datashare consumer-invitation reject-invitation ' + # '--properties-invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' + # '--location "East US 2"', + # checks=[]) + + # self.cmd('az datashare data-set-mapping delete ' + # '--account-name "{Account1}" ' + # '--data-set-mapping-name "{DatasetMapping1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare synchronization-setting delete ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}" ' + # '--synchronization-setting-name "{SynchronizationSettings_2}"', + # checks=[]) + + # self.cmd('az datashare trigger delete ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}" ' + # '--trigger-name "{Trigger1}"', + # checks=[]) + + # self.cmd('az datashare invitation delete ' + # '--account-name "{Account1}" ' + # '--invitation-name "{Invitation1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare share-subscription delete ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-subscription-name "{ShareSubscription1}"', + # checks=[]) + + # self.cmd('az datashare data-set delete ' + # '--account-name "{Account1}" ' + # '--data-set-name "{Dataset1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) + + # self.cmd('az datashare share delete ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) - self.cmd('az datashare consumer-invitation reject-invitation ' - '--properties-invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' - '--location "East US 2"', - checks=[]) - - self.cmd('az datashare data-set-mapping delete ' - '--account-name "{Account1}" ' - '--data-set-mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare synchronization-setting delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--synchronization-setting-name "{SynchronizationSettings_2}"', - checks=[]) - - self.cmd('az datashare trigger delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--trigger-name "{Trigger1}"', - checks=[]) - - self.cmd('az datashare invitation delete ' - '--account-name "{Account1}" ' - '--invitation-name "{Invitation1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share-subscription delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare data-set delete ' - '--account-name "{Account1}" ' - '--data-set-name "{Dataset1}" ' + self.cmd('az datashare account delete ' + '--name "{Account1}" ' '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--no-wait', checks=[]) - self.cmd('az datashare share delete ' - '--account-name "{Account1}" ' + self.cmd('az datashare account wait ' + '--name "{Account1}" ' '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare account delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}"', + '--deleted', checks=[]) From 86e4bbdcfbb38c4fbe9813d5ed33af61b926805a Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Fri, 3 Apr 2020 18:03:31 +0800 Subject: [PATCH 06/23] update metadata --- .../azext_datashare/azext_metadata.json | 4 +- src/datashare/azext_datashare/manual/_help.py | 26 +- .../azext_datashare/manual/_params.py | 8 +- .../azext_datashare/manual/commands.py | 2 +- .../azext_datashare/manual/custom.py | 38 +- .../tests/latest/test_datashare_scenario.py | 685 +++++++++--------- src/datashare/setup.cfg | 2 - src/datashare/setup.py | 2 - 8 files changed, 400 insertions(+), 367 deletions(-) diff --git a/src/datashare/azext_datashare/azext_metadata.json b/src/datashare/azext_datashare/azext_metadata.json index fc707c41f3b..7b56fb1e11a 100644 --- a/src/datashare/azext_datashare/azext_metadata.json +++ b/src/datashare/azext_datashare/azext_metadata.json @@ -1,4 +1,4 @@ { - "azext.isPreview": true, - "azext.minCliCoreVersion": "2.0.67" + "azext.isExperimental": true, + "azext.minCliCoreVersion": "2.3.1" } \ No newline at end of file diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 2669e9d78e4..27b925fb75c 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -271,70 +271,70 @@ --resource-group MyResourceGroup --share-name "Share1" """ -helps['datashare share'] = """ +helps['datashare'] = """ type: group short-summary: datashare share """ -helps['datashare share list'] = """ +helps['datashare list'] = """ type: command short-summary: List shares in an account examples: - name: Shares_ListByAccount text: |- - az datashare share list --account-name MyAccount --resource-group MyResourceGroup + az datashare list --account-name MyAccount --resource-group MyResourceGroup """ -helps['datashare share show'] = """ +helps['datashare show'] = """ type: command short-summary: Get a share examples: - name: Shares_Get text: |- - az datashare share show --account-name MyAccount --resource-group MyResourceGroup + az datashare show --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ -helps['datashare share create'] = """ +helps['datashare create'] = """ type: command short-summary: Create a share examples: - name: Shares_Create text: |- - az datashare share create --account-name MyAccount --resource-group + az datashare create --account-name MyAccount --resource-group MyResourceGroup --properties-description "share description" --properties-share-kind "CopyBased" --properties-terms "Confidential" --share-name "Share1" """ -helps['datashare share delete'] = """ +helps['datashare delete'] = """ type: command short-summary: Delete a share examples: - name: Shares_Delete text: |- - az datashare share delete --account-name MyAccount --resource-group + az datashare delete --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ -helps['datashare share list-synchronization-detail'] = """ +helps['datashare list-synchronization-detail'] = """ type: command short-summary: List synchronization details examples: - name: Shares_ListSynchronizationDetails text: |- - az datashare share list-synchronization-detail --account-name MyAccount --resource-group + az datashare list-synchronization-detail --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ -helps['datashare share list-synchronization'] = """ +helps['datashare list-synchronization'] = """ type: command short-summary: List synchronizations of a share examples: - name: Shares_ListSynchronizations text: |- - az datashare share list-synchronization --account-name MyAccount --resource-group + az datashare list-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 426a236810b..9cf53404143 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -13,10 +13,15 @@ resource_group_name_type, get_location_type ) -from azure.cli.core.commands.validators import get_default_location_from_resource_group +from azure.cli.core.commands.validators import get_default_location_from_resource_group, validate_file_or_dict from azext_datashare.action import AddIdentity from ..vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode +parameter_type = CLIArgumentType( + type=validate_file_or_dict, + options_list=['--parameters', '-p'], + help='Parameters in JSON string or path to JSON file.' +) def load_arguments(self, _): @@ -76,6 +81,7 @@ def load_arguments(self, _): c.argument('share_name', help='The name of the share.') c.argument('data_set_name', options_list=['--name', '-n'], help='The name of the dataSet.') # modified c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified + c.argument('parameter', arg_type=parameter_type) with self.argument_context('datashare dataset delete') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified diff --git a/src/datashare/azext_datashare/manual/commands.py b/src/datashare/azext_datashare/manual/commands.py index 7eea3a5f115..4669833954f 100644 --- a/src/datashare/azext_datashare/manual/commands.py +++ b/src/datashare/azext_datashare/manual/commands.py @@ -65,7 +65,7 @@ def load_command_table(self, _): datashare_share = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_operations#ShareOperations.{}', client_factory=cf_share) - with self.command_group('datashare', datashare_share, client_factory=cf_share) as g: # modified + with self.command_group('datashare', datashare_share, client_factory=cf_share, is_experimental=True) as g: # modified g.custom_command('list', 'datashare_share_list') g.custom_show_command('show', 'datashare_share_show') g.custom_command('create', 'datashare_share_create') diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index 7e2d08fd80b..3e10a53080d 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -5,6 +5,8 @@ # pylint: disable=line-too-long # pylint: disable=too-many-lines +from azure.cli.core.util import sdk_no_wait + def datashare_account_list(cmd, client, resource_group_name=None, @@ -25,8 +27,9 @@ def datashare_account_create(cmd, client, account_name, identity, location=None, - tags=None): - return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, location=location, tags=tags, identity=identity) + tags=None, + no_wait=False): + return sdk_no_wait(no_wait, client.begin_create,resource_group_name=resource_group_name, account_name=account_name, location=location, tags=tags, identity=identity) def datashare_account_update(cmd, client, @@ -55,8 +58,8 @@ def datashare_consumer_invitation_show(cmd, client, def datashare_consumer_invitation_reject_invitation(cmd, client, location, - properties_invitation_id): - return client.reject_invitation(location=location, invitation_id=properties_invitation_id) + invitation_id): + return client.reject_invitation(location=location, invitation_id=invitation_id) def datashare_data_set_list(cmd, client, @@ -80,8 +83,9 @@ def datashare_data_set_create(cmd, client, account_name, share_name, data_set_name, - kind): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, kind=kind) + kind, + parameter): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, kind=kind, **parameter) def datashare_data_set_delete(cmd, client, @@ -146,10 +150,10 @@ def datashare_invitation_create(cmd, client, account_name, share_name, invitation_name, - properties_target_active_directory_id=None, - properties_target_email=None, - properties_target_object_id=None): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name, target_active_directory_id=properties_target_active_directory_id, target_email=properties_target_email, target_object_id=properties_target_object_id) + target_active_directory_id=None, + target_email=None, + target_object_id=None): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name, target_active_directory_id=target_active_directory_id, target_email=target_email, target_object_id=target_object_id) def datashare_invitation_delete(cmd, client, @@ -178,10 +182,10 @@ def datashare_share_create(cmd, client, resource_group_name, account_name, share_name, - properties_description=None, - properties_share_kind=None, - properties_terms=None): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, description=properties_description, share_kind=properties_share_kind, terms=properties_terms) + description=None, + share_kind=None, + terms=None): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, description=description, share_kind=share_kind, terms=terms) def datashare_share_delete(cmd, client, @@ -266,9 +270,9 @@ def datashare_share_subscription_create(cmd, client, resource_group_name, account_name, share_subscription_name, - properties_invitation_id, - properties_source_share_location): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, invitation_id=properties_invitation_id, source_share_location=properties_source_share_location) + invitation_id, + source_share_location): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, invitation_id=invitation_id, source_share_location=source_share_location) def datashare_share_subscription_delete(cmd, client, diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index 3de74ba202a..b6dd804bfc0 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -7,9 +7,7 @@ import unittest from azure_devtools.scenario_tests import AllowLargeResponse -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, - JMESPathCheck, JMESPathCheckExists, - NoneCheck) +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) @@ -28,406 +26,435 @@ def test_datashare(self, resource_group): 'ShareSubscription1': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), 'ShareSubscriptions_2': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), 'ShareSubscriptions_3': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), - 'Dataset1': self.create_random_name(prefix='cli_test_synchronization_settings'[:9], length=24), 'SynchronizationSettings_2': self.create_random_name(prefix='cli_test_synchronization_settings'[:9], length=24), 'Trigger1': self.create_random_name(prefix='cli_test_triggers'[:9], length=24), }) - datashareAccount = self.cmd('az datashare account create ' - '--identity type=SystemAssigned ' - '--location "West US 2" ' - '--tags tag1=Red tag2=White ' - '--name "{Account1}" ' - '--resource-group "{rg}"', - checks=[JMESPathCheck('name', self.kwargs.get('Account1', '')), - JMESPathCheck('location', 'westus2'), - # JMESPathCheck('provisioningState', 'Succeeded'), - JMESPathCheck('resourceGroup', self.kwargs.get('rg', '')), - JMESPathCheck('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - ]).get_output_in_json() + # datashareAccount = self.cmd('az datashare account create ' + # '--identity type=SystemAssigned ' + # '--location "West US 2" ' + # '--tags tag1=Red tag2=White ' + # '--name "{Account1}" ' + # '--resource-group "{rg}"', + # checks=[self.check('name', self.kwargs.get('Account1', '')), + # self.check('location', 'westus2'), + # self.check('resourceGroup', self.kwargs.get('rg', '')), + # self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + # ]).get_output_in_json() - self.cmd('az datashare account wait ' - '--name "{Account1}" ' - '--resource-group "{rg}" ' - '--created', - checks=[]) - - accountId = datashareAccount['id'] - self.cmd('az datashare account show ' - '-n "{Account1}" ' - '--resource-group "{rg}"', - checks=[JMESPathCheck('name', self.kwargs.get('Account1', '')), - JMESPathCheck('location', 'westus2'), - # JMESPathCheck('provisioningState', 'Succeeded'), - JMESPathCheck('resourceGroup', self.kwargs.get('rg', '')), - JMESPathCheck('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - ]) - - self.cmd('az datashare account list ' - '--resource-group "{rg}"', - checks=[JMESPathCheck("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), - JMESPathCheck("[?id=='{}'].location | [0]".format(accountId), 'westus2'), - # JMESPathCheck("[?id=='{}'].provisioningState | [0]".format(accountId), 'Succeeded'), - JMESPathCheck("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), - JMESPathCheck("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - ]) - - # self.cmd('az datashare share create ' - # '--account-name "{Account1}" ' + # self.cmd('az datashare account wait ' + # '--name "{Account1}" ' # '--resource-group "{rg}" ' - # '--properties-description "share description" ' - # '--properties-share-kind "CopyBased" ' - # '--properties-terms "Confidential" ' - # '--share-name "{Share1}"', + # '--created', # checks=[]) - # self.cmd('az datashare data-set create ' + # accountId = datashareAccount['id'] + # self.cmd('az datashare account show ' + # '-n "{Account1}" ' + # '--resource-group "{rg}"', + # checks=[self.check('name', self.kwargs.get('Account1', '')), + # self.check('location', 'westus2'), + # self.check('provisioningState', 'Succeeded'), + # self.check('resourceGroup', self.kwargs.get('rg', '')), + # self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + # ]) + + # self.cmd('az datashare account show ' + # '--ids {}'.format(accountId), + # checks=[self.check('name', self.kwargs.get('Account1', '')), + # self.check('location', 'westus2'), + # self.check('provisioningState', 'Succeeded'), + # self.check('resourceGroup', self.kwargs.get('rg', '')), + # self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + # ]) + + # self.cmd('az datashare account list ' + # '--resource-group "{rg}"', + # checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), + # self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), + # self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), + # self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + # ]) + + # self.cmd('az datashare account list' + # '--resource-group=', + # checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), + # self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), + # self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), + # self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + # ]) + + # self.cmd('az datashare account update ' + # '--name "{Account1}" ' + # '--tags tag1=Green' + # '--resource-group "{rg}"', + # checks=[self.check('name', self.kwargs.get('Account1', '')), + # self.check('location', 'westus2'), + # self.check('provisioningState', 'Succeeded'), + # self.check('resourceGroup', self.kwargs.get('rg', '')), + # self.check('tags', '{\'tag1\': \'Green\'}')]) + + # datashare = self.cmd('az datashare create ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--description "share description" ' + # '--share-kind "CopyBased" ' + # '--terms "Confidential" ' + # '--name "{Share1}"', + # checks=[self.check('name', self.kwargs.get('Share1', '')), + # self.check('description', 'share description'), + # self.check('shareKind', 'CopyBased'), + # self.check('terms', 'Confidential') + # ]).get_output_in_json() + + # datashareId = datashare['id'] + # self.cmd('az datashare show ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--name "{Share1}"', + # checks=[self.check('name', self.kwargs.get('Share1', '')), + # self.check('description', 'share description'), + # self.check('shareKind', 'CopyBased'), + # self.check('terms', 'Confidential')]) + + # self.cmd('az datashare list ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}"', + # checks=[self.check("[?id=='{}'].name | [0]".format(datashareId), self.kwargs.get('Share1', '')), + # self.check("[?id=='{}'].description | [0]".format(datashareId), 'share description'), + # self.check("[?id=='{}'].shareKind | [0]".format(datashareId), 'CopyBased'), + # self.check("[?id=='{}'].terms | [0]".format(datashareId), 'Confidential']) + + + # self.cmd('az datashare dataset create ' # '--account-name "{Account1}" ' # '--kind "SqlDWTable" ' - # '--data-set-name "{Dataset1}" ' + # '--name "{Dataset1}" ' # '--resource-group "{rg}" ' # '--share-name "{Share1}"', # checks=[]) - # self.cmd('az datashare data-set create ' + # self.cmd('az datashare dataset create ' # '--account-name "{Account1}" ' # '--kind "SqlDBTable" ' - # '--data-set-name "{Dataset1}" ' + # '--name "{Dataset1}" ' # '--resource-group "{rg}" ' # '--share-name "{Share1}"', # checks=[]) - # self.cmd('az datashare data-set create ' + # self.cmd('az datashare dataset create ' # '--account-name "{Account1}" ' # '--kind "KustoDatabase" ' - # '--data-set-name "{Dataset1}" ' + # '--name "{Dataset1}" ' # '--resource-group "{rg}" ' # '--share-name "{Share1}"', # checks=[]) - # self.cmd('az datashare data-set create ' + # self.cmd('az datashare dataset create ' # '--account-name "{Account1}" ' # '--kind "KustoCluster" ' - # '--data-set-name "{Dataset1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) - - # self.cmd('az datashare data-set create ' - # '--account-name "{Account1}" ' - # '--kind "Blob" ' - # '--data-set-name "{Dataset1}" ' + # '--name "{Dataset1}" ' # '--resource-group "{rg}" ' # '--share-name "{Share1}"', # checks=[]) - # self.cmd('az datashare share-subscription create ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--properties-invitation-id "12345678-1234-1234-12345678abd" ' - # '--properties-source-share-location "eastus2" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) - - # self.cmd('az datashare invitation create ' - # '--account-name "{Account1}" ' - # '--properties-target-email "receiver@microsoft.com" ' - # '--invitation-name "{Invitation1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) - - # self.cmd('az datashare trigger create ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}" ' - # '--kind "ScheduleBased" ' - # '--trigger-name "{Trigger1}"', - # checks=[]) - - # self.cmd('az datashare synchronization-setting create ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}" ' - # '--kind "ScheduleBased" ' - # '--synchronization-setting-name "{Dataset1}"', - # checks=[]) - - # self.cmd('az datashare data-set-mapping create ' - # '--account-name "{Account1}" ' - # '--kind "SqlDWTable" ' - # '--data-set-mapping-name "{DatasetMapping1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) - - # self.cmd('az datashare data-set-mapping create ' - # '--account-name "{Account1}" ' - # '--kind "AdlsGen2File" ' - # '--data-set-mapping-name "{DatasetMapping1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare dataset create ' + '--account-name "{Account1}" ' + '--kind "Blob" ' + '--name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare dataset show ' + '--account-name "{Account1}" ' + '--name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare dataset list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare data-set-mapping create ' - # '--account-name "{Account1}" ' - # '--kind "SqlDBTable" ' - # '--data-set-mapping-name "{DatasetMapping1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare synchronization-setting create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '--kind "ScheduleBased" ' + '--name "{SynchronizationSettings_2}"', + checks=[]) - # self.cmd('az datashare data-set-mapping create ' - # '--account-name "{Account1}" ' - # '--kind "Blob" ' - # '--data-set-mapping-name "{DatasetMapping1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare synchronization-setting show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '--name "{SynchronizationSettings_2}"', + checks=[]) - # self.cmd('az datashare data-set-mapping show ' - # '--account-name "{Account1}" ' - # '--data-set-mapping-name "{DatasetMapping1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare synchronization-setting list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare provider-share-subscription show ' - # '--account-name "{Account1}" ' - # '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare list-synchronization ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare synchronization-setting show ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}" ' - # '--synchronization-setting-name "{SynchronizationSettings_2}"', - # checks=[]) + self.cmd('az datashare list-synchronization-detail ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + checks=[]) - # self.cmd('az datashare trigger show ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}" ' - # '--trigger-name "{Trigger1}"', - # checks=[]) + - # self.cmd('az datashare invitation show ' - # '--account-name "{Account1}" ' - # '--invitation-name "{Invitation1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare invitation create ' + '--account-name "{Account1}" ' + '--target-email "receiver@microsoft.com" ' + '--name "{Invitation1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare share-subscription show ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare invitation show ' + '--account-name "{Account1}" ' + '--invitation-name "{Invitation1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare invitation list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare data-set show ' - # '--account-name "{Account1}" ' - # '--data-set-name "{Dataset1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare share-subscription create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--invitation-id "12345678-1234-1234-12345678abd" ' + '--source-share-location "eastus2" ' + '--name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare share show ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare share-subscription show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare account show ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}"', - # checks=[]) + self.cmd('az datashare share-subscription list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}"', + checks=[]) + + self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_3}"', + checks=[]) - # self.cmd('az datashare consumer-invitation show ' - # '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' - # '--location "East US 2"', - # checks=[]) + self.cmd('az datashare share-subscription list-synchronization-detail ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_3}" ' + '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + checks=[]) - # self.cmd('az datashare consumer-source-data-set list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscriptions_2}"', - # checks=[]) + self.cmd('az datashare share-subscription cancel-synchronization ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + checks=[]) - # self.cmd('az datashare data-set-mapping list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare share-subscription list-synchronization ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_3}"', + checks=[]) - # self.cmd('az datashare trigger list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare share-subscription synchronize ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--synchronization-mode "Incremental"', + checks=[]) - # self.cmd('az datashare provider-share-subscription list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare trigger create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--kind "ScheduleBased" ' + '--name "{Trigger1}"', + checks=[]) - # self.cmd('az datashare synchronization-setting list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare dataset-mapping create ' + '--account-name "{Account1}" ' + '--kind "SqlDWTable" ' + '--name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare invitation list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare dataset-mapping create ' + '--account-name "{Account1}" ' + '--kind "AdlsGen2File" ' + '--name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare data-set list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare dataset-mapping create ' + '--account-name "{Account1}" ' + '--kind "SqlDBTable" ' + '--mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare share-subscription list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}"', - # checks=[]) + self.cmd('az datashare dataset-mapping create ' + '--account-name "{Account1}" ' + '--kind "Blob" ' + '--mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare share list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}"', - # checks=[]) + self.cmd('az datashare dataset-mapping show ' + '--account-name "{Account1}" ' + '--mapping-name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare account list ' - # '--resource-group "{rg}"', - # checks=[]) + self.cmd('az datashare dataset-mapping list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) + + self.cmd('az datashare provider-share-subscription show ' + '--account-name "{Account1}" ' + '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + self.cmd('az datashare provider-share-subscription list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + self.cmd('az datashare provider-share-subscription reinstate ' + '--account-name "{Account1}" ' + '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare account list', - # checks=[]) + self.cmd('az datashare provider-share-subscription revoke ' + '--account-name "{Account1}" ' + '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare consumer-invitation list', - # checks=[]) + self.cmd('az datashare trigger show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--trigger-name "{Trigger1}"', + checks=[]) - # self.cmd('az datashare provider-share-subscription reinstate ' - # '--account-name "{Account1}" ' - # '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + + self.cmd('az datashare consumer-invitation show ' + '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' + '--location "East US 2"', + checks=[]) - # self.cmd('az datashare provider-share-subscription revoke ' - # '--account-name "{Account1}" ' - # '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare consumer-source-dataset list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscriptions_2}"', + checks=[]) - # self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscriptions_3}"', - # checks=[]) + - # self.cmd('az datashare share-subscription list-synchronization-detail ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscriptions_3}" ' - # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - # checks=[]) + self.cmd('az datashare trigger list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare share-subscription cancel-synchronization ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}" ' - # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - # checks=[]) + - # self.cmd('az datashare share-subscription list-synchronization ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscriptions_3}"', - # checks=[]) + - # self.cmd('az datashare share-subscription synchronize ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}" ' - # '--synchronization-mode "Incremental"', - # checks=[]) - # self.cmd('az datashare share list-synchronization-detail ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}" ' - # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - # checks=[]) + self.cmd('az datashare consumer-invitation list', + checks=[]) - # self.cmd('az datashare share list-synchronization ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + - # self.cmd('az datashare account update ' - # '--account-name "{Account1}" ' - # '--tags tag1=Red tag2=White ' - # '--resource-group "{rg}"', - # checks=[]) - # self.cmd('az datashare consumer-invitation reject-invitation ' - # '--properties-invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' - # '--location "East US 2"', - # checks=[]) + self.cmd('az datashare consumer-invitation reject-invitation ' + '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' + '--location "East US 2"', + checks=[]) - # self.cmd('az datashare data-set-mapping delete ' - # '--account-name "{Account1}" ' - # '--data-set-mapping-name "{DatasetMapping1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare dataset-mapping delete ' + '--account-name "{Account1}" ' + '--name "{DatasetMapping1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare synchronization-setting delete ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}" ' - # '--synchronization-setting-name "{SynchronizationSettings_2}"', - # checks=[]) + self.cmd('az datashare synchronization-setting delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}" ' + '-name "{SynchronizationSettings_2}"', + checks=[]) - # self.cmd('az datashare trigger delete ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}" ' - # '--trigger-name "{Trigger1}"', - # checks=[]) + self.cmd('az datashare trigger delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--name "{Trigger1}"', + checks=[]) - # self.cmd('az datashare invitation delete ' - # '--account-name "{Account1}" ' - # '--invitation-name "{Invitation1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare invitation delete ' + '--account-name "{Account1}" ' + '--name "{Invitation1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare share-subscription delete ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-subscription-name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare share-subscription delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--name "{ShareSubscription1}"', + checks=[]) - # self.cmd('az datashare data-set delete ' - # '--account-name "{Account1}" ' - # '--data-set-name "{Dataset1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare dataset delete ' + '--account-name "{Account1}" ' + '--name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) - # self.cmd('az datashare share delete ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare share delete ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--name "{Share1}"', + checks=[]) self.cmd('az datashare account delete ' '--name "{Account1}" ' diff --git a/src/datashare/setup.cfg b/src/datashare/setup.cfg index 5eab412034f..e69de29bb2d 100644 --- a/src/datashare/setup.cfg +++ b/src/datashare/setup.cfg @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/src/datashare/setup.py b/src/datashare/setup.py index 341cdbd87ed..d58a692c6b8 100644 --- a/src/datashare/setup.py +++ b/src/datashare/setup.py @@ -26,8 +26,6 @@ 'Intended Audience :: System Administrators', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', From f9788efeb0aa8b47604b53488004e382a697b4c8 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Sat, 4 Apr 2020 12:24:32 +0800 Subject: [PATCH 07/23] add init files --- src/datashare/azext_datashare/__init__.py | 18 +- .../azext_datashare/generated/__init__.py | 12 + .../azext_datashare/manual/__init__.py | 12 + .../azext_datashare/manual/_params.py | 8 +- .../azext_datashare/manual/custom.py | 5 +- .../azext_datashare/tests/__init__.py | 12 + .../azext_datashare/tests/latest/__init__.py | 14 +- .../tests/latest/test_datashare_scenario.py | 252 +++++++++--------- 8 files changed, 192 insertions(+), 141 deletions(-) create mode 100644 src/datashare/azext_datashare/generated/__init__.py create mode 100644 src/datashare/azext_datashare/manual/__init__.py create mode 100644 src/datashare/azext_datashare/tests/__init__.py diff --git a/src/datashare/azext_datashare/__init__.py b/src/datashare/azext_datashare/__init__.py index 32cb1f7e6e4..786b3b632fe 100644 --- a/src/datashare/azext_datashare/__init__.py +++ b/src/datashare/azext_datashare/__init__.py @@ -4,14 +4,14 @@ # -------------------------------------------------------------------------------------------- from azure.cli.core import AzCommandsLoader -from ._help import helps +from azext_datashare._help import helps class DataShareManagementClientCommandsLoader(AzCommandsLoader): def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType - from .generated._client_factory import cf_datashare + from azext_datashare.generated._client_factory import cf_datashare datashare_custom = CliCommandType( operations_tmpl='azext_datashare.custom#{}', client_factory=cf_datashare) @@ -19,13 +19,23 @@ def __init__(self, cli_ctx=None): custom_command_type=datashare_custom) def load_command_table(self, args): - from .commands import load_command_table + from azext_datashare.generated.commands import load_command_table load_command_table(self, args) + try: + from azext_datashare.manual.commands import load_command_table as load_command_table_manual + load_command_table_manual(self, args) + except ImportError: + pass return self.command_table def load_arguments(self, command): - from ._params import load_arguments + from azext_datashare.generated._params import load_arguments load_arguments(self, command) + try: + from azext_datashare.manual._params import load_arguments as load_arguments_manual + load_arguments_manual(self, command) + except ImportError: + pass COMMAND_LOADER_CLS = DataShareManagementClientCommandsLoader diff --git a/src/datashare/azext_datashare/generated/__init__.py b/src/datashare/azext_datashare/generated/__init__.py new file mode 100644 index 00000000000..be1a152630c --- /dev/null +++ b/src/datashare/azext_datashare/generated/__init__.py @@ -0,0 +1,12 @@ +# 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. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/src/datashare/azext_datashare/manual/__init__.py b/src/datashare/azext_datashare/manual/__init__.py new file mode 100644 index 00000000000..be1a152630c --- /dev/null +++ b/src/datashare/azext_datashare/manual/__init__.py @@ -0,0 +1,12 @@ +# 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. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 9cf53404143..a4993aa82ca 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -17,10 +17,10 @@ from azext_datashare.action import AddIdentity from ..vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode -parameter_type = CLIArgumentType( +dataset_type = CLIArgumentType( type=validate_file_or_dict, - options_list=['--parameters', '-p'], - help='Parameters in JSON string or path to JSON file.' + options_list=['--dataset'], + help='Dataset parameters in JSON string or path to JSON file.' ) def load_arguments(self, _): @@ -81,7 +81,7 @@ def load_arguments(self, _): c.argument('share_name', help='The name of the share.') c.argument('data_set_name', options_list=['--name', '-n'], help='The name of the dataSet.') # modified c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified - c.argument('parameter', arg_type=parameter_type) + c.argument('dataset', arg_type=dataset_type) # modified with self.argument_context('datashare dataset delete') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index 3e10a53080d..e44bbcbc1bb 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -83,9 +83,8 @@ def datashare_data_set_create(cmd, client, account_name, share_name, data_set_name, - kind, - parameter): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, kind=kind, **parameter) + dataset): + return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, dataset=dataset) def datashare_data_set_delete(cmd, client, diff --git a/src/datashare/azext_datashare/tests/__init__.py b/src/datashare/azext_datashare/tests/__init__.py new file mode 100644 index 00000000000..be1a152630c --- /dev/null +++ b/src/datashare/azext_datashare/tests/__init__.py @@ -0,0 +1,12 @@ +# 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. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/src/datashare/azext_datashare/tests/latest/__init__.py b/src/datashare/azext_datashare/tests/latest/__init__.py index 944e5654667..8d86d5a6be1 100644 --- a/src/datashare/azext_datashare/tests/latest/__init__.py +++ b/src/datashare/azext_datashare/tests/latest/__init__.py @@ -1,4 +1,12 @@ -# -------------------------------------------------------------------------------------------- +# 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. -# -------------------------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index b6dd804bfc0..94f5013c0c8 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -30,133 +30,133 @@ def test_datashare(self, resource_group): 'Trigger1': self.create_random_name(prefix='cli_test_triggers'[:9], length=24), }) - # datashareAccount = self.cmd('az datashare account create ' - # '--identity type=SystemAssigned ' - # '--location "West US 2" ' - # '--tags tag1=Red tag2=White ' - # '--name "{Account1}" ' - # '--resource-group "{rg}"', - # checks=[self.check('name', self.kwargs.get('Account1', '')), - # self.check('location', 'westus2'), - # self.check('resourceGroup', self.kwargs.get('rg', '')), - # self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - # ]).get_output_in_json() + datashareAccount = self.cmd('az datashare account create ' + '--identity type=SystemAssigned ' + '--location "West US 2" ' + '--tags tag1=Red tag2=White ' + '--name "{Account1}" ' + '--resource-group "{rg}"', + checks=[self.check('name', self.kwargs.get('Account1', '')), + self.check('location', 'westus2'), + self.check('resourceGroup', self.kwargs.get('rg', '')), + self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]).get_output_in_json() - # self.cmd('az datashare account wait ' - # '--name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--created', - # checks=[]) - - # accountId = datashareAccount['id'] - # self.cmd('az datashare account show ' - # '-n "{Account1}" ' - # '--resource-group "{rg}"', - # checks=[self.check('name', self.kwargs.get('Account1', '')), - # self.check('location', 'westus2'), - # self.check('provisioningState', 'Succeeded'), - # self.check('resourceGroup', self.kwargs.get('rg', '')), - # self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - # ]) - - # self.cmd('az datashare account show ' - # '--ids {}'.format(accountId), - # checks=[self.check('name', self.kwargs.get('Account1', '')), - # self.check('location', 'westus2'), - # self.check('provisioningState', 'Succeeded'), - # self.check('resourceGroup', self.kwargs.get('rg', '')), - # self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - # ]) - - # self.cmd('az datashare account list ' - # '--resource-group "{rg}"', - # checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), - # self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), - # self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), - # self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - # ]) - - # self.cmd('az datashare account list' - # '--resource-group=', - # checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), - # self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), - # self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), - # self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - # ]) - - # self.cmd('az datashare account update ' - # '--name "{Account1}" ' - # '--tags tag1=Green' - # '--resource-group "{rg}"', - # checks=[self.check('name', self.kwargs.get('Account1', '')), - # self.check('location', 'westus2'), - # self.check('provisioningState', 'Succeeded'), - # self.check('resourceGroup', self.kwargs.get('rg', '')), - # self.check('tags', '{\'tag1\': \'Green\'}')]) - - # datashare = self.cmd('az datashare create ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--description "share description" ' - # '--share-kind "CopyBased" ' - # '--terms "Confidential" ' - # '--name "{Share1}"', - # checks=[self.check('name', self.kwargs.get('Share1', '')), - # self.check('description', 'share description'), - # self.check('shareKind', 'CopyBased'), - # self.check('terms', 'Confidential') - # ]).get_output_in_json() - - # datashareId = datashare['id'] - # self.cmd('az datashare show ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--name "{Share1}"', - # checks=[self.check('name', self.kwargs.get('Share1', '')), - # self.check('description', 'share description'), - # self.check('shareKind', 'CopyBased'), - # self.check('terms', 'Confidential')]) + self.cmd('az datashare account wait ' + '--name "{Account1}" ' + '--resource-group "{rg}" ' + '--created', + checks=[]) + + accountId = datashareAccount['id'] + self.cmd('az datashare account show ' + '-n "{Account1}" ' + '--resource-group "{rg}"', + checks=[self.check('name', self.kwargs.get('Account1', '')), + self.check('location', 'westus2'), + self.check('provisioningState', 'Succeeded'), + self.check('resourceGroup', self.kwargs.get('rg', '')), + self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]) + + self.cmd('az datashare account show ' + '--ids {}'.format(accountId), + checks=[self.check('name', self.kwargs.get('Account1', '')), + self.check('location', 'westus2'), + self.check('provisioningState', 'Succeeded'), + self.check('resourceGroup', self.kwargs.get('rg', '')), + self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]) + + self.cmd('az datashare account list ' + '--resource-group "{rg}"', + checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), + self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), + self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), + self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]) + + self.cmd('az datashare account list' + '--resource-group=', + checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), + self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), + self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), + self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + ]) + + self.cmd('az datashare account update ' + '--name "{Account1}" ' + '--tags tag1=Green' + '--resource-group "{rg}"', + checks=[self.check('name', self.kwargs.get('Account1', '')), + self.check('location', 'westus2'), + self.check('provisioningState', 'Succeeded'), + self.check('resourceGroup', self.kwargs.get('rg', '')), + self.check('tags', '{\'tag1\': \'Green\'}')]) + + datashare = self.cmd('az datashare create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--description "share description" ' + '--share-kind "CopyBased" ' + '--terms "Confidential" ' + '--name "{Share1}"', + checks=[self.check('name', self.kwargs.get('Share1', '')), + self.check('description', 'share description'), + self.check('shareKind', 'CopyBased'), + self.check('terms', 'Confidential') + ]).get_output_in_json() + + datashareId = datashare['id'] + self.cmd('az datashare show ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--name "{Share1}"', + checks=[self.check('name', self.kwargs.get('Share1', '')), + self.check('description', 'share description'), + self.check('shareKind', 'CopyBased'), + self.check('terms', 'Confidential')]) - # self.cmd('az datashare list ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}"', - # checks=[self.check("[?id=='{}'].name | [0]".format(datashareId), self.kwargs.get('Share1', '')), - # self.check("[?id=='{}'].description | [0]".format(datashareId), 'share description'), - # self.check("[?id=='{}'].shareKind | [0]".format(datashareId), 'CopyBased'), - # self.check("[?id=='{}'].terms | [0]".format(datashareId), 'Confidential']) - - - # self.cmd('az datashare dataset create ' - # '--account-name "{Account1}" ' - # '--kind "SqlDWTable" ' - # '--name "{Dataset1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) - - # self.cmd('az datashare dataset create ' - # '--account-name "{Account1}" ' - # '--kind "SqlDBTable" ' - # '--name "{Dataset1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) - - # self.cmd('az datashare dataset create ' - # '--account-name "{Account1}" ' - # '--kind "KustoDatabase" ' - # '--name "{Dataset1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) - - # self.cmd('az datashare dataset create ' - # '--account-name "{Account1}" ' - # '--kind "KustoCluster" ' - # '--name "{Dataset1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', - # checks=[]) + self.cmd('az datashare list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}"', + checks=[self.check("[?id=='{}'].name | [0]".format(datashareId), self.kwargs.get('Share1', '')), + self.check("[?id=='{}'].description | [0]".format(datashareId), 'share description'), + self.check("[?id=='{}'].shareKind | [0]".format(datashareId), 'CopyBased'), + self.check("[?id=='{}'].terms | [0]".format(datashareId), 'Confidential']) + + + self.cmd('az datashare dataset create ' + '--account-name "{Account1}" ' + '--kind "SqlDWTable" ' + '--name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare dataset create ' + '--account-name "{Account1}" ' + '--kind "SqlDBTable" ' + '--name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare dataset create ' + '--account-name "{Account1}" ' + '--kind "KustoDatabase" ' + '--name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) + + self.cmd('az datashare dataset create ' + '--account-name "{Account1}" ' + '--kind "KustoCluster" ' + '--name "{Dataset1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[]) self.cmd('az datashare dataset create ' '--account-name "{Account1}" ' @@ -213,8 +213,6 @@ def test_datashare(self, resource_group): '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', checks=[]) - - self.cmd('az datashare invitation create ' '--account-name "{Account1}" ' '--target-email "receiver@microsoft.com" ' From b891431fc9fb360ba15456fc9f6f7b6eb5b51b4b Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Tue, 7 Apr 2020 00:12:09 +0800 Subject: [PATCH 08/23] add integration tests --- src/datashare/azext_datashare/__init__.py | 2 + .../azext_datashare/generated/__init__.py | 2 +- .../azext_datashare/generated/_help.py | 201 -- .../azext_datashare/generated/_params.py | 1 - .../azext_datashare/generated/action.py | 1 + .../azext_datashare/generated/commands.py | 51 +- .../azext_datashare/generated/custom.py | 1 + .../azext_datashare/manual/__init__.py | 2 +- src/datashare/azext_datashare/manual/_help.py | 210 +- .../azext_datashare/manual/_params.py | 27 +- .../azext_datashare/manual/_validators.py | 11 + .../azext_datashare/manual/commands.py | 21 +- .../azext_datashare/manual/custom.py | 79 +- .../azext_datashare/tests/__init__.py | 2 +- .../azext_datashare/tests/latest/__init__.py | 2 +- .../azext_datashare/tests/latest/preparers.py | 8 +- .../latest/recordings/test_datashare.yaml | 3004 +++++++++++++++++ .../tests/latest/test_datashare_scenario.py | 739 ++-- .../vendored_sdks/datashare/_configuration.py | 5 +- .../datashare/aio/_configuration_async.py | 5 +- .../_account_operations_async.py | 130 +- .../_consumer_invitation_operations_async.py | 62 +- ...nsumer_source_data_set_operations_async.py | 20 +- .../_data_set_mapping_operations_async.py | 86 +- .../_data_set_operations_async.py | 90 +- .../_invitation_operations_async.py | 79 +- .../_operation_operations_async.py | 20 +- ...der_share_subscription_operations_async.py | 68 +- .../_share_operations_async.py | 130 +- .../_share_subscription_operations_async.py | 218 +- ...ynchronization_setting_operations_async.py | 92 +- .../_trigger_operations_async.py | 99 +- .../datashare/models/__init__.py | 118 +- .../_data_share_management_client_enums.py | 24 + .../vendored_sdks/datashare/models/_models.py | 2588 +++----------- .../datashare/models/_models_py3.py | 2958 +++------------- .../operations/_account_operations.py | 130 +- .../_consumer_invitation_operations.py | 62 +- .../_consumer_source_data_set_operations.py | 20 +- .../_data_set_mapping_operations.py | 86 +- .../operations/_data_set_operations.py | 90 +- .../operations/_invitation_operations.py | 79 +- .../operations/_operation_operations.py | 20 +- ..._provider_share_subscription_operations.py | 68 +- .../datashare/operations/_share_operations.py | 130 +- .../_share_subscription_operations.py | 218 +- .../_synchronization_setting_operations.py | 92 +- .../operations/_trigger_operations.py | 99 +- 48 files changed, 5751 insertions(+), 6499 deletions(-) create mode 100644 src/datashare/azext_datashare/manual/_validators.py create mode 100644 src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml diff --git a/src/datashare/azext_datashare/__init__.py b/src/datashare/azext_datashare/__init__.py index 786b3b632fe..d19287e47d7 100644 --- a/src/datashare/azext_datashare/__init__.py +++ b/src/datashare/azext_datashare/__init__.py @@ -2,6 +2,8 @@ # 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 +# pylint: disable=unused-import from azure.cli.core import AzCommandsLoader from azext_datashare._help import helps diff --git a/src/datashare/azext_datashare/generated/__init__.py b/src/datashare/azext_datashare/generated/__init__.py index be1a152630c..c9cfdc73e77 100644 --- a/src/datashare/azext_datashare/generated/__init__.py +++ b/src/datashare/azext_datashare/generated/__init__.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/datashare/azext_datashare/generated/_help.py b/src/datashare/azext_datashare/generated/_help.py index d63884e4bea..08fccdcf2e5 100644 --- a/src/datashare/azext_datashare/generated/_help.py +++ b/src/datashare/azext_datashare/generated/_help.py @@ -96,130 +96,6 @@ "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" """ -helps['datashare data-set'] = """ - type: group - short-summary: datashare data-set -""" - -helps['datashare data-set list'] = """ - type: command - short-summary: List DataSets in a share - examples: - - name: DataSets_ListByShare - text: |- - az datashare data-set list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare data-set show'] = """ - type: command - short-summary: Get a DataSet in a share - examples: - - name: DataSets_Get - text: |- - az datashare data-set show --account-name "Account1" --data-set-name "Dataset1" - --resource-group "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare data-set create'] = """ - type: command - short-summary: Create a DataSet - examples: - - name: DataSets_Create - text: |- - az datashare data-set create --account-name "Account1" --kind "Blob" --data-set-name - "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" - - name: DataSets_KustoCluster_Create - text: |- - az datashare data-set create --account-name "Account1" --kind "KustoCluster" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" - - name: DataSets_KustoDatabase_Create - text: |- - az datashare data-set create --account-name "Account1" --kind "KustoDatabase" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" - - name: DataSets_SqlDBTable_Create - text: |- - az datashare data-set create --account-name "Account1" --kind "SqlDBTable" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" - - name: DataSets_SqlDWTable_Create - text: |- - az datashare data-set create --account-name "Account1" --kind "SqlDWTable" - --data-set-name "Dataset1" --resource-group "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare data-set delete'] = """ - type: command - short-summary: Delete a DataSet in a share - examples: - - name: DataSets_Delete - text: |- - az datashare data-set delete --account-name "Account1" --data-set-name "Dataset1" - --resource-group "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare data-set-mapping'] = """ - type: group - short-summary: datashare data-set-mapping -""" - -helps['datashare data-set-mapping list'] = """ - type: command - short-summary: List DataSetMappings in a share subscription - examples: - - name: DataSetMappings_ListByShareSubscription - text: |- - az datashare data-set-mapping list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" -""" - -helps['datashare data-set-mapping show'] = """ - type: command - short-summary: Get a DataSetMapping in a shareSubscription - examples: - - name: DataSetMappings_Get - text: |- - az datashare data-set-mapping show --account-name "Account1" --data-set-mapping-name - "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name - "ShareSubscription1" -""" - -helps['datashare data-set-mapping create'] = """ - type: command - short-summary: Create a DataSetMapping - examples: - - name: DataSetMappings_Create - text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "Blob" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" - --share-subscription-name "ShareSubscription1" - - name: DataSetMappings_SqlDB_Create - text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "SqlDBTable" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" - --share-subscription-name "ShareSubscription1" - - name: DataSetMappings_SqlDWDataSetToAdlsGen2File_Create - text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "AdlsGen2File" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" - --share-subscription-name "ShareSubscription1" - - name: DataSetMappings_SqlDW_Create - text: |- - az datashare data-set-mapping create --account-name "Account1" --kind "SqlDWTable" - --data-set-mapping-name "DatasetMapping1" --resource-group "SampleResourceGroup" - --share-subscription-name "ShareSubscription1" -""" - -helps['datashare data-set-mapping delete'] = """ - type: command - short-summary: Delete a DataSetMapping in a shareSubscription - examples: - - name: DataSetMappings_Delete - text: |- - az datashare data-set-mapping delete --account-name "Account1" --data-set-mapping-name - "DatasetMapping1" --resource-group "SampleResourceGroup" --share-subscription-name - "ShareSubscription1" -""" - helps['datashare invitation'] = """ type: group short-summary: datashare invitation @@ -266,73 +142,6 @@ --resource-group "SampleResourceGroup" --share-name "Share1" """ -helps['datashare share'] = """ - type: group - short-summary: datashare share -""" - -helps['datashare share list'] = """ - type: command - short-summary: List shares in an account - examples: - - name: Shares_ListByAccount - text: |- - az datashare share list --account-name "Account1" --resource-group "SampleResourceGroup" -""" - -helps['datashare share show'] = """ - type: command - short-summary: Get a share - examples: - - name: Shares_Get - text: |- - az datashare share show --account-name "Account1" --resource-group "SampleResourceGroup" - --share-name "Share1" -""" - -helps['datashare share create'] = """ - type: command - short-summary: Create a share - examples: - - name: Shares_Create - text: |- - az datashare share create --account-name "Account1" --resource-group - "SampleResourceGroup" --properties-description "share description" - --properties-share-kind "CopyBased" --properties-terms "Confidential" --share-name - "Share1" -""" - -helps['datashare share delete'] = """ - type: command - short-summary: Delete a share - examples: - - name: Shares_Delete - text: |- - az datashare share delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare share list-synchronization-detail'] = """ - type: command - short-summary: List synchronization details - examples: - - name: Shares_ListSynchronizationDetails - text: |- - az datashare share list-synchronization-detail --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --synchronization-id - "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" -""" - -helps['datashare share list-synchronization'] = """ - type: command - short-summary: List synchronizations of a share - examples: - - name: Shares_ListSynchronizations - text: |- - az datashare share list-synchronization --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - helps['datashare provider-share-subscription'] = """ type: group short-summary: datashare provider-share-subscription @@ -486,16 +295,6 @@ short-summary: datashare consumer-source-data-set """ -helps['datashare consumer-source-data-set list'] = """ - type: command - short-summary: Get source dataSets of a shareSubscription - examples: - - name: ConsumerSourceDataSets_ListByShareSubscription - text: |- - az datashare consumer-source-data-set list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "Share1" -""" - helps['datashare synchronization-setting'] = """ type: group short-summary: datashare synchronization-setting diff --git a/src/datashare/azext_datashare/generated/_params.py b/src/datashare/azext_datashare/generated/_params.py index 275a6bb57ae..4ca7a9ee90c 100644 --- a/src/datashare/azext_datashare/generated/_params.py +++ b/src/datashare/azext_datashare/generated/_params.py @@ -6,7 +6,6 @@ # pylint: disable=too-many-lines # pylint: disable=too-many-statements -from knack.arguments import CLIArgumentType from azure.cli.core.commands.parameters import ( tags_type, get_enum_type, diff --git a/src/datashare/azext_datashare/generated/action.py b/src/datashare/azext_datashare/generated/action.py index 93ba1972696..a3dd5455c1e 100644 --- a/src/datashare/azext_datashare/generated/action.py +++ b/src/datashare/azext_datashare/generated/action.py @@ -22,4 +22,5 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use for k in properties: kl = k.lower() v = properties[k] + d[kl] = v return d diff --git a/src/datashare/azext_datashare/generated/commands.py b/src/datashare/azext_datashare/generated/commands.py index b82fd6f2e92..af418045400 100644 --- a/src/datashare/azext_datashare/generated/commands.py +++ b/src/datashare/azext_datashare/generated/commands.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- # pylint: disable=line-too-long +# pylint: disable=too-many-statements from azure.cli.core.commands import CliCommandType @@ -30,26 +31,26 @@ def load_command_table(self, _): g.custom_show_command('show', 'datashare_consumer_invitation_show') g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') - from azext_datashare.generated._client_factory import cf_data_set - datashare_data_set = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_operations#DataSetOperations.{}', - client_factory=cf_data_set) - with self.command_group('datashare data-set', datashare_data_set, client_factory=cf_data_set) as g: - g.custom_command('list', 'datashare_data_set_list') - g.custom_show_command('show', 'datashare_data_set_show') - g.custom_command('create', 'datashare_data_set_create') - g.custom_command('delete', 'datashare_data_set_delete', supports_no_wait=True) - g.wait_command('wait') + # from azext_datashare.generated._client_factory import cf_data_set + # datashare_data_set = CliCommandType( + # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_operations#DataSetOperations.{}', + # client_factory=cf_data_set) + # with self.command_group('datashare data-set', datashare_data_set, client_factory=cf_data_set) as g: + # g.custom_command('list', 'datashare_data_set_list') + # g.custom_show_command('show', 'datashare_data_set_show') + # g.custom_command('create', 'datashare_data_set_create') + # g.custom_command('delete', 'datashare_data_set_delete', supports_no_wait=True) + # g.wait_command('wait') - from azext_datashare.generated._client_factory import cf_data_set_mapping - datashare_data_set_mapping = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_mapping_operations#DataSetMappingOperations.{}', - client_factory=cf_data_set_mapping) - with self.command_group('datashare data-set-mapping', datashare_data_set_mapping, client_factory=cf_data_set_mapping) as g: - g.custom_command('list', 'datashare_data_set_mapping_list') - g.custom_show_command('show', 'datashare_data_set_mapping_show') - g.custom_command('create', 'datashare_data_set_mapping_create') - g.custom_command('delete', 'datashare_data_set_mapping_delete') + # from azext_datashare.generated._client_factory import cf_data_set_mapping + # datashare_data_set_mapping = CliCommandType( + # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_mapping_operations#DataSetMappingOperations.{}', + # client_factory=cf_data_set_mapping) + # with self.command_group('datashare data-set-mapping', datashare_data_set_mapping, client_factory=cf_data_set_mapping) as g: + # g.custom_command('list', 'datashare_data_set_mapping_list') + # g.custom_show_command('show', 'datashare_data_set_mapping_show') + # g.custom_command('create', 'datashare_data_set_mapping_create') + # g.custom_command('delete', 'datashare_data_set_mapping_delete') from azext_datashare.generated._client_factory import cf_invitation datashare_invitation = CliCommandType( @@ -101,12 +102,12 @@ def load_command_table(self, _): g.custom_command('list-synchronization', 'datashare_share_subscription_list_synchronization') g.wait_command('wait') - from azext_datashare.generated._client_factory import cf_consumer_source_data_set - datashare_consumer_source_data_set = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', - client_factory=cf_consumer_source_data_set) - with self.command_group('datashare consumer-source-data-set', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: - g.custom_command('list', 'datashare_consumer_source_data_set_list') + # from azext_datashare.generated._client_factory import cf_consumer_source_data_set + # datashare_consumer_source_data_set = CliCommandType( + # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', + # client_factory=cf_consumer_source_data_set) + # with self.command_group('datashare consumer-source-data-set', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: + # g.custom_command('list', 'datashare_consumer_source_data_set_list') from azext_datashare.generated._client_factory import cf_synchronization_setting datashare_synchronization_setting = CliCommandType( diff --git a/src/datashare/azext_datashare/generated/custom.py b/src/datashare/azext_datashare/generated/custom.py index 652f92eaa29..707943cf33d 100644 --- a/src/datashare/azext_datashare/generated/custom.py +++ b/src/datashare/azext_datashare/generated/custom.py @@ -4,6 +4,7 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=line-too-long # pylint: disable=too-many-lines +# pylint: disable=unused-argument def datashare_account_list(cmd, client, diff --git a/src/datashare/azext_datashare/manual/__init__.py b/src/datashare/azext_datashare/manual/__init__.py index be1a152630c..c9cfdc73e77 100644 --- a/src/datashare/azext_datashare/manual/__init__.py +++ b/src/datashare/azext_datashare/manual/__init__.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 27b925fb75c..8f5e51c3894 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -28,8 +28,7 @@ examples: - name: Accounts_Get text: |- - az datashare account show --account-name MyAccount --resource-group - MyResourceGroup + az datashare account show --name MyAccount --resource-group MyResourceGroup """ helps['datashare account create'] = """ @@ -43,8 +42,7 @@ examples: - name: Accounts_Create text: |- - az datashare account create --identity type=SystemAssigned --location "West US 2" --tags - tag1=Red tag2=White --name MyAccount --resource-group MyResourceGroup + az datashare account create --identity type=SystemAssigned --location "West US 2" --tags tag1=Red tag2=White --name MyAccount --resource-group MyResourceGroup """ # modified helps['datashare account update'] = """ @@ -53,8 +51,7 @@ examples: - name: Accounts_Update text: |- - az datashare account update --account-name MyAccount --tags tag1=Red tag2=White - --resource-group MyResourceGroup + az datashare account update --name MyAccount --tags tag1=Red tag2=White --resource-group MyResourceGroup """ helps['datashare account delete'] = """ @@ -63,8 +60,7 @@ examples: - name: Delete the account text: |- - az datashare account delete --account-name MyAccount --resource-group - MyResourceGroup + az datashare account delete --name MyAccount --resource-group MyResourceGroup """ helps['datashare consumer-invitation'] = """ @@ -87,8 +83,7 @@ examples: - name: ConsumerInvitations_Get text: |- - az datashare consumer-invitation show --invitation-id - "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" + az datashare consumer-invitation show --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" """ helps['datashare consumer-invitation reject-invitation'] = """ @@ -97,132 +92,110 @@ examples: - name: ConsumerInvitations_RejectInvitation text: |- - az datashare consumer-invitation reject-invitation --properties-invitation-id - "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" + az datashare consumer-invitation reject-invitation --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" """ -helps['datashare data-set'] = """ +helps['datashare dataset'] = """ type: group - short-summary: datashare data-set + short-summary: datashare dataset """ -helps['datashare data-set list'] = """ +helps['datashare dataset list'] = """ type: command short-summary: List DataSets in a share examples: - name: DataSets_ListByShare text: |- - az datashare data-set list --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" + az datashare dataset list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ -helps['datashare data-set show'] = """ +helps['datashare dataset show'] = """ type: command short-summary: Get a DataSet in a share examples: - name: DataSets_Get text: |- - az datashare data-set show --account-name MyAccount --data-set-name "Dataset1" - --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset show --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" """ -helps['datashare data-set create'] = """ +helps['datashare dataset create'] = """ type: command short-summary: Create a DataSet examples: - name: DataSets_Create text: |- - az datashare data-set create --account-name MyAccount --kind "Blob" --data-set-name - "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --kind "Blob" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_KustoCluster_Create text: |- - az datashare data-set create --account-name MyAccount --kind "KustoCluster" - --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --kind "KustoCluster" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_KustoDatabase_Create text: |- - az datashare data-set create --account-name MyAccount --kind "KustoDatabase" - --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --kind "KustoDatabase" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_SqlDBTable_Create text: |- - az datashare data-set create --account-name MyAccount --kind "SqlDBTable" - --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --kind "SqlDBTable" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" - name: DataSets_SqlDWTable_Create text: |- - az datashare data-set create --account-name MyAccount --kind "SqlDWTable" - --data-set-name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --kind "SqlDWTable" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" """ -helps['datashare data-set delete'] = """ +helps['datashare dataset delete'] = """ type: command short-summary: Delete a DataSet in a share examples: - name: DataSets_Delete text: |- - az datashare data-set delete --account-name MyAccount --data-set-name "Dataset1" - --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset delete --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" """ -helps['datashare data-set-mapping'] = """ +helps['datashare dataset-mapping'] = """ type: group - short-summary: datashare data-set-mapping + short-summary: datashare dataset-mapping """ -helps['datashare data-set-mapping list'] = """ +helps['datashare dataset-mapping list'] = """ type: command short-summary: List DataSetMappings in a share subscription examples: - name: DataSetMappings_ListByShareSubscription text: |- - az datashare data-set-mapping list --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ -helps['datashare data-set-mapping show'] = """ +helps['datashare dataset-mapping show'] = """ type: command short-summary: Get a DataSetMapping in a shareSubscription examples: - name: DataSetMappings_Get text: |- - az datashare data-set-mapping show --account-name MyAccount --data-set-mapping-name - "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name - "ShareSubscription1" + az datashare dataset-mapping show --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ -helps['datashare data-set-mapping create'] = """ +helps['datashare dataset-mapping create'] = """ type: command short-summary: Create a DataSetMapping examples: - name: DataSetMappings_Create text: |- - az datashare data-set-mapping create --account-name MyAccount --kind "Blob" - --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup - --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --kind "Blob" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" - name: DataSetMappings_SqlDB_Create text: |- - az datashare data-set-mapping create --account-name MyAccount --kind "SqlDBTable" - --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup - --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --kind "SqlDBTable" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" - name: DataSetMappings_SqlDWDataSetToAdlsGen2File_Create text: |- - az datashare data-set-mapping create --account-name MyAccount --kind "AdlsGen2File" - --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup - --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --kind "AdlsGen2File" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" - name: DataSetMappings_SqlDW_Create text: |- - az datashare data-set-mapping create --account-name MyAccount --kind "SqlDWTable" - --data-set-mapping-name "DatasetMapping1" --resource-group MyResourceGroup - --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --kind "SqlDWTable" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ -helps['datashare data-set-mapping delete'] = """ +helps['datashare dataset-mapping delete'] = """ type: command short-summary: Delete a DataSetMapping in a shareSubscription examples: - name: DataSetMappings_Delete text: |- - az datashare data-set-mapping delete --account-name MyAccount --data-set-mapping-name - "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name - "ShareSubscription1" + az datashare dataset-mapping delete --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ helps['datashare invitation'] = """ @@ -236,8 +209,7 @@ examples: - name: Invitations_ListByShare text: |- - az datashare invitation list --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" + az datashare invitation list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare invitation show'] = """ @@ -246,8 +218,7 @@ examples: - name: Invitations_Get text: |- - az datashare invitation show --account-name MyAccount --invitation-name "Invitation1" - --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation show --account-name MyAccount --invitation-name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare invitation create'] = """ @@ -256,9 +227,7 @@ examples: - name: Invitations_Create text: |- - az datashare invitation create --account-name MyAccount --properties-target-email - "receiver@microsoft.com" --invitation-name "Invitation1" --resource-group - MyResourceGroup --share-name "Share1" + az datashare invitation create --account-name MyAccount --target-email "receiver@microsoft.com" --invitation-name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare invitation delete'] = """ @@ -267,8 +236,7 @@ examples: - name: Invitations_Delete text: |- - az datashare invitation delete --account-name MyAccount --invitation-name "Invitation1" - --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation delete --account-name MyAccount --invitation-name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare'] = """ @@ -291,8 +259,7 @@ examples: - name: Shares_Get text: |- - az datashare show --account-name MyAccount --resource-group MyResourceGroup - --share-name "Share1" + az datashare show --account-name MyAccount --resource-group MyResourceGroup --name "Share1" """ helps['datashare create'] = """ @@ -301,10 +268,7 @@ examples: - name: Shares_Create text: |- - az datashare create --account-name MyAccount --resource-group - MyResourceGroup --properties-description "share description" - --properties-share-kind "CopyBased" --properties-terms "Confidential" --share-name - "Share1" + az datashare create --account-name MyAccount --resource-group MyResourceGroup --description "share description" --share-kind "CopyBased" --terms "Confidential" --name "Share1" """ helps['datashare delete'] = """ @@ -313,8 +277,7 @@ examples: - name: Shares_Delete text: |- - az datashare delete --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" + az datashare delete --account-name MyAccount --resource-group MyResourceGroup --name "Share1" """ helps['datashare list-synchronization-detail'] = """ @@ -323,9 +286,7 @@ examples: - name: Shares_ListSynchronizationDetails text: |- - az datashare list-synchronization-detail --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" --synchronization-id - "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare list-synchronization-detail --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ helps['datashare list-synchronization'] = """ @@ -334,8 +295,7 @@ examples: - name: Shares_ListSynchronizations text: |- - az datashare list-synchronization --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" + az datashare list-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription'] = """ @@ -349,8 +309,7 @@ examples: - name: ProviderShareSubscriptions_ListByShare text: |- - az datashare provider-share-subscription list --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription show'] = """ @@ -359,9 +318,7 @@ examples: - name: ProviderShareSubscriptions_GetByShare text: |- - az datashare provider-share-subscription show --account-name MyAccount - --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription show --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription revoke'] = """ @@ -370,9 +327,7 @@ examples: - name: ProviderShareSubscriptions_Revoke text: |- - az datashare provider-share-subscription revoke --account-name MyAccount - --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription revoke --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription reinstate'] = """ @@ -381,9 +336,7 @@ examples: - name: ProviderShareSubscriptions_Reinstate text: |- - az datashare provider-share-subscription reinstate --account-name MyAccount - --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription reinstate --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare share-subscription'] = """ @@ -397,8 +350,7 @@ examples: - name: ShareSubscriptions_ListByAccount text: |- - az datashare share-subscription list --account-name MyAccount --resource-group - MyResourceGroup + az datashare share-subscription list --account-name MyAccount --resource-group MyResourceGroup """ helps['datashare share-subscription show'] = """ @@ -407,8 +359,7 @@ examples: - name: ShareSubscriptions_Get text: |- - az datashare share-subscription show --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare share-subscription show --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" """ helps['datashare share-subscription create'] = """ @@ -417,10 +368,7 @@ examples: - name: ShareSubscriptions_Create text: |- - az datashare share-subscription create --account-name MyAccount --resource-group - MyResourceGroup --properties-invitation-id "12345678-1234-1234-12345678abd" - --properties-source-share-location "eastus2" --share-subscription-name - "ShareSubscription1" + az datashare share-subscription create --account-name MyAccount --resource-group MyResourceGroup --invitation-id "12345678-1234-1234-12345678abd" --source-share-location "eastus2" --name "ShareSubscription1" """ helps['datashare share-subscription delete'] = """ @@ -429,8 +377,7 @@ examples: - name: ShareSubscriptions_Delete text: |- - az datashare share-subscription delete --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare share-subscription delete --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" """ helps['datashare share-subscription list-synchronization-detail'] = """ @@ -439,9 +386,7 @@ examples: - name: ShareSubscriptions_ListSynchronizationDetails text: |- - az datashare share-subscription list-synchronization-detail --account-name MyAccount - --resource-group MyResourceGroup --share-subscription-name "ShareSub1" - --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare share-subscription list-synchronization-detail --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ helps['datashare share-subscription synchronize'] = """ @@ -450,9 +395,7 @@ examples: - name: ShareSubscriptions_Synchronize text: |- - az datashare share-subscription synchronize --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" - --synchronization-mode "Incremental" + az datashare share-subscription synchronize --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-mode "Incremental" """ helps['datashare share-subscription cancel-synchronization'] = """ @@ -461,9 +404,7 @@ examples: - name: ShareSubscriptions_CancelSynchronization text: |- - az datashare share-subscription cancel-synchronization --account-name MyAccount - --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" - --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare share-subscription cancel-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ helps['datashare share-subscription list-source-share-synchronization-setting'] = """ @@ -472,8 +413,7 @@ examples: - name: ShareSubscriptions_ListSourceShareSynchronizationSettings text: |- - az datashare share-subscription list-source-share-synchronization-setting --account-name - MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" + az datashare share-subscription list-source-share-synchronization-setting --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" """ helps['datashare share-subscription list-synchronization'] = """ @@ -482,23 +422,21 @@ examples: - name: ShareSubscriptions_ListSynchronizations text: |- - az datashare share-subscription list-synchronization --account-name MyAccount - --resource-group MyResourceGroup --share-subscription-name "ShareSub1" + az datashare share-subscription list-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" """ -helps['datashare consumer-source-data-set'] = """ +helps['datashare consumer-source-dataset'] = """ type: group - short-summary: datashare consumer-source-data-set + short-summary: datashare consumer-source-dataset """ -helps['datashare consumer-source-data-set list'] = """ +helps['datashare consumer-source-dataset list'] = """ type: command short-summary: Get source dataSets of a shareSubscription examples: - name: ConsumerSourceDataSets_ListByShareSubscription text: |- - az datashare consumer-source-data-set list --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "Share1" + az datashare consumer-source-dataset list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "Share1" """ helps['datashare synchronization-setting'] = """ @@ -512,8 +450,7 @@ examples: - name: SynchronizationSettings_ListByShare text: |- - az datashare synchronization-setting list --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" + az datashare synchronization-setting list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare synchronization-setting show'] = """ @@ -522,9 +459,7 @@ examples: - name: SynchronizationSettings_Get text: |- - az datashare synchronization-setting show --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" --synchronization-setting-name - "SyncrhonizationSetting1" + az datashare synchronization-setting show --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" """ helps['datashare synchronization-setting create'] = """ @@ -533,9 +468,7 @@ examples: - name: SynchronizationSettings_Create text: |- - az datashare synchronization-setting create --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" --kind "ScheduleBased" - --synchronization-setting-name "Dataset1" + az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --kind "ScheduleBased" --name "Dataset1" --setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" """ helps['datashare synchronization-setting delete'] = """ @@ -544,9 +477,7 @@ examples: - name: SynchronizationSettings_Delete text: |- - az datashare synchronization-setting delete --account-name MyAccount --resource-group - MyResourceGroup --share-name "Share1" --synchronization-setting-name - "SyncrhonizationSetting1" + az datashare synchronization-setting delete --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" """ helps['datashare trigger'] = """ @@ -560,8 +491,7 @@ examples: - name: Triggers_ListByShareSubscription text: |- - az datashare trigger list --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare trigger list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ helps['datashare trigger show'] = """ @@ -570,9 +500,7 @@ examples: - name: Triggers_Get text: |- - az datashare trigger show --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" --trigger-name - "Trigger1" + az datashare trigger show --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" """ helps['datashare trigger create'] = """ @@ -581,9 +509,7 @@ examples: - name: Triggers_Create text: |- - az datashare trigger create --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" --kind - "ScheduleBased" --trigger-name "Trigger1" + az datashare trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --kind "ScheduleBased" --name "Trigger1" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" """ helps['datashare trigger delete'] = """ @@ -592,7 +518,5 @@ examples: - name: Triggers_Delete text: |- - az datashare trigger delete --account-name MyAccount --resource-group - MyResourceGroup --share-subscription-name "ShareSubscription1" --trigger-name - "Trigger1" + az datashare trigger delete --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" """ diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index a4993aa82ca..2bd7e02662a 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -5,6 +5,7 @@ # pylint: disable=line-too-long # pylint: disable=too-many-lines # pylint: disable=too-many-statements +# pylint: disable=unused-import from knack.arguments import CLIArgumentType from azure.cli.core.commands.parameters import ( @@ -15,13 +16,9 @@ ) from azure.cli.core.commands.validators import get_default_location_from_resource_group, validate_file_or_dict from azext_datashare.action import AddIdentity -from ..vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode +from azext_datashare.vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode +from azext_datashare.manual._validators import invitation_id_validator -dataset_type = CLIArgumentType( - type=validate_file_or_dict, - options_list=['--dataset'], - help='Dataset parameters in JSON string or path to JSON file.' -) def load_arguments(self, _): @@ -57,7 +54,7 @@ def load_arguments(self, _): with self.argument_context('datashare consumer-invitation show') as c: c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified - c.argument('invitation_id', help='An invitation id') + c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') with self.argument_context('datashare consumer-invitation reject-invitation') as c: c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified @@ -81,7 +78,7 @@ def load_arguments(self, _): c.argument('share_name', help='The name of the share.') c.argument('data_set_name', options_list=['--name', '-n'], help='The name of the dataSet.') # modified c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified - c.argument('dataset', arg_type=dataset_type) # modified + c.argument('data_set', options_list=['--dataset'], type=validate_file_or_dict, help='Dataset parameters in JSON string or path to JSON file.') # modified with self.argument_context('datashare dataset delete') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified @@ -106,7 +103,7 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified - c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified + c.argument('data_set_mapping', options_list=['--mapping'], type=validate_file_or_dict, help='Dataset mapping in JSON string or path to JSON file.') # modified with self.argument_context('datashare dataset-mapping delete') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified @@ -167,7 +164,7 @@ def load_arguments(self, _): with self.argument_context('datashare list-synchronization-detail') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('skip_token', help='Continuation token') c.argument('consumer_email', help='Email of the user who created the synchronization') c.argument('consumer_name', help='Name of the user who created the synchronization') @@ -182,7 +179,7 @@ def load_arguments(self, _): with self.argument_context('datashare list-synchronization') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('skip_token', help='Continuation token') with self.argument_context('datashare provider-share-subscription list') as c: @@ -195,7 +192,7 @@ def load_arguments(self, _): c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified TODO validator with self.argument_context('datashare provider-share-subscription revoke') as c: c.argument('resource_group_name', resource_group_name_type) # modified @@ -222,7 +219,7 @@ def load_arguments(self, _): with self.argument_context('datashare share-subscription create') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') # modified + c.argument('share_subscription_name', options_list=['--name', '-n'], help='The name of the shareSubscription.') # modified c.argument('invitation_id', help='The invitation id.') # modified c.argument('source_share_location', help='Source share location.') # modified @@ -285,7 +282,7 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified - c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified + c.argument('synchronization_setting', options_list=['--setting'], type=validate_file_or_dict, help='Synchronization settings in JSON string or path to JSON file.') with self.argument_context('datashare synchronization-setting delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified @@ -310,7 +307,7 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('trigger_name', options_list=['--name', '-n'], help='The name of the trigger.') # modified - c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified + c.argument('trigger', type=validate_file_or_dict, help='Trigger parameters in JSON string or path to JSON file.') # modified with self.argument_context('datashare trigger delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified diff --git a/src/datashare/azext_datashare/manual/_validators.py b/src/datashare/azext_datashare/manual/_validators.py new file mode 100644 index 00000000000..26b40d74163 --- /dev/null +++ b/src/datashare/azext_datashare/manual/_validators.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# 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 invitation_id_validator(cmd, namespace): + if namespace.invitation_id: + if namespace.invitation_id.startswith("/providers"): + namespace.invitation_id = namespace.invitation_id.split("/")[-1] diff --git a/src/datashare/azext_datashare/manual/commands.py b/src/datashare/azext_datashare/manual/commands.py index 4669833954f..343c49a8b5f 100644 --- a/src/datashare/azext_datashare/manual/commands.py +++ b/src/datashare/azext_datashare/manual/commands.py @@ -3,6 +3,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- # pylint: disable=line-too-long +# pylint: disable=too-many-statements from azure.cli.core.commands import CliCommandType @@ -18,7 +19,7 @@ def load_command_table(self, _): g.custom_show_command('show', 'datashare_account_show') g.custom_command('create', 'datashare_account_create', supports_no_wait=True) g.custom_command('update', 'datashare_account_update') - g.custom_command('delete', 'datashare_account_delete', supports_no_wait=True) + g.custom_command('delete', 'datashare_account_delete', supports_no_wait=True, confirmation=True) g.wait_command('wait') from azext_datashare.generated._client_factory import cf_consumer_invitation @@ -38,7 +39,7 @@ def load_command_table(self, _): g.custom_command('list', 'datashare_data_set_list') g.custom_show_command('show', 'datashare_data_set_show') g.custom_command('create', 'datashare_data_set_create') - g.custom_command('delete', 'datashare_data_set_delete', supports_no_wait=True) + g.custom_command('delete', 'datashare_data_set_delete', supports_no_wait=True, confirmation=True) g.wait_command('wait') from azext_datashare.generated._client_factory import cf_data_set_mapping @@ -49,7 +50,7 @@ def load_command_table(self, _): g.custom_command('list', 'datashare_data_set_mapping_list') g.custom_show_command('show', 'datashare_data_set_mapping_show') g.custom_command('create', 'datashare_data_set_mapping_create') - g.custom_command('delete', 'datashare_data_set_mapping_delete') + g.custom_command('delete', 'datashare_data_set_mapping_delete', confirmation=True) from azext_datashare.generated._client_factory import cf_invitation datashare_invitation = CliCommandType( @@ -59,7 +60,7 @@ def load_command_table(self, _): g.custom_command('list', 'datashare_invitation_list') g.custom_show_command('show', 'datashare_invitation_show') g.custom_command('create', 'datashare_invitation_create') - g.custom_command('delete', 'datashare_invitation_delete') + g.custom_command('delete', 'datashare_invitation_delete', confirmation=True) from azext_datashare.generated._client_factory import cf_share datashare_share = CliCommandType( @@ -69,7 +70,7 @@ def load_command_table(self, _): g.custom_command('list', 'datashare_share_list') g.custom_show_command('show', 'datashare_share_show') g.custom_command('create', 'datashare_share_create') - g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True) + g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True, confirmation=True) g.custom_command('list-synchronization-detail', 'datashare_share_list_synchronization_detail') g.custom_command('list-synchronization', 'datashare_share_list_synchronization') g.wait_command('wait') @@ -83,7 +84,7 @@ def load_command_table(self, _): g.custom_show_command('show', 'datashare_provider_share_subscription_show') g.custom_command('revoke', 'datashare_provider_share_subscription_revoke', supports_no_wait=True) g.custom_command('reinstate', 'datashare_provider_share_subscription_reinstate') - g.wait_command('wait') + g.wait_command('wait', getter_name='get_by_share') from azext_datashare.generated._client_factory import cf_share_subscription datashare_share_subscription = CliCommandType( @@ -93,7 +94,7 @@ def load_command_table(self, _): g.custom_command('list', 'datashare_share_subscription_list') g.custom_show_command('show', 'datashare_share_subscription_show') g.custom_command('create', 'datashare_share_subscription_create') - g.custom_command('delete', 'datashare_share_subscription_delete', supports_no_wait=True) + g.custom_command('delete', 'datashare_share_subscription_delete', supports_no_wait=True, confirmation=True) g.custom_command('list-synchronization-detail', 'datashare_share_subscription_list_synchronization_detail') g.custom_command('synchronize', 'datashare_share_subscription_synchronize', supports_no_wait=True) g.custom_command('cancel-synchronization', 'datashare_share_subscription_cancel_synchronization', supports_no_wait=True) @@ -105,7 +106,7 @@ def load_command_table(self, _): datashare_consumer_source_data_set = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', client_factory=cf_consumer_source_data_set) - with self.command_group('datashare consumer-source-data-set', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: + with self.command_group('datashare consumer-source-dataset', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: g.custom_command('list', 'datashare_consumer_source_data_set_list') from azext_datashare.generated._client_factory import cf_synchronization_setting @@ -116,7 +117,7 @@ def load_command_table(self, _): g.custom_command('list', 'datashare_synchronization_setting_list') g.custom_show_command('show', 'datashare_synchronization_setting_show') g.custom_command('create', 'datashare_synchronization_setting_create') - g.custom_command('delete', 'datashare_synchronization_setting_delete', supports_no_wait=True) + g.custom_command('delete', 'datashare_synchronization_setting_delete', supports_no_wait=True, confirmation=True) g.wait_command('wait') from azext_datashare.generated._client_factory import cf_trigger @@ -127,5 +128,5 @@ def load_command_table(self, _): g.custom_command('list', 'datashare_trigger_list') g.custom_show_command('show', 'datashare_trigger_show') g.custom_command('create', 'datashare_trigger_create', supports_no_wait=True) - g.custom_command('delete', 'datashare_trigger_delete', supports_no_wait=True) + g.custom_command('delete', 'datashare_trigger_delete', supports_no_wait=True, confirmation=True) g.wait_command('wait') diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index e44bbcbc1bb..9ef3bbec6de 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -4,7 +4,7 @@ # -------------------------------------------------------------------------------------------- # pylint: disable=line-too-long # pylint: disable=too-many-lines - +# pylint: disable=unused-argument from azure.cli.core.util import sdk_no_wait @@ -29,7 +29,13 @@ def datashare_account_create(cmd, client, location=None, tags=None, no_wait=False): - return sdk_no_wait(no_wait, client.begin_create,resource_group_name=resource_group_name, account_name=account_name, location=location, tags=tags, identity=identity) + return sdk_no_wait(no_wait, + client.begin_create, + resource_group_name=resource_group_name, + account_name=account_name, + location=location, + tags=tags, + identity=identity) def datashare_account_update(cmd, client, @@ -41,8 +47,12 @@ def datashare_account_update(cmd, client, def datashare_account_delete(cmd, client, resource_group_name, - account_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name) + account_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + account_name=account_name) def datashare_consumer_invitation_list(cmd, client, @@ -78,13 +88,31 @@ def datashare_data_set_show(cmd, client, return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) +def _assign_owner_role_in_target_scope(cmd, role_scope, spn_object_id): + from azure.cli.command_modules.role.custom import list_role_assignments, create_role_assignment + role_assignments = list_role_assignments(cmd, assignee=spn_object_id, role='Owner', scope=role_scope) + if not role_assignments: + create_role_assignment(cmd, role='Owner', assignee_object_id=spn_object_id, scope=role_scope, + assignee_principal_type='ServicePrincipal') + + def datashare_data_set_create(cmd, client, resource_group_name, account_name, share_name, data_set_name, - dataset): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, dataset=dataset) + data_set): + from azure.cli.core.commands.client_factory import get_subscription_id + if 'resource_group' not in data_set: + data_set['resource_group'] = resource_group_name + if 'subscription_id' not in data_set: + data_set['subscription_id'] = get_subscription_id(cmd.cli_ctx) + # assign role + return client.create(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + data_set_name=data_set_name, + data_set=data_set) def datashare_data_set_delete(cmd, client, @@ -116,8 +144,17 @@ def datashare_data_set_mapping_create(cmd, client, account_name, share_subscription_name, data_set_mapping_name, - kind): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name, kind=kind) + data_set_mapping): + from azure.cli.core.commands.client_factory import get_subscription_id + if 'resource_group' not in data_set_mapping: + data_set_mapping['resource_group'] = resource_group_name + if 'subscription_id' not in data_set_mapping: + data_set_mapping['subscription_id'] = get_subscription_id(cmd.cli_ctx) + return client.create(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + data_set_mapping_name=data_set_mapping_name, + data_set_mapping=data_set_mapping) def datashare_data_set_mapping_delete(cmd, client, @@ -346,13 +383,27 @@ def datashare_synchronization_setting_show(cmd, client, return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) +def _format_datetime(date_string): + from dateutil.parser import parse + try: + return parse(date_string).strftime("%Y-%m-%dT%H:%M:%SZ") + except ValueError: + # logger.debug("Unable to parse date_string '%s'", date_string) + return date_string or ' ' + + def datashare_synchronization_setting_create(cmd, client, resource_group_name, account_name, share_name, synchronization_setting_name, - kind): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name, kind=kind) + synchronization_setting): + synchronization_setting['synchronizationTime'] = _format_datetime(synchronization_setting['synchronizationTime']) + return client.create(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + synchronization_setting_name=synchronization_setting_name, + synchronization_setting=synchronization_setting) def datashare_synchronization_setting_delete(cmd, client, @@ -384,8 +435,12 @@ def datashare_trigger_create(cmd, client, account_name, share_subscription_name, trigger_name, - kind): - return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name, kind=kind) + trigger): + return client.begin_create(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + trigger_name=trigger_name, + trigger=trigger) def datashare_trigger_delete(cmd, client, diff --git a/src/datashare/azext_datashare/tests/__init__.py b/src/datashare/azext_datashare/tests/__init__.py index be1a152630c..c9cfdc73e77 100644 --- a/src/datashare/azext_datashare/tests/__init__.py +++ b/src/datashare/azext_datashare/tests/__init__.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/datashare/azext_datashare/tests/latest/__init__.py b/src/datashare/azext_datashare/tests/latest/__init__.py index 8d86d5a6be1..ee0c4f36bd0 100644 --- a/src/datashare/azext_datashare/tests/latest/__init__.py +++ b/src/datashare/azext_datashare/tests/latest/__init__.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file +__path__ = __import__('pkgutil').extend_path(__path__, __name__) diff --git a/src/datashare/azext_datashare/tests/latest/preparers.py b/src/datashare/azext_datashare/tests/latest/preparers.py index 48c7b77dcaf..025bb93a84c 100644 --- a/src/datashare/azext_datashare/tests/latest/preparers.py +++ b/src/datashare/azext_datashare/tests/latest/preparers.py @@ -2,13 +2,19 @@ # 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 +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements +# pylint: disable=unused-import +# pylint: disable=unused-argument +# pylint: disable=too-many-instance-attributes import os from datetime import datetime from azure.cli.testsdk.preparers import NoTrafficRecordingPreparer -from azure_devtools.scenario_tests import SingleValueReplacer from azure.cli.testsdk.exceptions import CliTestError from azure.cli.testsdk.reverse_dependency import get_dummy_cli +from azure_devtools.scenario_tests import SingleValueReplacer KEY_RESOURCE_GROUP = 'rg' diff --git a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml new file mode 100644 index 00000000000..9f4ecca95cb --- /dev/null +++ b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml @@ -0,0 +1,3004 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - unknown + Connection: + - keep-alive + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:50:30 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: '{"location": "westus2", "tags": {"tag1": "Red", "tag2": "White"}, "identity": + {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account create + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + ParameterSetName: + - --identity --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '577' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:50:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":4,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3"}]' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account create + Connection: + - keep-alive + ParameterSetName: + - --identity --location --tags --name --resource-group + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:50:41 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: '{"location": "westus2", "tags": {"tag1": "Red", "tag2": "White"}, "identity": + {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account create + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + ParameterSetName: + - --identity --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"137add51-2e2a-4e79-ad5f-0e2933110135","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:52.0216624Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '577' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:50:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":5,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q"}]' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '577' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:50:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '577' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:51:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '577' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:51:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '577' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:52:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '578' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:52:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account show + Connection: + - keep-alive + ParameterSetName: + - -n --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '578' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:52:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account show + Connection: + - keep-alive + ParameterSetName: + - --ids + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + headers: + cache-control: + - no-cache + content-length: + - '578' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:52:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account list + Connection: + - keep-alive + ParameterSetName: + - --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts?api-version=2019-11-01 + response: + body: + string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"f6ddef3d-c660-4f19-989b-dd547b289c53","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:37:56.2424324Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_smi3egxzba2qdas","name":"cli_test_smi3egxzba2qdas","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}},{"identity":{"type":"SystemAssigned","principalId":"53167e1a-e193-4dde-ab08-8bf5235bedd6","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:38:06.9314582Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_tpostno44ggu6al","name":"cli_test_tpostno44ggu6al","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}},{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}},{"identity":{"type":"SystemAssigned","principalId":"137add51-2e2a-4e79-ad5f-0e2933110135","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:52.0216624Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2314' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: '{"tags": {"tag1": "Green"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account update + Connection: + - keep-alive + Content-Length: + - '27' + Content-Type: + - application/json + ParameterSetName: + - --name --tags --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' + headers: + cache-control: + - no-cache + content-length: + - '565' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"description": "share description", "shareKind": "CopyBased", + "terms": "Confidential"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare create + Connection: + - keep-alive + Content-Length: + - '103' + Content-Type: + - application/json + ParameterSetName: + - --account-name --resource-group --description --share-kind --terms --name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + response: + body: + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}' + headers: + cache-control: + - no-cache + content-length: + - '491' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:09 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/cli_test_000007 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"Share resource quota","value":"Share + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3/shares/cli_test_m6al7c74nrqnctd"}]' + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare show + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + response: + body: + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}' + headers: + cache-control: + - no-cache + content-length: + - '491' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare show + Connection: + - keep-alive + ParameterSetName: + - --ids + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + response: + body: + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}' + headers: + cache-control: + - no-cache + content-length: + - '491' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}]}' + headers: + cache-control: + - no-cache + content-length: + - '503' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - storage account show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa?api-version=2019-06-01 + response: + body: + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","name":"fengdatasharesa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-06T15:37:10.2792631Z","primaryEndpoints":{"dfs":"https://fengdatasharesa.dfs.core.windows.net/","web":"https://fengdatasharesa.z5.web.core.windows.net/","blob":"https://fengdatasharesa.blob.core.windows.net/","queue":"https://fengdatasharesa.queue.core.windows.net/","table":"https://fengdatasharesa.table.core.windows.net/","file":"https://fengdatasharesa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengdatasharesa-secondary.dfs.core.windows.net/","web":"https://fengdatasharesa-secondary.z5.web.core.windows.net/","blob":"https://fengdatasharesa-secondary.blob.core.windows.net/","queue":"https://fengdatasharesa-secondary.queue.core.windows.net/","table":"https://fengdatasharesa-secondary.table.core.windows.net/"}}}' + headers: + cache-control: + - no-cache + content-length: + - '1688' + content-type: + - application/json + date: + - Mon, 06 Apr 2020 15:53:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,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: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Storage%20Blob%20Data%20Reader%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Storage Blob Data Reader","type":"BuiltInRole","description":"Allows + for read access to Azure Storage blob containers and data","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Storage/storageAccounts/blobServices/containers/read","Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey/action"],"notActions":[],"dataActions":["Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read"],"notDataActions":[]}],"createdOn":"2017-12-21T00:01:24.7972312Z","updatedOn":"2019-07-15T22:01:25.5409721Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","type":"Microsoft.Authorization/roleDefinitions","name":"2a2b9908-6ea1-4ae2-8e65-a410df84e7d1"}]}' + headers: + cache-control: + - no-cache + content-length: + - '854' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:16 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1", + "principalId": "c50828d9-67ee-4de3-879f-8e5606fafe64", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/providers/Microsoft.Authorization/roleAssignments/d1dd00fb-0d42-4171-8091-6787d41ef6b1?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","createdOn":"2020-04-06T15:53:18.3514755Z","updatedOn":"2020-04-06T15:53:18.3514755Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/providers/Microsoft.Authorization/roleAssignments/d1dd00fb-0d42-4171-8091-6787d41ef6b1","type":"Microsoft.Authorization/roleAssignments","name":"d1dd00fb-0d42-4171-8091-6787d41ef6b1"}' + headers: + cache-control: + - no-cache + content-length: + - '907' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:24 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + 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: + - storage container create + Connection: + - keep-alive + ParameterSetName: + - --account-name --name + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts?api-version=2019-06-01 + response: + body: + string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/sfsafsaf","name":"sfsafsaf","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-12T10:01:36.9614761Z","primaryEndpoints":{"dfs":"https://sfsafsaf.dfs.core.windows.net/","web":"https://sfsafsaf.z22.web.core.windows.net/","blob":"https://sfsafsaf.blob.core.windows.net/","queue":"https://sfsafsaf.queue.core.windows.net/","table":"https://sfsafsaf.table.core.windows.net/","file":"https://sfsafsaf.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T03:09:41.6962163Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z22.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/","queue":"https://zhoxingtest2.queue.core.windows.net/","table":"https://zhoxingtest2.table.core.windows.net/","file":"https://zhoxingtest2.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest2-secondary.dfs.core.windows.net/","web":"https://zhoxingtest2-secondary.z22.web.core.windows.net/","blob":"https://zhoxingtest2-secondary.blob.core.windows.net/","queue":"https://zhoxingtest2-secondary.queue.core.windows.net/","table":"https://zhoxingtest2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xiaojianxustorage","name":"xiaojianxustorage","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:53:04.7312881Z","primaryEndpoints":{"dfs":"https://xiaojianxustorage.dfs.core.windows.net/","web":"https://xiaojianxustorage.z7.web.core.windows.net/","blob":"https://xiaojianxustorage.blob.core.windows.net/","queue":"https://xiaojianxustorage.queue.core.windows.net/","table":"https://xiaojianxustorage.table.core.windows.net/","file":"https://xiaojianxustorage.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xiaojianxustorage-secondary.dfs.core.windows.net/","web":"https://xiaojianxustorage-secondary.z7.web.core.windows.net/","blob":"https://xiaojianxustorage-secondary.blob.core.windows.net/","queue":"https://xiaojianxustorage-secondary.queue.core.windows.net/","table":"https://xiaojianxustorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital + Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"ServiceName":"TAGVALUE"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage/privateEndpointConnections/zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","name":"zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/zuhPE"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","name":"fengdatasharesa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-06T15:37:10.2792631Z","primaryEndpoints":{"dfs":"https://fengdatasharesa.dfs.core.windows.net/","web":"https://fengdatasharesa.z5.web.core.windows.net/","blob":"https://fengdatasharesa.blob.core.windows.net/","queue":"https://fengdatasharesa.queue.core.windows.net/","table":"https://fengdatasharesa.table.core.windows.net/","file":"https://fengdatasharesa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengdatasharesa-secondary.dfs.core.windows.net/","web":"https://fengdatasharesa-secondary.z5.web.core.windows.net/","blob":"https://fengdatasharesa-secondary.blob.core.windows.net/","queue":"https://fengdatasharesa-secondary.queue.core.windows.net/","table":"https://fengdatasharesa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage_blob_restorelgsnaopzuzblnuxuzojq7eo725opbpfmp2jwlntndhozoedq6chvyzq/providers/Microsoft.Storage/storageAccounts/storageblobrestorelqgkde","name":"storageblobrestorelqgkde","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T18:27:28.9405812Z","primaryEndpoints":{"dfs":"https://storageblobrestorelqgkde.dfs.core.windows.net/","web":"https://storageblobrestorelqgkde.z3.web.core.windows.net/","blob":"https://storageblobrestorelqgkde.blob.core.windows.net/","queue":"https://storageblobrestorelqgkde.queue.core.windows.net/","table":"https://storageblobrestorelqgkde.table.core.windows.net/","file":"https://storageblobrestorelqgkde.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}}]}' + headers: + cache-control: + - no-cache + content-length: + - '114153' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 4d4c8885-0aef-4b08-a121-8122990ebeaa + - 8caac960-79ba-4f33-9242-3f0b8ac029c8 + - 4bd58be4-9bb2-4c71-a2f9-4a67a50cf1a3 + - b34c0394-d4a3-4fe3-8dd2-f197e0446e0d + - cc97e4c8-9c49-4639-9662-59576e511698 + - 340b8642-b353-4c0c-92cb-e3b8d889d460 + - 62ec6923-163e-4150-85ba-6a597135b035 + - 6bda557e-2349-4f4c-99b4-f816d88550b9 + - 9cd8386c-4656-4ffa-b5c0-b463d005fb46 + - cec4006b-64ff-4a30-bfe1-eb7a834ded09 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - storage container create + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --name + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/listKeys?api-version=2019-06-01 + response: + body: + string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' + headers: + cache-control: + - no-cache + content-length: + - '288' + content-type: + - application/json + date: + - Mon, 06 Apr 2020 15:53:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,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 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.2; Windows 10) AZURECLI/2.3.1 + (MSI) + x-ms-date: + - Mon, 06 Apr 2020 15:53:29 GMT + x-ms-version: + - '2018-11-09' + method: PUT + uri: https://fengdatasharesa.blob.core.windows.net/clitestco000013?restype=container + response: + body: + string: '' + headers: + content-length: + - '0' + date: + - Mon, 06 Apr 2020 15:53:29 GMT + etag: + - '"0x8D7DA42A6DA11BB"' + last-modified: + - Mon, 06 Apr 2020 15:53:29 GMT + server: + - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 + x-ms-version: + - '2018-11-09' + status: + code: 201 + message: Created +- request: + body: '{"kind": "Container", "properties": {"containerName": "clitestco000013", + "resourceGroup": "feng-datashare-rg", "storageAccountName": "fengdatasharesa", + "subscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare dataset create + Connection: + - keep-alive + Content-Length: + - '219' + Content-Type: + - application/json + ParameterSetName: + - --account-name --dataset --name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + response: + body: + string: '{"properties":{"containerName":"clitestco000013","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"feng-datashare-rg","storageAccountName":"fengdatasharesa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/DataSets"}' + headers: + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:32 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSet resource + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3/shares/cli_test_m6al7c74nrqnctd/dataSets/cli_test_rlzexvvwiko5rgr"}]' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare dataset show + Connection: + - keep-alive + ParameterSetName: + - --account-name --name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + response: + body: + string: '{"properties":{"containerName":"clitestco000013","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"feng-datashare-rg","storageAccountName":"fengdatasharesa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/DataSets"}' + headers: + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare dataset list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"containerName":"clitestco000013","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"feng-datashare-rg","storageAccountName":"fengdatasharesa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/DataSets"}]}' + headers: + cache-control: + - no-cache + content-length: + - '566' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: '{"kind": "ScheduleBased", "properties": {"recurrenceInterval": "Day", "synchronizationTime": + "2020-04-05T10:50:00.000Z"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare synchronization-setting create + Connection: + - keep-alive + Content-Length: + - '121' + Content-Type: + - application/json + ParameterSetName: + - --account-name --resource-group --share-name --name --setting + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011?api-version=2019-11-01 + response: + body: + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-06T15:53:37.1709116Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011","name":"cli_test_000011","type":"Microsoft.DataShare/SynchronizationSettings"}' + headers: + cache-control: + - no-cache + content-length: + - '533' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:36 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011 + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare synchronization-setting show + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-name --name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011?api-version=2019-11-01 + response: + body: + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-06T15:53:37.1709116Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011","name":"cli_test_000011","type":"Microsoft.DataShare/SynchronizationSettings"}' + headers: + cache-control: + - no-cache + content-length: + - '533' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare synchronization-setting list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-06T15:53:37.1709116Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011","name":"cli_test_000011","type":"Microsoft.DataShare/SynchronizationSettings"}]}' + headers: + cache-control: + - no-cache + content-length: + - '545' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare list-synchronization + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/listSynchronizations?api-version=2019-11-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"targetEmail": "fengzhou810@163.com"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare invitation create + Connection: + - keep-alive + Content-Length: + - '54' + Content-Type: + - application/json + ParameterSetName: + - --account-name --target-email --name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006?api-version=2019-11-01 + response: + body: + string: '{"properties":{"sentAt":"2020-04-06T15:53:46.5900587Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006","name":"cli_test_000006","type":"Microsoft.DataShare/Invitations"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:46 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006/cc642b10-30f7-4db4-8069-339e8e1c9e3c + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare invitation list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"sentAt":"2020-04-06T15:53:46.5900587Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006","name":"cli_test_000006","type":"Microsoft.DataShare/Invitations"}]}' + headers: + cache-control: + - no-cache + content-length: + - '548' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare invitation show + Connection: + - keep-alive + ParameterSetName: + - --account-name --name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006?api-version=2019-11-01 + response: + body: + string: '{"properties":{"sentAt":"2020-04-06T15:53:46.5900587Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006","name":"cli_test_000006","type":"Microsoft.DataShare/Invitations"}' + headers: + cache-control: + - no-cache + content-length: + - '536' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - account set + Connection: + - keep-alive + ParameterSetName: + - -s + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East + Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast + Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central + US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East + US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East + US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West + US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North + Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South + Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North + Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West + Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan + West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan + East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil + South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia + East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia + Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South + India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central + India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West + India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada + Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada + East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK + South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK + West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West + Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West + US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea + Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea + South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France + Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France + South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia + Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia + Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE + Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE + North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South + Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South + Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland + North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland + West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany + North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany + West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway + West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway + East","longitude":"10.752245","latitude":"59.913868"}]}' + headers: + cache-control: + - no-cache + content-length: + - '7129' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:51 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: '{"location": "westus2", "identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account create + Connection: + - keep-alive + Content-Length: + - '63' + Content-Type: + - application/json + ParameterSetName: + - --identity --location --name --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '531' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:53:57 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":6,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q"}]' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare consumer-invitation list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.DataShare/ListInvitations?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_000007","sentAt":"2020-04-06T15:53:46.5900587Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/cc642b10-30f7-4db4-8069-339e8e1c9e3c","name":"cli_test_000006","type":"Microsoft.DataShare/consumerInvitations"}]}' + headers: + cache-control: + - no-cache + content-length: + - '606' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:54:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - '' + - '' + - '' + - '' + - '' + - '' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare consumer-invitation show + Connection: + - keep-alive + ParameterSetName: + - --invitation-id + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/cc642b10-30f7-4db4-8069-339e8e1c9e3c?api-version=2019-11-01 + response: + body: + string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_000007","sentAt":"2020-04-06T15:53:46.5900587Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/cc642b10-30f7-4db4-8069-339e8e1c9e3c","name":"cli_test_000006","type":"Microsoft.DataShare/consumerInvitations"}' + headers: + cache-control: + - no-cache + content-length: + - '594' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:54:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '531' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:54:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '531' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:54:35 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '531' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:55:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '531' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:55:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Succeeded","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '532' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: '{"properties": {"invitationId": "cc642b10-30f7-4db4-8069-339e8e1c9e3c", + "sourceShareLocation": "westus2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare share-subscription create + Connection: + - keep-alive + Content-Length: + - '106' + Content-Type: + - application/json + ParameterSetName: + - --account-name --resource-group --invitation-id --source-share-location --name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008?api-version=2019-11-01 + response: + body: + string: '{"properties":{"createdAt":"2020-04-06T15:56:10.5225893Z","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + description","shareKind":"CopyBased","shareName":"cli_test_000007","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + headers: + cache-control: + - no-cache + content-length: + - '781' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:10 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/cli_test_000008 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"ShareSubscription + resource quota","value":"ShareSubscription resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q/shareSubscriptions/cli_test_7rudc4i2fypfjag"}]' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare share-subscription show + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008?api-version=2019-11-01 + response: + body: + string: '{"properties":{"createdAt":"2020-04-06T15:56:10.5225893Z","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + description","shareKind":"CopyBased","shareName":"cli_test_000007","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + headers: + cache-control: + - no-cache + content-length: + - '781' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare share-subscription list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"createdAt":"2020-04-06T15:56:10.5225893Z","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + description","shareKind":"CopyBased","shareName":"cli_test_000007","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + headers: + cache-control: + - no-cache + content-length: + - '793' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare consumer-source-dataset list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-subscription-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/ConsumerSourceDataSets?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"dataSetName":"cli_test_000004","dataSetPath":"clitestco000013","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/consumerSourceDataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' + headers: + cache-control: + - no-cache + content-length: + - '537' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - storage account show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa?api-version=2019-06-01 + response: + body: + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa","name":"copyextsa","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-15T12:35:17.1991923Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-15T12:35:17.1991923Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-15T12:35:17.1366849Z","primaryEndpoints":{"dfs":"https://copyextsa.dfs.core.windows.net/","web":"https://copyextsa.z7.web.core.windows.net/","blob":"https://copyextsa.blob.core.windows.net/","queue":"https://copyextsa.queue.core.windows.net/","table":"https://copyextsa.table.core.windows.net/","file":"https://copyextsa.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://copyextsa-secondary.dfs.core.windows.net/","web":"https://copyextsa-secondary.z7.web.core.windows.net/","blob":"https://copyextsa-secondary.blob.core.windows.net/","queue":"https://copyextsa-secondary.queue.core.windows.net/","table":"https://copyextsa-secondary.table.core.windows.net/"}}}' + headers: + cache-control: + - no-cache + content-length: + - '1606' + content-type: + - application/json + date: + - Mon, 06 Apr 2020 15:56:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-Azure-Storage-Resource-Provider/1.0,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: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Storage%20Blob%20Data%20Contributor%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Storage Blob Data Contributor","type":"BuiltInRole","description":"Allows + for read, write and delete access to Azure Storage blob containers and data","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Storage/storageAccounts/blobServices/containers/delete","Microsoft.Storage/storageAccounts/blobServices/containers/read","Microsoft.Storage/storageAccounts/blobServices/containers/write","Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey/action"],"notActions":[],"dataActions":["Microsoft.Storage/storageAccounts/blobServices/containers/blobs/delete","Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read","Microsoft.Storage/storageAccounts/blobServices/containers/blobs/move/action","Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write"],"notDataActions":[]}],"createdOn":"2017-12-21T00:01:24.7972312Z","updatedOn":"2020-03-30T22:49:07.8669420Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","type":"Microsoft.Authorization/roleDefinitions","name":"ba92f5b4-2d11-453d-a403-e96b0029c9fe"}]}' + headers: + cache-control: + - no-cache + content-length: + - '1233' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:18 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe", + "principalId": "f7f82962-8aef-4265-a4e0-3f471bb3e4a8", "principalType": "ServicePrincipal"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee-object-id --assignee-principal-type --scope + User-Agent: + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa/providers/Microsoft.Authorization/roleAssignments/f44bc18c-56ee-44fb-a9af-166ad776c82e?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa","createdOn":"2020-04-06T15:56:19.0933119Z","updatedOn":"2020-04-06T15:56:19.0933119Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa/providers/Microsoft.Authorization/roleAssignments/f44bc18c-56ee-44fb-a9af-166ad776c82e","type":"Microsoft.Authorization/roleAssignments","name":"f44bc18c-56ee-44fb-a9af-166ad776c82e"}' + headers: + cache-control: + - no-cache + content-length: + - '883' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:23 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + 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: '{"kind": "BlobFolder", "properties": {"containerName": "clitestco000014", + "dataSetId": "d0edf685-fffa-495b-bf2c-f812f5293e34", "prefix": "cli_test_000004", + "resourceGroup": "feng-cli-rg", "storageAccountName": "copyextsa", "subscriptionId": + "9abff005-2afc-4de1-b39c-344b9de2cc9c"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare dataset-mapping create + Connection: + - keep-alive + Content-Length: + - '299' + Content-Type: + - application/json + ParameterSetName: + - --account-name --name --resource-group --share-subscription-name --mapping + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/dataSetMappings/cli_test_000005?api-version=2019-11-01 + response: + body: + string: '{"properties":{"containerName":"clitestco000014","prefix":"cli_test_000004","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"feng-cli-rg","storageAccountName":"copyextsa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/dataSetMappings/cli_test_000005","name":"cli_test_000005","type":"Microsoft.DataShare/DataSetMappings"}' + headers: + cache-control: + - no-cache + content-length: + - '659' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/dataSetMappings/cli_test_000005?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSetMapping resource + quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q/shareSubscriptions/cli_test_7rudc4i2fypfjag/dataSetMappings/cli_test_yp5ntl2fx3a46wg"}]' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare provider-share-subscription list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen + Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare provider-share-subscription show + Connection: + - keep-alive + ParameterSetName: + - --account-name --share-subscription --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023?api-version=2019-11-01 + response: + body: + string: '{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen + Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + headers: + cache-control: + - no-cache + content-length: + - '705' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare provider-share-subscription revoke + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --share-subscription --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023/revoke?api-version=2019-11-01 + response: + body: + string: '{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen + Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/operationResults/2dee520d-05d2-4b37-83fa-304865f51a63?api-version=2019-11-01 + cache-control: + - no-cache + content-length: + - '707' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:34 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare provider-share-subscription reinstate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --share-subscription --resource-group --share-name + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023/reinstate?api-version=2019-11-01 + response: + body: + string: '{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen + Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + headers: + cache-control: + - no-cache + content-length: + - '705' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 06 Apr 2020 15:56:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare synchronization-setting delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --resource-group --share-name --name --yes + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 06 Apr 2020 15:56:44 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/0b711aa5-96ed-4e0a-8879-a75157462953?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare dataset delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --name --resource-group --share-name --yes + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 06 Apr 2020 15:56:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSet resource + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3/shares/cli_test_m6al7c74nrqnctd/dataSets/cli_test_rlzexvvwiko5rgr"}]' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --resource-group --name --yes + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 06 Apr 2020 15:56:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/06548e3f-34e3-449a-bf92-8e05911b03cf?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --no-wait --yes + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 06 Apr 2020 15:56:49 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/3f902bbc-868b-4e46-b283-af58645b27b5?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + 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/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index 94f5013c0c8..acb8fd21061 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -7,7 +7,7 @@ import unittest from azure_devtools.scenario_tests import AllowLargeResponse -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer, StorageAccountPreparer) TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) @@ -15,10 +15,16 @@ class DataShareManagementClientScenarioTest(ScenarioTest): @ResourceGroupPreparer(name_prefix='cli_test_datashare_SampleResourceGroup'[:9], key='rg') - def test_datashare(self, resource_group): + @StorageAccountPreparer(name_prefix='clitestdatasharesa', key='sa') + def test_datashare(self, resource_group, storage_account): self.kwargs.update({ + 'ProviderSubscription': '0b1f6471-1bf0-4dda-aec3-cb9272f09590', + 'ConsumerSubscription': '9abff005-2afc-4de1-b39c-344b9de2cc9c', + 'ProviderEmail': 'feng.zhou@microsoft.com', + 'ConsumerEmail': 'fengzhou810@163.com', 'Account1': self.create_random_name(prefix='cli_test_accounts'[:9], length=24), + 'Account2': self.create_random_name(prefix='cli_test_acc_consumer'[:9], length=24), 'Dataset1': self.create_random_name(prefix='cli_test_data_sets'[:9], length=24), 'DatasetMapping1': self.create_random_name(prefix='cli_test_data_set_mappings'[:9], length=24), 'Invitation1': self.create_random_name(prefix='cli_test_invitations'[:9], length=24), @@ -28,20 +34,39 @@ def test_datashare(self, resource_group): 'ShareSubscriptions_3': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), 'SynchronizationSettings_2': self.create_random_name(prefix='cli_test_synchronization_settings'[:9], length=24), 'Trigger1': self.create_random_name(prefix='cli_test_triggers'[:9], length=24), + 'Container1': self.create_random_name(prefix='clitestcontainer'[:9], length=24), + 'rg': resource_group, + 'sa': storage_account, + 'rg2': 'feng-cli-rg', + 'sa2': 'copyextsa', + 'Container2': self.create_random_name(prefix='clitestconsumercontainer'[:9], length=24), }) - + print(self.kwargs) + # Provider commands datashareAccount = self.cmd('az datashare account create ' '--identity type=SystemAssigned ' '--location "West US 2" ' '--tags tag1=Red tag2=White ' '--name "{Account1}" ' '--resource-group "{rg}"', - checks=[self.check('name', self.kwargs.get('Account1', '')), + checks=[self.check('name', '{Account1}'), self.check('location', 'westus2'), - self.check('resourceGroup', self.kwargs.get('rg', '')), - self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + self.check('resourceGroup', '{rg}'), + self.check('tags.tag1', 'Red'), + self.check('tags.tag2', 'White') ]).get_output_in_json() - + self.cmd('az datashare account create ' + '--identity type=SystemAssigned ' + '--location "West US 2" ' + '--tags tag1=Red tag2=White ' + '--name "{Account2}" ' + '--resource-group "{rg}"', + checks=[self.check('name', '{Account2}'), + self.check('location', 'westus2'), + self.check('resourceGroup', '{rg}'), + self.check('tags.tag1', 'Red'), + self.check('tags.tag2', 'White') + ]).get_output_in_json() self.cmd('az datashare account wait ' '--name "{Account1}" ' '--resource-group "{rg}" ' @@ -52,153 +77,164 @@ def test_datashare(self, resource_group): self.cmd('az datashare account show ' '-n "{Account1}" ' '--resource-group "{rg}"', - checks=[self.check('name', self.kwargs.get('Account1', '')), + checks=[self.check('name', '{Account1}'), self.check('location', 'westus2'), self.check('provisioningState', 'Succeeded'), - self.check('resourceGroup', self.kwargs.get('rg', '')), - self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + self.check('resourceGroup', '{rg}'), + self.check('tags.tag1', 'Red'), + self.check('tags.tag2', 'White') ]) self.cmd('az datashare account show ' '--ids {}'.format(accountId), - checks=[self.check('name', self.kwargs.get('Account1', '')), + checks=[self.check('name', '{Account1}'), self.check('location', 'westus2'), self.check('provisioningState', 'Succeeded'), - self.check('resourceGroup', self.kwargs.get('rg', '')), - self.check('tags', '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), + self.check('resourceGroup', '{rg}'), + self.check('tags.tag1', 'Red'), + self.check('tags.tag2', 'White') ]) self.cmd('az datashare account list ' '--resource-group "{rg}"', - checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), + checks=[self.check("[?id=='{}'].name | [0]".format(accountId), '{Account1}'), self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), - self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), - self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - ]) - - self.cmd('az datashare account list' - '--resource-group=', - checks=[self.check("[?id=='{}'].name | [0]".format(accountId), self.kwargs.get('Account1', '')), - self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), - self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), self.kwargs.get('rg', '')), - self.check("[?id=='{}'].tags | [0]".format(accountId), '{\'tag1\': \'Red\', \'tag2\': \'White\'}'), - ]) + self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), '{rg}'), + self.check("[?id=='{}'].tags | [0].tag1".format(accountId), 'Red'), + self.check("[?id=='{}'].tags | [0].tag2".format(accountId), 'White')]) self.cmd('az datashare account update ' '--name "{Account1}" ' - '--tags tag1=Green' + '--tags tag1=Green ' '--resource-group "{rg}"', - checks=[self.check('name', self.kwargs.get('Account1', '')), + checks=[self.check('name', '{Account1}'), self.check('location', 'westus2'), self.check('provisioningState', 'Succeeded'), - self.check('resourceGroup', self.kwargs.get('rg', '')), - self.check('tags', '{\'tag1\': \'Green\'}')]) + self.check('resourceGroup', '{rg}'), + self.check('tags.tag1', 'Green')]) datashare = self.cmd('az datashare create ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--description "share description" ' + '--share-kind "CopyBased" ' + '--terms "Confidential" ' + '--name "{Share1}"', + checks=[self.check('name', '{Share1}'), + self.check('description', 'share description'), + self.check('shareKind', 'CopyBased'), + self.check('terms', 'Confidential')]).get_output_in_json() + + self.cmd('az datashare show ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' - '--description "share description" ' - '--share-kind "CopyBased" ' - '--terms "Confidential" ' '--name "{Share1}"', - checks=[self.check('name', self.kwargs.get('Share1', '')), + checks=[self.check('name', '{Share1}'), self.check('description', 'share description'), self.check('shareKind', 'CopyBased'), - self.check('terms', 'Confidential') - ]).get_output_in_json() + self.check('terms', 'Confidential')]) datashareId = datashare['id'] self.cmd('az datashare show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--name "{Share1}"', - checks=[self.check('name', self.kwargs.get('Share1', '')), + '--ids {}'.format(datashareId), + checks=[self.check('name', '{Share1}'), self.check('description', 'share description'), self.check('shareKind', 'CopyBased'), self.check('terms', 'Confidential')]) - + self.cmd('az datashare list ' '--account-name "{Account1}" ' '--resource-group "{rg}"', - checks=[self.check("[?id=='{}'].name | [0]".format(datashareId), self.kwargs.get('Share1', '')), + checks=[self.check("[?id=='{}'].name | [0]".format(datashareId), '{Share1}'), self.check("[?id=='{}'].description | [0]".format(datashareId), 'share description'), self.check("[?id=='{}'].shareKind | [0]".format(datashareId), 'CopyBased'), - self.check("[?id=='{}'].terms | [0]".format(datashareId), 'Confidential']) - - - self.cmd('az datashare dataset create ' - '--account-name "{Account1}" ' - '--kind "SqlDWTable" ' - '--name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare dataset create ' - '--account-name "{Account1}" ' - '--kind "SqlDBTable" ' - '--name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - + self.check("[?id=='{}'].terms | [0]".format(datashareId), 'Confidential')]) + + storage_account_json = self.cmd('az storage account show ' + '-n {sa} ' + '-g {rg}').get_output_in_json() + print(storage_account_json) + accountPrincipalId = datashareAccount['identity']['principalId'] + self.cmd('az role assignment create ' + '--role "Storage Blob Data Reader" ' # 2a2b9908-6ea1-4ae2-8e65-a410df84e7d1 + '--assignee-object-id {} ' + '--assignee-principal-type ServicePrincipal ' + '--scope {}'.format(accountPrincipalId, storage_account_json['id'])) + + self.cmd('az storage container create ' + '--account-name {sa} ' + '--name {Container1}') + + datasetContent = {"container_name": "{}".format(self.kwargs.get('Container1', '')), "storage_account_name": "{}".format(storage_account), "kind": "Container"} + self.kwargs.update({ + 'DatasetContent1': datasetContent + }) self.cmd('az datashare dataset create ' '--account-name "{Account1}" ' - '--kind "KustoDatabase" ' + '--dataset "{DatasetContent1}" ' '--name "{Dataset1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) + checks=[self.check('containerName', '{Container1}'), + self.check('storageAccountName', '{sa}'), + self.check('kind', 'Container'), + self.check('name', '{Dataset1}')]) - self.cmd('az datashare dataset create ' - '--account-name "{Account1}" ' - '--kind "KustoCluster" ' - '--name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare dataset create ' - '--account-name "{Account1}" ' - '--kind "Blob" ' - '--name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - self.cmd('az datashare dataset show ' '--account-name "{Account1}" ' '--name "{Dataset1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) - + checks=[self.check('containerName', '{Container1}'), + self.check('storageAccountName', '{sa}'), + self.check('kind', 'Container'), + self.check('name', '{Dataset1}')]) + self.cmd('az datashare dataset list ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) + checks=[self.check('[0].containerName', '{Container1}'), + self.check('[0].storageAccountName', '{sa}'), + self.check('[0].kind', 'Container'), + self.check('[0].name', '{Dataset1}')]) + syncSettingContent = {"recurrenceInterval": "Day", "synchronizationTime": "2020-04-05T10:50:00Z", "kind": "ScheduleBased"} + self.kwargs.update({ + 'SyncSettingContent1': syncSettingContent + }) self.cmd('az datashare synchronization-setting create ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}" ' - '--kind "ScheduleBased" ' - '--name "{SynchronizationSettings_2}"', - checks=[]) + '--name "{SynchronizationSettings_2}" ' + '--setting "{SyncSettingContent1}"', + checks=[self.check('kind', 'ScheduleBased'), + self.check('name', '{SynchronizationSettings_2}'), + self.check('recurrenceInterval', 'Day'), + self.check('resourceGroup', '{rg}'), + self.check('synchronizationTime', '2020-04-05T10:50:00+00:00')]) self.cmd('az datashare synchronization-setting show ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}" ' '--name "{SynchronizationSettings_2}"', - checks=[]) + checks=[self.check('kind', 'ScheduleBased'), + self.check('name', '{SynchronizationSettings_2}'), + self.check('recurrenceInterval', 'Day'), + self.check('resourceGroup', '{rg}'), + self.check('synchronizationTime', '2020-04-05T10:50:00+00:00')]) self.cmd('az datashare synchronization-setting list ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) + checks=[self.check('[0].kind', 'ScheduleBased'), + self.check('[0].name', '{SynchronizationSettings_2}'), + self.check('[0].recurrenceInterval', 'Day'), + self.check('[0].resourceGroup', '{rg}'), + self.check('[0].synchronizationTime', '2020-04-05T10:50:00+00:00')]) self.cmd('az datashare list-synchronization ' '--account-name "{Account1}" ' @@ -206,262 +242,393 @@ def test_datashare(self, resource_group): '--share-name "{Share1}"', checks=[]) - self.cmd('az datashare list-synchronization-detail ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - checks=[]) + # self.cmd('az datashare list-synchronization-detail ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}" ' + # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', + # checks=[]) self.cmd('az datashare invitation create ' '--account-name "{Account1}" ' - '--target-email "receiver@microsoft.com" ' + '--target-email "{ConsumerEmail}" ' '--name "{Invitation1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) + checks=[self.check('invitationStatus', 'Pending'), + self.check('name', '{Invitation1}'), + self.check('resourceGroup', '{rg}'), + self.check('targetEmail', '{ConsumerEmail}')]) - self.cmd('az datashare invitation show ' - '--account-name "{Account1}" ' - '--invitation-name "{Invitation1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - self.cmd('az datashare invitation list ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share-subscription create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--invitation-id "12345678-1234-1234-12345678abd" ' - '--source-share-location "eastus2" ' - '--name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare share-subscription show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) + checks=[self.check('[0].invitationStatus', 'Pending'), + self.check('[0].name', '{Invitation1}'), + self.check('[0].resourceGroup', '{rg}'), + self.check('[0].targetEmail', '{ConsumerEmail}')]) - self.cmd('az datashare share-subscription list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}"', - checks=[]) - - self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_3}"', - checks=[]) - - self.cmd('az datashare share-subscription list-synchronization-detail ' + self.cmd('az datashare invitation show ' '--account-name "{Account1}" ' + '--name "{Invitation1}" ' '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_3}" ' - '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - checks=[]) + '--share-name "{Share1}"', + checks=[self.check('invitationStatus', 'Pending'), + self.check('name', '{Invitation1}'), + self.check('resourceGroup', '{rg}'), + self.check('targetEmail', '{ConsumerEmail}')]) + + # Consumer commands + self.cmd('az account set -s "{ConsumerSubscription}"') + datashareAccount2 = self.cmd('az datashare account create ' + '--identity type=SystemAssigned ' + '--location "West US 2" ' + '--name "{Account2}" ' + '--resource-group "{rg2}"', + checks=[self.check('name', '{Account2}'), + self.check('location', 'westus2'), + self.check('resourceGroup', '{rg2}')]).get_output_in_json() + + invitations = self.cmd('az datashare consumer-invitation list', + checks=[self.check('[0].invitationStatus', 'Pending'), + self.check('[0].name', '{Invitation1}'), + self.check('[0].shareName', '{Share1}'), + self.check('[0].providerEmail', '{ProviderEmail}')]).get_output_in_json() + + invitationId = invitations[0]['invitationId'] + sourceShareLocation = invitations[0]['location'] + self.kwargs.update({'InvitationId1': invitationId, + 'Location1': sourceShareLocation}) - self.cmd('az datashare share-subscription cancel-synchronization ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', - checks=[]) + self.cmd('az datashare consumer-invitation show ' + '--invitation-id "{InvitationId1}"', + checks=[self.check('invitationStatus', 'Pending'), + self.check('name', '{Invitation1}'), + self.check('shareName', '{Share1}'), + self.check('providerEmail', '{ProviderEmail}')]) - self.cmd('az datashare share-subscription list-synchronization ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_3}"', - checks=[]) +# self.cmd('az datashare consumer-invitation reject-invitation ' +# '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' +# '--location "East US 2"', +# checks=[]) - self.cmd('az datashare share-subscription synchronize ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--synchronization-mode "Incremental"', + self.cmd('az datashare account wait ' + '--name "{Account2}" ' + '--resource-group "{rg2}" ' + '--created', checks=[]) - self.cmd('az datashare trigger create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--kind "ScheduleBased" ' - '--name "{Trigger1}"', - checks=[]) + self.cmd('az datashare share-subscription create ' + '--account-name "{Account2}" ' + '--resource-group "{rg2}" ' + '--invitation-id "{InvitationId1}" ' + '--source-share-location "{Location1}" ' + '--name "{ShareSubscription1}"', + checks=[self.check('invitationId', '{InvitationId1}'), + self.check('name', '{ShareSubscription1}'), + self.check('resourceGroup', '{rg2}'), + self.check('shareName', '{Share1}'), + self.check('shareKind', 'CopyBased'), + self.check('sourceShareLocation', '{Location1}')]) - self.cmd('az datashare dataset-mapping create ' - '--account-name "{Account1}" ' - '--kind "SqlDWTable" ' - '--name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) + self.cmd('az datashare share-subscription show ' + '--account-name "{Account2}" ' + '--resource-group "{rg2}" ' + '--name "{ShareSubscription1}"', + checks=[self.check('invitationId', '{InvitationId1}'), + self.check('name', '{ShareSubscription1}'), + self.check('resourceGroup', '{rg2}'), + self.check('shareName', '{Share1}'), + self.check('shareKind', 'CopyBased'), + self.check('sourceShareLocation', '{Location1}')]) + self.cmd('az datashare share-subscription list ' + '--account-name "{Account2}" ' + '--resource-group "{rg2}"', + checks=[self.check('[0].invitationId', '{InvitationId1}'), + self.check('[0].name', '{ShareSubscription1}'), + self.check('[0].resourceGroup', '{rg2}'), + self.check('[0].shareName', '{Share1}'), + self.check('[0].shareKind', 'CopyBased'), + self.check('[0].sourceShareLocation', '{Location1}')]) + +# self.cmd('az datashare share-subscription list-synchronization ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscriptions_3}"', +# checks=[]) +# # [ +# # { +# # "durationMs": 23116, +# # "endTime": "2020-04-05T06:30:17.285764+00:00", +# # "message": null, +# # "startTime": "2020-04-05T06:29:54.169764+00:00", +# # "status": "Succeeded", +# # "synchronizationId": "ba5804ed-a4c9-45ca-9691-e30169c8b361", +# # "synchronizationMode": "Incremental" +# # } +# # ] +# self.cmd('az datashare share-subscription list-synchronization-detail ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscriptions_3}" ' +# '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', +# checks=[]) + +# self.cmd('az datashare share-subscription cancel-synchronization ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}" ' +# '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', +# checks=[]) + + sourceDatasets = self.cmd('az datashare consumer-source-dataset list ' + '--account-name "{Account2}" ' + '--resource-group "{rg2}" ' + '--share-subscription-name "{ShareSubscription1}"', + checks=[self.check('[0].dataSetName', '{Dataset1}'), + self.check('[0].dataSetType', 'Container')]).get_output_in_json() + sourceDatasetId = sourceDatasets[0]['dataSetId'] + + storage_account2_json = self.cmd('az storage account show ' + '-n {sa2} ' + '-g {rg2}').get_output_in_json() + + accountPrincipalId2 = datashareAccount2['identity']['principalId'] + self.cmd('az role assignment create ' + '--role "Storage Blob Data Contributor" ' # ba92f5b4-2d11-453d-a403-e96b0029c9fe + '--assignee-object-id {} ' + '--assignee-principal-type ServicePrincipal ' + '--scope {}'.format(accountPrincipalId2, storage_account2_json['id'])) + + datasetMappingContent = {"data_set_id": "{}".format(sourceDatasetId), + "container_name": "{}".format(self.kwargs.get('Container2', '')), + "storage_account_name": "{}".format(self.kwargs.get('sa2', '')), + "kind": "BlobFolder", + "prefix": "{}".format(self.kwargs.get('Dataset1', ''))} + self.kwargs.update({ + 'DatasetMappingContent1': datasetMappingContent + }) self.cmd('az datashare dataset-mapping create ' - '--account-name "{Account1}" ' - '--kind "AdlsGen2File" ' + '--account-name "{Account2}" ' '--name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare dataset-mapping create ' - '--account-name "{Account1}" ' - '--kind "SqlDBTable" ' - '--mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare dataset-mapping create ' - '--account-name "{Account1}" ' - '--kind "Blob" ' - '--mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - self.cmd('az datashare dataset-mapping show ' - '--account-name "{Account1}" ' - '--mapping-name "{DatasetMapping1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) + '--resource-group "{rg2}" ' + '--share-subscription-name "{ShareSubscription1}" ' + '--mapping "{DatasetMappingContent1}"', + checks=[]) +# # { +# # "containerName": "newcontainer", +# # "dataSetId": "2036a39f-add6-4347-9c82-a424dfaf4e8d", +# # "dataSetMappingStatus": "Ok", +# # "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datashare_SampleResourceGroup/providers/Microsoft.DataShare/accounts/cli_test_accounts/shareSubscriptions/cli_test_share_subscriptions/dataSetMappings/cli_test_data_set_mappings", +# # "kind": "BlobFolder", +# # "name": "cli_test_data_set_mappings", +# # "prefix": "bootdiagnostic", +# # "provisioningState": "Succeeded", +# # "resourceGroup": "cli_test_datashare_SampleResourceGroup", +# # "storageAccountName": "fengsharedata", +# # "subscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", +# # "type": "Microsoft.DataShare/DataSetMappings" +# # } + +# self.cmd('az datashare share-subscription synchronize ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}" ' +# '--synchronization-mode "Incremental"', +# checks=[]) +# # { +# # "durationMs": null, +# # "endTime": null, +# # "message": null, +# # "startTime": null, +# # "status": "Queued", +# # "synchronizationId": "ba5804ed-a4c9-45ca-9691-e30169c8b361", +# # "synchronizationMode": "Incremental" +# # } + +# self.cmd('az datashare dataset-mapping show ' +# '--account-name "{Account1}" ' +# '--name "{DatasetMapping1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}"', +# checks=[]) + +# self.cmd('az datashare dataset-mapping list ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}"', +# checks=[]) + +# self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscriptions_3}"', +# checks=[]) +# # [ +# # { +# # "kind": "ScheduleBased", +# # "recurrenceInterval": "Day", +# # "synchronizationTime": "2020-04-03T08:45:35+00:00" +# # } +# # ] + +# # az datashare trigger create --account-name "cli_test_accounts" --resource-group "cli_test_datashare_SampleResourceGroup" --share-subscription-name "cli_test_share_subscriptions" --name "cli_test_triggers" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" +# self.cmd('az datashare trigger create ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}" ' +# '--kind "ScheduleBased" ' +# '--name "{Trigger1}"', +# checks=[]) +# # { +# # "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datashare_SampleResourceGroup/providers/Microsoft.DataShare/accounts/cli_test_accounts/shareSubscriptions/cli_test_share_subscriptions/triggers/cli_test_triggers", +# # "kind": "Trigger", +# # "name": "cli_test_triggers", +# # "properties": { +# # "createdAt": "2020-04-05T08:13:52.1020699Z", +# # "provisioningState": "Creating", +# # "recurrenceInterval": "Day", +# # "synchronizationMode": "Incremental", +# # "synchronizationTime": "2020-04-03T08:45:35Z", +# # "triggerStatus": "Inactive", +# # "userName": "Feng Zhou" +# # }, +# # "resourceGroup": "cli_test_datashare_SampleResourceGroup", +# # "type": "Microsoft.DataShare/Triggers" +# # } + +# self.cmd('az datashare trigger show ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}" ' +# '--trigger-name "{Trigger1}"', +# checks=[]) +# # { +# # "createdAt": "2020-04-05T08:13:52.102069+00:00", +# # "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datashare_SampleResourceGroup/providers/Microsoft.DataShare/accounts/cli_test_accounts/shareSubscriptions/cli_test_share_subscriptions/triggers/cli_test_triggers", +# # "kind": "ScheduleBased", +# # "name": "cli_test_triggers", +# # "provisioningState": "Succeeded", +# # "recurrenceInterval": "Day", +# # "resourceGroup": "cli_test_datashare_SampleResourceGroup", +# # "synchronizationMode": "Incremental", +# # "synchronizationTime": "2020-04-03T08:45:35+00:00", +# # "triggerStatus": "Active", +# # "type": "Microsoft.DataShare/Triggers", +# # "userName": "Feng Zhou" +# # } + +# self.cmd('az datashare trigger list ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}"', +# checks=[]) + +# # Clean up +# self.cmd('az datashare trigger delete ' +# '--account-name "{Account1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}" ' +# '--name "{Trigger1}"', +# checks=[]) +# self.cmd('az datashare dataset-mapping delete ' +# '--account-name "{Account1}" ' +# '--name "{DatasetMapping1}" ' +# '--resource-group "{rg}" ' +# '--share-subscription-name "{ShareSubscription1}"', +# checks=[]) + # self.cmd('az datashare share-subscription delete ' + # '--account-name "{Account1}" ' + # '--resource-group "{rg}" ' + # '--name "{ShareSubscription1}"', + # checks=[]) + + # Provider commands + self.cmd('az account set -s "{ProviderSubscription}"') + providerShareSubscriptions = self.cmd('az datashare provider-share-subscription list ' + '--account-name "{Account1}" ' + '--resource-group "{rg}" ' + '--share-name "{Share1}"', + checks=[self.check('[0].consumerEmail', '{ConsumerEmail}'), + self.check('[0].providerEmail', '{ProviderEmail}'), + self.check('[0].shareSubscriptionStatus', 'Active'), + self.check('[0].name', '{ShareSubscription1}')]).get_output_in_json() + shareSubscriptionObjectId = providerShareSubscriptions[0]['shareSubscriptionObjectId'] + self.kwargs.update({'ProviderShareSubscriptionObjectId': shareSubscriptionObjectId}) - self.cmd('az datashare dataset-mapping list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - self.cmd('az datashare provider-share-subscription show ' '--account-name "{Account1}" ' - '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--share-subscription "{ProviderShareSubscriptionObjectId}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) - self.cmd('az datashare provider-share-subscription list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - self.cmd('az datashare provider-share-subscription reinstate ' - '--account-name "{Account1}" ' - '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) + checks=[self.check('consumerEmail', '{ConsumerEmail}'), + self.check('providerEmail', '{ProviderEmail}'), + self.check('shareSubscriptionStatus', 'Active'), + self.check('name', '{ShareSubscription1}'), + self.check('shareSubscriptionObjectId', '{ProviderShareSubscriptionObjectId}')]) self.cmd('az datashare provider-share-subscription revoke ' '--account-name "{Account1}" ' - '--provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" ' + '--share-subscription "{ProviderShareSubscriptionObjectId}" ' '--resource-group "{rg}" ' '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare trigger show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--trigger-name "{Trigger1}"', - checks=[]) - - - self.cmd('az datashare consumer-invitation show ' - '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' - '--location "East US 2"', - checks=[]) - - self.cmd('az datashare consumer-source-dataset list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscriptions_2}"', - checks=[]) - - - - self.cmd('az datashare trigger list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) - - + checks=[self.check('consumerEmail', '{ConsumerEmail}'), + self.check('providerEmail', '{ProviderEmail}'), + self.check('shareSubscriptionStatus', 'Revoking'), + self.check('name', '{ShareSubscription1}'), + self.check('shareSubscriptionObjectId', '{ProviderShareSubscriptionObjectId}')]) - - - - self.cmd('az datashare consumer-invitation list', - checks=[]) + if self.is_live or self.in_recording: + import time + time.sleep(5) - - - - self.cmd('az datashare consumer-invitation reject-invitation ' - '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' - '--location "East US 2"', - checks=[]) - - self.cmd('az datashare dataset-mapping delete ' + self.cmd('az datashare provider-share-subscription reinstate ' '--account-name "{Account1}" ' - '--name "{DatasetMapping1}" ' + '--share-subscription "{ProviderShareSubscriptionObjectId}" ' '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[]) + '--share-name "{Share1}"', + checks=[self.check('consumerEmail', '{ConsumerEmail}'), + self.check('providerEmail', '{ProviderEmail}'), + self.check('shareSubscriptionStatus', 'Active'), + self.check('name', '{ShareSubscription1}'), + self.check('shareSubscriptionObjectId', '{ProviderShareSubscriptionObjectId}')]) + # Clean up self.cmd('az datashare synchronization-setting delete ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' '--share-name "{Share1}" ' - '-name "{SynchronizationSettings_2}"', + '--name "{SynchronizationSettings_2}" ' + '--yes', checks=[]) - self.cmd('az datashare trigger delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--name "{Trigger1}"', - checks=[]) - - self.cmd('az datashare invitation delete ' - '--account-name "{Account1}" ' - '--name "{Invitation1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[]) - - self.cmd('az datashare share-subscription delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--name "{ShareSubscription1}"', - checks=[]) + # self.cmd('az datashare invitation delete ' + # '--account-name "{Account1}" ' + # '--name "{Invitation1}" ' + # '--resource-group "{rg}" ' + # '--share-name "{Share1}"', + # checks=[]) self.cmd('az datashare dataset delete ' '--account-name "{Account1}" ' '--name "{Dataset1}" ' '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--share-name "{Share1}" ' + '--yes', checks=[]) - self.cmd('az datashare share delete ' + self.cmd('az datashare delete ' '--account-name "{Account1}" ' '--resource-group "{rg}" ' - '--name "{Share1}"', + '--name "{Share1}" ' + '--yes', checks=[]) self.cmd('az datashare account delete ' '--name "{Account1}" ' '--resource-group "{rg}" ' - '--no-wait', - checks=[]) - - self.cmd('az datashare account wait ' - '--name "{Account1}" ' - '--resource-group "{rg}" ' - '--deleted', + '--no-wait ' + '--yes', checks=[]) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py b/src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py index 1a27f2bab3a..88932a1125e 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/_configuration.py @@ -14,7 +14,8 @@ VERSION = "unknown" class DataShareManagementClientConfiguration(Configuration): - """Configuration for DataShareManagementClient + """Configuration for DataShareManagementClient. + Note that all parameters used to create this instance are saved as instance attributes. @@ -40,8 +41,8 @@ def __init__( self.credential = credential self.subscription_id = subscription_id self.api_version = "2019-11-01" + kwargs.setdefault('sdk_moniker', 'datasharemanagementclient/{}'.format(VERSION)) self._configure(**kwargs) - self.user_agent_policy.add_user_agent('azsdk-python-datasharemanagementclient/{}'.format(VERSION)) def _configure( self, diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py index 1c3a7221af6..a5c30f8ec3f 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/_configuration_async.py @@ -14,7 +14,8 @@ VERSION = "unknown" class DataShareManagementClientConfiguration(Configuration): - """Configuration for DataShareManagementClient + """Configuration for DataShareManagementClient. + Note that all parameters used to create this instance are saved as instance attributes. @@ -39,8 +40,8 @@ def __init__( self.credential = credential self.subscription_id = subscription_id self.api_version = "2019-11-01" + kwargs.setdefault('sdk_moniker', 'datasharemanagementclient/{}'.format(VERSION)) self._configure(**kwargs) - self.user_agent_policy.add_user_agent('azsdk-python-datasharemanagementclient/{}'.format(VERSION)) def _configure( self, diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py index 9df82e713de..5c293630594 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_account_operations_async.py @@ -9,11 +9,10 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models @@ -23,7 +22,8 @@ class AccountOperations: """AccountOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -58,10 +58,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: Account or the result of cls(response) :rtype: ~data_share_management_client.models.Account - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.Account"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -74,11 +74,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -88,7 +88,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Account', pipeline_response) @@ -107,11 +108,12 @@ async def _create_initial( tags: Optional[Dict[str, str]] = None, **kwargs ) -> "models.Account": - cls: ClsType["models.Account"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - account = models.Account(location=location, tags=tags, identity=identity) + _account = models.Account(location=location, tags=tags, identity=identity) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._create_initial.metadata['url'] @@ -123,25 +125,27 @@ async def _create_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(account, 'Account') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_account, 'Account') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -173,7 +177,7 @@ async def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param identity: Identity of resource. + :param identity: Identity Info on the Account. :type identity: ~data_share_management_client.models.Identity :param location: Location of the azure resource. :type location: str @@ -186,10 +190,10 @@ async def create( :return: An instance of LROPoller that returns Account :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Account] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.Account"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] raw_result = await self._create_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -211,7 +215,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -223,8 +227,8 @@ async def _delete_initial( account_name: str, **kwargs ) -> "models.OperationResponse": - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -237,11 +241,11 @@ async def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -251,7 +255,8 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -284,10 +289,10 @@ async def delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = await self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -306,7 +311,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -332,13 +337,14 @@ async def update( :keyword callable cls: A custom type or function that will be passed the direct response :return: Account or the result of cls(response) :rtype: ~data_share_management_client.models.Account - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.Account"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - account_update_parameters = models.AccountUpdateParameters(tags=tags) + _account_update_parameters = models.AccountUpdateParameters(tags=tags) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.update.metadata['url'] @@ -350,25 +356,27 @@ async def update( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(account_update_parameters, 'AccountUpdateParameters') # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_account_update_parameters, 'AccountUpdateParameters') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Account', pipeline_response) @@ -392,10 +400,10 @@ def list_by_subscription( :keyword callable cls: A custom type or function that will be passed the direct response :return: AccountList or the result of cls(response) :rtype: ~data_share_management_client.models.AccountList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.AccountList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.AccountList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -410,13 +418,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -428,7 +436,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -437,8 +445,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -464,10 +473,10 @@ def list_by_resource_group( :keyword callable cls: A custom type or function that will be passed the direct response :return: AccountList or the result of cls(response) :rtype: ~data_share_management_client.models.AccountList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.AccountList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.AccountList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -483,13 +492,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -501,7 +510,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -510,8 +519,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py index 20f0863e494..97d9f26ea32 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_invitation_operations_async.py @@ -9,7 +9,7 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest @@ -21,7 +21,8 @@ class ConsumerInvitationOperations: """ConsumerInvitationOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -56,13 +57,14 @@ async def reject_invitation( :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerInvitation or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerInvitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ConsumerInvitation"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerInvitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - invitation = models.ConsumerInvitation(invitation_id=invitation_id) + _invitation = models.ConsumerInvitation(invitation_id=invitation_id) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.reject_invitation.metadata['url'] @@ -72,25 +74,27 @@ async def reject_invitation( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(invitation, 'ConsumerInvitation') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_invitation, 'ConsumerInvitation') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ConsumerInvitation', pipeline_response) @@ -117,10 +121,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerInvitation or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerInvitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ConsumerInvitation"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerInvitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -132,11 +136,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -146,7 +150,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ConsumerInvitation', pipeline_response) @@ -165,15 +170,15 @@ def list_invitation( List the invitations. - :param skip_token: Continuation token. + :param skip_token: The continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerInvitationList or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerInvitationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ConsumerInvitationList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerInvitationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -184,13 +189,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -202,7 +207,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -211,8 +216,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py index abf8b7bce8f..65443ffd30b 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_consumer_source_data_set_operations_async.py @@ -9,7 +9,7 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest @@ -21,7 +21,8 @@ class ConsumerSourceDataSetOperations: """ConsumerSourceDataSetOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -62,10 +63,10 @@ def list_by_share_subscription( :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerSourceDataSetList or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerSourceDataSetList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ConsumerSourceDataSetList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerSourceDataSetList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -83,13 +84,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -101,7 +102,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -110,8 +111,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py index 6898ca6b0f5..acf0170149b 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_mapping_operations_async.py @@ -9,7 +9,7 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest @@ -21,7 +21,8 @@ class DataSetMappingOperations: """DataSetMappingOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -62,10 +63,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSetMapping or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetMapping - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.DataSetMapping"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetMapping"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -80,11 +81,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -94,7 +95,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('DataSetMapping', pipeline_response) @@ -110,7 +112,7 @@ async def create( account_name: str, share_subscription_name: str, data_set_mapping_name: str, - kind: Union[str, "models.Kind"], + data_set_mapping: "models.DataSetMapping", **kwargs ) -> "models.DataSetMapping": """Create a DataSetMapping. @@ -122,22 +124,22 @@ async def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription which will hold the data set + sink. :type share_subscription_name: str - :param data_set_mapping_name: The name of the dataSetMapping. + :param data_set_mapping_name: The name of the data set mapping to be created. :type data_set_mapping_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param data_set_mapping: Destination data set configuration details. + :type data_set_mapping: ~data_share_management_client.models.DataSetMapping :keyword callable cls: A custom type or function that will be passed the direct response - :return: DataSetMapping or DataSetMapping or the result of cls(response) + :return: DataSetMapping or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetMapping or ~data_share_management_client.models.DataSetMapping - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.DataSetMapping"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) - - data_set_mapping = models.DataSetMapping(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetMapping"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -151,25 +153,27 @@ async def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(data_set_mapping, 'DataSetMapping') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -207,10 +211,10 @@ async def delete( :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType[None] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -225,11 +229,11 @@ async def delete( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) @@ -238,7 +242,8 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) if cls: return cls(pipeline_response, None, {}) @@ -261,17 +266,17 @@ def list_by_share_subscription( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param skip_token: Continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSetMappingList or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetMappingList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.DataSetMappingList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetMappingList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -289,13 +294,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -307,7 +312,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -316,8 +321,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py index a336706875a..077f29e0407 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_data_set_operations_async.py @@ -9,11 +9,10 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models @@ -23,7 +22,8 @@ class DataSetOperations: """DataSetOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -64,10 +64,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSet or the result of cls(response) :rtype: ~data_share_management_client.models.DataSet - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.DataSet"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSet"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -82,11 +82,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -96,7 +96,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('DataSet', pipeline_response) @@ -112,7 +113,7 @@ async def create( account_name: str, share_name: str, data_set_name: str, - kind: Union[str, "models.Kind"], + data_set: "models.DataSet", **kwargs ) -> "models.DataSet": """Create a DataSet. @@ -123,22 +124,21 @@ async def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to add the data set to. :type share_name: str :param data_set_name: The name of the dataSet. :type data_set_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param data_set: The new data set information. + :type data_set: ~data_share_management_client.models.DataSet :keyword callable cls: A custom type or function that will be passed the direct response - :return: DataSet or DataSet or the result of cls(response) + :return: DataSet or the result of cls(response) :rtype: ~data_share_management_client.models.DataSet or ~data_share_management_client.models.DataSet - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.DataSet"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) - - data_set = models.DataSet(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSet"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -152,25 +152,27 @@ async def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(data_set, 'DataSet') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -193,8 +195,8 @@ async def _delete_initial( data_set_name: str, **kwargs ) -> None: - cls: ClsType[None] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -209,11 +211,11 @@ async def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) @@ -222,7 +224,8 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) if cls: return cls(pipeline_response, None, {}) @@ -256,10 +259,10 @@ async def delete( :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType[None] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] raw_result = await self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -277,7 +280,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -301,15 +304,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSetList or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.DataSetList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -327,13 +330,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -345,7 +348,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -354,8 +357,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py index a514fda2cc0..c53ea9c8e86 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_invitation_operations_async.py @@ -9,7 +9,7 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest @@ -21,7 +21,8 @@ class InvitationOperations: """InvitationOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -62,10 +63,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: Invitation or the result of cls(response) :rtype: ~data_share_management_client.models.Invitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.Invitation"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Invitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -80,11 +81,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -94,7 +95,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Invitation', pipeline_response) @@ -123,7 +125,7 @@ async def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to send the invitation for. :type share_name: str :param invitation_name: The name of the invitation. :type invitation_name: str @@ -136,15 +138,16 @@ async def create( invitations to specific users or applications in an AD tenant. :type target_object_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: Invitation or Invitation or the result of cls(response) + :return: Invitation or the result of cls(response) :rtype: ~data_share_management_client.models.Invitation or ~data_share_management_client.models.Invitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.Invitation"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Invitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - invitation = models.Invitation(target_active_directory_id=target_active_directory_id, target_email=target_email, target_object_id=target_object_id) + _invitation = models.Invitation(target_active_directory_id=target_active_directory_id, target_email=target_email, target_object_id=target_object_id) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -158,25 +161,27 @@ async def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(invitation, 'Invitation') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_invitation, 'Invitation') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -214,10 +219,10 @@ async def delete( :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType[None] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -232,11 +237,11 @@ async def delete( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) @@ -245,7 +250,8 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) if cls: return cls(pipeline_response, None, {}) @@ -270,15 +276,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: The continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: InvitationList or the result of cls(response) :rtype: ~data_share_management_client.models.InvitationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.InvitationList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.InvitationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -296,13 +302,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -314,7 +320,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -323,8 +329,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py index 98ef7e89d4f..397c94d67b8 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_operation_operations_async.py @@ -9,7 +9,7 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest @@ -21,7 +21,8 @@ class OperationOperations: """OperationOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -50,10 +51,10 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: OperationList or the result of cls(response) :rtype: ~data_share_management_client.models.OperationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.OperationList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -64,11 +65,11 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -80,7 +81,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -89,8 +90,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py index 10d4e876a9a..e516dc2824a 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_provider_share_subscription_operations_async.py @@ -9,11 +9,10 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models @@ -23,7 +22,8 @@ class ProviderShareSubscriptionOperations: """ProviderShareSubscriptionOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -64,10 +64,10 @@ async def get_by_share( :keyword callable cls: A custom type or function that will be passed the direct response :return: ProviderShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ProviderShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -82,11 +82,11 @@ async def get_by_share( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -96,7 +96,8 @@ async def get_by_share( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) @@ -124,15 +125,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: Continuation Token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ProviderShareSubscriptionList or the result of cls(response) :rtype: ~data_share_management_client.models.ProviderShareSubscriptionList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ProviderShareSubscriptionList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscriptionList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -150,13 +151,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -168,7 +169,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -177,8 +178,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -195,8 +197,8 @@ async def _revoke_initial( provider_share_subscription_id: str, **kwargs ) -> "models.ProviderShareSubscription": - cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -211,11 +213,11 @@ async def _revoke_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -225,7 +227,8 @@ async def _revoke_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -267,10 +270,10 @@ async def revoke( :return: An instance of LROPoller that returns ProviderShareSubscription :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ProviderShareSubscription] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] raw_result = await self._revoke_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -291,7 +294,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -320,10 +323,10 @@ async def reinstate( :keyword callable cls: A custom type or function that will be passed the direct response :return: ProviderShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ProviderShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ProviderShareSubscription"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -338,11 +341,11 @@ async def reinstate( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -352,7 +355,8 @@ async def reinstate( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py index 09710475c99..0c7c5ef51f1 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_operations_async.py @@ -10,11 +10,10 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models @@ -24,7 +23,8 @@ class ShareOperations: """ShareOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -57,15 +57,15 @@ async def get( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to retrieve. :type share_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Share or the result of cls(response) :rtype: ~data_share_management_client.models.Share - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.Share"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Share"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -79,11 +79,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -93,7 +93,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Share', pipeline_response) @@ -130,15 +131,16 @@ async def create( :param terms: Share terms. :type terms: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: Share or Share or the result of cls(response) + :return: Share or the result of cls(response) :rtype: ~data_share_management_client.models.Share or ~data_share_management_client.models.Share - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.Share"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Share"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - share = models.Share(description=description, share_kind=share_kind, terms=terms) + _share = models.Share(description=description, share_kind=share_kind, terms=terms) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -151,25 +153,27 @@ async def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share, 'Share') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share, 'Share') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -191,8 +195,8 @@ async def _delete_initial( share_name: str, **kwargs ) -> "models.OperationResponse": - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -206,11 +210,11 @@ async def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -220,7 +224,8 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -256,10 +261,10 @@ async def delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = await self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -279,7 +284,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -300,15 +305,15 @@ def list_by_account( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param skip_token: Continuation token. + :param skip_token: Continuation Token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ShareList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -325,13 +330,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -343,7 +348,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -352,8 +357,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -385,10 +391,10 @@ def list_synchronization( :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSynchronizationList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSynchronizationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ShareSynchronizationList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSynchronizationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -406,13 +412,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -424,7 +430,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -433,8 +439,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -493,12 +500,13 @@ def list_synchronization_detail( :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationDetailsList or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationDetailsList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.SynchronizationDetailsList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) - share_synchronization = models.ShareSynchronization(consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationDetailsList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) + _share_synchronization = models.ShareSynchronization(consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) api_version = "2019-11-01" + content_type = "application/json" def prepare_request(next_link=None): if not next_link: @@ -515,21 +523,22 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_synchronization, 'ShareSynchronization') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_synchronization, 'ShareSynchronization') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + return request async def extract_data(pipeline_response): @@ -537,7 +546,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -546,8 +555,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py index 68df8d65aed..4416c305e0e 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_share_subscription_operations_async.py @@ -9,11 +9,10 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models @@ -23,7 +22,8 @@ class ShareSubscriptionOperations: """ShareSubscriptionOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -61,10 +61,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ShareSubscription"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -78,11 +78,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -92,7 +92,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ShareSubscription', pipeline_response) @@ -126,15 +127,16 @@ async def create( :param source_share_location: Source share location. :type source_share_location: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ShareSubscription or ShareSubscription or the result of cls(response) + :return: ShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscription or ~data_share_management_client.models.ShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ShareSubscription"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - share_subscription = models.ShareSubscription(invitation_id=invitation_id, source_share_location=source_share_location) + _share_subscription = models.ShareSubscription(invitation_id=invitation_id, source_share_location=source_share_location) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -147,25 +149,27 @@ async def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_subscription, 'ShareSubscription') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_subscription, 'ShareSubscription') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -187,8 +191,8 @@ async def _delete_initial( share_subscription_name: str, **kwargs ) -> "models.OperationResponse": - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -202,11 +206,11 @@ async def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -216,7 +220,8 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -252,10 +257,10 @@ async def delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = await self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -275,7 +280,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -296,15 +301,15 @@ def list_by_account( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param skip_token: Continuation token. + :param skip_token: Continuation Token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSubscriptionList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscriptionList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ShareSubscriptionList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -321,13 +326,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -339,7 +344,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -348,8 +353,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -381,10 +387,10 @@ def list_source_share_synchronization_setting( :keyword callable cls: A custom type or function that will be passed the direct response :return: SourceShareSynchronizationSettingList or the result of cls(response) :rtype: ~data_share_management_client.models.SourceShareSynchronizationSettingList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.SourceShareSynchronizationSettingList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.SourceShareSynchronizationSettingList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -402,13 +408,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -420,7 +426,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -429,8 +435,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -455,17 +462,17 @@ def list_synchronization( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param skip_token: Continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSubscriptionSynchronizationList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscriptionSynchronizationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.ShareSubscriptionSynchronizationList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronizationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -483,13 +490,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -501,7 +508,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -510,8 +517,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -537,7 +545,7 @@ def list_synchronization_detail( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param synchronization_id: Synchronization id. :type synchronization_id: str @@ -546,12 +554,13 @@ def list_synchronization_detail( :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationDetailsList or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationDetailsList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.SynchronizationDetailsList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) - share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationDetailsList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) + _share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) api_version = "2019-11-01" + content_type = "application/json" def prepare_request(next_link=None): if not next_link: @@ -568,21 +577,22 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_subscription_synchronization, 'ShareSubscriptionSynchronization') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + return request async def extract_data(pipeline_response): @@ -590,7 +600,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -599,8 +609,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -617,11 +628,12 @@ async def _synchronize_initial( synchronization_mode: Optional[Union[str, "models.SynchronizationMode"]] = None, **kwargs ) -> "models.ShareSubscriptionSynchronization": - cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - synchronize = models.Synchronize(synchronization_mode=synchronization_mode) + _synchronize = models.Synchronize(synchronization_mode=synchronization_mode) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._synchronize_initial.metadata['url'] @@ -634,25 +646,27 @@ async def _synchronize_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(synchronize, 'Synchronize') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_synchronize, 'Synchronize') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -683,9 +697,10 @@ async def synchronize( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of share subscription. :type share_subscription_name: str - :param synchronization_mode: Synchronization mode. + :param synchronization_mode: Mode of synchronization used in triggers and snapshot sync. + Incremental by default. :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode :keyword callable cls: A custom type or function that will be passed the direct response :keyword polling: True for ARMPolling, False for no polling, or a @@ -694,10 +709,10 @@ async def synchronize( :return: An instance of LROPoller that returns ShareSubscriptionSynchronization :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] raw_result = await self._synchronize_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -718,7 +733,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -732,11 +747,12 @@ async def _cancel_synchronization_initial( synchronization_id: str, **kwargs ) -> "models.ShareSubscriptionSynchronization": - cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + _share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._cancel_synchronization_initial.metadata['url'] @@ -749,25 +765,27 @@ async def _cancel_synchronization_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_subscription_synchronization, 'ShareSubscriptionSynchronization') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -809,10 +827,10 @@ async def cancel_synchronization( :return: An instance of LROPoller that returns ShareSubscriptionSynchronization :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.ShareSubscriptionSynchronization"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] raw_result = await self._cancel_synchronization_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -833,7 +851,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py index 63c19ba7a8e..78a95bd6159 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_synchronization_setting_operations_async.py @@ -9,11 +9,10 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models @@ -23,7 +22,8 @@ class SynchronizationSettingOperations: """SynchronizationSettingOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -64,10 +64,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationSetting or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationSetting - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.SynchronizationSetting"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationSetting"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -82,11 +82,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -96,7 +96,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SynchronizationSetting', pipeline_response) @@ -112,7 +113,7 @@ async def create( account_name: str, share_name: str, synchronization_setting_name: str, - kind: Union[str, "models.Kind"], + synchronization_setting: "models.SynchronizationSetting", **kwargs ) -> "models.SynchronizationSetting": """Create or update a synchronizationSetting. @@ -123,22 +124,21 @@ async def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to add the synchronization setting to. :type share_name: str :param synchronization_setting_name: The name of the synchronizationSetting. :type synchronization_setting_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param synchronization_setting: The new synchronization setting information. + :type synchronization_setting: ~data_share_management_client.models.SynchronizationSetting :keyword callable cls: A custom type or function that will be passed the direct response - :return: SynchronizationSetting or SynchronizationSetting or the result of cls(response) + :return: SynchronizationSetting or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationSetting or ~data_share_management_client.models.SynchronizationSetting - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.SynchronizationSetting"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) - - synchronization_setting = models.SynchronizationSetting(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationSetting"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -152,25 +152,27 @@ async def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(synchronization_setting, 'SynchronizationSetting') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -193,8 +195,8 @@ async def _delete_initial( synchronization_setting_name: str, **kwargs ) -> "models.OperationResponse": - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -209,11 +211,11 @@ async def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -223,7 +225,8 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -253,7 +256,7 @@ async def delete( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param synchronization_setting_name: The name of the synchronizationSetting. + :param synchronization_setting_name: The name of the synchronizationSetting . :type synchronization_setting_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword polling: True for ARMPolling, False for no polling, or a @@ -262,10 +265,10 @@ async def delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = await self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -286,7 +289,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -310,15 +313,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationSettingList or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationSettingList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.SynchronizationSettingList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationSettingList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -336,13 +339,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -354,7 +357,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -363,8 +366,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py index a8d96d3327a..18598bf412e 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/aio/operations_async/_trigger_operations_async.py @@ -9,11 +9,10 @@ import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncNoPolling, AsyncPollingMethod, async_poller -from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling from ... import models @@ -23,7 +22,8 @@ class TriggerOperations: """TriggerOperations async operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -64,10 +64,10 @@ async def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: Trigger or the result of cls(response) :rtype: ~data_share_management_client.models.Trigger - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.Trigger"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Trigger"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -82,11 +82,11 @@ async def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -96,7 +96,8 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Trigger', pipeline_response) @@ -112,14 +113,13 @@ async def _create_initial( account_name: str, share_subscription_name: str, trigger_name: str, - kind: Union[str, "models.Kind"], + trigger: "models.Trigger", **kwargs ) -> "models.Trigger": - cls: ClsType["models.Trigger"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) - - trigger = models.Trigger(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.Trigger"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._create_initial.metadata['url'] @@ -133,25 +133,27 @@ async def _create_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(trigger, 'Trigger') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -172,7 +174,7 @@ async def create( account_name: str, share_subscription_name: str, trigger_name: str, - kind: Union[str, "models.Kind"], + trigger: "models.Trigger", **kwargs ) -> "models.Trigger": """Create a Trigger. @@ -183,12 +185,13 @@ async def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription which will hold the data set + sink. :type share_subscription_name: str :param trigger_name: The name of the trigger. :type trigger_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param trigger: Trigger details. + :type trigger: ~data_share_management_client.models.Trigger :keyword callable cls: A custom type or function that will be passed the direct response :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy @@ -196,16 +199,16 @@ async def create( :return: An instance of LROPoller that returns Trigger :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Trigger] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.Trigger"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.Trigger"] raw_result = await self._create_initial( resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name, - kind=kind, + trigger=trigger, cls=lambda x,y,z: x, **kwargs ) @@ -221,7 +224,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -235,8 +238,8 @@ async def _delete_initial( trigger_name: str, **kwargs ) -> "models.OperationResponse": - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -251,11 +254,11 @@ async def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -265,7 +268,8 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -304,10 +308,10 @@ async def delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling: Union[bool, AsyncPollingMethod] = kwargs.pop('polling', True) - cls: ClsType["models.OperationResponse"] = kwargs.pop('cls', None ) + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = await self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -328,7 +332,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling return await async_poller(self._client, raw_result, get_long_running_output, polling_method) @@ -350,17 +354,17 @@ def list_by_share_subscription( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param skip_token: Continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerList or the result of cls(response) :rtype: ~data_share_management_client.models.TriggerList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls: ClsType["models.TriggerList"] = kwargs.pop('cls', None ) - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -378,13 +382,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters: Dict[str, Any] = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters: Dict[str, Any] = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -396,7 +400,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, AsyncList(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -405,8 +409,9 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py index 687379bca3a..237bc58e2ae 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/__init__.py @@ -9,100 +9,67 @@ try: from ._models_py3 import Account from ._models_py3 import AccountList - from ._models_py3 import AccountProperties from ._models_py3 import AccountUpdateParameters from ._models_py3 import AdlsGen1FileDataSet - from ._models_py3 import AdlsGen1FileProperties from ._models_py3 import AdlsGen1FolderDataSet - from ._models_py3 import AdlsGen1FolderProperties from ._models_py3 import AdlsGen2FileDataSet from ._models_py3 import AdlsGen2FileDataSetMapping - from ._models_py3 import AdlsGen2FileDataSetMappingProperties - from ._models_py3 import AdlsGen2FileProperties from ._models_py3 import AdlsGen2FileSystemDataSet from ._models_py3 import AdlsGen2FileSystemDataSetMapping - from ._models_py3 import AdlsGen2FileSystemDataSetMappingProperties - from ._models_py3 import AdlsGen2FileSystemProperties from ._models_py3 import AdlsGen2FolderDataSet from ._models_py3 import AdlsGen2FolderDataSetMapping - from ._models_py3 import AdlsGen2FolderDataSetMappingProperties - from ._models_py3 import AdlsGen2FolderProperties from ._models_py3 import BlobContainerDataSet from ._models_py3 import BlobContainerDataSetMapping - from ._models_py3 import BlobContainerMappingProperties - from ._models_py3 import BlobContainerProperties from ._models_py3 import BlobDataSet from ._models_py3 import BlobDataSetMapping from ._models_py3 import BlobFolderDataSet from ._models_py3 import BlobFolderDataSetMapping - from ._models_py3 import BlobFolderMappingProperties - from ._models_py3 import BlobFolderProperties - from ._models_py3 import BlobMappingProperties - from ._models_py3 import BlobProperties from ._models_py3 import ConsumerInvitation from ._models_py3 import ConsumerInvitationList - from ._models_py3 import ConsumerInvitationProperties from ._models_py3 import ConsumerSourceDataSet from ._models_py3 import ConsumerSourceDataSetList - from ._models_py3 import ConsumerSourceDataSetProperties from ._models_py3 import DataSet from ._models_py3 import DataSetList from ._models_py3 import DataSetMapping from ._models_py3 import DataSetMappingList - from ._models_py3 import DataShareError, DataShareErrorException + from ._models_py3 import DataShareError from ._models_py3 import DataShareErrorInfo from ._models_py3 import DefaultDto from ._models_py3 import DimensionProperties from ._models_py3 import Identity from ._models_py3 import Invitation from ._models_py3 import InvitationList - from ._models_py3 import InvitationProperties from ._models_py3 import KustoClusterDataSet from ._models_py3 import KustoClusterDataSetMapping - from ._models_py3 import KustoClusterDataSetMappingProperties - from ._models_py3 import KustoClusterDataSetProperties from ._models_py3 import KustoDatabaseDataSet from ._models_py3 import KustoDatabaseDataSetMapping - from ._models_py3 import KustoDatabaseDataSetMappingProperties - from ._models_py3 import KustoDatabaseDataSetProperties from ._models_py3 import OperationList from ._models_py3 import OperationMetaLogSpecification from ._models_py3 import OperationMetaMetricSpecification - from ._models_py3 import OperationMetaPropertyInfo from ._models_py3 import OperationMetaServiceSpecification from ._models_py3 import OperationModel from ._models_py3 import OperationModelProperties from ._models_py3 import OperationResponse from ._models_py3 import ProviderShareSubscription from ._models_py3 import ProviderShareSubscriptionList - from ._models_py3 import ProviderShareSubscriptionProperties from ._models_py3 import ProxyDto - from ._models_py3 import ScheduledSourceShareSynchronizationSettingProperties from ._models_py3 import ScheduledSourceSynchronizationSetting from ._models_py3 import ScheduledSynchronizationSetting - from ._models_py3 import ScheduledSynchronizationSettingProperties from ._models_py3 import ScheduledTrigger - from ._models_py3 import ScheduledTriggerProperties from ._models_py3 import Share from ._models_py3 import ShareList - from ._models_py3 import ShareProperties from ._models_py3 import ShareSubscription from ._models_py3 import ShareSubscriptionList - from ._models_py3 import ShareSubscriptionProperties from ._models_py3 import ShareSubscriptionSynchronization from ._models_py3 import ShareSubscriptionSynchronizationList from ._models_py3 import ShareSynchronization from ._models_py3 import ShareSynchronizationList from ._models_py3 import SourceShareSynchronizationSetting from ._models_py3 import SourceShareSynchronizationSettingList - from ._models_py3 import SqlDbTableDataSet - from ._models_py3 import SqlDbTableDataSetMapping - from ._models_py3 import SqlDbTableDataSetMappingProperties - from ._models_py3 import SqlDbTableProperties + from ._models_py3 import SqlDBTableDataSet + from ._models_py3 import SqlDBTableDataSetMapping from ._models_py3 import SqlDwTableDataSet from ._models_py3 import SqlDwTableDataSetMapping - from ._models_py3 import SqlDwTableDataSetMappingProperties - from ._models_py3 import SqlDwTableProperties from ._models_py3 import SynchronizationDetails from ._models_py3 import SynchronizationDetailsList from ._models_py3 import SynchronizationSetting @@ -113,100 +80,67 @@ except (SyntaxError, ImportError): from ._models import Account # type: ignore from ._models import AccountList # type: ignore - from ._models import AccountProperties # type: ignore from ._models import AccountUpdateParameters # type: ignore from ._models import AdlsGen1FileDataSet # type: ignore - from ._models import AdlsGen1FileProperties # type: ignore from ._models import AdlsGen1FolderDataSet # type: ignore - from ._models import AdlsGen1FolderProperties # type: ignore from ._models import AdlsGen2FileDataSet # type: ignore from ._models import AdlsGen2FileDataSetMapping # type: ignore - from ._models import AdlsGen2FileDataSetMappingProperties # type: ignore - from ._models import AdlsGen2FileProperties # type: ignore from ._models import AdlsGen2FileSystemDataSet # type: ignore from ._models import AdlsGen2FileSystemDataSetMapping # type: ignore - from ._models import AdlsGen2FileSystemDataSetMappingProperties # type: ignore - from ._models import AdlsGen2FileSystemProperties # type: ignore from ._models import AdlsGen2FolderDataSet # type: ignore from ._models import AdlsGen2FolderDataSetMapping # type: ignore - from ._models import AdlsGen2FolderDataSetMappingProperties # type: ignore - from ._models import AdlsGen2FolderProperties # type: ignore from ._models import BlobContainerDataSet # type: ignore from ._models import BlobContainerDataSetMapping # type: ignore - from ._models import BlobContainerMappingProperties # type: ignore - from ._models import BlobContainerProperties # type: ignore from ._models import BlobDataSet # type: ignore from ._models import BlobDataSetMapping # type: ignore from ._models import BlobFolderDataSet # type: ignore from ._models import BlobFolderDataSetMapping # type: ignore - from ._models import BlobFolderMappingProperties # type: ignore - from ._models import BlobFolderProperties # type: ignore - from ._models import BlobMappingProperties # type: ignore - from ._models import BlobProperties # type: ignore from ._models import ConsumerInvitation # type: ignore from ._models import ConsumerInvitationList # type: ignore - from ._models import ConsumerInvitationProperties # type: ignore from ._models import ConsumerSourceDataSet # type: ignore from ._models import ConsumerSourceDataSetList # type: ignore - from ._models import ConsumerSourceDataSetProperties # type: ignore from ._models import DataSet # type: ignore from ._models import DataSetList # type: ignore from ._models import DataSetMapping # type: ignore from ._models import DataSetMappingList # type: ignore - from ._models import DataShareError, DataShareErrorException # type: ignore + from ._models import DataShareError # type: ignore from ._models import DataShareErrorInfo # type: ignore from ._models import DefaultDto # type: ignore from ._models import DimensionProperties # type: ignore from ._models import Identity # type: ignore from ._models import Invitation # type: ignore from ._models import InvitationList # type: ignore - from ._models import InvitationProperties # type: ignore from ._models import KustoClusterDataSet # type: ignore from ._models import KustoClusterDataSetMapping # type: ignore - from ._models import KustoClusterDataSetMappingProperties # type: ignore - from ._models import KustoClusterDataSetProperties # type: ignore from ._models import KustoDatabaseDataSet # type: ignore from ._models import KustoDatabaseDataSetMapping # type: ignore - from ._models import KustoDatabaseDataSetMappingProperties # type: ignore - from ._models import KustoDatabaseDataSetProperties # type: ignore from ._models import OperationList # type: ignore from ._models import OperationMetaLogSpecification # type: ignore from ._models import OperationMetaMetricSpecification # type: ignore - from ._models import OperationMetaPropertyInfo # type: ignore from ._models import OperationMetaServiceSpecification # type: ignore from ._models import OperationModel # type: ignore from ._models import OperationModelProperties # type: ignore from ._models import OperationResponse # type: ignore from ._models import ProviderShareSubscription # type: ignore from ._models import ProviderShareSubscriptionList # type: ignore - from ._models import ProviderShareSubscriptionProperties # type: ignore from ._models import ProxyDto # type: ignore - from ._models import ScheduledSourceShareSynchronizationSettingProperties # type: ignore from ._models import ScheduledSourceSynchronizationSetting # type: ignore from ._models import ScheduledSynchronizationSetting # type: ignore - from ._models import ScheduledSynchronizationSettingProperties # type: ignore from ._models import ScheduledTrigger # type: ignore - from ._models import ScheduledTriggerProperties # type: ignore from ._models import Share # type: ignore from ._models import ShareList # type: ignore - from ._models import ShareProperties # type: ignore from ._models import ShareSubscription # type: ignore from ._models import ShareSubscriptionList # type: ignore - from ._models import ShareSubscriptionProperties # type: ignore from ._models import ShareSubscriptionSynchronization # type: ignore from ._models import ShareSubscriptionSynchronizationList # type: ignore from ._models import ShareSynchronization # type: ignore from ._models import ShareSynchronizationList # type: ignore from ._models import SourceShareSynchronizationSetting # type: ignore from ._models import SourceShareSynchronizationSettingList # type: ignore - from ._models import SqlDbTableDataSet # type: ignore - from ._models import SqlDbTableDataSetMapping # type: ignore - from ._models import SqlDbTableDataSetMappingProperties # type: ignore - from ._models import SqlDbTableProperties # type: ignore + from ._models import SqlDBTableDataSet # type: ignore + from ._models import SqlDBTableDataSetMapping # type: ignore from ._models import SqlDwTableDataSet # type: ignore from ._models import SqlDwTableDataSetMapping # type: ignore - from ._models import SqlDwTableDataSetMappingProperties # type: ignore - from ._models import SqlDwTableProperties # type: ignore from ._models import SynchronizationDetails # type: ignore from ._models import SynchronizationDetailsList # type: ignore from ._models import SynchronizationSetting # type: ignore @@ -214,6 +148,7 @@ from ._models import Synchronize # type: ignore from ._models import Trigger # type: ignore from ._models import TriggerList # type: ignore + from ._data_share_management_client_enums import ( DataSetMappingStatus, DataSetType, @@ -232,100 +167,67 @@ __all__ = [ 'Account', 'AccountList', - 'AccountProperties', 'AccountUpdateParameters', 'AdlsGen1FileDataSet', - 'AdlsGen1FileProperties', 'AdlsGen1FolderDataSet', - 'AdlsGen1FolderProperties', 'AdlsGen2FileDataSet', 'AdlsGen2FileDataSetMapping', - 'AdlsGen2FileDataSetMappingProperties', - 'AdlsGen2FileProperties', 'AdlsGen2FileSystemDataSet', 'AdlsGen2FileSystemDataSetMapping', - 'AdlsGen2FileSystemDataSetMappingProperties', - 'AdlsGen2FileSystemProperties', 'AdlsGen2FolderDataSet', 'AdlsGen2FolderDataSetMapping', - 'AdlsGen2FolderDataSetMappingProperties', - 'AdlsGen2FolderProperties', 'BlobContainerDataSet', 'BlobContainerDataSetMapping', - 'BlobContainerMappingProperties', - 'BlobContainerProperties', 'BlobDataSet', 'BlobDataSetMapping', 'BlobFolderDataSet', 'BlobFolderDataSetMapping', - 'BlobFolderMappingProperties', - 'BlobFolderProperties', - 'BlobMappingProperties', - 'BlobProperties', 'ConsumerInvitation', 'ConsumerInvitationList', - 'ConsumerInvitationProperties', 'ConsumerSourceDataSet', 'ConsumerSourceDataSetList', - 'ConsumerSourceDataSetProperties', 'DataSet', 'DataSetList', 'DataSetMapping', 'DataSetMappingList', - 'DataShareError', 'DataShareErrorException', + 'DataShareError', 'DataShareErrorInfo', 'DefaultDto', 'DimensionProperties', 'Identity', 'Invitation', 'InvitationList', - 'InvitationProperties', 'KustoClusterDataSet', 'KustoClusterDataSetMapping', - 'KustoClusterDataSetMappingProperties', - 'KustoClusterDataSetProperties', 'KustoDatabaseDataSet', 'KustoDatabaseDataSetMapping', - 'KustoDatabaseDataSetMappingProperties', - 'KustoDatabaseDataSetProperties', 'OperationList', 'OperationMetaLogSpecification', 'OperationMetaMetricSpecification', - 'OperationMetaPropertyInfo', 'OperationMetaServiceSpecification', 'OperationModel', 'OperationModelProperties', 'OperationResponse', 'ProviderShareSubscription', 'ProviderShareSubscriptionList', - 'ProviderShareSubscriptionProperties', 'ProxyDto', - 'ScheduledSourceShareSynchronizationSettingProperties', 'ScheduledSourceSynchronizationSetting', 'ScheduledSynchronizationSetting', - 'ScheduledSynchronizationSettingProperties', 'ScheduledTrigger', - 'ScheduledTriggerProperties', 'Share', 'ShareList', - 'ShareProperties', 'ShareSubscription', 'ShareSubscriptionList', - 'ShareSubscriptionProperties', 'ShareSubscriptionSynchronization', 'ShareSubscriptionSynchronizationList', 'ShareSynchronization', 'ShareSynchronizationList', 'SourceShareSynchronizationSetting', 'SourceShareSynchronizationSettingList', - 'SqlDbTableDataSet', - 'SqlDbTableDataSetMapping', - 'SqlDbTableDataSetMappingProperties', - 'SqlDbTableProperties', + 'SqlDBTableDataSet', + 'SqlDBTableDataSetMapping', 'SqlDwTableDataSet', 'SqlDwTableDataSetMapping', - 'SqlDwTableDataSetMappingProperties', - 'SqlDwTableProperties', 'SynchronizationDetails', 'SynchronizationDetailsList', 'SynchronizationSetting', diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py index 339cef931bc..20589503478 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py @@ -9,6 +9,8 @@ from enum import Enum class ProvisioningState(str, Enum): + """Provisioning state of the Account + """ succeeded = "Succeeded" creating = "Creating" @@ -17,6 +19,8 @@ class ProvisioningState(str, Enum): failed = "Failed" class InvitationStatus(str, Enum): + """The status of the invitation. + """ pending = "Pending" accepted = "Accepted" @@ -24,6 +28,8 @@ class InvitationStatus(str, Enum): withdrawn = "Withdrawn" class Kind(str, Enum): + """Kind of data set. + """ blob = "Blob" container = "Container" @@ -40,16 +46,22 @@ class Kind(str, Enum): schedule_based = "ScheduleBased" class ShareKind(str, Enum): + """Share kind. + """ copy_based = "CopyBased" in_place = "InPlace" class SynchronizationMode(str, Enum): + """Synchronization mode + """ incremental = "Incremental" full_sync = "FullSync" class DataSetType(str, Enum): + """Type of the data set + """ blob = "Blob" container = "Container" @@ -65,6 +77,8 @@ class DataSetType(str, Enum): sql_dw_table = "SqlDWTable" class ShareSubscriptionStatus(str, Enum): + """Gets the status of share subscription + """ active = "Active" revoked = "Revoked" @@ -72,6 +86,8 @@ class ShareSubscriptionStatus(str, Enum): revoking = "Revoking" class Status(str, Enum): + """Operation state of the long running operation. + """ accepted = "Accepted" in_progress = "InProgress" @@ -81,22 +97,30 @@ class Status(str, Enum): canceled = "Canceled" class RecurrenceInterval(str, Enum): + """Recurrence Interval + """ hour = "Hour" day = "Day" class TriggerStatus(str, Enum): + """Gets the trigger state + """ active = "Active" inactive = "Inactive" source_synchronization_setting_deleted = "SourceSynchronizationSettingDeleted" class DataSetMappingStatus(str, Enum): + """Gets the status of the data set mapping. + """ ok = "Ok" broken = "Broken" class OutputType(str, Enum): + """File output type + """ csv = "Csv" parquet = "Parquet" diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py index cd488569da8..bee5d5e4df6 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models.py @@ -70,7 +70,7 @@ class Account(DefaultDto): :type tags: dict[str, str] :ivar type: Type of the azure resource. :vartype type: str - :param identity: Required. Identity of resource. + :param identity: Required. Identity Info on the Account. :type identity: ~data_share_management_client.models.Identity :ivar created_at: Time at which the account was created. :vartype created_at: ~datetime.datetime @@ -148,47 +148,6 @@ def __init__( self.value = kwargs.get('value', None) -class AccountProperties(msrest.serialization.Model): - """Account property bag. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar created_at: Time at which the account was created. - :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AccountProperties, self).__init__(**kwargs) - self.created_at = None - self.provisioning_state = None - self.user_email = None - self.user_name = None - - class AccountUpdateParameters(msrest.serialization.Model): """Update parameters for accounts. @@ -247,7 +206,7 @@ class DataSet(ProxyDto): """A DataSet data transfer object. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AdlsGen1FileDataSet, AdlsGen1FolderDataSet, AdlsGen2FileDataSet, AdlsGen2FileSystemDataSet, AdlsGen2FolderDataSet, BlobDataSet, BlobFolderDataSet, BlobContainerDataSet, KustoClusterDataSet, KustoDatabaseDataSet, SqlDbTableDataSet, SqlDwTableDataSet. + sub-classes are: AdlsGen1FileDataSet, AdlsGen1FolderDataSet, AdlsGen2FileDataSet, AdlsGen2FileSystemDataSet, AdlsGen2FolderDataSet, BlobDataSet, BlobFolderDataSet, BlobContainerDataSet, KustoClusterDataSet, KustoDatabaseDataSet, SqlDBTableDataSet, SqlDwTableDataSet. Variables are only populated by the server, and will be ignored when sending a request. @@ -281,7 +240,7 @@ class DataSet(ProxyDto): } _subtype_map = { - 'kind': {'AdlsGen1File': 'AdlsGen1FileDataSet', 'AdlsGen1Folder': 'AdlsGen1FolderDataSet', 'AdlsGen2File': 'AdlsGen2FileDataSet', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSet', 'AdlsGen2Folder': 'AdlsGen2FolderDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDbTableDataSet', 'SqlDWTable': 'SqlDwTableDataSet'} + 'kind': {'AdlsGen1File': 'AdlsGen1FileDataSet', 'AdlsGen1Folder': 'AdlsGen1FolderDataSet', 'AdlsGen2File': 'AdlsGen2FileDataSet', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSet', 'AdlsGen2Folder': 'AdlsGen2FolderDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDBTableDataSet', 'SqlDWTable': 'SqlDwTableDataSet'} } def __init__( @@ -364,58 +323,6 @@ def __init__( self.subscription_id = kwargs.get('subscription_id', None) -class AdlsGen1FileProperties(msrest.serialization.Model): - """Properties of the ADLS Gen1 file data set. - - 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 account_name: Required. The ADLS account name. - :type account_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_name: Required. The file name in the ADLS account. - :type file_name: str - :param folder_path: Required. The folder path within the ADLS account. - :type folder_path: str - :param resource_group: Required. Resource group of ADLS account. - :type resource_group: str - :param subscription_id: Required. Subscription id of ADLS account. - :type subscription_id: str - """ - - _validation = { - 'account_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'file_name': {'required': True}, - 'folder_path': {'required': True}, - 'resource_group': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AdlsGen1FileProperties, self).__init__(**kwargs) - self.account_name = kwargs.get('account_name', None) - self.data_set_id = None - self.file_name = kwargs.get('file_name', None) - self.folder_path = kwargs.get('folder_path', None) - self.resource_group = kwargs.get('resource_group', None) - self.subscription_id = kwargs.get('subscription_id', None) - - class AdlsGen1FolderDataSet(DataSet): """An ADLS Gen 1 folder data set. @@ -483,53 +390,6 @@ def __init__( self.subscription_id = kwargs.get('subscription_id', None) -class AdlsGen1FolderProperties(msrest.serialization.Model): - """Properties of the ADLS Gen1 folder data set. - - 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 account_name: Required. The ADLS account name. - :type account_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param folder_path: Required. The folder path within the ADLS account. - :type folder_path: str - :param resource_group: Required. Resource group of ADLS account. - :type resource_group: str - :param subscription_id: Required. Subscription id of ADLS account. - :type subscription_id: str - """ - - _validation = { - 'account_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'folder_path': {'required': True}, - 'resource_group': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AdlsGen1FolderProperties, self).__init__(**kwargs) - self.account_name = kwargs.get('account_name', None) - self.data_set_id = None - self.folder_path = kwargs.get('folder_path', None) - self.resource_group = kwargs.get('resource_group', None) - self.subscription_id = kwargs.get('subscription_id', None) - - class AdlsGen2FileDataSet(DataSet): """An ADLS Gen 2 file data set. @@ -606,7 +466,7 @@ class DataSetMapping(ProxyDto): """A data set mapping data transfer object. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AdlsGen2FileDataSetMapping, AdlsGen2FileSystemDataSetMapping, AdlsGen2FolderDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping, BlobContainerDataSetMapping, KustoClusterDataSetMapping, KustoDatabaseDataSetMapping, SqlDbTableDataSetMapping, SqlDwTableDataSetMapping. + sub-classes are: AdlsGen2FileDataSetMapping, AdlsGen2FileSystemDataSetMapping, AdlsGen2FolderDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping, BlobContainerDataSetMapping, KustoClusterDataSetMapping, KustoDatabaseDataSetMapping, SqlDBTableDataSetMapping, SqlDwTableDataSetMapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -618,10 +478,10 @@ class DataSetMapping(ProxyDto): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -640,7 +500,7 @@ class DataSetMapping(ProxyDto): } _subtype_map = { - 'kind': {'AdlsGen2File': 'AdlsGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'AdlsGen2FolderDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDbTableDataSetMapping', 'SqlDWTable': 'SqlDwTableDataSetMapping'} + 'kind': {'AdlsGen2File': 'AdlsGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'AdlsGen2FolderDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping', 'SqlDWTable': 'SqlDwTableDataSetMapping'} } def __init__( @@ -664,10 +524,10 @@ class AdlsGen2FileDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -679,9 +539,9 @@ class AdlsGen2FileDataSetMapping(DataSetMapping): :type file_path: str :param file_system: Required. File system to which the file belongs. :type file_system: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :param output_type: Type of output file. Possible values include: 'Csv', 'Parquet'. :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -740,127 +600,6 @@ def __init__( self.subscription_id = kwargs.get('subscription_id', None) -class AdlsGen2FileDataSetMappingProperties(msrest.serialization.Model): - """ADLS Gen 2 file data set mapping property bag. - - 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_path: Required. File path within the file system. - :type file_path: str - :param file_system: Required. File system to which the file belongs. - :type file_system: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. - :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_path': {'required': True}, - 'file_system': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'output_type': {'key': 'outputType', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AdlsGen2FileDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.file_path = kwargs.get('file_path', None) - self.file_system = kwargs.get('file_system', None) - self.output_type = kwargs.get('output_type', None) - self.provisioning_state = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class AdlsGen2FileProperties(msrest.serialization.Model): - """Properties of the ADLS Gen2 file data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_path: Required. File path within the file system. - :type file_path: str - :param file_system: Required. File system to which the file belongs. - :type file_system: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'file_path': {'required': True}, - 'file_system': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AdlsGen2FileProperties, self).__init__(**kwargs) - self.data_set_id = None - self.file_path = kwargs.get('file_path', None) - self.file_system = kwargs.get('file_system', None) - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - class AdlsGen2FileSystemDataSet(DataSet): """An ADLS Gen 2 file system data set. @@ -941,10 +680,10 @@ class AdlsGen2FileSystemDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -954,7 +693,7 @@ class AdlsGen2FileSystemDataSetMapping(DataSetMapping): ~data_share_management_client.models.DataSetMappingStatus :param file_system: Required. The file system name. :type file_system: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -1008,115 +747,8 @@ def __init__( self.subscription_id = kwargs.get('subscription_id', None) -class AdlsGen2FileSystemDataSetMappingProperties(msrest.serialization.Model): - """ADLS Gen 2 file system data set mapping property bag. - - 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_system: Required. The file system name. - :type file_system: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_system': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AdlsGen2FileSystemDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.file_system = kwargs.get('file_system', None) - self.provisioning_state = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class AdlsGen2FileSystemProperties(msrest.serialization.Model): - """Properties of the ADLS Gen2 file system data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_system: Required. The file system name. - :type file_system: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'file_system': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AdlsGen2FileSystemProperties, self).__init__(**kwargs) - self.data_set_id = None - self.file_system = kwargs.get('file_system', None) - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class AdlsGen2FolderDataSet(DataSet): - """An ADLS Gen 2 folder data set. +class AdlsGen2FolderDataSet(DataSet): + """An ADLS Gen 2 folder data set. Variables are only populated by the server, and will be ignored when sending a request. @@ -1200,10 +832,10 @@ class AdlsGen2FolderDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -1215,7 +847,7 @@ class AdlsGen2FolderDataSetMapping(DataSetMapping): :type file_system: str :param folder_path: Required. Folder path within the file system. :type folder_path: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -1272,26 +904,28 @@ def __init__( self.subscription_id = kwargs.get('subscription_id', None) -class AdlsGen2FolderDataSetMappingProperties(msrest.serialization.Model): - """ADLS Gen 2 folder data set mapping property bag. +class BlobContainerDataSet(DataSet): + """An Azure storage blob container data set. 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_system: Required. File system to which the folder belongs. - :type file_system: str - :param folder_path: Required. Folder path within the file system. - :type folder_path: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -1301,55 +935,71 @@ class AdlsGen2FolderDataSetMappingProperties(msrest.serialization.Model): """ _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_system': {'required': True}, - 'folder_path': {'required': True}, - 'provisioning_state': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( self, **kwargs ): - super(AdlsGen2FolderDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.file_system = kwargs.get('file_system', None) - self.folder_path = kwargs.get('folder_path', None) - self.provisioning_state = None + super(BlobContainerDataSet, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = None self.resource_group = kwargs.get('resource_group', None) self.storage_account_name = kwargs.get('storage_account_name', None) self.subscription_id = kwargs.get('subscription_id', None) -class AdlsGen2FolderProperties(msrest.serialization.Model): - """Properties of the ADLS Gen2 folder data set. +class BlobContainerDataSetMapping(DataSetMapping): + """A Blob container data set mapping. 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. - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_system: Required. File system to which the folder belongs. - :type file_system: str - :param folder_path: Required. Folder path within the file system. - :type folder_path: str + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -1359,38 +1009,50 @@ class AdlsGen2FolderProperties(msrest.serialization.Model): """ _validation = { - 'data_set_id': {'readonly': True}, - 'file_system': {'required': True}, - 'folder_path': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( self, **kwargs ): - super(AdlsGen2FolderProperties, self).__init__(**kwargs) - self.data_set_id = None - self.file_system = kwargs.get('file_system', None) - self.folder_path = kwargs.get('folder_path', None) + super(BlobContainerDataSetMapping, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = kwargs.get('container_name', None) + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None + self.provisioning_state = None self.resource_group = kwargs.get('resource_group', None) self.storage_account_name = kwargs.get('storage_account_name', None) self.subscription_id = kwargs.get('subscription_id', None) -class BlobContainerDataSet(DataSet): - """An Azure storage blob container data set. +class BlobDataSet(DataSet): + """An Azure storage blob data set. Variables are only populated by the server, and will be ignored when sending a request. @@ -1407,10 +1069,12 @@ class BlobContainerDataSet(DataSet): 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. BLOB Container name. + :param container_name: Required. Container that has the file path. :type container_name: str :ivar data_set_id: Unique id for identifying a data set resource. :vartype data_set_id: str + :param file_path: Required. File path within the source data set. + :type file_path: str :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -1426,6 +1090,7 @@ class BlobContainerDataSet(DataSet): 'kind': {'required': True}, 'container_name': {'required': True}, 'data_set_id': {'readonly': True}, + 'file_path': {'required': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, @@ -1438,6 +1103,7 @@ class BlobContainerDataSet(DataSet): 'kind': {'key': 'kind', 'type': 'str'}, 'container_name': {'key': 'properties.containerName', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, @@ -1447,17 +1113,18 @@ def __init__( self, **kwargs ): - super(BlobContainerDataSet, self).__init__(**kwargs) - self.kind = 'Container' + super(BlobDataSet, self).__init__(**kwargs) + self.kind = 'Blob' self.container_name = kwargs.get('container_name', None) self.data_set_id = None + self.file_path = kwargs.get('file_path', None) self.resource_group = kwargs.get('resource_group', None) self.storage_account_name = kwargs.get('storage_account_name', None) self.subscription_id = kwargs.get('subscription_id', None) -class BlobContainerDataSetMapping(DataSetMapping): - """A Blob container data set mapping. +class BlobDataSetMapping(DataSetMapping): + """A Blob data set mapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -1469,12 +1136,12 @@ class BlobContainerDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. BLOB Container name. + :param container_name: Required. Container that has the file path. :type container_name: str :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -1482,7 +1149,11 @@ class BlobContainerDataSetMapping(DataSetMapping): include: 'Ok', 'Broken'. :vartype data_set_mapping_status: str or ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :param file_path: Required. File path within the source data set. + :type file_path: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -1501,6 +1172,7 @@ class BlobContainerDataSetMapping(DataSetMapping): 'container_name': {'required': True}, 'data_set_id': {'required': True}, 'data_set_mapping_status': {'readonly': True}, + 'file_path': {'required': True}, 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, @@ -1515,6 +1187,8 @@ class BlobContainerDataSetMapping(DataSetMapping): 'container_name': {'key': 'properties.containerName', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'output_type': {'key': 'properties.outputType', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, @@ -1525,148 +1199,43 @@ def __init__( self, **kwargs ): - super(BlobContainerDataSetMapping, self).__init__(**kwargs) - self.kind = 'Container' + super(BlobDataSetMapping, self).__init__(**kwargs) + self.kind = 'Blob' self.container_name = kwargs.get('container_name', None) self.data_set_id = kwargs.get('data_set_id', None) self.data_set_mapping_status = None + self.file_path = kwargs.get('file_path', None) + self.output_type = kwargs.get('output_type', None) self.provisioning_state = None self.resource_group = kwargs.get('resource_group', None) self.storage_account_name = kwargs.get('storage_account_name', None) self.subscription_id = kwargs.get('subscription_id', None) -class BlobContainerMappingProperties(msrest.serialization.Model): - """Azure storage Blob container data set mapping property bag. +class BlobFolderDataSet(DataSet): + """An Azure storage blob folder data set. 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 container_name: Required. BLOB Container name. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobContainerMappingProperties, self).__init__(**kwargs) - self.container_name = kwargs.get('container_name', None) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.provisioning_state = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobContainerProperties(msrest.serialization.Model): - """Properties of the BLOB container data set. - - 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 container_name: Required. BLOB Container name. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobContainerProperties, self).__init__(**kwargs) - self.container_name = kwargs.get('container_name', None) - self.data_set_id = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobDataSet(DataSet): - """An Azure storage blob data set. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. Container that has the file path. + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. :type container_name: str :ivar data_set_id: Unique id for identifying a data set resource. :vartype data_set_id: str - :param file_path: Required. File path within the source data set. - :type file_path: str + :param prefix: Required. Prefix for blob folder. + :type prefix: str :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -1682,7 +1251,7 @@ class BlobDataSet(DataSet): 'kind': {'required': True}, 'container_name': {'required': True}, 'data_set_id': {'readonly': True}, - 'file_path': {'required': True}, + 'prefix': {'required': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, @@ -1695,7 +1264,7 @@ class BlobDataSet(DataSet): 'kind': {'key': 'kind', 'type': 'str'}, 'container_name': {'key': 'properties.containerName', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, @@ -1705,18 +1274,18 @@ def __init__( self, **kwargs ): - super(BlobDataSet, self).__init__(**kwargs) - self.kind = 'Blob' + super(BlobFolderDataSet, self).__init__(**kwargs) + self.kind = 'BlobFolder' self.container_name = kwargs.get('container_name', None) self.data_set_id = None - self.file_path = kwargs.get('file_path', None) + self.prefix = kwargs.get('prefix', None) self.resource_group = kwargs.get('resource_group', None) self.storage_account_name = kwargs.get('storage_account_name', None) self.subscription_id = kwargs.get('subscription_id', None) -class BlobDataSetMapping(DataSetMapping): - """A Blob data set mapping. +class BlobFolderDataSetMapping(DataSetMapping): + """A Blob folder data set mapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -1728,10 +1297,10 @@ class BlobDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param container_name: Required. Container that has the file path. :type container_name: str @@ -1741,11 +1310,9 @@ class BlobDataSetMapping(DataSetMapping): include: 'Ok', 'Broken'. :vartype data_set_mapping_status: str or ~data_share_management_client.models.DataSetMappingStatus - :param file_path: Required. File path within the source data set. - :type file_path: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. - :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -1764,7 +1331,7 @@ class BlobDataSetMapping(DataSetMapping): 'container_name': {'required': True}, 'data_set_id': {'required': True}, 'data_set_mapping_status': {'readonly': True}, - 'file_path': {'required': True}, + 'prefix': {'required': True}, 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, @@ -1779,8 +1346,7 @@ class BlobDataSetMapping(DataSetMapping): 'container_name': {'key': 'properties.containerName', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, - 'file_path': {'key': 'properties.filePath', 'type': 'str'}, - 'output_type': {'key': 'properties.outputType', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, @@ -1791,555 +1357,31 @@ def __init__( self, **kwargs ): - super(BlobDataSetMapping, self).__init__(**kwargs) - self.kind = 'Blob' + super(BlobFolderDataSetMapping, self).__init__(**kwargs) + self.kind = 'BlobFolder' self.container_name = kwargs.get('container_name', None) self.data_set_id = kwargs.get('data_set_id', None) self.data_set_mapping_status = None - self.file_path = kwargs.get('file_path', None) - self.output_type = kwargs.get('output_type', None) - self.provisioning_state = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobFolderDataSet(DataSet): - """An Azure storage blob folder data set. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. Container that has the file path. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param prefix: Required. Prefix for blob folder. - :type prefix: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'prefix': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'prefix': {'key': 'properties.prefix', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobFolderDataSet, self).__init__(**kwargs) - self.kind = 'BlobFolder' - self.container_name = kwargs.get('container_name', None) - self.data_set_id = None self.prefix = kwargs.get('prefix', None) + self.provisioning_state = None self.resource_group = kwargs.get('resource_group', None) self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobFolderDataSetMapping(DataSetMapping): - """A Blob folder data set mapping. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. Container that has the file path. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param prefix: Required. Prefix for blob folder. - :type prefix: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'prefix': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, - 'prefix': {'key': 'properties.prefix', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobFolderDataSetMapping, self).__init__(**kwargs) - self.kind = 'BlobFolder' - self.container_name = kwargs.get('container_name', None) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.prefix = kwargs.get('prefix', None) - self.provisioning_state = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobFolderMappingProperties(msrest.serialization.Model): - """Azure storage Blob folder data set mapping property bag. - - 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 container_name: Required. Container that has the file path. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param prefix: Required. Prefix for blob folder. - :type prefix: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'prefix': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'prefix': {'key': 'prefix', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobFolderMappingProperties, self).__init__(**kwargs) - self.container_name = kwargs.get('container_name', None) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.prefix = kwargs.get('prefix', None) - self.provisioning_state = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobFolderProperties(msrest.serialization.Model): - """Properties of the blob folder data set. - - 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 container_name: Required. Container that has the file path. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param prefix: Required. Prefix for blob folder. - :type prefix: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'prefix': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'prefix': {'key': 'prefix', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobFolderProperties, self).__init__(**kwargs) - self.container_name = kwargs.get('container_name', None) - self.data_set_id = None - self.prefix = kwargs.get('prefix', None) - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobMappingProperties(msrest.serialization.Model): - """Azure storage Blob data set mapping property bag. - - 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 container_name: Required. Container that has the file path. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_path: Required. File path within the source data set. - :type file_path: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. - :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_path': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'output_type': {'key': 'outputType', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobMappingProperties, self).__init__(**kwargs) - self.container_name = kwargs.get('container_name', None) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.file_path = kwargs.get('file_path', None) - self.output_type = kwargs.get('output_type', None) - self.provisioning_state = None - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class BlobProperties(msrest.serialization.Model): - """Properties of the blob data set. - - 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 container_name: Required. Container that has the file path. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_path: Required. File path within the source data set. - :type file_path: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'file_path': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(BlobProperties, self).__init__(**kwargs) - self.container_name = kwargs.get('container_name', None) - self.data_set_id = None - self.file_path = kwargs.get('file_path', None) - self.resource_group = kwargs.get('resource_group', None) - self.storage_account_name = kwargs.get('storage_account_name', None) - self.subscription_id = kwargs.get('subscription_id', None) - - -class ConsumerInvitation(ProxyDto): - """A consumer Invitation data transfer object. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :ivar data_set_count: Number of data sets in a share. - :vartype data_set_count: int - :ivar description: Description shared when the invitation was created. - :vartype description: str - :param invitation_id: Required. Unique id of the invitation. - :type invitation_id: str - :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', - 'Accepted', 'Rejected', 'Withdrawn'. - :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus - :ivar location: invitation location. - :vartype location: str - :ivar provider_email: Email of the provider who created the resource. - :vartype provider_email: str - :ivar provider_name: Name of the provider who created the resource. - :vartype provider_name: str - :ivar provider_tenant_name: Tenant name of the provider who created the resource. - :vartype provider_tenant_name: str - :ivar responded_at: The time the recipient responded to the invitation. - :vartype responded_at: ~datetime.datetime - :ivar sent_at: Gets the time at which the invitation was sent. - :vartype sent_at: ~datetime.datetime - :ivar share_name: Gets the source share Name. - :vartype share_name: str - :ivar terms_of_use: Terms of use shared when the invitation was created. - :vartype terms_of_use: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'data_set_count': {'readonly': True}, - 'description': {'readonly': True}, - 'invitation_id': {'required': True}, - 'invitation_status': {'readonly': True}, - 'location': {'readonly': True}, - 'provider_email': {'readonly': True}, - 'provider_name': {'readonly': True}, - 'provider_tenant_name': {'readonly': True}, - 'responded_at': {'readonly': True}, - 'sent_at': {'readonly': True}, - 'share_name': {'readonly': True}, - 'terms_of_use': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'data_set_count': {'key': 'properties.dataSetCount', 'type': 'int'}, - 'description': {'key': 'properties.description', 'type': 'str'}, - 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, - 'invitation_status': {'key': 'properties.invitationStatus', 'type': 'str'}, - 'location': {'key': 'properties.location', 'type': 'str'}, - 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, - 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, - 'responded_at': {'key': 'properties.respondedAt', 'type': 'iso-8601'}, - 'sent_at': {'key': 'properties.sentAt', 'type': 'iso-8601'}, - 'share_name': {'key': 'properties.shareName', 'type': 'str'}, - 'terms_of_use': {'key': 'properties.termsOfUse', 'type': 'str'}, - 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ConsumerInvitation, self).__init__(**kwargs) - self.data_set_count = None - self.description = None - self.invitation_id = kwargs.get('invitation_id', None) - self.invitation_status = None - self.location = None - self.provider_email = None - self.provider_name = None - self.provider_tenant_name = None - self.responded_at = None - self.sent_at = None - self.share_name = None - self.terms_of_use = None - self.user_email = None - self.user_name = None - - -class ConsumerInvitationList(msrest.serialization.Model): - """List response for get InvitationList. - - All required parameters must be populated in order to send to Azure. - - :param next_link: The Url of next result page. - :type next_link: str - :param value: Required. Collection of items of type DataTransferObjects. - :type value: list[~data_share_management_client.models.ConsumerInvitation] - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ConsumerInvitation]'}, - } - - def __init__( - self, - **kwargs - ): - super(ConsumerInvitationList, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - self.value = kwargs.get('value', None) + self.subscription_id = kwargs.get('subscription_id', None) -class ConsumerInvitationProperties(msrest.serialization.Model): - """Properties of consumer invitation. +class ConsumerInvitation(ProxyDto): + """A consumer Invitation data transfer object. 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. + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str :ivar data_set_count: Number of data sets in a share. :vartype data_set_count: int :ivar description: Description shared when the invitation was created. @@ -2372,6 +1414,9 @@ class ConsumerInvitationProperties(msrest.serialization.Model): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'data_set_count': {'readonly': True}, 'description': {'readonly': True}, 'invitation_id': {'required': True}, @@ -2389,27 +1434,30 @@ class ConsumerInvitationProperties(msrest.serialization.Model): } _attribute_map = { - 'data_set_count': {'key': 'dataSetCount', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'invitation_id': {'key': 'invitationId', 'type': 'str'}, - 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provider_email': {'key': 'providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'providerName', 'type': 'str'}, - 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, - 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, - 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, - 'share_name': {'key': 'shareName', 'type': 'str'}, - 'terms_of_use': {'key': 'termsOfUse', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'data_set_count': {'key': 'properties.dataSetCount', 'type': 'int'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'invitation_status': {'key': 'properties.invitationStatus', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, + 'responded_at': {'key': 'properties.respondedAt', 'type': 'iso-8601'}, + 'sent_at': {'key': 'properties.sentAt', 'type': 'iso-8601'}, + 'share_name': {'key': 'properties.shareName', 'type': 'str'}, + 'terms_of_use': {'key': 'properties.termsOfUse', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ConsumerInvitationProperties, self).__init__(**kwargs) + super(ConsumerInvitation, self).__init__(**kwargs) self.data_set_count = None self.description = None self.invitation_id = kwargs.get('invitation_id', None) @@ -2426,6 +1474,35 @@ def __init__( self.user_name = None +class ConsumerInvitationList(msrest.serialization.Model): + """List response for get InvitationList. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ConsumerInvitation] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ConsumerInvitation]'}, + } + + def __init__( + self, + **kwargs + ): + super(ConsumerInvitationList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + class ConsumerSourceDataSet(ProxyDto): """A consumer side dataSet data transfer object. @@ -2445,7 +1522,7 @@ class ConsumerSourceDataSet(ProxyDto): :vartype data_set_name: str :ivar data_set_path: DataSet path. :vartype data_set_path: str - :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + :ivar data_set_type: Type of data set. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. :vartype data_set_type: str or ~data_share_management_client.models.DataSetType @@ -2514,53 +1591,6 @@ def __init__( self.value = kwargs.get('value', None) -class ConsumerSourceDataSetProperties(msrest.serialization.Model): - """Properties of consumer source dataSet. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar data_set_id: DataSet Id. - :vartype data_set_id: str - :ivar data_set_location: Location of the data set. - :vartype data_set_location: str - :ivar data_set_name: DataSet name. - :vartype data_set_name: str - :ivar data_set_path: DataSet path. - :vartype data_set_path: str - :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', - 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', - 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. - :vartype data_set_type: str or ~data_share_management_client.models.DataSetType - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'data_set_location': {'readonly': True}, - 'data_set_name': {'readonly': True}, - 'data_set_path': {'readonly': True}, - 'data_set_type': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_location': {'key': 'dataSetLocation', 'type': 'str'}, - 'data_set_name': {'key': 'dataSetName', 'type': 'str'}, - 'data_set_path': {'key': 'dataSetPath', 'type': 'str'}, - 'data_set_type': {'key': 'dataSetType', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ConsumerSourceDataSetProperties, self).__init__(**kwargs) - self.data_set_id = None - self.data_set_location = None - self.data_set_name = None - self.data_set_path = None - self.data_set_type = None - - class DataSetList(msrest.serialization.Model): """List response for get DataSets. @@ -2619,40 +1649,14 @@ def __init__( self.value = kwargs.get('value', None) -class DataShareErrorException(HttpResponseError): - """Server responded with exception of type: 'DataShareError'. - - :param response: Server response to be deserialized. - :param error_model: A deserialized model of the response body as model. - """ - - def __init__(self, response, error_model): - self.error = error_model - super(DataShareErrorException, self).__init__(response=response, error_model=error_model) - - @classmethod - def from_response(cls, response, deserialize): - """Deserialize this response as this exception, or a subclass of this exception. - - :param response: Server response to be deserialized. - :param deserialize: A deserializer - """ - model_name = 'DataShareError' - error = deserialize(model_name, response) - if error is None: - error = deserialize.dependencies[model_name]() - return error._EXCEPTION_TYPE(response, error) - - class DataShareError(msrest.serialization.Model): """The data share error model. All required parameters must be populated in order to send to Azure. - :param error: Required. The data share error body model. + :param error: Required. The data share error body. :type error: ~data_share_management_client.models.DataShareErrorInfo """ - _EXCEPTION_TYPE = DataShareErrorException _validation = { 'error': {'required': True}, @@ -2873,71 +1877,6 @@ def __init__( self.value = kwargs.get('value', None) -class InvitationProperties(msrest.serialization.Model): - """Invitation property bag. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar invitation_id: unique invitation id. - :vartype invitation_id: str - :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', - 'Accepted', 'Rejected', 'Withdrawn'. - :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus - :ivar responded_at: The time the recipient responded to the invitation. - :vartype responded_at: ~datetime.datetime - :ivar sent_at: Gets the time at which the invitation was sent. - :vartype sent_at: ~datetime.datetime - :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. - :type target_active_directory_id: str - :param target_email: The email the invitation is directed to. - :type target_email: str - :param target_object_id: The target user or application Id that invitation is being sent to. - Must be specified along TargetActiveDirectoryId. This enables sending - invitations to specific users or applications in an AD tenant. - :type target_object_id: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'invitation_id': {'readonly': True}, - 'invitation_status': {'readonly': True}, - 'responded_at': {'readonly': True}, - 'sent_at': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'invitation_id': {'key': 'invitationId', 'type': 'str'}, - 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, - 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, - 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, - 'target_active_directory_id': {'key': 'targetActiveDirectoryId', 'type': 'str'}, - 'target_email': {'key': 'targetEmail', 'type': 'str'}, - 'target_object_id': {'key': 'targetObjectId', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(InvitationProperties, self).__init__(**kwargs) - self.invitation_id = None - self.invitation_status = None - self.responded_at = None - self.sent_at = None - self.target_active_directory_id = kwargs.get('target_active_directory_id', None) - self.target_email = kwargs.get('target_email', None) - self.target_object_id = kwargs.get('target_object_id', None) - self.user_email = None - self.user_name = None - - class KustoClusterDataSet(DataSet): """A kusto cluster data set. @@ -2962,8 +1901,8 @@ class KustoClusterDataSet(DataSet): :type kusto_cluster_resource_id: str :ivar location: Location of the kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Provisioning state of the kusto cluster data set. Possible values + include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ @@ -3014,10 +1953,10 @@ class KustoClusterDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -3029,7 +1968,7 @@ class KustoClusterDataSetMapping(DataSetMapping): :type kusto_cluster_resource_id: str :ivar location: Location of the sink kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ @@ -3062,103 +2001,10 @@ def __init__( self, **kwargs ): - super(KustoClusterDataSetMapping, self).__init__(**kwargs) - self.kind = 'KustoCluster' - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) - self.location = None - self.provisioning_state = None - - -class KustoClusterDataSetMappingProperties(msrest.serialization.Model): - """Properties of the Kusto cluster data set mapping. - - 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. - :type kusto_cluster_resource_id: str - :ivar location: Location of the sink kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'kusto_cluster_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(KustoClusterDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) - self.location = None - self.provisioning_state = None - - -class KustoClusterDataSetProperties(msrest.serialization.Model): - """Properties of the kusto cluster data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param kusto_cluster_resource_id: Required. Resource id of the kusto cluster. - :type kusto_cluster_resource_id: str - :ivar location: Location of the kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'kusto_cluster_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(KustoClusterDataSetProperties, self).__init__(**kwargs) - self.data_set_id = None + super(KustoClusterDataSetMapping, self).__init__(**kwargs) + self.kind = 'KustoCluster' + self.data_set_id = kwargs.get('data_set_id', None) + self.data_set_mapping_status = None self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) self.location = None self.provisioning_state = None @@ -3188,8 +2034,8 @@ class KustoDatabaseDataSet(DataSet): :type kusto_database_resource_id: str :ivar location: Location of the kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Provisioning state of the kusto database data set. Possible values + include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ @@ -3240,10 +2086,10 @@ class KustoDatabaseDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -3255,7 +2101,7 @@ class KustoDatabaseDataSetMapping(DataSetMapping): :type kusto_cluster_resource_id: str :ivar location: Location of the sink kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ @@ -3297,99 +2143,6 @@ def __init__( self.provisioning_state = None -class KustoDatabaseDataSetMappingProperties(msrest.serialization.Model): - """Properties of the Kusto database data set mapping. - - 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. - :type kusto_cluster_resource_id: str - :ivar location: Location of the sink kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'kusto_cluster_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(KustoDatabaseDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.kusto_cluster_resource_id = kwargs.get('kusto_cluster_resource_id', None) - self.location = None - self.provisioning_state = None - - -class KustoDatabaseDataSetProperties(msrest.serialization.Model): - """Properties of the kusto database data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param kusto_database_resource_id: Required. Resource id of the kusto database. - :type kusto_database_resource_id: str - :ivar location: Location of the kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'kusto_database_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'kusto_database_resource_id': {'key': 'kustoDatabaseResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(KustoDatabaseDataSetProperties, self).__init__(**kwargs) - self.data_set_id = None - self.kusto_database_resource_id = kwargs.get('kusto_database_resource_id', None) - self.location = None - self.provisioning_state = None - - class OperationList(msrest.serialization.Model): """List response for get operations. @@ -3506,26 +2259,6 @@ def __init__( self.unit = kwargs.get('unit', None) -class OperationMetaPropertyInfo(msrest.serialization.Model): - """properties on meta info. - - :param service_specification: The operation meta service specification. - :type service_specification: - ~data_share_management_client.models.OperationMetaServiceSpecification - """ - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, - } - - def __init__( - self, - **kwargs - ): - super(OperationMetaPropertyInfo, self).__init__(**kwargs) - self.service_specification = kwargs.get('service_specification', None) - - class OperationMetaServiceSpecification(msrest.serialization.Model): """The operation meta service specification. @@ -3554,13 +2287,13 @@ def __init__( class OperationModel(msrest.serialization.Model): """The response model for get operations. - :param display: Properties on operations. + :param display: Properties on the operation. :type display: ~data_share_management_client.models.OperationModelProperties :param name: Operation name for display purposes. :type name: str :param origin: origin of the operation. :type origin: str - :param service_specification: The operation meta service specification. + :param service_specification: meta service specification. :type service_specification: ~data_share_management_client.models.OperationMetaServiceSpecification """ @@ -3621,7 +2354,7 @@ class OperationResponse(msrest.serialization.Model): :param end_time: start time. :type end_time: ~datetime.datetime - :param error: The data share error body model. + :param error: The error property when status is failed. :type error: ~data_share_management_client.models.DataShareErrorInfo :param start_time: start time. :type start_time: ~datetime.datetime @@ -3760,96 +2493,6 @@ def __init__( self.value = kwargs.get('value', None) -class ProviderShareSubscriptionProperties(msrest.serialization.Model): - """Provider share subscription properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar consumer_email: Email of the consumer who created the share subscription. - :vartype consumer_email: str - :ivar consumer_name: Name of the consumer who created the share subscription. - :vartype consumer_name: str - :ivar consumer_tenant_name: Tenant name of the consumer who created the share subscription. - :vartype consumer_tenant_name: str - :ivar created_at: created at. - :vartype created_at: ~datetime.datetime - :ivar provider_email: Email of the provider who created the share. - :vartype provider_email: str - :ivar provider_name: Name of the provider who created the share. - :vartype provider_name: str - :ivar shared_at: Shared at. - :vartype shared_at: ~datetime.datetime - :ivar share_subscription_object_id: share Subscription Object Id. - :vartype share_subscription_object_id: str - :ivar share_subscription_status: Gets the status of share subscription. Possible values - include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. - :vartype share_subscription_status: str or - ~data_share_management_client.models.ShareSubscriptionStatus - """ - - _validation = { - 'consumer_email': {'readonly': True}, - 'consumer_name': {'readonly': True}, - 'consumer_tenant_name': {'readonly': True}, - 'created_at': {'readonly': True}, - 'provider_email': {'readonly': True}, - 'provider_name': {'readonly': True}, - 'shared_at': {'readonly': True}, - 'share_subscription_object_id': {'readonly': True}, - 'share_subscription_status': {'readonly': True}, - } - - _attribute_map = { - 'consumer_email': {'key': 'consumerEmail', 'type': 'str'}, - 'consumer_name': {'key': 'consumerName', 'type': 'str'}, - 'consumer_tenant_name': {'key': 'consumerTenantName', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provider_email': {'key': 'providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'providerName', 'type': 'str'}, - 'shared_at': {'key': 'sharedAt', 'type': 'iso-8601'}, - 'share_subscription_object_id': {'key': 'shareSubscriptionObjectId', 'type': 'str'}, - 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderShareSubscriptionProperties, self).__init__(**kwargs) - self.consumer_email = None - self.consumer_name = None - self.consumer_tenant_name = None - self.created_at = None - self.provider_email = None - self.provider_name = None - self.shared_at = None - self.share_subscription_object_id = None - self.share_subscription_status = None - - -class ScheduledSourceShareSynchronizationSettingProperties(msrest.serialization.Model): - """A Scheduled source synchronization setting data transfer object. - - :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. - :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval - :param synchronization_time: Synchronization time. - :type synchronization_time: ~datetime.datetime - """ - - _attribute_map = { - 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, - 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - **kwargs - ): - super(ScheduledSourceShareSynchronizationSettingProperties, self).__init__(**kwargs) - self.recurrence_interval = kwargs.get('recurrence_interval', None) - self.synchronization_time = kwargs.get('synchronization_time', None) - - class SourceShareSynchronizationSetting(msrest.serialization.Model): """A view of synchronization setting added by the provider. @@ -3858,10 +2501,10 @@ class SourceShareSynchronizationSetting(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -3890,10 +2533,10 @@ class ScheduledSourceSynchronizationSetting(SourceShareSynchronizationSetting): All required parameters must be populated in order to send to Azure. - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval @@ -3937,10 +2580,10 @@ class SynchronizationSetting(ProxyDto): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -3983,14 +2626,14 @@ class ScheduledSynchronizationSetting(SynchronizationSetting): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :ivar created_at: Time at which the synchronization setting was created. :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', @@ -4004,63 +2647,9 @@ class ScheduledSynchronizationSetting(SynchronizationSetting): _validation = { 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'recurrence_interval': {'required': True}, - 'synchronization_time': {'required': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, - 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ScheduledSynchronizationSetting, self).__init__(**kwargs) - self.kind = 'ScheduleBased' - self.created_at = None - self.provisioning_state = None - self.recurrence_interval = kwargs.get('recurrence_interval', None) - self.synchronization_time = kwargs.get('synchronization_time', None) - self.user_name = None - - -class ScheduledSynchronizationSettingProperties(msrest.serialization.Model): - """A Scheduled synchronization setting data transfer object. - - 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. - - :ivar created_at: Time at which the synchronization setting was created. - :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', - 'Day'. - :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval - :param synchronization_time: Required. Synchronization time. - :type synchronization_time: ~datetime.datetime - :ivar user_name: Name of the user who created the synchronization setting. - :vartype user_name: str - """ - - _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, 'created_at': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'recurrence_interval': {'required': True}, @@ -4069,18 +2658,23 @@ class ScheduledSynchronizationSettingProperties(msrest.serialization.Model): } _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, - 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, - 'user_name': {'key': 'userName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ScheduledSynchronizationSettingProperties, self).__init__(**kwargs) + super(ScheduledSynchronizationSetting, self).__init__(**kwargs) + self.kind = 'ScheduleBased' self.created_at = None self.provisioning_state = None self.recurrence_interval = kwargs.get('recurrence_interval', None) @@ -4104,10 +2698,10 @@ class Trigger(ProxyDto): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -4150,15 +2744,15 @@ class ScheduledTrigger(Trigger): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :ivar created_at: Time at which the trigger was created. :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Gets the provisioning state. Possible values include: 'Succeeded', + 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', 'Day'. @@ -4217,66 +2811,6 @@ def __init__( self.user_name = None -class ScheduledTriggerProperties(msrest.serialization.Model): - """A Scheduled trigger data transfer object. - - 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. - - :ivar created_at: Time at which the trigger was created. - :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', - 'Day'. - :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval - :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', - 'FullSync'. - :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode - :param synchronization_time: Required. Synchronization time. - :type synchronization_time: ~datetime.datetime - :ivar trigger_status: Gets the trigger state. Possible values include: 'Active', 'Inactive', - 'SourceSynchronizationSettingDeleted'. - :vartype trigger_status: str or ~data_share_management_client.models.TriggerStatus - :ivar user_name: Name of the user who created the trigger. - :vartype user_name: str - """ - - _validation = { - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'recurrence_interval': {'required': True}, - 'synchronization_time': {'required': True}, - 'trigger_status': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, - 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, - 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, - 'trigger_status': {'key': 'triggerStatus', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ScheduledTriggerProperties, self).__init__(**kwargs) - self.created_at = None - self.provisioning_state = None - self.recurrence_interval = kwargs.get('recurrence_interval', None) - self.synchronization_mode = kwargs.get('synchronization_mode', None) - self.synchronization_time = kwargs.get('synchronization_time', None) - self.trigger_status = None - self.user_name = None - - class Share(ProxyDto): """A share data transfer object. @@ -4292,7 +2826,7 @@ class Share(ProxyDto): :vartype created_at: ~datetime.datetime :param description: Share description. :type description: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. @@ -4366,207 +2900,24 @@ def __init__( self, **kwargs ): - super(ShareList, self).__init__(**kwargs) - self.next_link = kwargs.get('next_link', None) - self.value = kwargs.get('value', None) - - -class ShareProperties(msrest.serialization.Model): - """Share property bag. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar created_at: Time at which the share was created. - :vartype created_at: ~datetime.datetime - :param description: Share description. - :type description: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. - :type share_kind: str or ~data_share_management_client.models.ShareKind - :param terms: Share terms. - :type terms: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'share_kind': {'key': 'shareKind', 'type': 'str'}, - 'terms': {'key': 'terms', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ShareProperties, self).__init__(**kwargs) - self.created_at = None - self.description = kwargs.get('description', None) - self.provisioning_state = None - self.share_kind = kwargs.get('share_kind', None) - self.terms = kwargs.get('terms', None) - self.user_email = None - self.user_name = None - - -class ShareSubscription(ProxyDto): - """A share subscription data transfer object. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :ivar created_at: Time at which the share subscription was created. - :vartype created_at: ~datetime.datetime - :param invitation_id: Required. The invitation id. - :type invitation_id: str - :ivar provider_email: Email of the provider who created the resource. - :vartype provider_email: str - :ivar provider_name: Name of the provider who created the resource. - :vartype provider_name: str - :ivar provider_tenant_name: Tenant name of the provider who created the resource. - :vartype provider_tenant_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :ivar share_description: Description of share. - :vartype share_description: str - :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. - :vartype share_kind: str or ~data_share_management_client.models.ShareKind - :ivar share_name: Name of the share. - :vartype share_name: str - :ivar share_subscription_status: Gets the status of share subscription. Possible values - include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. - :vartype share_subscription_status: str or - ~data_share_management_client.models.ShareSubscriptionStatus - :ivar share_terms: Terms of a share. - :vartype share_terms: str - :param source_share_location: Required. Source share location. - :type source_share_location: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'created_at': {'readonly': True}, - 'invitation_id': {'required': True}, - 'provider_email': {'readonly': True}, - 'provider_name': {'readonly': True}, - 'provider_tenant_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'share_description': {'readonly': True}, - 'share_kind': {'readonly': True}, - 'share_name': {'readonly': True}, - 'share_subscription_status': {'readonly': True}, - 'share_terms': {'readonly': True}, - 'source_share_location': {'required': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, - 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, - 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, - 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'share_description': {'key': 'properties.shareDescription', 'type': 'str'}, - 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, - 'share_name': {'key': 'properties.shareName', 'type': 'str'}, - 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, - 'share_terms': {'key': 'properties.shareTerms', 'type': 'str'}, - 'source_share_location': {'key': 'properties.sourceShareLocation', 'type': 'str'}, - 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ShareSubscription, self).__init__(**kwargs) - self.created_at = None - self.invitation_id = kwargs.get('invitation_id', None) - self.provider_email = None - self.provider_name = None - self.provider_tenant_name = None - self.provisioning_state = None - self.share_description = None - self.share_kind = None - self.share_name = None - self.share_subscription_status = None - self.share_terms = None - self.source_share_location = kwargs.get('source_share_location', None) - self.user_email = None - self.user_name = None - - -class ShareSubscriptionList(msrest.serialization.Model): - """List response for get ShareSubscription. - - All required parameters must be populated in order to send to Azure. - - :param next_link: The Url of next result page. - :type next_link: str - :param value: Required. Collection of items of type DataTransferObjects. - :type value: list[~data_share_management_client.models.ShareSubscription] - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ShareSubscription]'}, - } - - def __init__( - self, - **kwargs - ): - super(ShareSubscriptionList, self).__init__(**kwargs) + super(ShareList, self).__init__(**kwargs) self.next_link = kwargs.get('next_link', None) self.value = kwargs.get('value', None) -class ShareSubscriptionProperties(msrest.serialization.Model): - """Share subscription property bag. +class ShareSubscription(ProxyDto): + """A share subscription data transfer object. 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. + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str :ivar created_at: Time at which the share subscription was created. :vartype created_at: ~datetime.datetime :param invitation_id: Required. The invitation id. @@ -4577,16 +2928,16 @@ class ShareSubscriptionProperties(msrest.serialization.Model): :vartype provider_name: str :ivar provider_tenant_name: Tenant name of the provider who created the resource. :vartype provider_tenant_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Provisioning state of the share subscription. Possible values + include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :ivar share_description: Description of share. :vartype share_description: str - :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :ivar share_kind: Kind of share. Possible values include: 'CopyBased', 'InPlace'. :vartype share_kind: str or ~data_share_management_client.models.ShareKind :ivar share_name: Name of the share. :vartype share_name: str - :ivar share_subscription_status: Gets the status of share subscription. Possible values + :ivar share_subscription_status: Gets the current status of share subscription. Possible values include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. :vartype share_subscription_status: str or ~data_share_management_client.models.ShareSubscriptionStatus @@ -4601,6 +2952,9 @@ class ShareSubscriptionProperties(msrest.serialization.Model): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'created_at': {'readonly': True}, 'invitation_id': {'required': True}, 'provider_email': {'readonly': True}, @@ -4618,27 +2972,30 @@ class ShareSubscriptionProperties(msrest.serialization.Model): } _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'invitation_id': {'key': 'invitationId', 'type': 'str'}, - 'provider_email': {'key': 'providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'providerName', 'type': 'str'}, - 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'share_description': {'key': 'shareDescription', 'type': 'str'}, - 'share_kind': {'key': 'shareKind', 'type': 'str'}, - 'share_name': {'key': 'shareName', 'type': 'str'}, - 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, - 'share_terms': {'key': 'shareTerms', 'type': 'str'}, - 'source_share_location': {'key': 'sourceShareLocation', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'invitation_id': {'key': 'properties.invitationId', 'type': 'str'}, + 'provider_email': {'key': 'properties.providerEmail', 'type': 'str'}, + 'provider_name': {'key': 'properties.providerName', 'type': 'str'}, + 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'share_description': {'key': 'properties.shareDescription', 'type': 'str'}, + 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, + 'share_name': {'key': 'properties.shareName', 'type': 'str'}, + 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, + 'share_terms': {'key': 'properties.shareTerms', 'type': 'str'}, + 'source_share_location': {'key': 'properties.sourceShareLocation', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ShareSubscriptionProperties, self).__init__(**kwargs) + super(ShareSubscription, self).__init__(**kwargs) self.created_at = None self.invitation_id = kwargs.get('invitation_id', None) self.provider_email = None @@ -4655,6 +3012,35 @@ def __init__( self.user_name = None +class ShareSubscriptionList(msrest.serialization.Model): + """List response for get ShareSubscription. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSubscription] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSubscription]'}, + } + + def __init__( + self, + **kwargs + ): + super(ShareSubscriptionList, self).__init__(**kwargs) + self.next_link = kwargs.get('next_link', None) + self.value = kwargs.get('value', None) + + class ShareSubscriptionSynchronization(msrest.serialization.Model): """A ShareSubscriptionSynchronization data transfer object. @@ -4674,7 +3060,7 @@ class ShareSubscriptionSynchronization(msrest.serialization.Model): :vartype status: str :param synchronization_id: Required. Synchronization id. :type synchronization_id: str - :ivar synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + :ivar synchronization_mode: Synchronization Mode. Possible values include: 'Incremental', 'FullSync'. :vartype synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode """ @@ -4862,7 +3248,7 @@ def __init__( self.value = kwargs.get('value', None) -class SqlDbTableDataSet(DataSet): +class SqlDBTableDataSet(DataSet): """A SQL DB table data set. Variables are only populated by the server, and will be ignored when sending a request. @@ -4916,7 +3302,7 @@ def __init__( self, **kwargs ): - super(SqlDbTableDataSet, self).__init__(**kwargs) + super(SqlDBTableDataSet, self).__init__(**kwargs) self.kind = 'SqlDBTable' self.database_name = kwargs.get('database_name', None) self.data_set_id = None @@ -4925,7 +3311,7 @@ def __init__( self.table_name = kwargs.get('table_name', None) -class SqlDbTableDataSetMapping(DataSetMapping): +class SqlDBTableDataSetMapping(DataSetMapping): """A SQL DB Table data set mapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -4938,10 +3324,10 @@ class SqlDbTableDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param database_name: Required. DatabaseName name of the sink data set. :type database_name: str @@ -4951,7 +3337,7 @@ class SqlDbTableDataSetMapping(DataSetMapping): include: 'Ok', 'Broken'. :vartype data_set_mapping_status: str or ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param schema_name: Required. Schema of the table. Default value is dbo. @@ -4994,7 +3380,7 @@ def __init__( self, **kwargs ): - super(SqlDbTableDataSetMapping, self).__init__(**kwargs) + super(SqlDBTableDataSetMapping, self).__init__(**kwargs) self.kind = 'SqlDBTable' self.database_name = kwargs.get('database_name', None) self.data_set_id = kwargs.get('data_set_id', None) @@ -5005,113 +3391,6 @@ def __init__( self.table_name = kwargs.get('table_name', None) -class SqlDbTableDataSetMappingProperties(msrest.serialization.Model): - """Properties of the SQL DB table data set mapping. - - 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 database_name: Required. DatabaseName name of the sink data set. - :type database_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DB table name. - :type table_name: str - """ - - _validation = { - 'database_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SqlDbTableDataSetMappingProperties, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.provisioning_state = None - self.schema_name = kwargs.get('schema_name', None) - self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) - self.table_name = kwargs.get('table_name', None) - - -class SqlDbTableProperties(msrest.serialization.Model): - """Properties of the SQL DB table data set. - - 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 database_name: Required. Database name of the source data set. - :type database_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DB table name. - :type table_name: str - """ - - _validation = { - 'database_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SqlDbTableProperties, self).__init__(**kwargs) - self.database_name = kwargs.get('database_name', None) - self.data_set_id = None - self.schema_name = kwargs.get('schema_name', None) - self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) - self.table_name = kwargs.get('table_name', None) - - class SqlDwTableDataSet(DataSet): """A SQL DW table data set. @@ -5188,10 +3467,10 @@ class SqlDwTableDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -5201,7 +3480,7 @@ class SqlDwTableDataSetMapping(DataSetMapping): ~data_share_management_client.models.DataSetMappingStatus :param data_warehouse_name: Required. DataWarehouse name of the source data set. :type data_warehouse_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param schema_name: Required. Schema of the table. Default value is dbo. @@ -5255,113 +3534,6 @@ def __init__( self.table_name = kwargs.get('table_name', None) -class SqlDwTableDataSetMappingProperties(msrest.serialization.Model): - """Properties of the SQL DW table data set mapping. - - 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param data_warehouse_name: Required. DataWarehouse name of the source data set. - :type data_warehouse_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DW table name. - :type table_name: str - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'data_warehouse_name': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SqlDwTableDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = kwargs.get('data_set_id', None) - self.data_set_mapping_status = None - self.data_warehouse_name = kwargs.get('data_warehouse_name', None) - self.provisioning_state = None - self.schema_name = kwargs.get('schema_name', None) - self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) - self.table_name = kwargs.get('table_name', None) - - -class SqlDwTableProperties(msrest.serialization.Model): - """Properties of the SQL DW table data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param data_warehouse_name: Required. DataWarehouse name of the source data set. - :type data_warehouse_name: str - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DW table name. - :type table_name: str - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'data_warehouse_name': {'required': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(SqlDwTableProperties, self).__init__(**kwargs) - self.data_set_id = None - self.data_warehouse_name = kwargs.get('data_warehouse_name', None) - self.schema_name = kwargs.get('schema_name', None) - self.sql_server_resource_id = kwargs.get('sql_server_resource_id', None) - self.table_name = kwargs.get('table_name', None) - - class SynchronizationDetails(msrest.serialization.Model): """Synchronization details at data set level. @@ -5520,8 +3692,8 @@ def __init__( class Synchronize(msrest.serialization.Model): """Payload for the synchronizing the data. - :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', - 'FullSync'. + :param synchronization_mode: Mode of synchronization used in triggers and snapshot sync. + Incremental by default. Possible values include: 'Incremental', 'FullSync'. :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode """ diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py index b0ec92783d0..bc585b353f5 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_models_py3.py @@ -76,7 +76,7 @@ class Account(DefaultDto): :type tags: dict[str, str] :ivar type: Type of the azure resource. :vartype type: str - :param identity: Required. Identity of resource. + :param identity: Required. Identity Info on the Account. :type identity: ~data_share_management_client.models.Identity :ivar created_at: Time at which the account was created. :vartype created_at: ~datetime.datetime @@ -161,47 +161,6 @@ def __init__( self.value = value -class AccountProperties(msrest.serialization.Model): - """Account property bag. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar created_at: Time at which the account was created. - :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(AccountProperties, self).__init__(**kwargs) - self.created_at = None - self.provisioning_state = None - self.user_email = None - self.user_name = None - - class AccountUpdateParameters(msrest.serialization.Model): """Update parameters for accounts. @@ -262,7 +221,7 @@ class DataSet(ProxyDto): """A DataSet data transfer object. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AdlsGen1FileDataSet, AdlsGen1FolderDataSet, AdlsGen2FileDataSet, AdlsGen2FileSystemDataSet, AdlsGen2FolderDataSet, BlobDataSet, BlobFolderDataSet, BlobContainerDataSet, KustoClusterDataSet, KustoDatabaseDataSet, SqlDbTableDataSet, SqlDwTableDataSet. + sub-classes are: AdlsGen1FileDataSet, AdlsGen1FolderDataSet, AdlsGen2FileDataSet, AdlsGen2FileSystemDataSet, AdlsGen2FolderDataSet, BlobDataSet, BlobFolderDataSet, BlobContainerDataSet, KustoClusterDataSet, KustoDatabaseDataSet, SqlDBTableDataSet, SqlDwTableDataSet. Variables are only populated by the server, and will be ignored when sending a request. @@ -296,7 +255,7 @@ class DataSet(ProxyDto): } _subtype_map = { - 'kind': {'AdlsGen1File': 'AdlsGen1FileDataSet', 'AdlsGen1Folder': 'AdlsGen1FolderDataSet', 'AdlsGen2File': 'AdlsGen2FileDataSet', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSet', 'AdlsGen2Folder': 'AdlsGen2FolderDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDbTableDataSet', 'SqlDWTable': 'SqlDwTableDataSet'} + 'kind': {'AdlsGen1File': 'AdlsGen1FileDataSet', 'AdlsGen1Folder': 'AdlsGen1FolderDataSet', 'AdlsGen2File': 'AdlsGen2FileDataSet', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSet', 'AdlsGen2Folder': 'AdlsGen2FolderDataSet', 'Blob': 'BlobDataSet', 'BlobFolder': 'BlobFolderDataSet', 'Container': 'BlobContainerDataSet', 'KustoCluster': 'KustoClusterDataSet', 'KustoDatabase': 'KustoDatabaseDataSet', 'SqlDBTable': 'SqlDBTableDataSet', 'SqlDWTable': 'SqlDwTableDataSet'} } def __init__( @@ -385,64 +344,6 @@ def __init__( self.subscription_id = subscription_id -class AdlsGen1FileProperties(msrest.serialization.Model): - """Properties of the ADLS Gen1 file data set. - - 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 account_name: Required. The ADLS account name. - :type account_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_name: Required. The file name in the ADLS account. - :type file_name: str - :param folder_path: Required. The folder path within the ADLS account. - :type folder_path: str - :param resource_group: Required. Resource group of ADLS account. - :type resource_group: str - :param subscription_id: Required. Subscription id of ADLS account. - :type subscription_id: str - """ - - _validation = { - 'account_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'file_name': {'required': True}, - 'folder_path': {'required': True}, - 'resource_group': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_name': {'key': 'fileName', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - account_name: str, - file_name: str, - folder_path: str, - resource_group: str, - subscription_id: str, - **kwargs - ): - super(AdlsGen1FileProperties, self).__init__(**kwargs) - self.account_name = account_name - self.data_set_id = None - self.file_name = file_name - self.folder_path = folder_path - self.resource_group = resource_group - self.subscription_id = subscription_id - - class AdlsGen1FolderDataSet(DataSet): """An ADLS Gen 1 folder data set. @@ -515,58 +416,6 @@ def __init__( self.subscription_id = subscription_id -class AdlsGen1FolderProperties(msrest.serialization.Model): - """Properties of the ADLS Gen1 folder data set. - - 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 account_name: Required. The ADLS account name. - :type account_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param folder_path: Required. The folder path within the ADLS account. - :type folder_path: str - :param resource_group: Required. Resource group of ADLS account. - :type resource_group: str - :param subscription_id: Required. Subscription id of ADLS account. - :type subscription_id: str - """ - - _validation = { - 'account_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'folder_path': {'required': True}, - 'resource_group': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'account_name': {'key': 'accountName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - account_name: str, - folder_path: str, - resource_group: str, - subscription_id: str, - **kwargs - ): - super(AdlsGen1FolderProperties, self).__init__(**kwargs) - self.account_name = account_name - self.data_set_id = None - self.folder_path = folder_path - self.resource_group = resource_group - self.subscription_id = subscription_id - - class AdlsGen2FileDataSet(DataSet): """An ADLS Gen 2 file data set. @@ -649,7 +498,7 @@ class DataSetMapping(ProxyDto): """A data set mapping data transfer object. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: AdlsGen2FileDataSetMapping, AdlsGen2FileSystemDataSetMapping, AdlsGen2FolderDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping, BlobContainerDataSetMapping, KustoClusterDataSetMapping, KustoDatabaseDataSetMapping, SqlDbTableDataSetMapping, SqlDwTableDataSetMapping. + sub-classes are: AdlsGen2FileDataSetMapping, AdlsGen2FileSystemDataSetMapping, AdlsGen2FolderDataSetMapping, BlobDataSetMapping, BlobFolderDataSetMapping, BlobContainerDataSetMapping, KustoClusterDataSetMapping, KustoDatabaseDataSetMapping, SqlDBTableDataSetMapping, SqlDwTableDataSetMapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -661,10 +510,10 @@ class DataSetMapping(ProxyDto): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -683,7 +532,7 @@ class DataSetMapping(ProxyDto): } _subtype_map = { - 'kind': {'AdlsGen2File': 'AdlsGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'AdlsGen2FolderDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDbTableDataSetMapping', 'SqlDWTable': 'SqlDwTableDataSetMapping'} + 'kind': {'AdlsGen2File': 'AdlsGen2FileDataSetMapping', 'AdlsGen2FileSystem': 'AdlsGen2FileSystemDataSetMapping', 'AdlsGen2Folder': 'AdlsGen2FolderDataSetMapping', 'Blob': 'BlobDataSetMapping', 'BlobFolder': 'BlobFolderDataSetMapping', 'Container': 'BlobContainerDataSetMapping', 'KustoCluster': 'KustoClusterDataSetMapping', 'KustoDatabase': 'KustoDatabaseDataSetMapping', 'SqlDBTable': 'SqlDBTableDataSetMapping', 'SqlDWTable': 'SqlDwTableDataSetMapping'} } def __init__( @@ -707,10 +556,10 @@ class AdlsGen2FileDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -722,9 +571,9 @@ class AdlsGen2FileDataSetMapping(DataSetMapping): :type file_path: str :param file_system: Required. File system to which the file belongs. :type file_system: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :param output_type: Type of output file. Possible values include: 'Csv', 'Parquet'. :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -791,28 +640,28 @@ def __init__( self.subscription_id = subscription_id -class AdlsGen2FileDataSetMappingProperties(msrest.serialization.Model): - """ADLS Gen 2 file data set mapping property bag. +class AdlsGen2FileSystemDataSet(DataSet): + """An ADLS Gen 2 file system data set. 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_path: Required. File path within the file system. - :type file_path: str - :param file_system: Required. File system to which the file belongs. + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param file_system: Required. The file system name. :type file_system: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. - :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -822,65 +671,76 @@ class AdlsGen2FileDataSetMappingProperties(msrest.serialization.Model): """ _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_path': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'readonly': True}, 'file_system': {'required': True}, - 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'output_type': {'key': 'outputType', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( self, *, - data_set_id: str, - file_path: str, file_system: str, resource_group: str, storage_account_name: str, subscription_id: str, - output_type: Optional[Union[str, "OutputType"]] = None, **kwargs ): - super(AdlsGen2FileDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.file_path = file_path + super(AdlsGen2FileSystemDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2FileSystem' + self.data_set_id = None self.file_system = file_system - self.output_type = output_type - self.provisioning_state = None self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FileProperties(msrest.serialization.Model): - """Properties of the ADLS Gen2 file data set. +class AdlsGen2FileSystemDataSetMapping(DataSetMapping): + """An ADLS Gen2 file system data set mapping. 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. - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_path: Required. File path within the file system. - :type file_path: str - :param file_system: Required. File system to which the file belongs. + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :param file_system: Required. The file system name. :type file_system: str + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -890,44 +750,56 @@ class AdlsGen2FileProperties(msrest.serialization.Model): """ _validation = { - 'data_set_id': {'readonly': True}, - 'file_path': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, 'file_system': {'required': True}, + 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( self, *, - file_path: str, + data_set_id: str, file_system: str, resource_group: str, storage_account_name: str, subscription_id: str, **kwargs ): - super(AdlsGen2FileProperties, self).__init__(**kwargs) - self.data_set_id = None - self.file_path = file_path + super(AdlsGen2FileSystemDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2FileSystem' + self.data_set_id = data_set_id + self.data_set_mapping_status = None self.file_system = file_system + self.provisioning_state = None self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FileSystemDataSet(DataSet): - """An ADLS Gen 2 file system data set. +class AdlsGen2FolderDataSet(DataSet): + """An ADLS Gen 2 folder data set. Variables are only populated by the server, and will be ignored when sending a request. @@ -946,8 +818,10 @@ class AdlsGen2FileSystemDataSet(DataSet): :type kind: str or ~data_share_management_client.models.Kind :ivar data_set_id: Unique id for identifying a data set resource. :vartype data_set_id: str - :param file_system: Required. The file system name. + :param file_system: Required. File system to which the folder belongs. :type file_system: str + :param folder_path: Required. Folder path within the file system. + :type folder_path: str :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -963,6 +837,7 @@ class AdlsGen2FileSystemDataSet(DataSet): 'kind': {'required': True}, 'data_set_id': {'readonly': True}, 'file_system': {'required': True}, + 'folder_path': {'required': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, @@ -975,6 +850,7 @@ class AdlsGen2FileSystemDataSet(DataSet): 'kind': {'key': 'kind', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, @@ -984,22 +860,24 @@ def __init__( self, *, file_system: str, + folder_path: str, resource_group: str, storage_account_name: str, subscription_id: str, **kwargs ): - super(AdlsGen2FileSystemDataSet, self).__init__(**kwargs) - self.kind = 'AdlsGen2FileSystem' + super(AdlsGen2FolderDataSet, self).__init__(**kwargs) + self.kind = 'AdlsGen2Folder' self.data_set_id = None self.file_system = file_system + self.folder_path = folder_path self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FileSystemDataSetMapping(DataSetMapping): - """An ADLS Gen2 file system data set mapping. +class AdlsGen2FolderDataSetMapping(DataSetMapping): + """An ADLS Gen2 folder data set mapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -1011,10 +889,10 @@ class AdlsGen2FileSystemDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -1022,9 +900,11 @@ class AdlsGen2FileSystemDataSetMapping(DataSetMapping): include: 'Ok', 'Broken'. :vartype data_set_mapping_status: str or ~data_share_management_client.models.DataSetMappingStatus - :param file_system: Required. The file system name. + :param file_system: Required. File system to which the folder belongs. :type file_system: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :param folder_path: Required. Folder path within the file system. + :type folder_path: str + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -1043,6 +923,7 @@ class AdlsGen2FileSystemDataSetMapping(DataSetMapping): 'data_set_id': {'required': True}, 'data_set_mapping_status': {'readonly': True}, 'file_system': {'required': True}, + 'folder_path': {'required': True}, 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, @@ -1057,6 +938,7 @@ class AdlsGen2FileSystemDataSetMapping(DataSetMapping): 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, + 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, @@ -1068,40 +950,46 @@ def __init__( *, data_set_id: str, file_system: str, + folder_path: str, resource_group: str, storage_account_name: str, subscription_id: str, **kwargs ): - super(AdlsGen2FileSystemDataSetMapping, self).__init__(**kwargs) - self.kind = 'AdlsGen2FileSystem' + super(AdlsGen2FolderDataSetMapping, self).__init__(**kwargs) + self.kind = 'AdlsGen2Folder' self.data_set_id = data_set_id self.data_set_mapping_status = None self.file_system = file_system + self.folder_path = folder_path self.provisioning_state = None self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FileSystemDataSetMappingProperties(msrest.serialization.Model): - """ADLS Gen 2 file system data set mapping property bag. +class BlobContainerDataSet(DataSet): + """An Azure storage blob container data set. 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_system: Required. The file system name. - :type file_system: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -1111,56 +999,76 @@ class AdlsGen2FileSystemDataSetMappingProperties(msrest.serialization.Model): """ _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_system': {'required': True}, - 'provisioning_state': {'readonly': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( self, *, - data_set_id: str, - file_system: str, + container_name: str, resource_group: str, storage_account_name: str, subscription_id: str, **kwargs ): - super(AdlsGen2FileSystemDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.file_system = file_system - self.provisioning_state = None + super(BlobContainerDataSet, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = container_name + self.data_set_id = None self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FileSystemProperties(msrest.serialization.Model): - """Properties of the ADLS Gen2 file system data set. +class BlobContainerDataSetMapping(DataSetMapping): + """A Blob container data set mapping. 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. - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_system: Required. The file system name. - :type file_system: str + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. BLOB Container name. + :type container_name: str + :param data_set_id: Required. The id of the source data set. + :type data_set_id: str + :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values + include: 'Ok', 'Broken'. + :vartype data_set_mapping_status: str or + ~data_share_management_client.models.DataSetMappingStatus + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: + 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -1170,40 +1078,56 @@ class AdlsGen2FileSystemProperties(msrest.serialization.Model): """ _validation = { - 'data_set_id': {'readonly': True}, - 'file_system': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, + 'container_name': {'required': True}, + 'data_set_id': {'required': True}, + 'data_set_mapping_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( self, *, - file_system: str, + container_name: str, + data_set_id: str, resource_group: str, storage_account_name: str, subscription_id: str, **kwargs ): - super(AdlsGen2FileSystemProperties, self).__init__(**kwargs) - self.data_set_id = None - self.file_system = file_system + super(BlobContainerDataSetMapping, self).__init__(**kwargs) + self.kind = 'Container' + self.container_name = container_name + self.data_set_id = data_set_id + self.data_set_mapping_status = None + self.provisioning_state = None self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FolderDataSet(DataSet): - """An ADLS Gen 2 folder data set. +class BlobDataSet(DataSet): + """An Azure storage blob data set. Variables are only populated by the server, and will be ignored when sending a request. @@ -1220,12 +1144,12 @@ class AdlsGen2FolderDataSet(DataSet): 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str :ivar data_set_id: Unique id for identifying a data set resource. :vartype data_set_id: str - :param file_system: Required. File system to which the folder belongs. - :type file_system: str - :param folder_path: Required. Folder path within the file system. - :type folder_path: str + :param file_path: Required. File path within the source data set. + :type file_path: str :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -1239,9 +1163,9 @@ class AdlsGen2FolderDataSet(DataSet): 'name': {'readonly': True}, 'type': {'readonly': True}, 'kind': {'required': True}, + 'container_name': {'required': True}, 'data_set_id': {'readonly': True}, - 'file_system': {'required': True}, - 'folder_path': {'required': True}, + 'file_path': {'required': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, 'subscription_id': {'required': True}, @@ -1252,9 +1176,9 @@ class AdlsGen2FolderDataSet(DataSet): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, - 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, @@ -1263,25 +1187,25 @@ class AdlsGen2FolderDataSet(DataSet): def __init__( self, *, - file_system: str, - folder_path: str, + container_name: str, + file_path: str, resource_group: str, storage_account_name: str, subscription_id: str, **kwargs ): - super(AdlsGen2FolderDataSet, self).__init__(**kwargs) - self.kind = 'AdlsGen2Folder' + super(BlobDataSet, self).__init__(**kwargs) + self.kind = 'Blob' + self.container_name = container_name self.data_set_id = None - self.file_system = file_system - self.folder_path = folder_path + self.file_path = file_path self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FolderDataSetMapping(DataSetMapping): - """An ADLS Gen2 folder data set mapping. +class BlobDataSetMapping(DataSetMapping): + """A Blob data set mapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -1293,22 +1217,24 @@ class AdlsGen2FolderDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str :param data_set_id: Required. The id of the source data set. :type data_set_id: str :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values include: 'Ok', 'Broken'. :vartype data_set_mapping_status: str or ~data_share_management_client.models.DataSetMappingStatus - :param file_system: Required. File system to which the folder belongs. - :type file_system: str - :param folder_path: Required. Folder path within the file system. - :type folder_path: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :param file_path: Required. File path within the source data set. + :type file_path: str + :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. + :type output_type: str or ~data_share_management_client.models.OutputType + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -1324,10 +1250,10 @@ class AdlsGen2FolderDataSetMapping(DataSetMapping): 'name': {'readonly': True}, 'type': {'readonly': True}, 'kind': {'required': True}, + 'container_name': {'required': True}, 'data_set_id': {'required': True}, 'data_set_mapping_status': {'readonly': True}, - 'file_system': {'required': True}, - 'folder_path': {'required': True}, + 'file_path': {'required': True}, 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, @@ -1339,10 +1265,11 @@ class AdlsGen2FolderDataSetMapping(DataSetMapping): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, - 'file_system': {'key': 'properties.fileSystem', 'type': 'str'}, - 'folder_path': {'key': 'properties.folderPath', 'type': 'str'}, + 'file_path': {'key': 'properties.filePath', 'type': 'str'}, + 'output_type': {'key': 'properties.outputType', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, @@ -1352,862 +1279,52 @@ class AdlsGen2FolderDataSetMapping(DataSetMapping): def __init__( self, *, + container_name: str, data_set_id: str, - file_system: str, - folder_path: str, + file_path: str, resource_group: str, storage_account_name: str, subscription_id: str, + output_type: Optional[Union[str, "OutputType"]] = None, **kwargs ): - super(AdlsGen2FolderDataSetMapping, self).__init__(**kwargs) - self.kind = 'AdlsGen2Folder' + super(BlobDataSetMapping, self).__init__(**kwargs) + self.kind = 'Blob' + self.container_name = container_name self.data_set_id = data_set_id self.data_set_mapping_status = None - self.file_system = file_system - self.folder_path = folder_path + self.file_path = file_path + self.output_type = output_type self.provisioning_state = None self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class AdlsGen2FolderDataSetMappingProperties(msrest.serialization.Model): - """ADLS Gen 2 folder data set mapping property bag. +class BlobFolderDataSet(DataSet): + """An Azure storage blob folder data set. 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_system: Required. File system to which the folder belongs. - :type file_system: str - :param folder_path: Required. Folder path within the file system. - :type folder_path: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_system': {'required': True}, - 'folder_path': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - data_set_id: str, - file_system: str, - folder_path: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(AdlsGen2FolderDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.file_system = file_system - self.folder_path = folder_path - self.provisioning_state = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class AdlsGen2FolderProperties(msrest.serialization.Model): - """Properties of the ADLS Gen2 folder data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_system: Required. File system to which the folder belongs. - :type file_system: str - :param folder_path: Required. Folder path within the file system. - :type folder_path: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'file_system': {'required': True}, - 'folder_path': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_system': {'key': 'fileSystem', 'type': 'str'}, - 'folder_path': {'key': 'folderPath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - file_system: str, - folder_path: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(AdlsGen2FolderProperties, self).__init__(**kwargs) - self.data_set_id = None - self.file_system = file_system - self.folder_path = folder_path - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobContainerDataSet(DataSet): - """An Azure storage blob container data set. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. BLOB Container name. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobContainerDataSet, self).__init__(**kwargs) - self.kind = 'Container' - self.container_name = container_name - self.data_set_id = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobContainerDataSetMapping(DataSetMapping): - """A Blob container data set mapping. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. BLOB Container name. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - data_set_id: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobContainerDataSetMapping, self).__init__(**kwargs) - self.kind = 'Container' - self.container_name = container_name - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.provisioning_state = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobContainerMappingProperties(msrest.serialization.Model): - """Azure storage Blob container data set mapping property bag. - - 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 container_name: Required. BLOB Container name. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - data_set_id: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobContainerMappingProperties, self).__init__(**kwargs) - self.container_name = container_name - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.provisioning_state = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobContainerProperties(msrest.serialization.Model): - """Properties of the BLOB container data set. - - 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 container_name: Required. BLOB Container name. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobContainerProperties, self).__init__(**kwargs) - self.container_name = container_name - self.data_set_id = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobDataSet(DataSet): - """An Azure storage blob data set. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. Container that has the file path. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_path: Required. File path within the source data set. - :type file_path: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'file_path': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'file_path': {'key': 'properties.filePath', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - file_path: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobDataSet, self).__init__(**kwargs) - self.kind = 'Blob' - self.container_name = container_name - self.data_set_id = None - self.file_path = file_path - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobDataSetMapping(DataSetMapping): - """A Blob data set mapping. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. Container that has the file path. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param file_path: Required. File path within the source data set. - :type file_path: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. - :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'file_path': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, - 'file_path': {'key': 'properties.filePath', 'type': 'str'}, - 'output_type': {'key': 'properties.outputType', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - data_set_id: str, - file_path: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - output_type: Optional[Union[str, "OutputType"]] = None, - **kwargs - ): - super(BlobDataSetMapping, self).__init__(**kwargs) - self.kind = 'Blob' - self.container_name = container_name - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.file_path = file_path - self.output_type = output_type - self.provisioning_state = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobFolderDataSet(DataSet): - """An Azure storage blob folder data set. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. Container that has the file path. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param prefix: Required. Prefix for blob folder. - :type prefix: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'prefix': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'prefix': {'key': 'properties.prefix', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - prefix: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobFolderDataSet, self).__init__(**kwargs) - self.kind = 'BlobFolder' - self.container_name = container_name - self.data_set_id = None - self.prefix = prefix - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobFolderDataSetMapping(DataSetMapping): - """A Blob folder data set mapping. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param container_name: Required. Container that has the file path. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param prefix: Required. Prefix for blob folder. - :type prefix: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'prefix': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'container_name': {'key': 'properties.containerName', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, - 'prefix': {'key': 'properties.prefix', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - data_set_id: str, - prefix: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobFolderDataSetMapping, self).__init__(**kwargs) - self.kind = 'BlobFolder' - self.container_name = container_name - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.prefix = prefix - self.provisioning_state = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobFolderMappingProperties(msrest.serialization.Model): - """Azure storage Blob folder data set mapping property bag. - - 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 container_name: Required. Container that has the file path. - :type container_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param prefix: Required. Prefix for blob folder. - :type prefix: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'prefix': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'prefix': {'key': 'prefix', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - data_set_id: str, - prefix: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobFolderMappingProperties, self).__init__(**kwargs) - self.container_name = container_name - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.prefix = prefix - self.provisioning_state = None - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - -class BlobFolderProperties(msrest.serialization.Model): - """Properties of the blob folder data set. - - 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 container_name: Required. Container that has the file path. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param prefix: Required. Prefix for blob folder. - :type prefix: str + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set.Constant filled by server. Possible values include: + 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', + 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind + :param container_name: Required. Container that has the file path. + :type container_name: str + :ivar data_set_id: Unique id for identifying a data set resource. + :vartype data_set_id: str + :param prefix: Required. Prefix for blob folder. + :type prefix: str :param resource_group: Required. Resource group of storage account. :type resource_group: str :param storage_account_name: Required. Storage account name of the source data set. @@ -2217,6 +1334,10 @@ class BlobFolderProperties(msrest.serialization.Model): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, 'container_name': {'required': True}, 'data_set_id': {'readonly': True}, 'prefix': {'required': True}, @@ -2226,12 +1347,16 @@ class BlobFolderProperties(msrest.serialization.Model): } _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'prefix': {'key': 'prefix', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( @@ -2244,7 +1369,8 @@ def __init__( subscription_id: str, **kwargs ): - super(BlobFolderProperties, self).__init__(**kwargs) + super(BlobFolderDataSet, self).__init__(**kwargs) + self.kind = 'BlobFolder' self.container_name = container_name self.data_set_id = None self.prefix = prefix @@ -2253,13 +1379,24 @@ def __init__( self.subscription_id = subscription_id -class BlobMappingProperties(msrest.serialization.Model): - """Azure storage Blob data set mapping property bag. +class BlobFolderDataSetMapping(DataSetMapping): + """A Blob folder data set mapping. 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. + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind :param container_name: Required. Container that has the file path. :type container_name: str :param data_set_id: Required. The id of the source data set. @@ -2268,11 +1405,9 @@ class BlobMappingProperties(msrest.serialization.Model): include: 'Ok', 'Broken'. :vartype data_set_mapping_status: str or ~data_share_management_client.models.DataSetMappingStatus - :param file_path: Required. File path within the source data set. - :type file_path: str - :param output_type: File output type. Possible values include: 'Csv', 'Parquet'. - :type output_type: str or ~data_share_management_client.models.OutputType - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :param prefix: Required. Prefix for blob folder. + :type prefix: str + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param resource_group: Required. Resource group of storage account. @@ -2284,10 +1419,14 @@ class BlobMappingProperties(msrest.serialization.Model): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, 'container_name': {'required': True}, 'data_set_id': {'required': True}, 'data_set_mapping_status': {'readonly': True}, - 'file_path': {'required': True}, + 'prefix': {'required': True}, 'provisioning_state': {'readonly': True}, 'resource_group': {'required': True}, 'storage_account_name': {'required': True}, @@ -2295,15 +1434,18 @@ class BlobMappingProperties(msrest.serialization.Model): } _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'output_type': {'key': 'outputType', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'container_name': {'key': 'properties.containerName', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'prefix': {'key': 'properties.prefix', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_group': {'key': 'properties.resourceGroup', 'type': 'str'}, + 'storage_account_name': {'key': 'properties.storageAccountName', 'type': 'str'}, + 'subscription_id': {'key': 'properties.subscriptionId', 'type': 'str'}, } def __init__( @@ -2311,83 +1453,24 @@ def __init__( *, container_name: str, data_set_id: str, - file_path: str, + prefix: str, resource_group: str, storage_account_name: str, subscription_id: str, - output_type: Optional[Union[str, "OutputType"]] = None, **kwargs ): - super(BlobMappingProperties, self).__init__(**kwargs) + super(BlobFolderDataSetMapping, self).__init__(**kwargs) + self.kind = 'BlobFolder' self.container_name = container_name self.data_set_id = data_set_id self.data_set_mapping_status = None - self.file_path = file_path - self.output_type = output_type + self.prefix = prefix self.provisioning_state = None self.resource_group = resource_group self.storage_account_name = storage_account_name self.subscription_id = subscription_id -class BlobProperties(msrest.serialization.Model): - """Properties of the blob data set. - - 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 container_name: Required. Container that has the file path. - :type container_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param file_path: Required. File path within the source data set. - :type file_path: str - :param resource_group: Required. Resource group of storage account. - :type resource_group: str - :param storage_account_name: Required. Storage account name of the source data set. - :type storage_account_name: str - :param subscription_id: Required. Subscription id of storage account. - :type subscription_id: str - """ - - _validation = { - 'container_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'file_path': {'required': True}, - 'resource_group': {'required': True}, - 'storage_account_name': {'required': True}, - 'subscription_id': {'required': True}, - } - - _attribute_map = { - 'container_name': {'key': 'containerName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'file_path': {'key': 'filePath', 'type': 'str'}, - 'resource_group': {'key': 'resourceGroup', 'type': 'str'}, - 'storage_account_name': {'key': 'storageAccountName', 'type': 'str'}, - 'subscription_id': {'key': 'subscriptionId', 'type': 'str'}, - } - - def __init__( - self, - *, - container_name: str, - file_path: str, - resource_group: str, - storage_account_name: str, - subscription_id: str, - **kwargs - ): - super(BlobProperties, self).__init__(**kwargs) - self.container_name = container_name - self.data_set_id = None - self.file_path = file_path - self.resource_group = resource_group - self.storage_account_name = storage_account_name - self.subscription_id = subscription_id - - class ConsumerInvitation(ProxyDto): """A consumer Invitation data transfer object. @@ -2527,101 +1610,6 @@ def __init__( self.value = value -class ConsumerInvitationProperties(msrest.serialization.Model): - """Properties of consumer invitation. - - 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. - - :ivar data_set_count: Number of data sets in a share. - :vartype data_set_count: int - :ivar description: Description shared when the invitation was created. - :vartype description: str - :param invitation_id: Required. Unique id of the invitation. - :type invitation_id: str - :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', - 'Accepted', 'Rejected', 'Withdrawn'. - :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus - :ivar location: invitation location. - :vartype location: str - :ivar provider_email: Email of the provider who created the resource. - :vartype provider_email: str - :ivar provider_name: Name of the provider who created the resource. - :vartype provider_name: str - :ivar provider_tenant_name: Tenant name of the provider who created the resource. - :vartype provider_tenant_name: str - :ivar responded_at: The time the recipient responded to the invitation. - :vartype responded_at: ~datetime.datetime - :ivar sent_at: Gets the time at which the invitation was sent. - :vartype sent_at: ~datetime.datetime - :ivar share_name: Gets the source share Name. - :vartype share_name: str - :ivar terms_of_use: Terms of use shared when the invitation was created. - :vartype terms_of_use: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'data_set_count': {'readonly': True}, - 'description': {'readonly': True}, - 'invitation_id': {'required': True}, - 'invitation_status': {'readonly': True}, - 'location': {'readonly': True}, - 'provider_email': {'readonly': True}, - 'provider_name': {'readonly': True}, - 'provider_tenant_name': {'readonly': True}, - 'responded_at': {'readonly': True}, - 'sent_at': {'readonly': True}, - 'share_name': {'readonly': True}, - 'terms_of_use': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'data_set_count': {'key': 'dataSetCount', 'type': 'int'}, - 'description': {'key': 'description', 'type': 'str'}, - 'invitation_id': {'key': 'invitationId', 'type': 'str'}, - 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provider_email': {'key': 'providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'providerName', 'type': 'str'}, - 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, - 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, - 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, - 'share_name': {'key': 'shareName', 'type': 'str'}, - 'terms_of_use': {'key': 'termsOfUse', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - *, - invitation_id: str, - **kwargs - ): - super(ConsumerInvitationProperties, self).__init__(**kwargs) - self.data_set_count = None - self.description = None - self.invitation_id = invitation_id - self.invitation_status = None - self.location = None - self.provider_email = None - self.provider_name = None - self.provider_tenant_name = None - self.responded_at = None - self.sent_at = None - self.share_name = None - self.terms_of_use = None - self.user_email = None - self.user_name = None - - class ConsumerSourceDataSet(ProxyDto): """A consumer side dataSet data transfer object. @@ -2641,7 +1629,7 @@ class ConsumerSourceDataSet(ProxyDto): :vartype data_set_name: str :ivar data_set_path: DataSet path. :vartype data_set_path: str - :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', + :ivar data_set_type: Type of data set. Possible values include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. :vartype data_set_type: str or ~data_share_management_client.models.DataSetType @@ -2687,77 +1675,30 @@ class ConsumerSourceDataSetList(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. :param next_link: The Url of next result page. - :type next_link: str - :param value: Required. Collection of items of type DataTransferObjects. - :type value: list[~data_share_management_client.models.ConsumerSourceDataSet] - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ConsumerSourceDataSet]'}, - } - - def __init__( - self, - *, - value: List["ConsumerSourceDataSet"], - next_link: Optional[str] = None, - **kwargs - ): - super(ConsumerSourceDataSetList, self).__init__(**kwargs) - self.next_link = next_link - self.value = value - - -class ConsumerSourceDataSetProperties(msrest.serialization.Model): - """Properties of consumer source dataSet. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar data_set_id: DataSet Id. - :vartype data_set_id: str - :ivar data_set_location: Location of the data set. - :vartype data_set_location: str - :ivar data_set_name: DataSet name. - :vartype data_set_name: str - :ivar data_set_path: DataSet path. - :vartype data_set_path: str - :ivar data_set_type: Type of the data set. Possible values include: 'Blob', 'Container', - 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', - 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable'. - :vartype data_set_type: str or ~data_share_management_client.models.DataSetType + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ConsumerSourceDataSet] """ _validation = { - 'data_set_id': {'readonly': True}, - 'data_set_location': {'readonly': True}, - 'data_set_name': {'readonly': True}, - 'data_set_path': {'readonly': True}, - 'data_set_type': {'readonly': True}, + 'value': {'required': True}, } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_location': {'key': 'dataSetLocation', 'type': 'str'}, - 'data_set_name': {'key': 'dataSetName', 'type': 'str'}, - 'data_set_path': {'key': 'dataSetPath', 'type': 'str'}, - 'data_set_type': {'key': 'dataSetType', 'type': 'str'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ConsumerSourceDataSet]'}, } def __init__( self, + *, + value: List["ConsumerSourceDataSet"], + next_link: Optional[str] = None, **kwargs ): - super(ConsumerSourceDataSetProperties, self).__init__(**kwargs) - self.data_set_id = None - self.data_set_location = None - self.data_set_name = None - self.data_set_path = None - self.data_set_type = None + super(ConsumerSourceDataSetList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value class DataSetList(msrest.serialization.Model): @@ -2824,40 +1765,14 @@ def __init__( self.value = value -class DataShareErrorException(HttpResponseError): - """Server responded with exception of type: 'DataShareError'. - - :param response: Server response to be deserialized. - :param error_model: A deserialized model of the response body as model. - """ - - def __init__(self, response, error_model): - self.error = error_model - super(DataShareErrorException, self).__init__(response=response, error_model=error_model) - - @classmethod - def from_response(cls, response, deserialize): - """Deserialize this response as this exception, or a subclass of this exception. - - :param response: Server response to be deserialized. - :param deserialize: A deserializer - """ - model_name = 'DataShareError' - error = deserialize(model_name, response) - if error is None: - error = deserialize.dependencies[model_name]() - return error._EXCEPTION_TYPE(response, error) - - class DataShareError(msrest.serialization.Model): """The data share error model. All required parameters must be populated in order to send to Azure. - :param error: Required. The data share error body model. + :param error: Required. The data share error body. :type error: ~data_share_management_client.models.DataShareErrorInfo """ - _EXCEPTION_TYPE = DataShareErrorException _validation = { 'error': {'required': True}, @@ -3095,75 +2010,6 @@ def __init__( self.value = value -class InvitationProperties(msrest.serialization.Model): - """Invitation property bag. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar invitation_id: unique invitation id. - :vartype invitation_id: str - :ivar invitation_status: The status of the invitation. Possible values include: 'Pending', - 'Accepted', 'Rejected', 'Withdrawn'. - :vartype invitation_status: str or ~data_share_management_client.models.InvitationStatus - :ivar responded_at: The time the recipient responded to the invitation. - :vartype responded_at: ~datetime.datetime - :ivar sent_at: Gets the time at which the invitation was sent. - :vartype sent_at: ~datetime.datetime - :param target_active_directory_id: The target Azure AD Id. Can't be combined with email. - :type target_active_directory_id: str - :param target_email: The email the invitation is directed to. - :type target_email: str - :param target_object_id: The target user or application Id that invitation is being sent to. - Must be specified along TargetActiveDirectoryId. This enables sending - invitations to specific users or applications in an AD tenant. - :type target_object_id: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'invitation_id': {'readonly': True}, - 'invitation_status': {'readonly': True}, - 'responded_at': {'readonly': True}, - 'sent_at': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'invitation_id': {'key': 'invitationId', 'type': 'str'}, - 'invitation_status': {'key': 'invitationStatus', 'type': 'str'}, - 'responded_at': {'key': 'respondedAt', 'type': 'iso-8601'}, - 'sent_at': {'key': 'sentAt', 'type': 'iso-8601'}, - 'target_active_directory_id': {'key': 'targetActiveDirectoryId', 'type': 'str'}, - 'target_email': {'key': 'targetEmail', 'type': 'str'}, - 'target_object_id': {'key': 'targetObjectId', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - *, - target_active_directory_id: Optional[str] = None, - target_email: Optional[str] = None, - target_object_id: Optional[str] = None, - **kwargs - ): - super(InvitationProperties, self).__init__(**kwargs) - self.invitation_id = None - self.invitation_status = None - self.responded_at = None - self.sent_at = None - self.target_active_directory_id = target_active_directory_id - self.target_email = target_email - self.target_object_id = target_object_id - self.user_email = None - self.user_name = None - - class KustoClusterDataSet(DataSet): """A kusto cluster data set. @@ -3188,8 +2034,8 @@ class KustoClusterDataSet(DataSet): :type kusto_cluster_resource_id: str :ivar location: Location of the kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Provisioning state of the kusto cluster data set. Possible values + include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ @@ -3242,10 +2088,10 @@ class KustoClusterDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -3257,7 +2103,7 @@ class KustoClusterDataSetMapping(DataSetMapping): :type kusto_cluster_resource_id: str :ivar location: Location of the sink kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ @@ -3302,104 +2148,6 @@ def __init__( self.provisioning_state = None -class KustoClusterDataSetMappingProperties(msrest.serialization.Model): - """Properties of the Kusto cluster data set mapping. - - 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. - :type kusto_cluster_resource_id: str - :ivar location: Location of the sink kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'kusto_cluster_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__( - self, - *, - data_set_id: str, - kusto_cluster_resource_id: str, - **kwargs - ): - super(KustoClusterDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.kusto_cluster_resource_id = kusto_cluster_resource_id - self.location = None - self.provisioning_state = None - - -class KustoClusterDataSetProperties(msrest.serialization.Model): - """Properties of the kusto cluster data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param kusto_cluster_resource_id: Required. Resource id of the kusto cluster. - :type kusto_cluster_resource_id: str - :ivar location: Location of the kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'kusto_cluster_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__( - self, - *, - kusto_cluster_resource_id: str, - **kwargs - ): - super(KustoClusterDataSetProperties, self).__init__(**kwargs) - self.data_set_id = None - self.kusto_cluster_resource_id = kusto_cluster_resource_id - self.location = None - self.provisioning_state = None - - class KustoDatabaseDataSet(DataSet): """A kusto database data set. @@ -3424,77 +2172,8 @@ class KustoDatabaseDataSet(DataSet): :type kusto_database_resource_id: str :ivar location: Location of the kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'data_set_id': {'readonly': True}, - 'kusto_database_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'kusto_database_resource_id': {'key': 'properties.kustoDatabaseResourceId', 'type': 'str'}, - 'location': {'key': 'properties.location', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__( - self, - *, - kusto_database_resource_id: str, - **kwargs - ): - super(KustoDatabaseDataSet, self).__init__(**kwargs) - self.kind = 'KustoDatabase' - self.data_set_id = None - self.kusto_database_resource_id = kusto_database_resource_id - self.location = None - self.provisioning_state = None - - -class KustoDatabaseDataSetMapping(DataSetMapping): - """A Kusto database data set mapping. - - 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. - - :ivar id: The resource id of the azure resource. - :vartype id: str - :ivar name: Name of the azure resource. - :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param kusto_cluster_resource_id: Required. Resource id of the sink kusto cluster. - :type kusto_cluster_resource_id: str - :ivar location: Location of the sink kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Provisioning state of the kusto database data set. Possible values + include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ @@ -3503,9 +2182,8 @@ class KustoDatabaseDataSetMapping(DataSetMapping): 'name': {'readonly': True}, 'type': {'readonly': True}, 'kind': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'kusto_cluster_resource_id': {'required': True}, + 'data_set_id': {'readonly': True}, + 'kusto_database_resource_id': {'required': True}, 'location': {'readonly': True}, 'provisioning_state': {'readonly': True}, } @@ -3516,8 +2194,7 @@ class KustoDatabaseDataSetMapping(DataSetMapping): 'type': {'key': 'type', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, - 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'kusto_database_resource_id': {'key': 'properties.kustoDatabaseResourceId', 'type': 'str'}, 'location': {'key': 'properties.location', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } @@ -3525,26 +2202,35 @@ class KustoDatabaseDataSetMapping(DataSetMapping): def __init__( self, *, - data_set_id: str, - kusto_cluster_resource_id: str, + kusto_database_resource_id: str, **kwargs ): - super(KustoDatabaseDataSetMapping, self).__init__(**kwargs) + super(KustoDatabaseDataSet, self).__init__(**kwargs) self.kind = 'KustoDatabase' - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.kusto_cluster_resource_id = kusto_cluster_resource_id + self.data_set_id = None + self.kusto_database_resource_id = kusto_database_resource_id self.location = None self.provisioning_state = None -class KustoDatabaseDataSetMappingProperties(msrest.serialization.Model): - """Properties of the Kusto database data set mapping. +class KustoDatabaseDataSetMapping(DataSetMapping): + """A Kusto database data set mapping. 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. + :ivar id: The resource id of the azure resource. + :vartype id: str + :ivar name: Name of the azure resource. + :vartype name: str + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values @@ -3555,12 +2241,16 @@ class KustoDatabaseDataSetMappingProperties(msrest.serialization.Model): :type kusto_cluster_resource_id: str :ivar location: Location of the sink kusto cluster. :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, 'data_set_id': {'required': True}, 'data_set_mapping_status': {'readonly': True}, 'kusto_cluster_resource_id': {'required': True}, @@ -3569,11 +2259,15 @@ class KustoDatabaseDataSetMappingProperties(msrest.serialization.Model): } _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'kusto_cluster_resource_id': {'key': 'kustoClusterResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'data_set_id': {'key': 'properties.dataSetId', 'type': 'str'}, + 'data_set_mapping_status': {'key': 'properties.dataSetMappingStatus', 'type': 'str'}, + 'kusto_cluster_resource_id': {'key': 'properties.kustoClusterResourceId', 'type': 'str'}, + 'location': {'key': 'properties.location', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } def __init__( @@ -3583,7 +2277,8 @@ def __init__( kusto_cluster_resource_id: str, **kwargs ): - super(KustoDatabaseDataSetMappingProperties, self).__init__(**kwargs) + super(KustoDatabaseDataSetMapping, self).__init__(**kwargs) + self.kind = 'KustoDatabase' self.data_set_id = data_set_id self.data_set_mapping_status = None self.kusto_cluster_resource_id = kusto_cluster_resource_id @@ -3591,51 +2286,6 @@ def __init__( self.provisioning_state = None -class KustoDatabaseDataSetProperties(msrest.serialization.Model): - """Properties of the kusto database data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param kusto_database_resource_id: Required. Resource id of the kusto database. - :type kusto_database_resource_id: str - :ivar location: Location of the kusto cluster. - :vartype location: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'kusto_database_resource_id': {'required': True}, - 'location': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'kusto_database_resource_id': {'key': 'kustoDatabaseResourceId', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - } - - def __init__( - self, - *, - kusto_database_resource_id: str, - **kwargs - ): - super(KustoDatabaseDataSetProperties, self).__init__(**kwargs) - self.data_set_id = None - self.kusto_database_resource_id = kusto_database_resource_id - self.location = None - self.provisioning_state = None - - class OperationList(msrest.serialization.Model): """List response for get operations. @@ -3771,28 +2421,6 @@ def __init__( self.unit = unit -class OperationMetaPropertyInfo(msrest.serialization.Model): - """properties on meta info. - - :param service_specification: The operation meta service specification. - :type service_specification: - ~data_share_management_client.models.OperationMetaServiceSpecification - """ - - _attribute_map = { - 'service_specification': {'key': 'serviceSpecification', 'type': 'OperationMetaServiceSpecification'}, - } - - def __init__( - self, - *, - service_specification: Optional["OperationMetaServiceSpecification"] = None, - **kwargs - ): - super(OperationMetaPropertyInfo, self).__init__(**kwargs) - self.service_specification = service_specification - - class OperationMetaServiceSpecification(msrest.serialization.Model): """The operation meta service specification. @@ -3824,13 +2452,13 @@ def __init__( class OperationModel(msrest.serialization.Model): """The response model for get operations. - :param display: Properties on operations. + :param display: Properties on the operation. :type display: ~data_share_management_client.models.OperationModelProperties :param name: Operation name for display purposes. :type name: str :param origin: origin of the operation. :type origin: str - :param service_specification: The operation meta service specification. + :param service_specification: meta service specification. :type service_specification: ~data_share_management_client.models.OperationMetaServiceSpecification """ @@ -3901,7 +2529,7 @@ class OperationResponse(msrest.serialization.Model): :param end_time: start time. :type end_time: ~datetime.datetime - :param error: The data share error body model. + :param error: The error property when status is failed. :type error: ~data_share_management_client.models.DataShareErrorInfo :param start_time: start time. :type start_time: ~datetime.datetime @@ -4048,99 +2676,6 @@ def __init__( self.value = value -class ProviderShareSubscriptionProperties(msrest.serialization.Model): - """Provider share subscription properties. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar consumer_email: Email of the consumer who created the share subscription. - :vartype consumer_email: str - :ivar consumer_name: Name of the consumer who created the share subscription. - :vartype consumer_name: str - :ivar consumer_tenant_name: Tenant name of the consumer who created the share subscription. - :vartype consumer_tenant_name: str - :ivar created_at: created at. - :vartype created_at: ~datetime.datetime - :ivar provider_email: Email of the provider who created the share. - :vartype provider_email: str - :ivar provider_name: Name of the provider who created the share. - :vartype provider_name: str - :ivar shared_at: Shared at. - :vartype shared_at: ~datetime.datetime - :ivar share_subscription_object_id: share Subscription Object Id. - :vartype share_subscription_object_id: str - :ivar share_subscription_status: Gets the status of share subscription. Possible values - include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. - :vartype share_subscription_status: str or - ~data_share_management_client.models.ShareSubscriptionStatus - """ - - _validation = { - 'consumer_email': {'readonly': True}, - 'consumer_name': {'readonly': True}, - 'consumer_tenant_name': {'readonly': True}, - 'created_at': {'readonly': True}, - 'provider_email': {'readonly': True}, - 'provider_name': {'readonly': True}, - 'shared_at': {'readonly': True}, - 'share_subscription_object_id': {'readonly': True}, - 'share_subscription_status': {'readonly': True}, - } - - _attribute_map = { - 'consumer_email': {'key': 'consumerEmail', 'type': 'str'}, - 'consumer_name': {'key': 'consumerName', 'type': 'str'}, - 'consumer_tenant_name': {'key': 'consumerTenantName', 'type': 'str'}, - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provider_email': {'key': 'providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'providerName', 'type': 'str'}, - 'shared_at': {'key': 'sharedAt', 'type': 'iso-8601'}, - 'share_subscription_object_id': {'key': 'shareSubscriptionObjectId', 'type': 'str'}, - 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(ProviderShareSubscriptionProperties, self).__init__(**kwargs) - self.consumer_email = None - self.consumer_name = None - self.consumer_tenant_name = None - self.created_at = None - self.provider_email = None - self.provider_name = None - self.shared_at = None - self.share_subscription_object_id = None - self.share_subscription_status = None - - -class ScheduledSourceShareSynchronizationSettingProperties(msrest.serialization.Model): - """A Scheduled source synchronization setting data transfer object. - - :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. - :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval - :param synchronization_time: Synchronization time. - :type synchronization_time: ~datetime.datetime - """ - - _attribute_map = { - 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, - 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, - } - - def __init__( - self, - *, - recurrence_interval: Optional[Union[str, "RecurrenceInterval"]] = None, - synchronization_time: Optional[datetime.datetime] = None, - **kwargs - ): - super(ScheduledSourceShareSynchronizationSettingProperties, self).__init__(**kwargs) - self.recurrence_interval = recurrence_interval - self.synchronization_time = synchronization_time - - class SourceShareSynchronizationSetting(msrest.serialization.Model): """A view of synchronization setting added by the provider. @@ -4149,10 +2684,10 @@ class SourceShareSynchronizationSetting(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -4181,10 +2716,10 @@ class ScheduledSourceSynchronizationSetting(SourceShareSynchronizationSetting): All required parameters must be populated in order to send to Azure. - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param recurrence_interval: Recurrence Interval. Possible values include: 'Hour', 'Day'. :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval @@ -4231,10 +2766,10 @@ class SynchronizationSetting(ProxyDto): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -4275,77 +2810,16 @@ class ScheduledSynchronizationSetting(SynchronizationSetting): :vartype id: str :ivar name: Name of the azure resource. :vartype name: str - :ivar type: Type of the azure resource. - :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. - :type kind: str or ~data_share_management_client.models.Kind - :ivar created_at: Time at which the synchronization setting was created. - :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', - 'Day'. - :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval - :param synchronization_time: Required. Synchronization time. - :type synchronization_time: ~datetime.datetime - :ivar user_name: Name of the user who created the synchronization setting. - :vartype user_name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'kind': {'required': True}, - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'recurrence_interval': {'required': True}, - 'synchronization_time': {'required': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'kind': {'key': 'kind', 'type': 'str'}, - 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, - 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - } - - def __init__( - self, - *, - recurrence_interval: Union[str, "RecurrenceInterval"], - synchronization_time: datetime.datetime, - **kwargs - ): - super(ScheduledSynchronizationSetting, self).__init__(**kwargs) - self.kind = 'ScheduleBased' - self.created_at = None - self.provisioning_state = None - self.recurrence_interval = recurrence_interval - self.synchronization_time = synchronization_time - self.user_name = None - - -class ScheduledSynchronizationSettingProperties(msrest.serialization.Model): - """A Scheduled synchronization setting data transfer object. - - 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. - + :ivar type: Type of the azure resource. + :vartype type: str + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. + :type kind: str or ~data_share_management_client.models.Kind :ivar created_at: Time at which the synchronization setting was created. :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', @@ -4358,6 +2832,10 @@ class ScheduledSynchronizationSettingProperties(msrest.serialization.Model): """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'required': True}, 'created_at': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'recurrence_interval': {'required': True}, @@ -4366,11 +2844,15 @@ class ScheduledSynchronizationSettingProperties(msrest.serialization.Model): } _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, - 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, - 'user_name': {'key': 'userName', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'recurrence_interval': {'key': 'properties.recurrenceInterval', 'type': 'str'}, + 'synchronization_time': {'key': 'properties.synchronizationTime', 'type': 'iso-8601'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, } def __init__( @@ -4380,7 +2862,8 @@ def __init__( synchronization_time: datetime.datetime, **kwargs ): - super(ScheduledSynchronizationSettingProperties, self).__init__(**kwargs) + super(ScheduledSynchronizationSetting, self).__init__(**kwargs) + self.kind = 'ScheduleBased' self.created_at = None self.provisioning_state = None self.recurrence_interval = recurrence_interval @@ -4404,10 +2887,10 @@ class Trigger(ProxyDto): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind """ @@ -4450,15 +2933,15 @@ class ScheduledTrigger(Trigger): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of synchronization.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :ivar created_at: Time at which the trigger was created. :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Gets the provisioning state. Possible values include: 'Succeeded', + 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', 'Day'. @@ -4521,70 +3004,6 @@ def __init__( self.user_name = None -class ScheduledTriggerProperties(msrest.serialization.Model): - """A Scheduled trigger data transfer object. - - 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. - - :ivar created_at: Time at which the trigger was created. - :vartype created_at: ~datetime.datetime - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param recurrence_interval: Required. Recurrence Interval. Possible values include: 'Hour', - 'Day'. - :type recurrence_interval: str or ~data_share_management_client.models.RecurrenceInterval - :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', - 'FullSync'. - :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode - :param synchronization_time: Required. Synchronization time. - :type synchronization_time: ~datetime.datetime - :ivar trigger_status: Gets the trigger state. Possible values include: 'Active', 'Inactive', - 'SourceSynchronizationSettingDeleted'. - :vartype trigger_status: str or ~data_share_management_client.models.TriggerStatus - :ivar user_name: Name of the user who created the trigger. - :vartype user_name: str - """ - - _validation = { - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'recurrence_interval': {'required': True}, - 'synchronization_time': {'required': True}, - 'trigger_status': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'recurrence_interval': {'key': 'recurrenceInterval', 'type': 'str'}, - 'synchronization_mode': {'key': 'synchronizationMode', 'type': 'str'}, - 'synchronization_time': {'key': 'synchronizationTime', 'type': 'iso-8601'}, - 'trigger_status': {'key': 'triggerStatus', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - *, - recurrence_interval: Union[str, "RecurrenceInterval"], - synchronization_time: datetime.datetime, - synchronization_mode: Optional[Union[str, "SynchronizationMode"]] = None, - **kwargs - ): - super(ScheduledTriggerProperties, self).__init__(**kwargs) - self.created_at = None - self.provisioning_state = None - self.recurrence_interval = recurrence_interval - self.synchronization_mode = synchronization_mode - self.synchronization_time = synchronization_time - self.trigger_status = None - self.user_name = None - - class Share(ProxyDto): """A share data transfer object. @@ -4600,7 +3019,7 @@ class Share(ProxyDto): :vartype created_at: ~datetime.datetime :param description: Share description. :type description: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Gets or sets the provisioning state. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. @@ -4686,63 +3105,6 @@ def __init__( self.value = value -class ShareProperties(msrest.serialization.Model): - """Share property bag. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar created_at: Time at which the share was created. - :vartype created_at: ~datetime.datetime - :param description: Share description. - :type description: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. - :type share_kind: str or ~data_share_management_client.models.ShareKind - :param terms: Share terms. - :type terms: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'created_at': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'description': {'key': 'description', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'share_kind': {'key': 'shareKind', 'type': 'str'}, - 'terms': {'key': 'terms', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, - } - - def __init__( - self, - *, - description: Optional[str] = None, - share_kind: Optional[Union[str, "ShareKind"]] = None, - terms: Optional[str] = None, - **kwargs - ): - super(ShareProperties, self).__init__(**kwargs) - self.created_at = None - self.description = description - self.provisioning_state = None - self.share_kind = share_kind - self.terms = terms - self.user_email = None - self.user_name = None - - class ShareSubscription(ProxyDto): """A share subscription data transfer object. @@ -4766,16 +3128,16 @@ class ShareSubscription(ProxyDto): :vartype provider_name: str :ivar provider_tenant_name: Tenant name of the provider who created the resource. :vartype provider_tenant_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. + :ivar provisioning_state: Provisioning state of the share subscription. Possible values + include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :ivar share_description: Description of share. :vartype share_description: str - :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. + :ivar share_kind: Kind of share. Possible values include: 'CopyBased', 'InPlace'. :vartype share_kind: str or ~data_share_management_client.models.ShareKind :ivar share_name: Name of the share. :vartype share_name: str - :ivar share_subscription_status: Gets the status of share subscription. Possible values + :ivar share_subscription_status: Gets the current status of share subscription. Possible values include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. :vartype share_subscription_status: str or ~data_share_management_client.models.ShareSubscriptionStatus @@ -4820,143 +3182,13 @@ class ShareSubscription(ProxyDto): 'provider_tenant_name': {'key': 'properties.providerTenantName', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'share_description': {'key': 'properties.shareDescription', 'type': 'str'}, - 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, - 'share_name': {'key': 'properties.shareName', 'type': 'str'}, - 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, - 'share_terms': {'key': 'properties.shareTerms', 'type': 'str'}, - 'source_share_location': {'key': 'properties.sourceShareLocation', 'type': 'str'}, - 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, - 'user_name': {'key': 'properties.userName', 'type': 'str'}, - } - - def __init__( - self, - *, - invitation_id: str, - source_share_location: str, - **kwargs - ): - super(ShareSubscription, self).__init__(**kwargs) - self.created_at = None - self.invitation_id = invitation_id - self.provider_email = None - self.provider_name = None - self.provider_tenant_name = None - self.provisioning_state = None - self.share_description = None - self.share_kind = None - self.share_name = None - self.share_subscription_status = None - self.share_terms = None - self.source_share_location = source_share_location - self.user_email = None - self.user_name = None - - -class ShareSubscriptionList(msrest.serialization.Model): - """List response for get ShareSubscription. - - All required parameters must be populated in order to send to Azure. - - :param next_link: The Url of next result page. - :type next_link: str - :param value: Required. Collection of items of type DataTransferObjects. - :type value: list[~data_share_management_client.models.ShareSubscription] - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'value': {'key': 'value', 'type': '[ShareSubscription]'}, - } - - def __init__( - self, - *, - value: List["ShareSubscription"], - next_link: Optional[str] = None, - **kwargs - ): - super(ShareSubscriptionList, self).__init__(**kwargs) - self.next_link = next_link - self.value = value - - -class ShareSubscriptionProperties(msrest.serialization.Model): - """Share subscription property bag. - - 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. - - :ivar created_at: Time at which the share subscription was created. - :vartype created_at: ~datetime.datetime - :param invitation_id: Required. The invitation id. - :type invitation_id: str - :ivar provider_email: Email of the provider who created the resource. - :vartype provider_email: str - :ivar provider_name: Name of the provider who created the resource. - :vartype provider_name: str - :ivar provider_tenant_name: Tenant name of the provider who created the resource. - :vartype provider_tenant_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :ivar share_description: Description of share. - :vartype share_description: str - :ivar share_kind: Share kind. Possible values include: 'CopyBased', 'InPlace'. - :vartype share_kind: str or ~data_share_management_client.models.ShareKind - :ivar share_name: Name of the share. - :vartype share_name: str - :ivar share_subscription_status: Gets the status of share subscription. Possible values - include: 'Active', 'Revoked', 'SourceDeleted', 'Revoking'. - :vartype share_subscription_status: str or - ~data_share_management_client.models.ShareSubscriptionStatus - :ivar share_terms: Terms of a share. - :vartype share_terms: str - :param source_share_location: Required. Source share location. - :type source_share_location: str - :ivar user_email: Email of the user who created the resource. - :vartype user_email: str - :ivar user_name: Name of the user who created the resource. - :vartype user_name: str - """ - - _validation = { - 'created_at': {'readonly': True}, - 'invitation_id': {'required': True}, - 'provider_email': {'readonly': True}, - 'provider_name': {'readonly': True}, - 'provider_tenant_name': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'share_description': {'readonly': True}, - 'share_kind': {'readonly': True}, - 'share_name': {'readonly': True}, - 'share_subscription_status': {'readonly': True}, - 'share_terms': {'readonly': True}, - 'source_share_location': {'required': True}, - 'user_email': {'readonly': True}, - 'user_name': {'readonly': True}, - } - - _attribute_map = { - 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, - 'invitation_id': {'key': 'invitationId', 'type': 'str'}, - 'provider_email': {'key': 'providerEmail', 'type': 'str'}, - 'provider_name': {'key': 'providerName', 'type': 'str'}, - 'provider_tenant_name': {'key': 'providerTenantName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'share_description': {'key': 'shareDescription', 'type': 'str'}, - 'share_kind': {'key': 'shareKind', 'type': 'str'}, - 'share_name': {'key': 'shareName', 'type': 'str'}, - 'share_subscription_status': {'key': 'shareSubscriptionStatus', 'type': 'str'}, - 'share_terms': {'key': 'shareTerms', 'type': 'str'}, - 'source_share_location': {'key': 'sourceShareLocation', 'type': 'str'}, - 'user_email': {'key': 'userEmail', 'type': 'str'}, - 'user_name': {'key': 'userName', 'type': 'str'}, + 'share_kind': {'key': 'properties.shareKind', 'type': 'str'}, + 'share_name': {'key': 'properties.shareName', 'type': 'str'}, + 'share_subscription_status': {'key': 'properties.shareSubscriptionStatus', 'type': 'str'}, + 'share_terms': {'key': 'properties.shareTerms', 'type': 'str'}, + 'source_share_location': {'key': 'properties.sourceShareLocation', 'type': 'str'}, + 'user_email': {'key': 'properties.userEmail', 'type': 'str'}, + 'user_name': {'key': 'properties.userName', 'type': 'str'}, } def __init__( @@ -4966,7 +3198,7 @@ def __init__( source_share_location: str, **kwargs ): - super(ShareSubscriptionProperties, self).__init__(**kwargs) + super(ShareSubscription, self).__init__(**kwargs) self.created_at = None self.invitation_id = invitation_id self.provider_email = None @@ -4983,6 +3215,38 @@ def __init__( self.user_name = None +class ShareSubscriptionList(msrest.serialization.Model): + """List response for get ShareSubscription. + + All required parameters must be populated in order to send to Azure. + + :param next_link: The Url of next result page. + :type next_link: str + :param value: Required. Collection of items of type DataTransferObjects. + :type value: list[~data_share_management_client.models.ShareSubscription] + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[ShareSubscription]'}, + } + + def __init__( + self, + *, + value: List["ShareSubscription"], + next_link: Optional[str] = None, + **kwargs + ): + super(ShareSubscriptionList, self).__init__(**kwargs) + self.next_link = next_link + self.value = value + + class ShareSubscriptionSynchronization(msrest.serialization.Model): """A ShareSubscriptionSynchronization data transfer object. @@ -5002,7 +3266,7 @@ class ShareSubscriptionSynchronization(msrest.serialization.Model): :vartype status: str :param synchronization_id: Required. Synchronization id. :type synchronization_id: str - :ivar synchronization_mode: Synchronization mode. Possible values include: 'Incremental', + :ivar synchronization_mode: Synchronization Mode. Possible values include: 'Incremental', 'FullSync'. :vartype synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode """ @@ -5211,7 +3475,7 @@ def __init__( self.value = value -class SqlDbTableDataSet(DataSet): +class SqlDBTableDataSet(DataSet): """A SQL DB table data set. Variables are only populated by the server, and will be ignored when sending a request. @@ -5270,7 +3534,7 @@ def __init__( table_name: Optional[str] = None, **kwargs ): - super(SqlDbTableDataSet, self).__init__(**kwargs) + super(SqlDBTableDataSet, self).__init__(**kwargs) self.kind = 'SqlDBTable' self.database_name = database_name self.data_set_id = None @@ -5279,7 +3543,7 @@ def __init__( self.table_name = table_name -class SqlDbTableDataSetMapping(DataSetMapping): +class SqlDBTableDataSetMapping(DataSetMapping): """A SQL DB Table data set mapping. Variables are only populated by the server, and will be ignored when sending a request. @@ -5292,10 +3556,10 @@ class SqlDbTableDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param database_name: Required. DatabaseName name of the sink data set. :type database_name: str @@ -5305,7 +3569,7 @@ class SqlDbTableDataSetMapping(DataSetMapping): include: 'Ok', 'Broken'. :vartype data_set_mapping_status: str or ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param schema_name: Required. Schema of the table. Default value is dbo. @@ -5354,7 +3618,7 @@ def __init__( table_name: str, **kwargs ): - super(SqlDbTableDataSetMapping, self).__init__(**kwargs) + super(SqlDBTableDataSetMapping, self).__init__(**kwargs) self.kind = 'SqlDBTable' self.database_name = database_name self.data_set_id = data_set_id @@ -5365,124 +3629,6 @@ def __init__( self.table_name = table_name -class SqlDbTableDataSetMappingProperties(msrest.serialization.Model): - """Properties of the SQL DB table data set mapping. - - 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 database_name: Required. DatabaseName name of the sink data set. - :type database_name: str - :param data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DB table name. - :type table_name: str - """ - - _validation = { - 'database_name': {'required': True}, - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - *, - database_name: str, - data_set_id: str, - schema_name: str, - sql_server_resource_id: str, - table_name: str, - **kwargs - ): - super(SqlDbTableDataSetMappingProperties, self).__init__(**kwargs) - self.database_name = database_name - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.provisioning_state = None - self.schema_name = schema_name - self.sql_server_resource_id = sql_server_resource_id - self.table_name = table_name - - -class SqlDbTableProperties(msrest.serialization.Model): - """Properties of the SQL DB table data set. - - 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 database_name: Required. Database name of the source data set. - :type database_name: str - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DB table name. - :type table_name: str - """ - - _validation = { - 'database_name': {'required': True}, - 'data_set_id': {'readonly': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'database_name': {'key': 'databaseName', 'type': 'str'}, - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - *, - database_name: str, - schema_name: str, - sql_server_resource_id: str, - table_name: str, - **kwargs - ): - super(SqlDbTableProperties, self).__init__(**kwargs) - self.database_name = database_name - self.data_set_id = None - self.schema_name = schema_name - self.sql_server_resource_id = sql_server_resource_id - self.table_name = table_name - - class SqlDwTableDataSet(DataSet): """A SQL DW table data set. @@ -5564,10 +3710,10 @@ class SqlDwTableDataSetMapping(DataSetMapping): :vartype name: str :ivar type: Type of the azure resource. :vartype type: str - :param kind: Required. Kind of data set.Constant filled by server. Possible values include: - 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', - 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', - 'ScheduleBased'. + :param kind: Required. Kind of data set mapping.Constant filled by server. Possible values + include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', + 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', + 'SqlDBTable', 'SqlDWTable', 'ScheduleBased'. :type kind: str or ~data_share_management_client.models.Kind :param data_set_id: Required. The id of the source data set. :type data_set_id: str @@ -5577,7 +3723,7 @@ class SqlDwTableDataSetMapping(DataSetMapping): ~data_share_management_client.models.DataSetMappingStatus :param data_warehouse_name: Required. DataWarehouse name of the source data set. :type data_warehouse_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: + :ivar provisioning_state: Provisioning state of the data set mapping. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState :param schema_name: Required. Schema of the table. Default value is dbo. @@ -5637,124 +3783,6 @@ def __init__( self.table_name = table_name -class SqlDwTableDataSetMappingProperties(msrest.serialization.Model): - """Properties of the SQL DW table data set mapping. - - 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 data_set_id: Required. The id of the source data set. - :type data_set_id: str - :ivar data_set_mapping_status: Gets the status of the data set mapping. Possible values - include: 'Ok', 'Broken'. - :vartype data_set_mapping_status: str or - ~data_share_management_client.models.DataSetMappingStatus - :param data_warehouse_name: Required. DataWarehouse name of the source data set. - :type data_warehouse_name: str - :ivar provisioning_state: Provisioning state of the Account. Possible values include: - 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed'. - :vartype provisioning_state: str or ~data_share_management_client.models.ProvisioningState - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DW table name. - :type table_name: str - """ - - _validation = { - 'data_set_id': {'required': True}, - 'data_set_mapping_status': {'readonly': True}, - 'data_warehouse_name': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_set_mapping_status': {'key': 'dataSetMappingStatus', 'type': 'str'}, - 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - *, - data_set_id: str, - data_warehouse_name: str, - schema_name: str, - sql_server_resource_id: str, - table_name: str, - **kwargs - ): - super(SqlDwTableDataSetMappingProperties, self).__init__(**kwargs) - self.data_set_id = data_set_id - self.data_set_mapping_status = None - self.data_warehouse_name = data_warehouse_name - self.provisioning_state = None - self.schema_name = schema_name - self.sql_server_resource_id = sql_server_resource_id - self.table_name = table_name - - -class SqlDwTableProperties(msrest.serialization.Model): - """Properties of the SQL DW table data set. - - 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. - - :ivar data_set_id: Unique id for identifying a data set resource. - :vartype data_set_id: str - :param data_warehouse_name: Required. DataWarehouse name of the source data set. - :type data_warehouse_name: str - :param schema_name: Required. Schema of the table. Default value is dbo. - :type schema_name: str - :param sql_server_resource_id: Required. Resource id of SQL server. - :type sql_server_resource_id: str - :param table_name: Required. SQL DW table name. - :type table_name: str - """ - - _validation = { - 'data_set_id': {'readonly': True}, - 'data_warehouse_name': {'required': True}, - 'schema_name': {'required': True}, - 'sql_server_resource_id': {'required': True}, - 'table_name': {'required': True}, - } - - _attribute_map = { - 'data_set_id': {'key': 'dataSetId', 'type': 'str'}, - 'data_warehouse_name': {'key': 'dataWarehouseName', 'type': 'str'}, - 'schema_name': {'key': 'schemaName', 'type': 'str'}, - 'sql_server_resource_id': {'key': 'sqlServerResourceId', 'type': 'str'}, - 'table_name': {'key': 'tableName', 'type': 'str'}, - } - - def __init__( - self, - *, - data_warehouse_name: str, - schema_name: str, - sql_server_resource_id: str, - table_name: str, - **kwargs - ): - super(SqlDwTableProperties, self).__init__(**kwargs) - self.data_set_id = None - self.data_warehouse_name = data_warehouse_name - self.schema_name = schema_name - self.sql_server_resource_id = sql_server_resource_id - self.table_name = table_name - - class SynchronizationDetails(msrest.serialization.Model): """Synchronization details at data set level. @@ -5919,8 +3947,8 @@ def __init__( class Synchronize(msrest.serialization.Model): """Payload for the synchronizing the data. - :param synchronization_mode: Synchronization mode. Possible values include: 'Incremental', - 'FullSync'. + :param synchronization_mode: Mode of synchronization used in triggers and snapshot sync. + Incremental by default. Possible values include: 'Incremental', 'FullSync'. :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode """ diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py index 2cb571c9739..2b06a214c51 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_account_operations.py @@ -8,12 +8,11 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models @@ -23,7 +22,8 @@ class AccountOperations(object): """AccountOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -59,10 +59,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: Account or the result of cls(response) :rtype: ~data_share_management_client.models.Account - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -75,11 +75,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -89,7 +89,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Account', pipeline_response) @@ -109,11 +110,12 @@ def _create_initial( **kwargs # type: Any ): # type: (...) -> "models.Account" - cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - account = models.Account(location=location, tags=tags, identity=identity) + _account = models.Account(location=location, tags=tags, identity=identity) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._create_initial.metadata['url'] @@ -125,25 +127,27 @@ def _create_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(account, 'Account') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_account, 'Account') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -176,7 +180,7 @@ def begin_create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param identity: Identity of resource. + :param identity: Identity Info on the Account. :type identity: ~data_share_management_client.models.Identity :param location: Location of the azure resource. :type location: str @@ -189,10 +193,10 @@ def begin_create( :return: An instance of LROPoller that returns Account :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Account] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] raw_result = self._create_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -214,7 +218,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -227,8 +231,8 @@ def _delete_initial( **kwargs # type: Any ): # type: (...) -> "models.OperationResponse" - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -241,11 +245,11 @@ def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -255,7 +259,8 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -289,10 +294,10 @@ def begin_delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -311,7 +316,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -338,13 +343,14 @@ def update( :keyword callable cls: A custom type or function that will be passed the direct response :return: Account or the result of cls(response) :rtype: ~data_share_management_client.models.Account - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.Account"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Account"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - account_update_parameters = models.AccountUpdateParameters(tags=tags) + _account_update_parameters = models.AccountUpdateParameters(tags=tags) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.update.metadata['url'] @@ -356,25 +362,27 @@ def update( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(account_update_parameters, 'AccountUpdateParameters') # Construct and send request - request = self._client.patch(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_account_update_parameters, 'AccountUpdateParameters') + body_content_kwargs['content'] = body_content + request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Account', pipeline_response) @@ -399,10 +407,10 @@ def list_by_subscription( :keyword callable cls: A custom type or function that will be passed the direct response :return: AccountList or the result of cls(response) :rtype: ~data_share_management_client.models.AccountList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.AccountList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.AccountList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -417,13 +425,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -435,7 +443,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -444,8 +452,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -472,10 +481,10 @@ def list_by_resource_group( :keyword callable cls: A custom type or function that will be passed the direct response :return: AccountList or the result of cls(response) :rtype: ~data_share_management_client.models.AccountList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.AccountList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.AccountList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -491,13 +500,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -509,7 +518,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -518,8 +527,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py index 84ef9fafeb0..61235cd44a9 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_invitation_operations.py @@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse @@ -21,7 +21,8 @@ class ConsumerInvitationOperations(object): """ConsumerInvitationOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -57,13 +58,14 @@ def reject_invitation( :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerInvitation or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerInvitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerInvitation"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerInvitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - invitation = models.ConsumerInvitation(invitation_id=invitation_id) + _invitation = models.ConsumerInvitation(invitation_id=invitation_id) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.reject_invitation.metadata['url'] @@ -73,25 +75,27 @@ def reject_invitation( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(invitation, 'ConsumerInvitation') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_invitation, 'ConsumerInvitation') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ConsumerInvitation', pipeline_response) @@ -119,10 +123,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerInvitation or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerInvitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerInvitation"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerInvitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -134,11 +138,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -148,7 +152,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ConsumerInvitation', pipeline_response) @@ -168,15 +173,15 @@ def list_invitation( List the invitations. - :param skip_token: Continuation token. + :param skip_token: The continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerInvitationList or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerInvitationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerInvitationList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerInvitationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -187,13 +192,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -205,7 +210,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -214,8 +219,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py index b37d5d57cc4..f45b8832698 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_consumer_source_data_set_operations.py @@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse @@ -21,7 +21,8 @@ class ConsumerSourceDataSetOperations(object): """ConsumerSourceDataSetOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -63,10 +64,10 @@ def list_by_share_subscription( :keyword callable cls: A custom type or function that will be passed the direct response :return: ConsumerSourceDataSetList or the result of cls(response) :rtype: ~data_share_management_client.models.ConsumerSourceDataSetList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ConsumerSourceDataSetList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ConsumerSourceDataSetList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -84,13 +85,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -102,7 +103,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -111,8 +112,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py index cd58b696922..be59ce3d9b9 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_mapping_operations.py @@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse @@ -21,7 +21,8 @@ class DataSetMappingOperations(object): """DataSetMappingOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -63,10 +64,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSetMapping or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetMapping - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetMapping"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetMapping"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -81,11 +82,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -95,7 +96,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('DataSetMapping', pipeline_response) @@ -111,7 +113,7 @@ def create( account_name, # type: str share_subscription_name, # type: str data_set_mapping_name, # type: str - kind, # type: Union[str, "models.Kind"] + data_set_mapping, # type: "models.DataSetMapping" **kwargs # type: Any ): # type: (...) -> "models.DataSetMapping" @@ -124,22 +126,22 @@ def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription which will hold the data set + sink. :type share_subscription_name: str - :param data_set_mapping_name: The name of the dataSetMapping. + :param data_set_mapping_name: The name of the data set mapping to be created. :type data_set_mapping_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param data_set_mapping: Destination data set configuration details. + :type data_set_mapping: ~data_share_management_client.models.DataSetMapping :keyword callable cls: A custom type or function that will be passed the direct response - :return: DataSetMapping or DataSetMapping or the result of cls(response) + :return: DataSetMapping or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetMapping or ~data_share_management_client.models.DataSetMapping - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetMapping"] - error_map = kwargs.pop('error_map', {}) - - data_set_mapping = models.DataSetMapping(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetMapping"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -153,25 +155,27 @@ def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(data_set_mapping, 'DataSetMapping') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -210,10 +214,10 @@ def delete( :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType[None] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -228,11 +232,11 @@ def delete( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) @@ -241,7 +245,8 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) if cls: return cls(pipeline_response, None, {}) @@ -265,17 +270,17 @@ def list_by_share_subscription( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param skip_token: Continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSetMappingList or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetMappingList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetMappingList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetMappingList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -293,13 +298,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -311,7 +316,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -320,8 +325,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py index 1050414b4f3..95929ba4858 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_data_set_operations.py @@ -8,12 +8,11 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models @@ -23,7 +22,8 @@ class DataSetOperations(object): """DataSetOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -65,10 +65,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSet or the result of cls(response) :rtype: ~data_share_management_client.models.DataSet - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSet"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSet"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -83,11 +83,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -97,7 +97,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('DataSet', pipeline_response) @@ -113,7 +114,7 @@ def create( account_name, # type: str share_name, # type: str data_set_name, # type: str - kind, # type: Union[str, "models.Kind"] + data_set, # type: "models.DataSet" **kwargs # type: Any ): # type: (...) -> "models.DataSet" @@ -125,22 +126,21 @@ def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to add the data set to. :type share_name: str :param data_set_name: The name of the dataSet. :type data_set_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param data_set: The new data set information. + :type data_set: ~data_share_management_client.models.DataSet :keyword callable cls: A custom type or function that will be passed the direct response - :return: DataSet or DataSet or the result of cls(response) + :return: DataSet or the result of cls(response) :rtype: ~data_share_management_client.models.DataSet or ~data_share_management_client.models.DataSet - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSet"] - error_map = kwargs.pop('error_map', {}) - - data_set = models.DataSet(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSet"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -154,25 +154,27 @@ def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(data_set, 'DataSet') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -196,8 +198,8 @@ def _delete_initial( **kwargs # type: Any ): # type: (...) -> None - cls = kwargs.pop('cls', None ) # type: ClsType[None] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -212,11 +214,11 @@ def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) @@ -225,7 +227,8 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) if cls: return cls(pipeline_response, None, {}) @@ -260,10 +263,10 @@ def begin_delete( :return: An instance of LROPoller that returns None :rtype: ~azure.core.polling.LROPoller[None] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType[None] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] raw_result = self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -281,7 +284,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -306,15 +309,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: DataSetList or the result of cls(response) :rtype: ~data_share_management_client.models.DataSetList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.DataSetList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.DataSetList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -332,13 +335,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -350,7 +353,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -359,8 +362,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py index 83014f235da..f6d2e38dc1a 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_invitation_operations.py @@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse @@ -21,7 +21,8 @@ class InvitationOperations(object): """InvitationOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -63,10 +64,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: Invitation or the result of cls(response) :rtype: ~data_share_management_client.models.Invitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.Invitation"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Invitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -81,11 +82,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -95,7 +96,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Invitation', pipeline_response) @@ -125,7 +127,7 @@ def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to send the invitation for. :type share_name: str :param invitation_name: The name of the invitation. :type invitation_name: str @@ -138,15 +140,16 @@ def create( invitations to specific users or applications in an AD tenant. :type target_object_id: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: Invitation or Invitation or the result of cls(response) + :return: Invitation or the result of cls(response) :rtype: ~data_share_management_client.models.Invitation or ~data_share_management_client.models.Invitation - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.Invitation"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Invitation"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - invitation = models.Invitation(target_active_directory_id=target_active_directory_id, target_email=target_email, target_object_id=target_object_id) + _invitation = models.Invitation(target_active_directory_id=target_active_directory_id, target_email=target_email, target_object_id=target_object_id) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -160,25 +163,27 @@ def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(invitation, 'Invitation') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_invitation, 'Invitation') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -217,10 +222,10 @@ def delete( :keyword callable cls: A custom type or function that will be passed the direct response :return: None or the result of cls(response) :rtype: None - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType[None] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -235,11 +240,11 @@ def delete( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] # Construct and send request request = self._client.delete(url, query_parameters, header_parameters) @@ -248,7 +253,8 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) if cls: return cls(pipeline_response, None, {}) @@ -274,15 +280,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: The continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: InvitationList or the result of cls(response) :rtype: ~data_share_management_client.models.InvitationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.InvitationList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.InvitationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -300,13 +306,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -318,7 +324,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -327,8 +333,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py index a642dd0a566..ea88e363ce7 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_operation_operations.py @@ -8,7 +8,7 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse @@ -21,7 +21,8 @@ class OperationOperations(object): """OperationOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -51,10 +52,10 @@ def list( :keyword callable cls: A custom type or function that will be passed the direct response :return: OperationList or the result of cls(response) :rtype: ~data_share_management_client.models.OperationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -65,11 +66,11 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -81,7 +82,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -90,8 +91,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py index 2f02f2533de..8c663fab40b 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_provider_share_subscription_operations.py @@ -8,12 +8,11 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models @@ -23,7 +22,8 @@ class ProviderShareSubscriptionOperations(object): """ProviderShareSubscriptionOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -65,10 +65,10 @@ def get_by_share( :keyword callable cls: A custom type or function that will be passed the direct response :return: ProviderShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ProviderShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -83,11 +83,11 @@ def get_by_share( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -97,7 +97,8 @@ def get_by_share( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) @@ -126,15 +127,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: Continuation Token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ProviderShareSubscriptionList or the result of cls(response) :rtype: ~data_share_management_client.models.ProviderShareSubscriptionList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscriptionList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscriptionList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -152,13 +153,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -170,7 +171,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -179,8 +180,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -198,8 +200,8 @@ def _revoke_initial( **kwargs # type: Any ): # type: (...) -> "models.ProviderShareSubscription" - cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -214,11 +216,11 @@ def _revoke_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -228,7 +230,8 @@ def _revoke_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -271,10 +274,10 @@ def begin_revoke( :return: An instance of LROPoller that returns ProviderShareSubscription :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ProviderShareSubscription] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] raw_result = self._revoke_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -295,7 +298,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -325,10 +328,10 @@ def reinstate( :keyword callable cls: A custom type or function that will be passed the direct response :return: ProviderShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ProviderShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ProviderShareSubscription"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -343,11 +346,11 @@ def reinstate( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -357,7 +360,8 @@ def reinstate( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ProviderShareSubscription', pipeline_response) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py index fc0b3d401e2..a891d441424 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_operations.py @@ -9,12 +9,11 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models @@ -24,7 +23,8 @@ class ShareOperations(object): """ShareOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -58,15 +58,15 @@ def get( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to retrieve. :type share_name: str :keyword callable cls: A custom type or function that will be passed the direct response :return: Share or the result of cls(response) :rtype: ~data_share_management_client.models.Share - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.Share"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Share"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -80,11 +80,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -94,7 +94,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Share', pipeline_response) @@ -132,15 +133,16 @@ def create( :param terms: Share terms. :type terms: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: Share or Share or the result of cls(response) + :return: Share or the result of cls(response) :rtype: ~data_share_management_client.models.Share or ~data_share_management_client.models.Share - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.Share"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Share"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - share = models.Share(description=description, share_kind=share_kind, terms=terms) + _share = models.Share(description=description, share_kind=share_kind, terms=terms) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -153,25 +155,27 @@ def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share, 'Share') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share, 'Share') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -194,8 +198,8 @@ def _delete_initial( **kwargs # type: Any ): # type: (...) -> "models.OperationResponse" - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -209,11 +213,11 @@ def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -223,7 +227,8 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -260,10 +265,10 @@ def begin_delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -283,7 +288,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -305,15 +310,15 @@ def list_by_account( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param skip_token: Continuation token. + :param skip_token: Continuation Token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -330,13 +335,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -348,7 +353,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -357,8 +362,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -391,10 +397,10 @@ def list_synchronization( :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSynchronizationList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSynchronizationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSynchronizationList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSynchronizationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -412,13 +418,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -430,7 +436,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -439,8 +445,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -500,12 +507,13 @@ def list_synchronization_detail( :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationDetailsList or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationDetailsList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationDetailsList"] - error_map = kwargs.pop('error_map', {}) - share_synchronization = models.ShareSynchronization(consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationDetailsList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) + _share_synchronization = models.ShareSynchronization(consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) api_version = "2019-11-01" + content_type = "application/json" def prepare_request(next_link=None): if not next_link: @@ -522,21 +530,22 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_synchronization, 'ShareSynchronization') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_synchronization, 'ShareSynchronization') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + return request def extract_data(pipeline_response): @@ -544,7 +553,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -553,8 +562,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py index 73215a27613..59e710c1c5b 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_share_subscription_operations.py @@ -8,12 +8,11 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models @@ -23,7 +22,8 @@ class ShareSubscriptionOperations(object): """ShareSubscriptionOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -62,10 +62,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscription"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -79,11 +79,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -93,7 +93,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('ShareSubscription', pipeline_response) @@ -128,15 +129,16 @@ def create( :param source_share_location: Source share location. :type source_share_location: str :keyword callable cls: A custom type or function that will be passed the direct response - :return: ShareSubscription or ShareSubscription or the result of cls(response) + :return: ShareSubscription or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscription or ~data_share_management_client.models.ShareSubscription - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscription"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscription"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - share_subscription = models.ShareSubscription(invitation_id=invitation_id, source_share_location=source_share_location) + _share_subscription = models.ShareSubscription(invitation_id=invitation_id, source_share_location=source_share_location) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -149,25 +151,27 @@ def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_subscription, 'ShareSubscription') # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_subscription, 'ShareSubscription') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -190,8 +194,8 @@ def _delete_initial( **kwargs # type: Any ): # type: (...) -> "models.OperationResponse" - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -205,11 +209,11 @@ def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -219,7 +223,8 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -256,10 +261,10 @@ def begin_delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -279,7 +284,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -301,15 +306,15 @@ def list_by_account( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param skip_token: Continuation token. + :param skip_token: Continuation Token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSubscriptionList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscriptionList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -326,13 +331,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -344,7 +349,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -353,8 +358,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -387,10 +393,10 @@ def list_source_share_synchronization_setting( :keyword callable cls: A custom type or function that will be passed the direct response :return: SourceShareSynchronizationSettingList or the result of cls(response) :rtype: ~data_share_management_client.models.SourceShareSynchronizationSettingList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.SourceShareSynchronizationSettingList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.SourceShareSynchronizationSettingList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -408,13 +414,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -426,7 +432,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -435,8 +441,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -462,17 +469,17 @@ def list_synchronization( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param skip_token: Continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: ShareSubscriptionSynchronizationList or the result of cls(response) :rtype: ~data_share_management_client.models.ShareSubscriptionSynchronizationList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronizationList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronizationList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -490,13 +497,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -508,7 +515,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -517,8 +524,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -545,7 +553,7 @@ def list_synchronization_detail( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param synchronization_id: Synchronization id. :type synchronization_id: str @@ -554,12 +562,13 @@ def list_synchronization_detail( :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationDetailsList or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationDetailsList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationDetailsList"] - error_map = kwargs.pop('error_map', {}) - share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationDetailsList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) + _share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) api_version = "2019-11-01" + content_type = "application/json" def prepare_request(next_link=None): if not next_link: @@ -576,21 +585,22 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_subscription_synchronization, 'ShareSubscriptionSynchronization') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + return request def extract_data(pipeline_response): @@ -598,7 +608,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -607,8 +617,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response @@ -626,11 +637,12 @@ def _synchronize_initial( **kwargs # type: Any ): # type: (...) -> "models.ShareSubscriptionSynchronization" - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - synchronize = models.Synchronize(synchronization_mode=synchronization_mode) + _synchronize = models.Synchronize(synchronization_mode=synchronization_mode) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._synchronize_initial.metadata['url'] @@ -643,25 +655,27 @@ def _synchronize_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(synchronize, 'Synchronize') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_synchronize, 'Synchronize') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -693,9 +707,10 @@ def begin_synchronize( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of share subscription. :type share_subscription_name: str - :param synchronization_mode: Synchronization mode. + :param synchronization_mode: Mode of synchronization used in triggers and snapshot sync. + Incremental by default. :type synchronization_mode: str or ~data_share_management_client.models.SynchronizationMode :keyword callable cls: A custom type or function that will be passed the direct response :keyword polling: True for ARMPolling, False for no polling, or a @@ -704,10 +719,10 @@ def begin_synchronize( :return: An instance of LROPoller that returns ShareSubscriptionSynchronization :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] raw_result = self._synchronize_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -728,7 +743,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -743,11 +758,12 @@ def _cancel_synchronization_initial( **kwargs # type: Any ): # type: (...) -> "models.ShareSubscriptionSynchronization" - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) - share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) + _share_subscription_synchronization = models.ShareSubscriptionSynchronization(synchronization_id=synchronization_id) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._cancel_synchronization_initial.metadata['url'] @@ -760,25 +776,27 @@ def _cancel_synchronization_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - - # Construct body - body_content = self._serialize.body(share_subscription_synchronization, 'ShareSubscriptionSynchronization') # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(_share_subscription_synchronization, 'ShareSubscriptionSynchronization') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -821,10 +839,10 @@ def begin_cancel_synchronization( :return: An instance of LROPoller that returns ShareSubscriptionSynchronization :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.ShareSubscriptionSynchronization] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.ShareSubscriptionSynchronization"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.ShareSubscriptionSynchronization"] raw_result = self._cancel_synchronization_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -845,7 +863,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'azure-async-operation'}, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py index fa84cf664eb..4b59370d082 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_synchronization_setting_operations.py @@ -8,12 +8,11 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models @@ -23,7 +22,8 @@ class SynchronizationSettingOperations(object): """SynchronizationSettingOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -65,10 +65,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationSetting or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationSetting - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationSetting"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationSetting"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -83,11 +83,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -97,7 +97,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('SynchronizationSetting', pipeline_response) @@ -113,7 +114,7 @@ def create( account_name, # type: str share_name, # type: str synchronization_setting_name, # type: str - kind, # type: Union[str, "models.Kind"] + synchronization_setting, # type: "models.SynchronizationSetting" **kwargs # type: Any ): # type: (...) -> "models.SynchronizationSetting" @@ -125,22 +126,21 @@ def create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_name: The name of the share. + :param share_name: The name of the share to add the synchronization setting to. :type share_name: str :param synchronization_setting_name: The name of the synchronizationSetting. :type synchronization_setting_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param synchronization_setting: The new synchronization setting information. + :type synchronization_setting: ~data_share_management_client.models.SynchronizationSetting :keyword callable cls: A custom type or function that will be passed the direct response - :return: SynchronizationSetting or SynchronizationSetting or the result of cls(response) + :return: SynchronizationSetting or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationSetting or ~data_share_management_client.models.SynchronizationSetting - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationSetting"] - error_map = kwargs.pop('error_map', {}) - - synchronization_setting = models.SynchronizationSetting(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationSetting"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self.create.metadata['url'] @@ -154,25 +154,27 @@ def create( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(synchronization_setting, 'SynchronizationSetting') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -196,8 +198,8 @@ def _delete_initial( **kwargs # type: Any ): # type: (...) -> "models.OperationResponse" - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -212,11 +214,11 @@ def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -226,7 +228,8 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -257,7 +260,7 @@ def begin_delete( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param synchronization_setting_name: The name of the synchronizationSetting. + :param synchronization_setting_name: The name of the synchronizationSetting . :type synchronization_setting_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword polling: True for ARMPolling, False for no polling, or a @@ -266,10 +269,10 @@ def begin_delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -290,7 +293,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -315,15 +318,15 @@ def list_by_share( :type account_name: str :param share_name: The name of the share. :type share_name: str - :param skip_token: Continuation token. + :param skip_token: continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: SynchronizationSettingList or the result of cls(response) :rtype: ~data_share_management_client.models.SynchronizationSettingList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.SynchronizationSettingList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.SynchronizationSettingList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -341,13 +344,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -359,7 +362,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -368,8 +371,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py index eb7410c6a4c..1bea3c38c31 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/operations/_trigger_operations.py @@ -8,12 +8,11 @@ from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union import warnings -from azure.core.exceptions import map_error +from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod -from azure.mgmt.core.polling.arm_polling import ARMPolling from .. import models @@ -23,7 +22,8 @@ class TriggerOperations(object): """TriggerOperations operations. - You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. :type models: ~data_share_management_client.models @@ -65,10 +65,10 @@ def get( :keyword callable cls: A custom type or function that will be passed the direct response :return: Trigger or the result of cls(response) :rtype: ~data_share_management_client.models.Trigger - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.Trigger"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.Trigger"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -83,11 +83,11 @@ def get( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -97,7 +97,8 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = self._deserialize('Trigger', pipeline_response) @@ -113,15 +114,14 @@ def _create_initial( account_name, # type: str share_subscription_name, # type: str trigger_name, # type: str - kind, # type: Union[str, "models.Kind"] + trigger, # type: "models.Trigger" **kwargs # type: Any ): # type: (...) -> "models.Trigger" - cls = kwargs.pop('cls', None ) # type: ClsType["models.Trigger"] - error_map = kwargs.pop('error_map', {}) - - trigger = models.Trigger(kind=kind) + cls = kwargs.pop('cls', None) # type: ClsType["models.Trigger"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" + content_type = kwargs.pop("content_type", "application/json") # Construct URL url = self._create_initial.metadata['url'] @@ -135,25 +135,27 @@ def _create_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json' - # Construct body + # Construct and send request + body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(trigger, 'Trigger') + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -174,7 +176,7 @@ def begin_create( account_name, # type: str share_subscription_name, # type: str trigger_name, # type: str - kind, # type: Union[str, "models.Kind"] + trigger, # type: "models.Trigger" **kwargs # type: Any ): # type: (...) -> "models.Trigger" @@ -186,12 +188,13 @@ def begin_create( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription which will hold the data set + sink. :type share_subscription_name: str :param trigger_name: The name of the trigger. :type trigger_name: str - :param kind: Kind of data set. - :type kind: str or ~data_share_management_client.models.Kind + :param trigger: Trigger details. + :type trigger: ~data_share_management_client.models.Trigger :keyword callable cls: A custom type or function that will be passed the direct response :keyword polling: True for ARMPolling, False for no polling, or a polling object for personal polling strategy @@ -199,16 +202,16 @@ def begin_create( :return: An instance of LROPoller that returns Trigger :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.Trigger] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.Trigger"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.Trigger"] raw_result = self._create_initial( resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name, - kind=kind, + trigger=trigger, cls=lambda x,y,z: x, **kwargs ) @@ -224,7 +227,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -239,8 +242,8 @@ def _delete_initial( **kwargs # type: Any ): # type: (...) -> "models.OperationResponse" - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" # Construct URL @@ -255,11 +258,11 @@ def _delete_initial( url = self._client.format_url(url, **path_format_arguments) # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -269,7 +272,8 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + error = self._deserialize(models.DataShareError, response) + raise HttpResponseError(response=response, model=error) deserialized = None if response.status_code == 200: @@ -309,10 +313,10 @@ def begin_delete( :return: An instance of LROPoller that returns OperationResponse :rtype: ~azure.core.polling.LROPoller[~data_share_management_client.models.OperationResponse] - :raises ~data_share_management_client.models.DataShareErrorException: + :raises ~azure.core.exceptions.HttpResponseError: """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None ) # type: ClsType["models.OperationResponse"] + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType["models.OperationResponse"] raw_result = self._delete_initial( resource_group_name=resource_group_name, account_name=account_name, @@ -333,7 +337,7 @@ def get_long_running_output(pipeline_response): 'polling_interval', self._config.polling_interval ) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + if polling is True: raise ValueError("polling being True is not valid because no default polling implemetation has been defined.") elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) @@ -356,17 +360,17 @@ def list_by_share_subscription( :type resource_group_name: str :param account_name: The name of the share account. :type account_name: str - :param share_subscription_name: The name of the shareSubscription. + :param share_subscription_name: The name of the share subscription. :type share_subscription_name: str :param skip_token: Continuation token. :type skip_token: str :keyword callable cls: A custom type or function that will be passed the direct response :return: TriggerList or the result of cls(response) :rtype: ~data_share_management_client.models.TriggerList - :raises: ~data_share_management_client.models.DataShareErrorException: + :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None ) # type: ClsType["models.TriggerList"] - error_map = kwargs.pop('error_map', {}) + cls = kwargs.pop('cls', None) # type: ClsType["models.TriggerList"] + error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError}) api_version = "2019-11-01" def prepare_request(next_link=None): @@ -384,13 +388,13 @@ def prepare_request(next_link=None): url = next_link # Construct parameters - query_parameters = {} + query_parameters = {} # type: Dict[str, Any] query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') if skip_token is not None: query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') # Construct headers - header_parameters = {} + header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = 'application/json' # Construct and send request @@ -402,7 +406,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link, iter(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -411,8 +415,9 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: + error = self._deserialize(models.DataShareError, response) map_error(status_code=response.status_code, response=response, error_map=error_map) - raise models.DataShareErrorException.from_response(response, self._deserialize) + raise HttpResponseError(response=response, model=error) return pipeline_response From 23caf1259b641b2c024faa4d57addeb2e69a9152 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Tue, 7 Apr 2020 22:14:13 +0800 Subject: [PATCH 09/23] full tests for provider and consumer --- .../azext_datashare/generated/_help.py | 5 - .../azext_datashare/generated/commands.py | 24 +- src/datashare/azext_datashare/manual/_help.py | 134 +- .../azext_datashare/manual/_params.py | 21 + .../latest/recordings/test_datashare.yaml | 1409 ++++++++++------- .../tests/latest/test_datashare_scenario.py | 742 +++++---- 6 files changed, 1371 insertions(+), 964 deletions(-) diff --git a/src/datashare/azext_datashare/generated/_help.py b/src/datashare/azext_datashare/generated/_help.py index 08fccdcf2e5..a9ec3066486 100644 --- a/src/datashare/azext_datashare/generated/_help.py +++ b/src/datashare/azext_datashare/generated/_help.py @@ -290,11 +290,6 @@ --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" """ -helps['datashare consumer-source-data-set'] = """ - type: group - short-summary: datashare consumer-source-data-set -""" - helps['datashare synchronization-setting'] = """ type: group short-summary: datashare synchronization-setting diff --git a/src/datashare/azext_datashare/generated/commands.py b/src/datashare/azext_datashare/generated/commands.py index af418045400..695513e9258 100644 --- a/src/datashare/azext_datashare/generated/commands.py +++ b/src/datashare/azext_datashare/generated/commands.py @@ -62,18 +62,18 @@ def load_command_table(self, _): g.custom_command('create', 'datashare_invitation_create') g.custom_command('delete', 'datashare_invitation_delete') - from azext_datashare.generated._client_factory import cf_share - datashare_share = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_operations#ShareOperations.{}', - client_factory=cf_share) - with self.command_group('datashare share', datashare_share, client_factory=cf_share) as g: - g.custom_command('list', 'datashare_share_list') - g.custom_show_command('show', 'datashare_share_show') - g.custom_command('create', 'datashare_share_create') - g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True) - g.custom_command('list-synchronization-detail', 'datashare_share_list_synchronization_detail') - g.custom_command('list-synchronization', 'datashare_share_list_synchronization') - g.wait_command('wait') + # from azext_datashare.generated._client_factory import cf_share + # datashare_share = CliCommandType( + # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_operations#ShareOperations.{}', + # client_factory=cf_share) + # with self.command_group('datashare share', datashare_share, client_factory=cf_share) as g: + # g.custom_command('list', 'datashare_share_list') + # g.custom_show_command('show', 'datashare_share_show') + # g.custom_command('create', 'datashare_share_create') + # g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True) + # g.custom_command('list-synchronization-detail', 'datashare_share_list_synchronization_detail') + # g.custom_command('list-synchronization', 'datashare_share_list_synchronization') + # g.wait_command('wait') from azext_datashare.generated._client_factory import cf_provider_share_subscription datashare_provider_share_subscription = CliCommandType( diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 8f5e51c3894..71fa52566a6 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -10,7 +10,7 @@ helps['datashare account'] = """ type: group - short-summary: datashare account + short-summary: Commands to manage datashare accounts """ helps['datashare account list'] = """ @@ -43,7 +43,7 @@ - name: Accounts_Create text: |- az datashare account create --identity type=SystemAssigned --location "West US 2" --tags tag1=Red tag2=White --name MyAccount --resource-group MyResourceGroup -""" # modified +""" helps['datashare account update'] = """ type: command @@ -63,9 +63,17 @@ az datashare account delete --name MyAccount --resource-group MyResourceGroup """ +helps['datashare account wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare account is met. + examples: + - name: Pause executing next line of CLI script until the datashare account is successfully provisioned. + text: az datashare account wait --name MyAccount --resource-group MyResourceGroup --created +""" + helps['datashare consumer-invitation'] = """ type: group - short-summary: datashare consumer-invitation + short-summary: Commands for consumers to manage datashare invitations """ helps['datashare consumer-invitation list'] = """ @@ -97,7 +105,7 @@ helps['datashare dataset'] = """ type: group - short-summary: datashare dataset + short-summary: Commands for providers to manage datashare datasets """ helps['datashare dataset list'] = """ @@ -124,19 +132,31 @@ examples: - name: DataSets_Create text: |- - az datashare dataset create --account-name MyAccount --kind "Blob" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ +--dataset "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"filePath\\":\\"file21\\",\\"resourceGroup\\": \ +\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" - name: DataSets_KustoCluster_Create text: |- - az datashare dataset create --account-name MyAccount --kind "KustoCluster" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ +--dataset "{\\"kind\\":\\"KustoCluster\\",\\"properties\\":{\\"kustoClusterResourceId\\": \ +\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1\\"}}" - name: DataSets_KustoDatabase_Create text: |- - az datashare dataset create --account-name MyAccount --kind "KustoDatabase" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ +--dataset "{\\"kind\\":\\"KustoDatabase\\",\\"properties\\":{\\"kustoDatabaseResourceId\\": \ +\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1/databases/Database1\\"}}" - name: DataSets_SqlDBTable_Create text: |- - az datashare dataset create --account-name MyAccount --kind "SqlDBTable" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ +--dataset "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"databaseName\\":\\"SqlDB1\\",\\"schemaName\\":\\"dbo\\", \ +\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\", \ +\\"tableName\\":\\"Table1\\"}}" - name: DataSets_SqlDWTable_Create text: |- - az datashare dataset create --account-name MyAccount --kind "SqlDWTable" --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ +--dataset "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataWarehouseName\\":\\"DataWarehouse1\\",\\"schemaName\\":\\"dbo\\", \ +\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\ +\\",\\"tableName\\":\\"Table1\\"}}" """ helps['datashare dataset delete'] = """ @@ -148,9 +168,17 @@ az datashare dataset delete --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" """ +helps['datashare dataset wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare dataset is met. + examples: + - name: Pause executing next line of CLI script until the datashare dataset is successfully provisioned. + text: az datashare dataset wait --account-name MyAccount --share-name "Share1" --name "Dataset1" --resource-group MyResourceGroup --created +""" + helps['datashare dataset-mapping'] = """ type: group - short-summary: datashare dataset-mapping + short-summary: Commands for consumers to manage datashare dataset mappings """ helps['datashare dataset-mapping list'] = """ @@ -177,16 +205,24 @@ examples: - name: DataSetMappings_Create text: |- - az datashare dataset-mapping create --account-name MyAccount --kind "Blob" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ +--mapping "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"filePath\ +\\":\\"file21\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" - name: DataSetMappings_SqlDB_Create text: |- - az datashare dataset-mapping create --account-name MyAccount --kind "SqlDBTable" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ +--mapping "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"databaseName\\":\\"Database1\\"\ +,\\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" - name: DataSetMappings_SqlDWDataSetToAdlsGen2File_Create text: |- - az datashare dataset-mapping create --account-name MyAccount --kind "AdlsGen2File" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ +--mapping "{\\"kind\\":\\"AdlsGen2File\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"filePath\\":\\"file21\\",\\"fileSystem\\": \ +\\"fileSystem\\",\\"outputType\\":\\"Csv\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" - name: DataSetMappings_SqlDW_Create text: |- - az datashare dataset-mapping create --account-name MyAccount --kind "SqlDWTable" --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ +--mapping "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"dataWarehouseName\\":\\"DataWarehouse1\\",\ +\\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" """ helps['datashare dataset-mapping delete'] = """ @@ -200,7 +236,7 @@ helps['datashare invitation'] = """ type: group - short-summary: datashare invitation + short-summary: Commands for providers to manage datashare invitations """ helps['datashare invitation list'] = """ @@ -218,7 +254,7 @@ examples: - name: Invitations_Get text: |- - az datashare invitation show --account-name MyAccount --invitation-name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation show --account-name MyAccount --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare invitation create'] = """ @@ -227,7 +263,7 @@ examples: - name: Invitations_Create text: |- - az datashare invitation create --account-name MyAccount --target-email "receiver@microsoft.com" --invitation-name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation create --account-name MyAccount --target-email "receiver@microsoft.com" --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare invitation delete'] = """ @@ -236,12 +272,12 @@ examples: - name: Invitations_Delete text: |- - az datashare invitation delete --account-name MyAccount --invitation-name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation delete --account-name MyAccount --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare'] = """ type: group - short-summary: datashare share + short-summary: Commands to manage datashare """ helps['datashare list'] = """ @@ -298,9 +334,17 @@ az datashare list-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ +helps['datashare wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare is met. + examples: + - name: Pause executing next line of CLI script until the datashare is successfully provisioned. + text: az datashare wait --account-name MyAccount --resource-group MyResourceGroup --name "Share1" --created +""" + helps['datashare provider-share-subscription'] = """ type: group - short-summary: datashare provider-share-subscription + short-summary: Commands for providers to manage datashare share subscriptions """ helps['datashare provider-share-subscription list'] = """ @@ -318,7 +362,7 @@ examples: - name: ProviderShareSubscriptions_GetByShare text: |- - az datashare provider-share-subscription show --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription show --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription revoke'] = """ @@ -327,7 +371,7 @@ examples: - name: ProviderShareSubscriptions_Revoke text: |- - az datashare provider-share-subscription revoke --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription revoke --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription reinstate'] = """ @@ -336,12 +380,20 @@ examples: - name: ProviderShareSubscriptions_Reinstate text: |- - az datashare provider-share-subscription reinstate --account-name MyAccount --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription reinstate --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" +""" + +helps['datashare provider-share-subscription wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare provider share subscription is met. + examples: + - name: Pause executing next line of CLI script until the datashare provider share subscription is successfully provisioned. + text: az datashare provider-share-subscription wait --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" --created """ helps['datashare share-subscription'] = """ type: group - short-summary: datashare share-subscription + short-summary: Commands for consumers to manage datashare share subscriptions """ helps['datashare share-subscription list'] = """ @@ -425,9 +477,17 @@ az datashare share-subscription list-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" """ +helps['datashare share-subscription wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare share subscription is met. + examples: + - name: Pause executing next line of CLI script until the datashare share subscription is successfully provisioned. + text: az datashare share-subscription wait --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" --created +""" + helps['datashare consumer-source-dataset'] = """ type: group - short-summary: datashare consumer-source-dataset + short-summary: Commands for consumers to manage datashare source datasets """ helps['datashare consumer-source-dataset list'] = """ @@ -441,7 +501,7 @@ helps['datashare synchronization-setting'] = """ type: group - short-summary: datashare synchronization-setting + short-summary: Commands for providers to manage datashare synchronization settings """ helps['datashare synchronization-setting list'] = """ @@ -468,7 +528,7 @@ examples: - name: SynchronizationSettings_Create text: |- - az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --kind "ScheduleBased" --name "Dataset1" --setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" + az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "Dataset1" --setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" """ helps['datashare synchronization-setting delete'] = """ @@ -480,9 +540,17 @@ az datashare synchronization-setting delete --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" """ +helps['datashare synchronization-setting wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare synchronization setting is met. + examples: + - name: Pause executing next line of CLI script until the datashare synchronization setting is successfully provisioned. + text: az datashare synchronization-setting wait --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" --created +""" + helps['datashare trigger'] = """ type: group - short-summary: datashare trigger + short-summary: Commands for consumers to manage datashare triggers """ helps['datashare trigger list'] = """ @@ -509,7 +577,7 @@ examples: - name: Triggers_Create text: |- - az datashare trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --kind "ScheduleBased" --name "Trigger1" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" + az datashare trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" """ helps['datashare trigger delete'] = """ @@ -520,3 +588,11 @@ text: |- az datashare trigger delete --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" """ + +helps['datashare trigger wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare trigger is met. + examples: + - name: Pause executing next line of CLI script until the datashare trigger is successfully provisioned. + text: az datashare trigger wait --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --created +""" diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 2bd7e02662a..d118d00843c 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -86,6 +86,9 @@ def load_arguments(self, _): c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataSet.') # modified + with self.argument_context('datashare dataset wait') as c: + c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataSet.') # modified + with self.argument_context('datashare dataset-mapping list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -111,6 +114,9 @@ def load_arguments(self, _): c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified + with self.argument_context('datashare dataset-mapping wait') as c: + c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified + with self.argument_context('datashare invitation list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -182,6 +188,9 @@ def load_arguments(self, _): c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('skip_token', help='Continuation token') + with self.argument_context('datashare wait') as c: + c.argument('share_name', options_list=['--name', '-n'], help='The name of the share.') # modified + with self.argument_context('datashare provider-share-subscription list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -206,6 +215,9 @@ def load_arguments(self, _): c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified + with self.argument_context('datashare provider-share-subscription wait') as c: + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified + with self.argument_context('datashare share-subscription list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -259,6 +271,9 @@ def load_arguments(self, _): c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') + with self.argument_context('datashare share-subscription wait') as c: + c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the shareSubscription.') # modified + with self.argument_context('datashare consumer-source-dataset list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -290,6 +305,9 @@ def load_arguments(self, _): c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified + with self.argument_context('datashare synchronization-setting wait') as c: + c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified + with self.argument_context('datashare trigger list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -314,3 +332,6 @@ def load_arguments(self, _): c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_subscription_name', id_part='child_name_1', help='The name of the shareSubscription.') # modified c.argument('trigger_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the trigger.') # modified + + with self.argument_context('datashare trigger wait') as c: + c.argument('trigger_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the trigger.') # modified diff --git a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml index 9f4ecca95cb..c20a557f502 100644 --- a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml +++ b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml @@ -68,7 +68,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:50:30 GMT + - Tue, 07 Apr 2020 10:57:11 GMT expires: - '-1' pragma: @@ -104,24 +104,24 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '577' + - '619' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:50:40 GMT + - Tue, 07 Apr 2020 10:57:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 pragma: - no-cache server: @@ -131,149 +131,8 @@ interactions: x-content-type-options: - nosniff x-ms-quota: - - '[{"currentUsed":4,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3"}]' - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - datashare account create - Connection: - - keep-alive - ParameterSetName: - - --identity --location --tags --name --resource-group - User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/locations?api-version=2019-06-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastasia","name":"eastasia","displayName":"East - Asia","longitude":"114.188","latitude":"22.267"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southeastasia","name":"southeastasia","displayName":"Southeast - Asia","longitude":"103.833","latitude":"1.283"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralus","name":"centralus","displayName":"Central - US","longitude":"-93.6208","latitude":"41.5908"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus","name":"eastus","displayName":"East - US","longitude":"-79.8164","latitude":"37.3719"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/eastus2","name":"eastus2","displayName":"East - US 2","longitude":"-78.3889","latitude":"36.6681"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus","name":"westus","displayName":"West - US","longitude":"-122.417","latitude":"37.783"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northcentralus","name":"northcentralus","displayName":"North - Central US","longitude":"-87.6278","latitude":"41.8819"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southcentralus","name":"southcentralus","displayName":"South - Central US","longitude":"-98.5","latitude":"29.4167"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/northeurope","name":"northeurope","displayName":"North - Europe","longitude":"-6.2597","latitude":"53.3478"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westeurope","name":"westeurope","displayName":"West - Europe","longitude":"4.9","latitude":"52.3667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japanwest","name":"japanwest","displayName":"Japan - West","longitude":"135.5022","latitude":"34.6939"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/japaneast","name":"japaneast","displayName":"Japan - East","longitude":"139.77","latitude":"35.68"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/brazilsouth","name":"brazilsouth","displayName":"Brazil - South","longitude":"-46.633","latitude":"-23.55"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiaeast","name":"australiaeast","displayName":"Australia - East","longitude":"151.2094","latitude":"-33.86"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiasoutheast","name":"australiasoutheast","displayName":"Australia - Southeast","longitude":"144.9631","latitude":"-37.8136"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southindia","name":"southindia","displayName":"South - India","longitude":"80.1636","latitude":"12.9822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/centralindia","name":"centralindia","displayName":"Central - India","longitude":"73.9197","latitude":"18.5822"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westindia","name":"westindia","displayName":"West - India","longitude":"72.868","latitude":"19.088"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadacentral","name":"canadacentral","displayName":"Canada - Central","longitude":"-79.383","latitude":"43.653"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/canadaeast","name":"canadaeast","displayName":"Canada - East","longitude":"-71.217","latitude":"46.817"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uksouth","name":"uksouth","displayName":"UK - South","longitude":"-0.799","latitude":"50.941"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/ukwest","name":"ukwest","displayName":"UK - West","longitude":"-3.084","latitude":"53.427"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westcentralus","name":"westcentralus","displayName":"West - Central US","longitude":"-110.234","latitude":"40.890"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/westus2","name":"westus2","displayName":"West - US 2","longitude":"-119.852","latitude":"47.233"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreacentral","name":"koreacentral","displayName":"Korea - Central","longitude":"126.9780","latitude":"37.5665"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/koreasouth","name":"koreasouth","displayName":"Korea - South","longitude":"129.0756","latitude":"35.1796"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francecentral","name":"francecentral","displayName":"France - Central","longitude":"2.3730","latitude":"46.3772"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/francesouth","name":"francesouth","displayName":"France - South","longitude":"2.1972","latitude":"43.8345"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral","name":"australiacentral","displayName":"Australia - Central","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/australiacentral2","name":"australiacentral2","displayName":"Australia - Central 2","longitude":"149.1244","latitude":"-35.3075"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaecentral","name":"uaecentral","displayName":"UAE - Central","longitude":"54.366669","latitude":"24.466667"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/uaenorth","name":"uaenorth","displayName":"UAE - North","longitude":"55.316666","latitude":"25.266666"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricanorth","name":"southafricanorth","displayName":"South - Africa North","longitude":"28.218370","latitude":"-25.731340"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/southafricawest","name":"southafricawest","displayName":"South - Africa West","longitude":"18.843266","latitude":"-34.075691"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandnorth","name":"switzerlandnorth","displayName":"Switzerland - North","longitude":"8.564572","latitude":"47.451542"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/switzerlandwest","name":"switzerlandwest","displayName":"Switzerland - West","longitude":"6.143158","latitude":"46.204391"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanynorth","name":"germanynorth","displayName":"Germany - North","longitude":"8.806422","latitude":"53.073635"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/germanywestcentral","name":"germanywestcentral","displayName":"Germany - West Central","longitude":"8.682127","latitude":"50.110924"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwaywest","name":"norwaywest","displayName":"Norway - West","longitude":"5.733107","latitude":"58.969975"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/locations/norwayeast","name":"norwayeast","displayName":"Norway - East","longitude":"10.752245","latitude":"59.913868"}]}' - headers: - cache-control: - - no-cache - content-length: - - '7129' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Apr 2020 15:50:41 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: '{"location": "westus2", "tags": {"tag1": "Red", "tag2": "White"}, "identity": - {"type": "SystemAssigned"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - datashare account create - Connection: - - keep-alive - Content-Length: - - '105' - Content-Type: - - application/json - ParameterSetName: - - --identity --location --tags --name --resource-group - User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 - (Windows-10-10.0.18362-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 - response: - body: - string: '{"identity":{"type":"SystemAssigned","principalId":"137add51-2e2a-4e79-ad5f-0e2933110135","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:52.0216624Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' - headers: - cache-control: - - no-cache - content-length: - - '577' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Apr 2020 15:50:53 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 - pragma: - - no-cache - server: - - Kestrel - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-quota: - - '[{"currentUsed":5,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q"}]' + - '[{"currentUsed":3,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account"}]' x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -296,20 +155,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '577' + - '619' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:50:54 GMT + - Tue, 07 Apr 2020 10:57:36 GMT expires: - '-1' pragma: @@ -344,20 +203,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '577' + - '619' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:51:25 GMT + - Tue, 07 Apr 2020 10:58:07 GMT expires: - '-1' pragma: @@ -392,20 +251,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '577' + - '619' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:51:55 GMT + - Tue, 07 Apr 2020 10:58:38 GMT expires: - '-1' pragma: @@ -440,20 +299,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '577' + - '619' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:52:25 GMT + - Tue, 07 Apr 2020 10:59:09 GMT expires: - '-1' pragma: @@ -488,20 +347,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '578' + - '620' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:52:56 GMT + - Tue, 07 Apr 2020 10:59:39 GMT expires: - '-1' pragma: @@ -536,20 +395,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '578' + - '620' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:52:58 GMT + - Tue, 07 Apr 2020 10:59:42 GMT expires: - '-1' pragma: @@ -584,20 +443,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '578' + - '620' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:52:59 GMT + - Tue, 07 Apr 2020 10:59:44 GMT expires: - '-1' pragma: @@ -632,23 +491,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts?api-version=2019-11-01 response: body: - string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"f6ddef3d-c660-4f19-989b-dd547b289c53","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:37:56.2424324Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_smi3egxzba2qdas","name":"cli_test_smi3egxzba2qdas","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}},{"identity":{"type":"SystemAssigned","principalId":"53167e1a-e193-4dde-ab08-8bf5235bedd6","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:38:06.9314582Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_tpostno44ggu6al","name":"cli_test_tpostno44ggu6al","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}},{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}},{"identity":{"type":"SystemAssigned","principalId":"137add51-2e2a-4e79-ad5f-0e2933110135","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:52.0216624Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' + string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' headers: cache-control: - no-cache content-length: - - '2314' + - '632' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:01 GMT + - Tue, 07 Apr 2020 10:59:48 GMT expires: - '-1' pragma: @@ -687,20 +543,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-06T15:50:38.8002611Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002","name":"cli_test_000002","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' headers: cache-control: - no-cache content-length: - - '565' + - '607' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:06 GMT + - Tue, 07 Apr 2020 10:59:55 GMT expires: - '-1' pragma: @@ -716,7 +572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -742,24 +598,24 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}' + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache content-length: - - '491' + - '521' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:09 GMT + - Tue, 07 Apr 2020 10:59:56 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/cli_test_000007 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/cli_test_share pragma: - no-cache server: @@ -770,7 +626,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"Share resource quota","value":"Share - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3/shares/cli_test_m6al7c74nrqnctd"}]' + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share"}]' x-ms-ratelimit-remaining-subscription-writes: - '1197' status: @@ -793,20 +649,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}' + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache content-length: - - '491' + - '521' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:11 GMT + - Tue, 07 Apr 2020 10:59:57 GMT expires: - '-1' pragma: @@ -841,20 +697,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}' + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache content-length: - - '491' + - '521' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:13 GMT + - Tue, 07 Apr 2020 10:59:59 GMT expires: - '-1' pragma: @@ -889,20 +745,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-06T15:53:09.0610592Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007","name":"cli_test_000007","type":"Microsoft.DataShare/shares"}]}' + string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}]}' headers: cache-control: - no-cache content-length: - - '503' + - '533' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:13 GMT + - Tue, 07 Apr 2020 11:00:00 GMT expires: - '-1' pragma: @@ -939,19 +795,19 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa?api-version=2019-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002?api-version=2019-06-01 response: body: - string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","name":"fengdatasharesa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-06T15:37:10.2792631Z","primaryEndpoints":{"dfs":"https://fengdatasharesa.dfs.core.windows.net/","web":"https://fengdatasharesa.z5.web.core.windows.net/","blob":"https://fengdatasharesa.blob.core.windows.net/","queue":"https://fengdatasharesa.queue.core.windows.net/","table":"https://fengdatasharesa.table.core.windows.net/","file":"https://fengdatasharesa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengdatasharesa-secondary.dfs.core.windows.net/","web":"https://fengdatasharesa-secondary.z5.web.core.windows.net/","blob":"https://fengdatasharesa-secondary.blob.core.windows.net/","queue":"https://fengdatasharesa-secondary.queue.core.windows.net/","table":"https://fengdatasharesa-secondary.table.core.windows.net/"}}}' + string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002","name":"clitestda000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-07T10:56:50.1605694Z","primaryEndpoints":{"blob":"https://clitestda000002.blob.core.windows.net/","queue":"https://clitestda000002.queue.core.windows.net/","table":"https://clitestda000002.table.core.windows.net/","file":"https://clitestda000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}}' headers: cache-control: - no-cache content-length: - - '1688' + - '1242' content-type: - application/json date: - - Mon, 06 Apr 2020 15:53:16 GMT + - Tue, 07 Apr 2020 11:00:02 GMT expires: - '-1' pragma: @@ -969,59 +825,9 @@ interactions: status: code: 200 message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - role assignment create - Connection: - - keep-alive - ParameterSetName: - - --role --assignee-object-id --assignee-principal-type --scope - User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Storage%20Blob%20Data%20Reader%27&api-version=2018-01-01-preview - response: - body: - string: '{"value":[{"properties":{"roleName":"Storage Blob Data Reader","type":"BuiltInRole","description":"Allows - for read access to Azure Storage blob containers and data","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Storage/storageAccounts/blobServices/containers/read","Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey/action"],"notActions":[],"dataActions":["Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read"],"notDataActions":[]}],"createdOn":"2017-12-21T00:01:24.7972312Z","updatedOn":"2019-07-15T22:01:25.5409721Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","type":"Microsoft.Authorization/roleDefinitions","name":"2a2b9908-6ea1-4ae2-8e65-a410df84e7d1"}]}' - headers: - cache-control: - - no-cache - content-length: - - '854' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 06 Apr 2020 15:53:16 GMT - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly - 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: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1", - "principalId": "c50828d9-67ee-4de3-879f-8e5606fafe64", "principalType": "ServicePrincipal"}}' + "principalId": "6d9ede6e-e102-4c5d-be64-98dd27bac5ad", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -1035,8 +841,6 @@ interactions: - '270' Content-Type: - application/json; charset=utf-8 - Cookie: - - x-ms-gateway-slice=Production ParameterSetName: - --role --assignee-object-id --assignee-principal-type --scope User-Agent: @@ -1045,25 +849,25 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/providers/Microsoft.Authorization/roleAssignments/d1dd00fb-0d42-4171-8091-6787d41ef6b1?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002/providers/Microsoft.Authorization/roleAssignments/434b1326-6d97-4f69-9ae5-643e6fbaebf2?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"c50828d9-67ee-4de3-879f-8e5606fafe64","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","createdOn":"2020-04-06T15:53:18.3514755Z","updatedOn":"2020-04-06T15:53:18.3514755Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/providers/Microsoft.Authorization/roleAssignments/d1dd00fb-0d42-4171-8091-6787d41ef6b1","type":"Microsoft.Authorization/roleAssignments","name":"d1dd00fb-0d42-4171-8091-6787d41ef6b1"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002","createdOn":"2020-04-07T11:00:06.0388869Z","updatedOn":"2020-04-07T11:00:06.0388869Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002/providers/Microsoft.Authorization/roleAssignments/434b1326-6d97-4f69-9ae5-643e6fbaebf2","type":"Microsoft.Authorization/roleAssignments","name":"434b1326-6d97-4f69-9ae5-643e6fbaebf2"}' headers: cache-control: - no-cache content-length: - - '907' + - '1041' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:24 GMT + - Tue, 07 Apr 2020 11:00:11 GMT expires: - '-1' pragma: - no-cache set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -1095,17 +899,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts?api-version=2019-06-01 response: body: - string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/sfsafsaf","name":"sfsafsaf","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-12T10:01:36.9614761Z","primaryEndpoints":{"dfs":"https://sfsafsaf.dfs.core.windows.net/","web":"https://sfsafsaf.z22.web.core.windows.net/","blob":"https://sfsafsaf.blob.core.windows.net/","queue":"https://sfsafsaf.queue.core.windows.net/","table":"https://sfsafsaf.table.core.windows.net/","file":"https://sfsafsaf.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T03:09:41.6962163Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z22.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/","queue":"https://zhoxingtest2.queue.core.windows.net/","table":"https://zhoxingtest2.table.core.windows.net/","file":"https://zhoxingtest2.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest2-secondary.dfs.core.windows.net/","web":"https://zhoxingtest2-secondary.z22.web.core.windows.net/","blob":"https://zhoxingtest2-secondary.blob.core.windows.net/","queue":"https://zhoxingtest2-secondary.queue.core.windows.net/","table":"https://zhoxingtest2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xiaojianxustorage","name":"xiaojianxustorage","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:53:04.7312881Z","primaryEndpoints":{"dfs":"https://xiaojianxustorage.dfs.core.windows.net/","web":"https://xiaojianxustorage.z7.web.core.windows.net/","blob":"https://xiaojianxustorage.blob.core.windows.net/","queue":"https://xiaojianxustorage.queue.core.windows.net/","table":"https://xiaojianxustorage.table.core.windows.net/","file":"https://xiaojianxustorage.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xiaojianxustorage-secondary.dfs.core.windows.net/","web":"https://xiaojianxustorage-secondary.z7.web.core.windows.net/","blob":"https://xiaojianxustorage-secondary.blob.core.windows.net/","queue":"https://xiaojianxustorage-secondary.queue.core.windows.net/","table":"https://xiaojianxustorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital - Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"ServiceName":"TAGVALUE"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage/privateEndpointConnections/zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","name":"zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/zuhPE"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","name":"fengdatasharesa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-06T15:37:10.2792631Z","primaryEndpoints":{"dfs":"https://fengdatasharesa.dfs.core.windows.net/","web":"https://fengdatasharesa.z5.web.core.windows.net/","blob":"https://fengdatasharesa.blob.core.windows.net/","queue":"https://fengdatasharesa.queue.core.windows.net/","table":"https://fengdatasharesa.table.core.windows.net/","file":"https://fengdatasharesa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengdatasharesa-secondary.dfs.core.windows.net/","web":"https://fengdatasharesa-secondary.z5.web.core.windows.net/","blob":"https://fengdatasharesa-secondary.blob.core.windows.net/","queue":"https://fengdatasharesa-secondary.queue.core.windows.net/","table":"https://fengdatasharesa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage_blob_restorelgsnaopzuzblnuxuzojq7eo725opbpfmp2jwlntndhozoedq6chvyzq/providers/Microsoft.Storage/storageAccounts/storageblobrestorelqgkde","name":"storageblobrestorelqgkde","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T18:27:28.9405812Z","primaryEndpoints":{"dfs":"https://storageblobrestorelqgkde.dfs.core.windows.net/","web":"https://storageblobrestorelqgkde.z3.web.core.windows.net/","blob":"https://storageblobrestorelqgkde.blob.core.windows.net/","queue":"https://storageblobrestorelqgkde.queue.core.windows.net/","table":"https://storageblobrestorelqgkde.table.core.windows.net/","file":"https://storageblobrestorelqgkde.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}}]}' + string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/sfsafsaf","name":"sfsafsaf","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-12T10:01:36.9614761Z","primaryEndpoints":{"dfs":"https://sfsafsaf.dfs.core.windows.net/","web":"https://sfsafsaf.z22.web.core.windows.net/","blob":"https://sfsafsaf.blob.core.windows.net/","queue":"https://sfsafsaf.queue.core.windows.net/","table":"https://sfsafsaf.table.core.windows.net/","file":"https://sfsafsaf.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T03:09:41.6962163Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z22.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/","queue":"https://zhoxingtest2.queue.core.windows.net/","table":"https://zhoxingtest2.table.core.windows.net/","file":"https://zhoxingtest2.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest2-secondary.dfs.core.windows.net/","web":"https://zhoxingtest2-secondary.z22.web.core.windows.net/","blob":"https://zhoxingtest2-secondary.blob.core.windows.net/","queue":"https://zhoxingtest2-secondary.queue.core.windows.net/","table":"https://zhoxingtest2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xiaojianxustorage","name":"xiaojianxustorage","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:53:04.7312881Z","primaryEndpoints":{"dfs":"https://xiaojianxustorage.dfs.core.windows.net/","web":"https://xiaojianxustorage.z7.web.core.windows.net/","blob":"https://xiaojianxustorage.blob.core.windows.net/","queue":"https://xiaojianxustorage.queue.core.windows.net/","table":"https://xiaojianxustorage.table.core.windows.net/","file":"https://xiaojianxustorage.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xiaojianxustorage-secondary.dfs.core.windows.net/","web":"https://xiaojianxustorage-secondary.z7.web.core.windows.net/","blob":"https://xiaojianxustorage-secondary.blob.core.windows.net/","queue":"https://xiaojianxustorage-secondary.queue.core.windows.net/","table":"https://xiaojianxustorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-southeastasia/providers/Microsoft.Storage/storageAccounts/cs1100320007de01867","name":"cs1100320007de01867","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T07:50:16.1828874Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T07:50:16.1828874Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-07T07:50:16.1203711Z","primaryEndpoints":{"dfs":"https://cs1100320007de01867.dfs.core.windows.net/","web":"https://cs1100320007de01867.z23.web.core.windows.net/","blob":"https://cs1100320007de01867.blob.core.windows.net/","queue":"https://cs1100320007de01867.queue.core.windows.net/","table":"https://cs1100320007de01867.table.core.windows.net/","file":"https://cs1100320007de01867.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital + Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"ServiceName":"TAGVALUE"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage/privateEndpointConnections/zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","name":"zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/zuhPE"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002","name":"clitestda000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-07T10:56:50.1605694Z","primaryEndpoints":{"blob":"https://clitestda000002.blob.core.windows.net/","queue":"https://clitestda000002.queue.core.windows.net/","table":"https://clitestda000002.table.core.windows.net/","file":"https://clitestda000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_provider_rg/providers/Microsoft.Storage/storageAccounts/datashareprovidersa","name":"datashareprovidersa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T03:00:23.2516445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T03:00:23.2516445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-07T03:00:23.1734995Z","primaryEndpoints":{"dfs":"https://datashareprovidersa.dfs.core.windows.net/","web":"https://datashareprovidersa.z5.web.core.windows.net/","blob":"https://datashareprovidersa.blob.core.windows.net/","queue":"https://datashareprovidersa.queue.core.windows.net/","table":"https://datashareprovidersa.table.core.windows.net/","file":"https://datashareprovidersa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://datashareprovidersa-secondary.dfs.core.windows.net/","web":"https://datashareprovidersa-secondary.z5.web.core.windows.net/","blob":"https://datashareprovidersa-secondary.blob.core.windows.net/","queue":"https://datashareprovidersa-secondary.queue.core.windows.net/","table":"https://datashareprovidersa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","name":"fengdatasharesa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-06T15:37:10.2792631Z","primaryEndpoints":{"dfs":"https://fengdatasharesa.dfs.core.windows.net/","web":"https://fengdatasharesa.z5.web.core.windows.net/","blob":"https://fengdatasharesa.blob.core.windows.net/","queue":"https://fengdatasharesa.queue.core.windows.net/","table":"https://fengdatasharesa.table.core.windows.net/","file":"https://fengdatasharesa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengdatasharesa-secondary.dfs.core.windows.net/","web":"https://fengdatasharesa-secondary.z5.web.core.windows.net/","blob":"https://fengdatasharesa-secondary.blob.core.windows.net/","queue":"https://fengdatasharesa-secondary.queue.core.windows.net/","table":"https://fengdatasharesa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage_blob_restorelgsnaopzuzblnuxuzojq7eo725opbpfmp2jwlntndhozoedq6chvyzq/providers/Microsoft.Storage/storageAccounts/storageblobrestorelqgkde","name":"storageblobrestorelqgkde","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T18:27:28.9405812Z","primaryEndpoints":{"dfs":"https://storageblobrestorelqgkde.dfs.core.windows.net/","web":"https://storageblobrestorelqgkde.z3.web.core.windows.net/","blob":"https://storageblobrestorelqgkde.blob.core.windows.net/","queue":"https://storageblobrestorelqgkde.queue.core.windows.net/","table":"https://storageblobrestorelqgkde.table.core.windows.net/","file":"https://storageblobrestorelqgkde.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}}]}' headers: cache-control: - no-cache content-length: - - '114153' + - '118504' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:27 GMT + - Tue, 07 Apr 2020 11:00:15 GMT expires: - '-1' pragma: @@ -1117,16 +921,16 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 4d4c8885-0aef-4b08-a121-8122990ebeaa - - 8caac960-79ba-4f33-9242-3f0b8ac029c8 - - 4bd58be4-9bb2-4c71-a2f9-4a67a50cf1a3 - - b34c0394-d4a3-4fe3-8dd2-f197e0446e0d - - cc97e4c8-9c49-4639-9662-59576e511698 - - 340b8642-b353-4c0c-92cb-e3b8d889d460 - - 62ec6923-163e-4150-85ba-6a597135b035 - - 6bda557e-2349-4f4c-99b4-f816d88550b9 - - 9cd8386c-4656-4ffa-b5c0-b463d005fb46 - - cec4006b-64ff-4a30-bfe1-eb7a834ded09 + - d8f44c80-2335-4c06-9c40-a22e6d3557bf + - 3a55f768-7af5-4f94-ba23-0d9d3302bbd0 + - 91e6fde1-6ded-46ad-86fc-091b0d993b8f + - 48427f7e-cc61-41af-9cb9-a6deeeaa2051 + - 9f93909a-074e-4bbd-8d65-38fdbc611fc5 + - 56b14033-11d1-412d-9132-efe43771b319 + - 1bfa0a55-1c44-4e04-bf66-b21e3ecf2a49 + - 7af3382d-6b90-45f3-8b36-1709cb30e1e0 + - cc88d024-d053-44a3-b916-68a64028048a + - b66ad0e8-3842-4e18-8153-f1db95ffe967 status: code: 200 message: OK @@ -1151,7 +955,7 @@ interactions: accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa/listKeys?api-version=2019-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002/listKeys?api-version=2019-06-01 response: body: string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' @@ -1163,7 +967,7 @@ interactions: content-type: - application/json date: - - Mon, 06 Apr 2020 15:53:27 GMT + - Tue, 07 Apr 2020 11:00:15 GMT expires: - '-1' pragma: @@ -1194,11 +998,11 @@ interactions: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.2; Windows 10) AZURECLI/2.3.1 (MSI) x-ms-date: - - Mon, 06 Apr 2020 15:53:29 GMT + - Tue, 07 Apr 2020 11:00:16 GMT x-ms-version: - '2018-11-09' method: PUT - uri: https://fengdatasharesa.blob.core.windows.net/clitestco000013?restype=container + uri: https://clitestda000002.blob.core.windows.net/clitestcontainer?restype=container response: body: string: '' @@ -1206,11 +1010,11 @@ interactions: content-length: - '0' date: - - Mon, 06 Apr 2020 15:53:29 GMT + - Tue, 07 Apr 2020 11:00:16 GMT etag: - - '"0x8D7DA42A6DA11BB"' + - '"0x8D7DAE2DAFEC056"' last-modified: - - Mon, 06 Apr 2020 15:53:29 GMT + - Tue, 07 Apr 2020 11:00:16 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1219,9 +1023,9 @@ interactions: code: 201 message: Created - request: - body: '{"kind": "Container", "properties": {"containerName": "clitestco000013", - "resourceGroup": "feng-datashare-rg", "storageAccountName": "fengdatasharesa", - "subscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590"}}' + body: 'b''b\''{"kind": "Container", "properties": {"containerName": "clitestcontainer", + "resourceGroup": "cli_test_000001", "storageAccountName": "clitestda000002", + "subscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590"}}\''''' headers: Accept: - application/json @@ -1232,7 +1036,7 @@ interactions: Connection: - keep-alive Content-Length: - - '219' + - '278' Content-Type: - application/json ParameterSetName: @@ -1241,23 +1045,23 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestco000013","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"feng-datashare-rg","storageAccountName":"fengdatasharesa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_000001","storageAccountName":"clitestda000002","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache content-length: - - '554' + - '639' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:32 GMT + - Tue, 07 Apr 2020 11:00:21 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 pragma: - no-cache server: @@ -1268,9 +1072,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3/shares/cli_test_m6al7c74nrqnctd/dataSets/cli_test_rlzexvvwiko5rgr"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1291,19 +1095,19 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestco000013","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"feng-datashare-rg","storageAccountName":"fengdatasharesa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_000001","storageAccountName":"clitestda000002","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache content-length: - - '554' + - '639' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:32 GMT + - Tue, 07 Apr 2020 11:00:22 GMT expires: - '-1' pragma: @@ -1338,19 +1142,19 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"containerName":"clitestco000013","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"feng-datashare-rg","storageAccountName":"fengdatasharesa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/DataSets"}]}' + string: '{"value":[{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_000001","storageAccountName":"clitestda000002","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}]}' headers: cache-control: - no-cache content-length: - - '566' + - '651' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:35 GMT + - Tue, 07 Apr 2020 11:00:24 GMT expires: - '-1' pragma: @@ -1390,24 +1194,24 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-06T15:53:37.1709116Z","userName":"Feng - Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011","name":"cli_test_000011","type":"Microsoft.DataShare/SynchronizationSettings"}' + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:00:28.4063904Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: - no-cache content-length: - - '533' + - '589' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:36 GMT + - Tue, 07 Apr 2020 11:00:28 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting pragma: - no-cache server: @@ -1417,7 +1221,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 201 message: Created @@ -1438,20 +1242,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-06T15:53:37.1709116Z","userName":"Feng - Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011","name":"cli_test_000011","type":"Microsoft.DataShare/SynchronizationSettings"}' + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:00:28.4063904Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: - no-cache content-length: - - '533' + - '589' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:40 GMT + - Tue, 07 Apr 2020 11:00:33 GMT expires: - '-1' pragma: @@ -1486,20 +1290,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-06T15:53:37.1709116Z","userName":"Feng - Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011","name":"cli_test_000011","type":"Microsoft.DataShare/SynchronizationSettings"}]}' + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:00:28.4063904Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}]}' headers: cache-control: - no-cache content-length: - - '545' + - '601' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:41 GMT + - Tue, 07 Apr 2020 11:00:35 GMT expires: - '-1' pragma: @@ -1536,7 +1340,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/listSynchronizations?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/listSynchronizations?api-version=2019-11-01 response: body: string: '{"value":[]}' @@ -1548,7 +1352,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:43 GMT + - Tue, 07 Apr 2020 11:00:37 GMT expires: - '-1' pragma: @@ -1589,24 +1393,24 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-06T15:53:46.5900587Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006","name":"cli_test_000006","type":"Microsoft.DataShare/Invitations"}' + string: '{"properties":{"sentAt":"2020-04-07T11:00:40.2808409Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: - no-cache content-length: - - '536' + - '566' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:46 GMT + - Tue, 07 Apr 2020 11:00:40 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006/cc642b10-30f7-4db4-8069-339e8e1c9e3c + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation/5b089b9d-580d-4d9e-b300-63487dc743f6 pragma: - no-cache server: @@ -1616,7 +1420,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -1637,20 +1441,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"sentAt":"2020-04-06T15:53:46.5900587Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006","name":"cli_test_000006","type":"Microsoft.DataShare/Invitations"}]}' + string: '{"value":[{"properties":{"sentAt":"2020-04-07T11:00:40.2808409Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}]}' headers: cache-control: - no-cache content-length: - - '548' + - '578' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:48 GMT + - Tue, 07 Apr 2020 11:00:42 GMT expires: - '-1' pragma: @@ -1685,20 +1489,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-06T15:53:46.5900587Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/invitations/cli_test_000006","name":"cli_test_000006","type":"Microsoft.DataShare/Invitations"}' + string: '{"properties":{"sentAt":"2020-04-07T11:00:40.2808409Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: - no-cache content-length: - - '536' + - '566' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:50 GMT + - Tue, 07 Apr 2020 11:00:43 GMT expires: - '-1' pragma: @@ -1724,11 +1528,11 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - account set + - datashare invitation show Connection: - keep-alive ParameterSetName: - - -s + - --account-name --name --resource-group --share-name User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) @@ -1787,7 +1591,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:51 GMT + - Tue, 07 Apr 2020 11:00:45 GMT expires: - '-1' pragma: @@ -1817,29 +1621,29 @@ interactions: Content-Type: - application/json ParameterSetName: - - --identity --location --name --resource-group + - --identity --location --name --resource-group --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '531' + - '551' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:53:57 GMT + - Tue, 07 Apr 2020 11:01:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 pragma: - no-cache server: @@ -1849,8 +1653,8 @@ interactions: x-content-type-options: - nosniff x-ms-quota: - - '[{"currentUsed":6,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q"}]' + - '[{"currentUsed":1,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account"}]' x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1867,6 +1671,8 @@ interactions: - datashare consumer-invitation list Connection: - keep-alive + ParameterSetName: + - --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) @@ -1874,17 +1680,17 @@ interactions: uri: https://management.azure.com/providers/Microsoft.DataShare/ListInvitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_000007","sentAt":"2020-04-06T15:53:46.5900587Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/cc642b10-30f7-4db4-8069-339e8e1c9e3c","name":"cli_test_000006","type":"Microsoft.DataShare/consumerInvitations"}]}' + string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-07T11:00:40.2808409Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/5b089b9d-580d-4d9e-b300-63487dc743f6","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' headers: cache-control: - no-cache content-length: - - '606' + - '591' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:54:00 GMT + - Tue, 07 Apr 2020 11:01:05 GMT expires: - '-1' pragma: @@ -1917,25 +1723,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - --invitation-id + - --invitation-id --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/cc642b10-30f7-4db4-8069-339e8e1c9e3c?api-version=2019-11-01 + uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/5b089b9d-580d-4d9e-b300-63487dc743f6?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_000007","sentAt":"2020-04-06T15:53:46.5900587Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/cc642b10-30f7-4db4-8069-339e8e1c9e3c","name":"cli_test_000006","type":"Microsoft.DataShare/consumerInvitations"}' + string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-07T11:00:40.2808409Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/5b089b9d-580d-4d9e-b300-63487dc743f6","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' headers: cache-control: - no-cache content-length: - - '594' + - '579' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:54:03 GMT + - Tue, 07 Apr 2020 11:01:08 GMT expires: - '-1' pragma: @@ -1965,25 +1771,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group --created + - --name --resource-group --created --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '531' + - '551' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:54:05 GMT + - Tue, 07 Apr 2020 11:01:09 GMT expires: - '-1' pragma: @@ -2013,25 +1819,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group --created + - --name --resource-group --created --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '531' + - '551' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:54:35 GMT + - Tue, 07 Apr 2020 11:01:39 GMT expires: - '-1' pragma: @@ -2061,25 +1867,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group --created + - --name --resource-group --created --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '531' + - '551' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:55:06 GMT + - Tue, 07 Apr 2020 11:02:10 GMT expires: - '-1' pragma: @@ -2109,25 +1915,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group --created + - --name --resource-group --created --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '531' + - '551' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:55:36 GMT + - Tue, 07 Apr 2020 11:02:41 GMT expires: - '-1' pragma: @@ -2157,25 +1963,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - --name --resource-group --created + - --name --resource-group --created --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-06T15:53:57.4210886Z","provisioningState":"Succeeded","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003","name":"cli_test_000003","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Succeeded","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '532' + - '552' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:07 GMT + - Tue, 07 Apr 2020 11:03:11 GMT expires: - '-1' pragma: @@ -2194,7 +2000,7 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"invitationId": "cc642b10-30f7-4db4-8069-339e8e1c9e3c", + body: '{"properties": {"invitationId": "5b089b9d-580d-4d9e-b300-63487dc743f6", "sourceShareLocation": "westus2"}}' headers: Accept: @@ -2211,30 +2017,31 @@ interactions: - application/json ParameterSetName: - --account-name --resource-group --invitation-id --source-share-location --name + --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-06T15:56:10.5225893Z","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share - description","shareKind":"CopyBased","shareName":"cli_test_000007","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng + string: '{"properties":{"createdAt":"2020-04-07T11:03:14.8382416Z","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '781' + - '792' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:10 GMT + - Tue, 07 Apr 2020 11:03:14 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/cli_test_000008 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/cli_test_share_subscription pragma: - no-cache server: @@ -2245,9 +2052,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"ShareSubscription - resource quota","value":"ShareSubscription resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q/shareSubscriptions/cli_test_7rudc4i2fypfjag"}]' + resource quota","value":"ShareSubscription resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -2263,27 +2070,27 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name --resource-group --name + - --account-name --resource-group --name --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-06T15:56:10.5225893Z","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share - description","shareKind":"CopyBased","shareName":"cli_test_000007","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng + string: '{"properties":{"createdAt":"2020-04-07T11:03:14.8382416Z","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '781' + - '792' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:12 GMT + - Tue, 07 Apr 2020 11:03:16 GMT expires: - '-1' pragma: @@ -2313,27 +2120,27 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name --resource-group + - --account-name --resource-group --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"createdAt":"2020-04-06T15:56:10.5225893Z","invitationId":"cc642b10-30f7-4db4-8069-339e8e1c9e3c","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share - description","shareKind":"CopyBased","shareName":"cli_test_000007","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng + string: '{"value":[{"properties":{"createdAt":"2020-04-07T11:03:14.8382416Z","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache content-length: - - '793' + - '804' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:13 GMT + - Tue, 07 Apr 2020 11:03:21 GMT expires: - '-1' pragma: @@ -2363,24 +2170,24 @@ interactions: Connection: - keep-alive ParameterSetName: - - --account-name --resource-group --share-subscription-name + - --account-name --resource-group --share-subscription-name --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/ConsumerSourceDataSets?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/ConsumerSourceDataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"dataSetName":"cli_test_000004","dataSetPath":"clitestco000013","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/consumerSourceDataSets/cli_test_000004","name":"cli_test_000004","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' + string: '{"value":[{"properties":{"dataSetName":"cli_test_data_set","dataSetPath":"clitestcontainer","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/consumerSourceDataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' headers: cache-control: - no-cache content-length: - - '537' + - '526' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:15 GMT + - Tue, 07 Apr 2020 11:03:22 GMT expires: - '-1' pragma: @@ -2410,26 +2217,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -n -g + - -n -g --subscription User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa?api-version=2019-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa?api-version=2019-06-01 response: body: - string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa","name":"copyextsa","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-15T12:35:17.1991923Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-15T12:35:17.1991923Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-15T12:35:17.1366849Z","primaryEndpoints":{"dfs":"https://copyextsa.dfs.core.windows.net/","web":"https://copyextsa.z7.web.core.windows.net/","blob":"https://copyextsa.blob.core.windows.net/","queue":"https://copyextsa.queue.core.windows.net/","table":"https://copyextsa.table.core.windows.net/","file":"https://copyextsa.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://copyextsa-secondary.dfs.core.windows.net/","web":"https://copyextsa-secondary.z7.web.core.windows.net/","blob":"https://copyextsa-secondary.blob.core.windows.net/","queue":"https://copyextsa-secondary.queue.core.windows.net/","table":"https://copyextsa-secondary.table.core.windows.net/"}}}' + string: '{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","name":"datashareconsumersa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T02:47:00.7207527Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T02:47:00.7207527Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-07T02:47:00.6426060Z","primaryEndpoints":{"dfs":"https://datashareconsumersa.dfs.core.windows.net/","web":"https://datashareconsumersa.z5.web.core.windows.net/","blob":"https://datashareconsumersa.blob.core.windows.net/","queue":"https://datashareconsumersa.queue.core.windows.net/","table":"https://datashareconsumersa.table.core.windows.net/","file":"https://datashareconsumersa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://datashareconsumersa-secondary.dfs.core.windows.net/","web":"https://datashareconsumersa-secondary.z5.web.core.windows.net/","blob":"https://datashareconsumersa-secondary.blob.core.windows.net/","queue":"https://datashareconsumersa-secondary.queue.core.windows.net/","table":"https://datashareconsumersa-secondary.table.core.windows.net/"}}}' headers: cache-control: - no-cache content-length: - - '1606' + - '1744' content-type: - application/json date: - - Mon, 06 Apr 2020 15:56:16 GMT + - Tue, 07 Apr 2020 11:03:24 GMT expires: - '-1' pragma: @@ -2448,7 +2255,8 @@ interactions: code: 200 message: OK - request: - body: null + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe", + "principalId": "01002f74-47d9-48cc-831c-1492617ed3ff", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -2458,28 +2266,31 @@ interactions: - role assignment create Connection: - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json; charset=utf-8 ParameterSetName: - - --role --assignee-object-id --assignee-principal-type --scope + - --role --assignee-object-id --assignee-principal-type --scope --subscription User-Agent: - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) accept-language: - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Storage%20Blob%20Data%20Contributor%27&api-version=2018-01-01-preview + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/da1505d0-9839-4ce9-95f2-af7406cacb23?api-version=2018-09-01-preview response: body: - string: '{"value":[{"properties":{"roleName":"Storage Blob Data Contributor","type":"BuiltInRole","description":"Allows - for read, write and delete access to Azure Storage blob containers and data","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.Storage/storageAccounts/blobServices/containers/delete","Microsoft.Storage/storageAccounts/blobServices/containers/read","Microsoft.Storage/storageAccounts/blobServices/containers/write","Microsoft.Storage/storageAccounts/blobServices/generateUserDelegationKey/action"],"notActions":[],"dataActions":["Microsoft.Storage/storageAccounts/blobServices/containers/blobs/delete","Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read","Microsoft.Storage/storageAccounts/blobServices/containers/blobs/move/action","Microsoft.Storage/storageAccounts/blobServices/containers/blobs/write"],"notDataActions":[]}],"createdOn":"2017-12-21T00:01:24.7972312Z","updatedOn":"2020-03-30T22:49:07.8669420Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","type":"Microsoft.Authorization/roleDefinitions","name":"ba92f5b4-2d11-453d-a403-e96b0029c9fe"}]}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","createdOn":"2020-04-07T11:03:26.1744127Z","updatedOn":"2020-04-07T11:03:26.1744127Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/da1505d0-9839-4ce9-95f2-af7406cacb23","type":"Microsoft.Authorization/roleAssignments","name":"da1505d0-9839-4ce9-95f2-af7406cacb23"}' headers: cache-control: - no-cache content-length: - - '1233' + - '923' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:18 GMT + - Tue, 07 Apr 2020 11:03:31 GMT expires: - '-1' pragma: @@ -2488,110 +2299,112 @@ interactions: - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly 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' status: - code: 200 - message: OK + code: 201 + message: Created - request: - body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe", - "principalId": "f7f82962-8aef-4265-a4e0-3f471bb3e4a8", "principalType": "ServicePrincipal"}}' + body: '{"kind": "BlobFolder", "properties": {"containerName": "clitestconsumercontainer", + "dataSetId": "80f28d74-ad6a-4649-894c-dc20fcacb50b", "prefix": "cli_test_data_set", + "resourceGroup": "datashare_consumer_rg", "storageAccountName": "datashareconsumersa", + "subscriptionId": "9abff005-2afc-4de1-b39c-344b9de2cc9c"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - role assignment create + - datashare dataset-mapping create Connection: - keep-alive Content-Length: - - '270' + - '312' Content-Type: - - application/json; charset=utf-8 - Cookie: - - x-ms-gateway-slice=Production + - application/json ParameterSetName: - - --role --assignee-object-id --assignee-principal-type --scope + - --account-name --name --resource-group --share-subscription-name --mapping + --subscription User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) - accept-language: - - en-US + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa/providers/Microsoft.Authorization/roleAssignments/f44bc18c-56ee-44fb-a9af-166ad776c82e?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"f7f82962-8aef-4265-a4e0-3f471bb3e4a8","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa","createdOn":"2020-04-06T15:56:19.0933119Z","updatedOn":"2020-04-06T15:56:19.0933119Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/copyextsa/providers/Microsoft.Authorization/roleAssignments/f44bc18c-56ee-44fb-a9af-166ad776c82e","type":"Microsoft.Authorization/roleAssignments","name":"f44bc18c-56ee-44fb-a9af-166ad776c82e"}' + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' headers: cache-control: - no-cache content-length: - - '883' + - '692' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:23 GMT + - Tue, 07 Apr 2020 11:03:39 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 pragma: - no-cache - set-cookie: - - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + server: + - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff + x-ms-quota: + - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSetMapping resource + quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created - request: - body: '{"kind": "BlobFolder", "properties": {"containerName": "clitestco000014", - "dataSetId": "d0edf685-fffa-495b-bf2c-f812f5293e34", "prefix": "cli_test_000004", - "resourceGroup": "feng-cli-rg", "storageAccountName": "copyextsa", "subscriptionId": - "9abff005-2afc-4de1-b39c-344b9de2cc9c"}}' + body: '{"synchronizationMode": "Incremental"}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - datashare dataset-mapping create + - datashare share-subscription synchronize Connection: - keep-alive Content-Length: - - '299' + - '38' Content-Type: - application/json ParameterSetName: - - --account-name --name --resource-group --share-subscription-name --mapping + - --account-name --resource-group --share-subscription-name --synchronization-mode + --subscription User-Agent: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/dataSetMappings/cli_test_000005?api-version=2019-11-01 + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/Synchronize?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestco000014","prefix":"cli_test_000004","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"feng-cli-rg","storageAccountName":"copyextsa","dataSetId":"d0edf685-fffa-495b-bf2c-f812f5293e34","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/dataSetMappings/cli_test_000005","name":"cli_test_000005","type":"Microsoft.DataShare/DataSetMappings"}' + string: '{"status":"Queued","synchronizationId":"926ec24c-bb33-4f61-aa05-cc4a85692367","synchronizationMode":"Incremental"}' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/synchronizationOperationResults/926ec24c-bb33-4f61-aa05-cc4a85692367?api-version=2019-11-01 cache-control: - no-cache content-length: - - '659' + - '114' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:28 GMT + - Tue, 07 Apr 2020 11:03:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_000003/shareSubscriptions/cli_test_000008/dataSetMappings/cli_test_000005?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/shareSubscriptionSynchronizations/926ec24c-bb33-4f61-aa05-cc4a85692367?api-version=2019-11-01 pragma: - no-cache server: @@ -2600,14 +2413,357 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-quota: - - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSetMapping resource - quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/feng-cli-rg/providers/Microsoft.DataShare/accounts/cli_test_hglsv2hixr7dr2q/shareSubscriptions/cli_test_7rudc4i2fypfjag/dataSetMappings/cli_test_yp5ntl2fx3a46wg"}]' x-ms-ratelimit-remaining-subscription-writes: - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare dataset-mapping show + Connection: + - keep-alive + ParameterSetName: + - --account-name --name --resource-group --share-subscription-name --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 + response: + body: + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' + headers: + cache-control: + - no-cache + content-length: + - '692' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Apr 2020 11:03:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare dataset-mapping list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-subscription-name --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}]}' + headers: + cache-control: + - no-cache + content-length: + - '704' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Apr 2020 11:03:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare share-subscription list-synchronization + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --resource-group --share-subscription-name --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/listSynchronizations?api-version=2019-11-01 + response: + body: + string: '{"value":[{"status":"Queued","synchronizationId":"926ec24c-bb33-4f61-aa05-cc4a85692367","synchronizationMode":"Incremental"}]}' + headers: + cache-control: + - no-cache + content-length: + - '126' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Apr 2020 11:03:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare share-subscription list-source-share-synchronization-setting + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --resource-group --share-subscription-name --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/listSourceShareSynchronizationSettings?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z"},"kind":"ScheduleBased"}]}' + headers: + cache-control: + - no-cache + content-length: + - '123' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Apr 2020 11:04:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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' + status: + code: 200 + message: OK +- request: + body: '{"kind": "ScheduleBased", "properties": {"recurrenceInterval": "Day", "synchronizationTime": + "2020-04-05T10:50:00.000Z"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare trigger create + Connection: + - keep-alive + Content-Length: + - '121' + Content-Type: + - application/json + ParameterSetName: + - --account-name --resource-group --share-subscription-name --name --trigger + --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + response: + body: + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:04:04.3645319Z","userName":"Allen + Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' + headers: + cache-control: + - no-cache + content-length: + - '574' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Apr 2020 11:04:04 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare trigger show + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-subscription-name --name --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + response: + body: + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:04:04.3645319Z","userName":"Allen + Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' + headers: + cache-control: + - no-cache + content-length: + - '574' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Apr 2020 11:04:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare trigger list + Connection: + - keep-alive + ParameterSetName: + - --account-name --resource-group --share-subscription-name --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers?api-version=2019-11-01 + response: + body: + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:04:04.3645319Z","userName":"Allen + Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}]}' + headers: + cache-control: + - no-cache + content-length: + - '586' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 07 Apr 2020 11:04:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: @@ -2625,21 +2781,21 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen - Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + string: '{"value":[{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen + Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache content-length: - - '717' + - '760' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:31 GMT + - Tue, 07 Apr 2020 11:04:08 GMT expires: - '-1' pragma: @@ -2674,21 +2830,21 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen - Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen + Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '705' + - '748' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:33 GMT + - Tue, 07 Apr 2020 11:04:10 GMT expires: - '-1' pragma: @@ -2725,27 +2881,27 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023/revoke?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995/revoke?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen - Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen + Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/operationResults/2dee520d-05d2-4b37-83fa-304865f51a63?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/d4f32811-7f58-4819-92c0-0c0bc524e43a?api-version=2019-11-01 cache-control: - no-cache content-length: - - '707' + - '750' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:34 GMT + - Tue, 07 Apr 2020 11:04:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995?api-version=2019-11-01 pragma: - no-cache server: @@ -2778,21 +2934,21 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/providerShareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023/reinstate?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995/reinstate?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"2032991c-ed16-4397-b116-4ac76c917023","consumerName":"Allen - Zhou","createdAt":"2020-04-06T15:56:10.5225893Z","sharedAt":"2020-04-06T15:53:46.5900587Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/shareSubscriptions/2032991c-ed16-4397-b116-4ac76c917023","name":"cli_test_000008","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen + Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '705' + - '748' content-type: - application/json; charset=utf-8 date: - - Mon, 06 Apr 2020 15:56:42 GMT + - Tue, 07 Apr 2020 11:04:19 GMT expires: - '-1' pragma: @@ -2831,7 +2987,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/synchronizationSettings/cli_test_000011?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: string: '' @@ -2841,11 +2997,11 @@ interactions: content-length: - '0' date: - - Mon, 06 Apr 2020 15:56:44 GMT + - Tue, 07 Apr 2020 11:04:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/0b711aa5-96ed-4e0a-8879-a75157462953?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/d20a2b67-9691-4ad3-83d1-0011b91e0080?api-version=2019-11-01 pragma: - no-cache server: @@ -2878,7 +3034,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007/dataSets/cli_test_000004?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: string: '' @@ -2888,7 +3044,7 @@ interactions: content-length: - '0' date: - - Mon, 06 Apr 2020 15:56:46 GMT + - Tue, 07 Apr 2020 11:04:24 GMT expires: - '-1' pragma: @@ -2901,7 +3057,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_2jldlmg7msc3ij3/shares/cli_test_m6al7c74nrqnctd/dataSets/cli_test_rlzexvvwiko5rgr"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: @@ -2926,7 +3082,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002/shares/cli_test_000007?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: string: '' @@ -2936,11 +3092,11 @@ interactions: content-length: - '0' date: - - Mon, 06 Apr 2020 15:56:47 GMT + - Tue, 07 Apr 2020 11:04:25 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/06548e3f-34e3-449a-bf92-8e05911b03cf?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/28699e9d-b468-4c5f-ab5d-9cd8f8c06a98?api-version=2019-11-01 pragma: - no-cache server: @@ -2973,7 +3129,196 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.DataShare/accounts/cli_test_000002?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 07 Apr 2020 11:04:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/6b2320bd-b020-420e-87d3-70f71b8b50c6?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare trigger delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --resource-group --share-subscription-name --name --yes --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 07 Apr 2020 11:04:31 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/6fc3ec6b-0d45-483a-ad25-dbf700da14de?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare dataset-mapping delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --name --resource-group --share-subscription-name --yes --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 07 Apr 2020 11:04:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-quota: + - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSetMapping resource + quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare share-subscription delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --account-name --resource-group --name --yes --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 07 Apr 2020 11:04:39 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/5823551b-f668-4440-a05d-13bad1c95547?api-version=2019-11-01 + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --name --resource-group --no-wait --yes --subscription + User-Agent: + - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 response: body: string: '' @@ -2983,11 +3328,11 @@ interactions: content-length: - '0' date: - - Mon, 06 Apr 2020 15:56:49 GMT + - Tue, 07 Apr 2020 11:04:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/3f902bbc-868b-4e46-b283-af58645b27b5?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/bbe8a747-f003-4999-b2d9-92dc01f2c55c?api-version=2019-11-01 pragma: - no-cache server: diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index acb8fd21061..6c2b73d447c 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -14,122 +14,107 @@ class DataShareManagementClientScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='cli_test_datashare_SampleResourceGroup'[:9], key='rg') - @StorageAccountPreparer(name_prefix='clitestdatasharesa', key='sa') + @ResourceGroupPreparer(name_prefix='cli_test_datashare_provider_rg'[:9], location='westus2', key='ProviderResourceGroup') + @StorageAccountPreparer(name_prefix='clitestdatashareprovidersa'[:9], location='westus2', key='ProviderStorageAccount') + @AllowLargeResponse() def test_datashare(self, resource_group, storage_account): self.kwargs.update({ - 'ProviderSubscription': '0b1f6471-1bf0-4dda-aec3-cb9272f09590', - 'ConsumerSubscription': '9abff005-2afc-4de1-b39c-344b9de2cc9c', + 'ConsumerSubscription': '00000000-0000-0000-0000-000000000000', # change this value in live test + 'ConsumerResourceGroup': 'datashare_consumer_rg', # this is a pre-existing reosurce group in consumer subscription + 'ConsumerStorageAccount': 'datashareconsumersa', # this is a pre-existing storage account in consumer subscription 'ProviderEmail': 'feng.zhou@microsoft.com', 'ConsumerEmail': 'fengzhou810@163.com', - 'Account1': self.create_random_name(prefix='cli_test_accounts'[:9], length=24), - 'Account2': self.create_random_name(prefix='cli_test_acc_consumer'[:9], length=24), - 'Dataset1': self.create_random_name(prefix='cli_test_data_sets'[:9], length=24), - 'DatasetMapping1': self.create_random_name(prefix='cli_test_data_set_mappings'[:9], length=24), - 'Invitation1': self.create_random_name(prefix='cli_test_invitations'[:9], length=24), - 'Share1': self.create_random_name(prefix='cli_test_shares'[:9], length=24), - 'ShareSubscription1': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), - 'ShareSubscriptions_2': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), - 'ShareSubscriptions_3': self.create_random_name(prefix='cli_test_share_subscriptions'[:9], length=24), - 'SynchronizationSettings_2': self.create_random_name(prefix='cli_test_synchronization_settings'[:9], length=24), - 'Trigger1': self.create_random_name(prefix='cli_test_triggers'[:9], length=24), - 'Container1': self.create_random_name(prefix='clitestcontainer'[:9], length=24), - 'rg': resource_group, - 'sa': storage_account, - 'rg2': 'feng-cli-rg', - 'sa2': 'copyextsa', - 'Container2': self.create_random_name(prefix='clitestconsumercontainer'[:9], length=24), + 'ProviderAccount': 'cli_test_account', + 'ConsumerAccount': 'cli_test_acc_consumer_account', + 'ProviderDataset': 'cli_test_data_set', + 'ConsumerDatasetMapping': 'cli_test_data_set_mapping', + 'ProviderInvitation': 'cli_test_invitation', + 'ProviderShare': 'cli_test_share', + 'ConsumerShareSubscription': 'cli_test_share_subscription', + 'ProviderSynchronizationSetting': 'cli_test_synchronization_setting', + 'ConsumerTrigger': 'cli_test_trigger', + 'ProviderContainer': 'clitestcontainer', + 'ConsumerContainer': 'clitestconsumercontainer', }) - print(self.kwargs) + # Provider commands datashareAccount = self.cmd('az datashare account create ' '--identity type=SystemAssigned ' '--location "West US 2" ' '--tags tag1=Red tag2=White ' - '--name "{Account1}" ' - '--resource-group "{rg}"', - checks=[self.check('name', '{Account1}'), + '--name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}"', + checks=[self.check('name', '{ProviderAccount}'), self.check('location', 'westus2'), - self.check('resourceGroup', '{rg}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('tags.tag1', 'Red'), self.check('tags.tag2', 'White') ]).get_output_in_json() - self.cmd('az datashare account create ' - '--identity type=SystemAssigned ' - '--location "West US 2" ' - '--tags tag1=Red tag2=White ' - '--name "{Account2}" ' - '--resource-group "{rg}"', - checks=[self.check('name', '{Account2}'), - self.check('location', 'westus2'), - self.check('resourceGroup', '{rg}'), - self.check('tags.tag1', 'Red'), - self.check('tags.tag2', 'White') - ]).get_output_in_json() + self.cmd('az datashare account wait ' - '--name "{Account1}" ' - '--resource-group "{rg}" ' + '--name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' '--created', checks=[]) accountId = datashareAccount['id'] self.cmd('az datashare account show ' - '-n "{Account1}" ' - '--resource-group "{rg}"', - checks=[self.check('name', '{Account1}'), + '-n "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}"', + checks=[self.check('name', '{ProviderAccount}'), self.check('location', 'westus2'), self.check('provisioningState', 'Succeeded'), - self.check('resourceGroup', '{rg}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('tags.tag1', 'Red'), self.check('tags.tag2', 'White') ]) self.cmd('az datashare account show ' '--ids {}'.format(accountId), - checks=[self.check('name', '{Account1}'), + checks=[self.check('name', '{ProviderAccount}'), self.check('location', 'westus2'), self.check('provisioningState', 'Succeeded'), - self.check('resourceGroup', '{rg}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('tags.tag1', 'Red'), self.check('tags.tag2', 'White') ]) self.cmd('az datashare account list ' - '--resource-group "{rg}"', - checks=[self.check("[?id=='{}'].name | [0]".format(accountId), '{Account1}'), + '--resource-group "{ProviderResourceGroup}"', + checks=[self.check("[?id=='{}'].name | [0]".format(accountId), '{ProviderAccount}'), self.check("[?id=='{}'].location | [0]".format(accountId), 'westus2'), - self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), '{rg}'), + self.check("[?id=='{}'].resourceGroup | [0]".format(accountId), '{ProviderResourceGroup}'), self.check("[?id=='{}'].tags | [0].tag1".format(accountId), 'Red'), self.check("[?id=='{}'].tags | [0].tag2".format(accountId), 'White')]) self.cmd('az datashare account update ' - '--name "{Account1}" ' + '--name "{ProviderAccount}" ' '--tags tag1=Green ' - '--resource-group "{rg}"', - checks=[self.check('name', '{Account1}'), + '--resource-group "{ProviderResourceGroup}"', + checks=[self.check('name', '{ProviderAccount}'), self.check('location', 'westus2'), self.check('provisioningState', 'Succeeded'), - self.check('resourceGroup', '{rg}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('tags.tag1', 'Green')]) datashare = self.cmd('az datashare create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' '--description "share description" ' '--share-kind "CopyBased" ' '--terms "Confidential" ' - '--name "{Share1}"', - checks=[self.check('name', '{Share1}'), + '--name "{ProviderShare}"', + checks=[self.check('name', '{ProviderShare}'), self.check('description', 'share description'), self.check('shareKind', 'CopyBased'), self.check('terms', 'Confidential')]).get_output_in_json() self.cmd('az datashare show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--name "{Share1}"', - checks=[self.check('name', '{Share1}'), + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--name "{ProviderShare}"', + checks=[self.check('name', '{ProviderShare}'), self.check('description', 'share description'), self.check('shareKind', 'CopyBased'), self.check('terms', 'Confidential')]) @@ -137,163 +122,167 @@ def test_datashare(self, resource_group, storage_account): datashareId = datashare['id'] self.cmd('az datashare show ' '--ids {}'.format(datashareId), - checks=[self.check('name', '{Share1}'), + checks=[self.check('name', '{ProviderShare}'), self.check('description', 'share description'), self.check('shareKind', 'CopyBased'), self.check('terms', 'Confidential')]) self.cmd('az datashare list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}"', - checks=[self.check("[?id=='{}'].name | [0]".format(datashareId), '{Share1}'), + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}"', + checks=[self.check("[?id=='{}'].name | [0]".format(datashareId), '{ProviderShare}'), self.check("[?id=='{}'].description | [0]".format(datashareId), 'share description'), self.check("[?id=='{}'].shareKind | [0]".format(datashareId), 'CopyBased'), self.check("[?id=='{}'].terms | [0]".format(datashareId), 'Confidential')]) storage_account_json = self.cmd('az storage account show ' - '-n {sa} ' - '-g {rg}').get_output_in_json() - print(storage_account_json) + '-n {ProviderStorageAccount} ' + '-g {ProviderResourceGroup}').get_output_in_json() + accountPrincipalId = datashareAccount['identity']['principalId'] - self.cmd('az role assignment create ' - '--role "Storage Blob Data Reader" ' # 2a2b9908-6ea1-4ae2-8e65-a410df84e7d1 - '--assignee-object-id {} ' - '--assignee-principal-type ServicePrincipal ' - '--scope {}'.format(accountPrincipalId, storage_account_json['id'])) + if self.is_live or self.in_recording: + import time + self.cmd('az role assignment create ' + '--role "2a2b9908-6ea1-4ae2-8e65-a410df84e7d1" ' # Storage Blob Data Reader + '--assignee-object-id {} ' + '--assignee-principal-type ServicePrincipal ' + '--scope {}'.format(accountPrincipalId, storage_account_json['id'])) + time.sleep(5) self.cmd('az storage container create ' - '--account-name {sa} ' - '--name {Container1}') + '--account-name {ProviderStorageAccount} ' + '--name {ProviderContainer}') - datasetContent = {"container_name": "{}".format(self.kwargs.get('Container1', '')), "storage_account_name": "{}".format(storage_account), "kind": "Container"} + datasetContent = {"container_name": "{}".format(self.kwargs.get('ProviderContainer', '')), "storage_account_name": "{}".format(storage_account), "kind": "Container"} self.kwargs.update({ - 'DatasetContent1': datasetContent + 'ProviderDatasetContent': datasetContent }) self.cmd('az datashare dataset create ' - '--account-name "{Account1}" ' - '--dataset "{DatasetContent1}" ' - '--name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[self.check('containerName', '{Container1}'), - self.check('storageAccountName', '{sa}'), + '--account-name "{ProviderAccount}" ' + '--dataset "{ProviderDatasetContent}" ' + '--name "{ProviderDataset}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', + checks=[self.check('containerName', '{ProviderContainer}'), + self.check('storageAccountName', '{ProviderStorageAccount}'), self.check('kind', 'Container'), - self.check('name', '{Dataset1}')]) + self.check('name', '{ProviderDataset}')]) self.cmd('az datashare dataset show ' - '--account-name "{Account1}" ' - '--name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[self.check('containerName', '{Container1}'), - self.check('storageAccountName', '{sa}'), + '--account-name "{ProviderAccount}" ' + '--name "{ProviderDataset}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', + checks=[self.check('containerName', '{ProviderContainer}'), + self.check('storageAccountName', '{ProviderStorageAccount}'), self.check('kind', 'Container'), - self.check('name', '{Dataset1}')]) + self.check('name', '{ProviderDataset}')]) self.cmd('az datashare dataset list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', - checks=[self.check('[0].containerName', '{Container1}'), - self.check('[0].storageAccountName', '{sa}'), + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', + checks=[self.check('[0].containerName', '{ProviderContainer}'), + self.check('[0].storageAccountName', '{ProviderStorageAccount}'), self.check('[0].kind', 'Container'), - self.check('[0].name', '{Dataset1}')]) + self.check('[0].name', '{ProviderDataset}')]) syncSettingContent = {"recurrenceInterval": "Day", "synchronizationTime": "2020-04-05T10:50:00Z", "kind": "ScheduleBased"} self.kwargs.update({ - 'SyncSettingContent1': syncSettingContent + 'ProviderSyncSettingContent': syncSettingContent }) self.cmd('az datashare synchronization-setting create ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--name "{SynchronizationSettings_2}" ' - '--setting "{SyncSettingContent1}"', + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}" ' + '--name "{ProviderSynchronizationSetting}" ' + '--setting "{ProviderSyncSettingContent}"', checks=[self.check('kind', 'ScheduleBased'), - self.check('name', '{SynchronizationSettings_2}'), + self.check('name', '{ProviderSynchronizationSetting}'), self.check('recurrenceInterval', 'Day'), - self.check('resourceGroup', '{rg}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('synchronizationTime', '2020-04-05T10:50:00+00:00')]) self.cmd('az datashare synchronization-setting show ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--name "{SynchronizationSettings_2}"', + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}" ' + '--name "{ProviderSynchronizationSetting}"', checks=[self.check('kind', 'ScheduleBased'), - self.check('name', '{SynchronizationSettings_2}'), + self.check('name', '{ProviderSynchronizationSetting}'), self.check('recurrenceInterval', 'Day'), - self.check('resourceGroup', '{rg}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('synchronizationTime', '2020-04-05T10:50:00+00:00')]) self.cmd('az datashare synchronization-setting list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('[0].kind', 'ScheduleBased'), - self.check('[0].name', '{SynchronizationSettings_2}'), + self.check('[0].name', '{ProviderSynchronizationSetting}'), self.check('[0].recurrenceInterval', 'Day'), - self.check('[0].resourceGroup', '{rg}'), + self.check('[0].resourceGroup', '{ProviderResourceGroup}'), self.check('[0].synchronizationTime', '2020-04-05T10:50:00+00:00')]) self.cmd('az datashare list-synchronization ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[]) # self.cmd('az datashare list-synchronization-detail ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}" ' + # '--account-name "{ProviderAccount}" ' + # '--resource-group "{ProviderResourceGroup}" ' + # '--share-name "{ProviderShare}" ' # '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', # checks=[]) self.cmd('az datashare invitation create ' - '--account-name "{Account1}" ' + '--account-name "{ProviderAccount}" ' '--target-email "{ConsumerEmail}" ' - '--name "{Invitation1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--name "{ProviderInvitation}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('invitationStatus', 'Pending'), - self.check('name', '{Invitation1}'), - self.check('resourceGroup', '{rg}'), + self.check('name', '{ProviderInvitation}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('targetEmail', '{ConsumerEmail}')]) self.cmd('az datashare invitation list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('[0].invitationStatus', 'Pending'), - self.check('[0].name', '{Invitation1}'), - self.check('[0].resourceGroup', '{rg}'), + self.check('[0].name', '{ProviderInvitation}'), + self.check('[0].resourceGroup', '{ProviderResourceGroup}'), self.check('[0].targetEmail', '{ConsumerEmail}')]) self.cmd('az datashare invitation show ' - '--account-name "{Account1}" ' - '--name "{Invitation1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--account-name "{ProviderAccount}" ' + '--name "{ProviderInvitation}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('invitationStatus', 'Pending'), - self.check('name', '{Invitation1}'), - self.check('resourceGroup', '{rg}'), + self.check('name', '{ProviderInvitation}'), + self.check('resourceGroup', '{ProviderResourceGroup}'), self.check('targetEmail', '{ConsumerEmail}')]) # Consumer commands - self.cmd('az account set -s "{ConsumerSubscription}"') - datashareAccount2 = self.cmd('az datashare account create ' - '--identity type=SystemAssigned ' - '--location "West US 2" ' - '--name "{Account2}" ' - '--resource-group "{rg2}"', - checks=[self.check('name', '{Account2}'), - self.check('location', 'westus2'), - self.check('resourceGroup', '{rg2}')]).get_output_in_json() - - invitations = self.cmd('az datashare consumer-invitation list', + datashareConsumerAccount = self.cmd('az datashare account create ' + '--identity type=SystemAssigned ' + '--location "West US 2" ' + '--name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('name', '{ConsumerAccount}'), + self.check('location', 'westus2'), + self.check('resourceGroup', '{ConsumerResourceGroup}')]).get_output_in_json() + + invitations = self.cmd('az datashare consumer-invitation list ' + '--subscription "{ConsumerSubscription}"', checks=[self.check('[0].invitationStatus', 'Pending'), - self.check('[0].name', '{Invitation1}'), - self.check('[0].shareName', '{Share1}'), + self.check('[0].name', '{ProviderInvitation}'), + self.check('[0].shareName', '{ProviderShare}'), self.check('[0].providerEmail', '{ProviderEmail}')]).get_output_in_json() invitationId = invitations[0]['invitationId'] @@ -302,282 +291,232 @@ def test_datashare(self, resource_group, storage_account): 'Location1': sourceShareLocation}) self.cmd('az datashare consumer-invitation show ' - '--invitation-id "{InvitationId1}"', + '--invitation-id "{InvitationId1}" ' + '--subscription "{ConsumerSubscription}"', checks=[self.check('invitationStatus', 'Pending'), - self.check('name', '{Invitation1}'), - self.check('shareName', '{Share1}'), + self.check('name', '{ProviderInvitation}'), + self.check('shareName', '{ProviderShare}'), self.check('providerEmail', '{ProviderEmail}')]) # self.cmd('az datashare consumer-invitation reject-invitation ' # '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' -# '--location "East US 2"', # checks=[]) self.cmd('az datashare account wait ' - '--name "{Account2}" ' - '--resource-group "{rg2}" ' - '--created', + '--name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--created ' + '--subscription "{ConsumerSubscription}"', checks=[]) self.cmd('az datashare share-subscription create ' - '--account-name "{Account2}" ' - '--resource-group "{rg2}" ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' '--invitation-id "{InvitationId1}" ' '--source-share-location "{Location1}" ' - '--name "{ShareSubscription1}"', + '--name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', checks=[self.check('invitationId', '{InvitationId1}'), - self.check('name', '{ShareSubscription1}'), - self.check('resourceGroup', '{rg2}'), - self.check('shareName', '{Share1}'), + self.check('name', '{ConsumerShareSubscription}'), + self.check('resourceGroup', '{ConsumerResourceGroup}'), + self.check('shareName', '{ProviderShare}'), self.check('shareKind', 'CopyBased'), self.check('sourceShareLocation', '{Location1}')]) self.cmd('az datashare share-subscription show ' - '--account-name "{Account2}" ' - '--resource-group "{rg2}" ' - '--name "{ShareSubscription1}"', + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', checks=[self.check('invitationId', '{InvitationId1}'), - self.check('name', '{ShareSubscription1}'), - self.check('resourceGroup', '{rg2}'), - self.check('shareName', '{Share1}'), + self.check('name', '{ConsumerShareSubscription}'), + self.check('resourceGroup', '{ConsumerResourceGroup}'), + self.check('shareName', '{ProviderShare}'), self.check('shareKind', 'CopyBased'), self.check('sourceShareLocation', '{Location1}')]) self.cmd('az datashare share-subscription list ' - '--account-name "{Account2}" ' - '--resource-group "{rg2}"', + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--subscription "{ConsumerSubscription}"', checks=[self.check('[0].invitationId', '{InvitationId1}'), - self.check('[0].name', '{ShareSubscription1}'), - self.check('[0].resourceGroup', '{rg2}'), - self.check('[0].shareName', '{Share1}'), + self.check('[0].name', '{ConsumerShareSubscription}'), + self.check('[0].resourceGroup', '{ConsumerResourceGroup}'), + self.check('[0].shareName', '{ProviderShare}'), self.check('[0].shareKind', 'CopyBased'), self.check('[0].sourceShareLocation', '{Location1}')]) -# self.cmd('az datashare share-subscription list-synchronization ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscriptions_3}"', -# checks=[]) -# # [ -# # { -# # "durationMs": 23116, -# # "endTime": "2020-04-05T06:30:17.285764+00:00", -# # "message": null, -# # "startTime": "2020-04-05T06:29:54.169764+00:00", -# # "status": "Succeeded", -# # "synchronizationId": "ba5804ed-a4c9-45ca-9691-e30169c8b361", -# # "synchronizationMode": "Incremental" -# # } -# # ] -# self.cmd('az datashare share-subscription list-synchronization-detail ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscriptions_3}" ' -# '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', -# checks=[]) - -# self.cmd('az datashare share-subscription cancel-synchronization ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}" ' -# '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"', -# checks=[]) - sourceDatasets = self.cmd('az datashare consumer-source-dataset list ' - '--account-name "{Account2}" ' - '--resource-group "{rg2}" ' - '--share-subscription-name "{ShareSubscription1}"', - checks=[self.check('[0].dataSetName', '{Dataset1}'), + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('[0].dataSetName', '{ProviderDataset}'), self.check('[0].dataSetType', 'Container')]).get_output_in_json() sourceDatasetId = sourceDatasets[0]['dataSetId'] storage_account2_json = self.cmd('az storage account show ' - '-n {sa2} ' - '-g {rg2}').get_output_in_json() + '-n {ConsumerStorageAccount} ' + '-g {ConsumerResourceGroup} ' + '--subscription "{ConsumerSubscription}"').get_output_in_json() - accountPrincipalId2 = datashareAccount2['identity']['principalId'] - self.cmd('az role assignment create ' - '--role "Storage Blob Data Contributor" ' # ba92f5b4-2d11-453d-a403-e96b0029c9fe - '--assignee-object-id {} ' - '--assignee-principal-type ServicePrincipal ' - '--scope {}'.format(accountPrincipalId2, storage_account2_json['id'])) + accountPrincipalId2 = datashareConsumerAccount['identity']['principalId'] + self.kwargs.update({ + "AccountPrincipalId2": accountPrincipalId2, + "StorageAccountId2": storage_account2_json['id']}) + + if self.is_live or self.in_recording: + import time + self.cmd('az role assignment create ' + '--role "ba92f5b4-2d11-453d-a403-e96b0029c9fe" ' # Storage Blob Data Contributor + '--assignee-object-id "{AccountPrincipalId2}" ' + '--assignee-principal-type ServicePrincipal ' + '--scope "{StorageAccountId2}" ' + '--subscription "{ConsumerSubscription}"') + time.sleep(5) datasetMappingContent = {"data_set_id": "{}".format(sourceDatasetId), - "container_name": "{}".format(self.kwargs.get('Container2', '')), - "storage_account_name": "{}".format(self.kwargs.get('sa2', '')), + "container_name": "{}".format(self.kwargs.get('ConsumerContainer', '')), + "storage_account_name": "{}".format(self.kwargs.get('ConsumerStorageAccount', '')), "kind": "BlobFolder", - "prefix": "{}".format(self.kwargs.get('Dataset1', ''))} + "prefix": "{}".format(self.kwargs.get('ProviderDataset', ''))} self.kwargs.update({ - 'DatasetMappingContent1': datasetMappingContent + 'ConsumerDatasetMappingContent': datasetMappingContent }) self.cmd('az datashare dataset-mapping create ' - '--account-name "{Account2}" ' - '--name "{DatasetMapping1}" ' - '--resource-group "{rg2}" ' - '--share-subscription-name "{ShareSubscription1}" ' - '--mapping "{DatasetMappingContent1}"', - checks=[]) -# # { -# # "containerName": "newcontainer", -# # "dataSetId": "2036a39f-add6-4347-9c82-a424dfaf4e8d", -# # "dataSetMappingStatus": "Ok", -# # "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datashare_SampleResourceGroup/providers/Microsoft.DataShare/accounts/cli_test_accounts/shareSubscriptions/cli_test_share_subscriptions/dataSetMappings/cli_test_data_set_mappings", -# # "kind": "BlobFolder", -# # "name": "cli_test_data_set_mappings", -# # "prefix": "bootdiagnostic", -# # "provisioningState": "Succeeded", -# # "resourceGroup": "cli_test_datashare_SampleResourceGroup", -# # "storageAccountName": "fengsharedata", -# # "subscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", -# # "type": "Microsoft.DataShare/DataSetMappings" -# # } - -# self.cmd('az datashare share-subscription synchronize ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}" ' -# '--synchronization-mode "Incremental"', -# checks=[]) -# # { -# # "durationMs": null, -# # "endTime": null, -# # "message": null, -# # "startTime": null, -# # "status": "Queued", -# # "synchronizationId": "ba5804ed-a4c9-45ca-9691-e30169c8b361", -# # "synchronizationMode": "Incremental" -# # } - -# self.cmd('az datashare dataset-mapping show ' -# '--account-name "{Account1}" ' -# '--name "{DatasetMapping1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}"', -# checks=[]) + '--account-name "{ConsumerAccount}" ' + '--name "{ConsumerDatasetMapping}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--mapping "{ConsumerDatasetMappingContent}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('kind', 'BlobFolder'), + self.check('name', '{ConsumerDatasetMapping}'), + self.check('prefix', '{ProviderDataset}'), + self.check('storageAccountName', '{ConsumerStorageAccount}')]) + + self.cmd('az datashare share-subscription synchronize ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--synchronization-mode "Incremental" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('status', 'Queued'), + self.check('synchronizationMode', 'Incremental')]) + + self.cmd('az datashare dataset-mapping show ' + '--account-name "{ConsumerAccount}" ' + '--name "{ConsumerDatasetMapping}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('kind', 'BlobFolder'), + self.check('name', '{ConsumerDatasetMapping}'), + self.check('prefix', '{ProviderDataset}'), + self.check('storageAccountName', '{ConsumerStorageAccount}')]) + + self.cmd('az datashare dataset-mapping list ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('[0].kind', 'BlobFolder'), + self.check('[0].name', '{ConsumerDatasetMapping}'), + self.check('[0].prefix', '{ProviderDataset}'), + self.check('[0].storageAccountName', '{ConsumerStorageAccount}')]) + + self.cmd('az datashare share-subscription list-synchronization ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('[0].synchronizationMode', 'Incremental')]) -# self.cmd('az datashare dataset-mapping list ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}"', +# self.cmd('az datashare share-subscription list-synchronization-detail ' +# '--account-name "{ConsumerAccount}" ' +# '--resource-group "{ConsumerResourceGroup}" ' +# '--share-subscription-name "{ConsumerShareSubscription}" ' +# '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" ' +# '--subscription "{ConsumerSubscription}"', # checks=[]) -# self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscriptions_3}"', -# checks=[]) -# # [ -# # { -# # "kind": "ScheduleBased", -# # "recurrenceInterval": "Day", -# # "synchronizationTime": "2020-04-03T08:45:35+00:00" -# # } -# # ] - -# # az datashare trigger create --account-name "cli_test_accounts" --resource-group "cli_test_datashare_SampleResourceGroup" --share-subscription-name "cli_test_share_subscriptions" --name "cli_test_triggers" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" -# self.cmd('az datashare trigger create ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}" ' -# '--kind "ScheduleBased" ' -# '--name "{Trigger1}"', -# checks=[]) -# # { -# # "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datashare_SampleResourceGroup/providers/Microsoft.DataShare/accounts/cli_test_accounts/shareSubscriptions/cli_test_share_subscriptions/triggers/cli_test_triggers", -# # "kind": "Trigger", -# # "name": "cli_test_triggers", -# # "properties": { -# # "createdAt": "2020-04-05T08:13:52.1020699Z", -# # "provisioningState": "Creating", -# # "recurrenceInterval": "Day", -# # "synchronizationMode": "Incremental", -# # "synchronizationTime": "2020-04-03T08:45:35Z", -# # "triggerStatus": "Inactive", -# # "userName": "Feng Zhou" -# # }, -# # "resourceGroup": "cli_test_datashare_SampleResourceGroup", -# # "type": "Microsoft.DataShare/Triggers" -# # } - -# self.cmd('az datashare trigger show ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}" ' -# '--trigger-name "{Trigger1}"', -# checks=[]) -# # { -# # "createdAt": "2020-04-05T08:13:52.102069+00:00", -# # "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datashare_SampleResourceGroup/providers/Microsoft.DataShare/accounts/cli_test_accounts/shareSubscriptions/cli_test_share_subscriptions/triggers/cli_test_triggers", -# # "kind": "ScheduleBased", -# # "name": "cli_test_triggers", -# # "provisioningState": "Succeeded", -# # "recurrenceInterval": "Day", -# # "resourceGroup": "cli_test_datashare_SampleResourceGroup", -# # "synchronizationMode": "Incremental", -# # "synchronizationTime": "2020-04-03T08:45:35+00:00", -# # "triggerStatus": "Active", -# # "type": "Microsoft.DataShare/Triggers", -# # "userName": "Feng Zhou" -# # } - -# self.cmd('az datashare trigger list ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}"', +# self.cmd('az datashare share-subscription cancel-synchronization ' +# '--account-name "{ConsumerAccount}" ' +# '--resource-group "{ConsumerResourceGroup}" ' +# '--share-subscription-name "{ConsumerShareSubscription}" ' +# '--synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" ' +# '--subscription "{ConsumerSubscription}"', # checks=[]) -# # Clean up -# self.cmd('az datashare trigger delete ' -# '--account-name "{Account1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}" ' -# '--name "{Trigger1}"', -# checks=[]) -# self.cmd('az datashare dataset-mapping delete ' -# '--account-name "{Account1}" ' -# '--name "{DatasetMapping1}" ' -# '--resource-group "{rg}" ' -# '--share-subscription-name "{ShareSubscription1}"', -# checks=[]) - # self.cmd('az datashare share-subscription delete ' - # '--account-name "{Account1}" ' - # '--resource-group "{rg}" ' - # '--name "{ShareSubscription1}"', - # checks=[]) + self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('[0].recurrenceInterval', 'Day'), + self.check('[0].kind', 'ScheduleBased')]) + + triggerContent = {"kind": "ScheduleBased", "recurrenceInterval": "Day", "synchronizationTime": "2020-04-05T10:50:00+00:00"} + self.kwargs.update({'TriggerContent': triggerContent}) + self.cmd('az datashare trigger create ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--name "{ConsumerTrigger}" ' + '--trigger "{TriggerContent}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('properties.recurrenceInterval', 'Day'), # TODO properties is not removed in the response structure + self.check('properties.synchronizationMode', 'Incremental')]) + + self.cmd('az datashare trigger show ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--name "{ConsumerTrigger}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('recurrenceInterval', 'Day'), + self.check('synchronizationMode', 'Incremental')]) + + self.cmd('az datashare trigger list ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--subscription "{ConsumerSubscription}"', + checks=[self.check('[0].recurrenceInterval', 'Day'), + self.check('[0].synchronizationMode', 'Incremental')]) # Provider commands - self.cmd('az account set -s "{ProviderSubscription}"') providerShareSubscriptions = self.cmd('az datashare provider-share-subscription list ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('[0].consumerEmail', '{ConsumerEmail}'), self.check('[0].providerEmail', '{ProviderEmail}'), self.check('[0].shareSubscriptionStatus', 'Active'), - self.check('[0].name', '{ShareSubscription1}')]).get_output_in_json() + self.check('[0].name', '{ConsumerShareSubscription}')]).get_output_in_json() shareSubscriptionObjectId = providerShareSubscriptions[0]['shareSubscriptionObjectId'] self.kwargs.update({'ProviderShareSubscriptionObjectId': shareSubscriptionObjectId}) self.cmd('az datashare provider-share-subscription show ' - '--account-name "{Account1}" ' + '--account-name "{ProviderAccount}" ' '--share-subscription "{ProviderShareSubscriptionObjectId}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('consumerEmail', '{ConsumerEmail}'), self.check('providerEmail', '{ProviderEmail}'), self.check('shareSubscriptionStatus', 'Active'), - self.check('name', '{ShareSubscription1}'), + self.check('name', '{ConsumerShareSubscription}'), self.check('shareSubscriptionObjectId', '{ProviderShareSubscriptionObjectId}')]) self.cmd('az datashare provider-share-subscription revoke ' - '--account-name "{Account1}" ' + '--account-name "{ProviderAccount}" ' '--share-subscription "{ProviderShareSubscriptionObjectId}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('consumerEmail', '{ConsumerEmail}'), self.check('providerEmail', '{ProviderEmail}'), self.check('shareSubscriptionStatus', 'Revoking'), - self.check('name', '{ShareSubscription1}'), + self.check('name', '{ConsumerShareSubscription}'), self.check('shareSubscriptionObjectId', '{ProviderShareSubscriptionObjectId}')]) if self.is_live or self.in_recording: @@ -585,50 +524,81 @@ def test_datashare(self, resource_group, storage_account): time.sleep(5) self.cmd('az datashare provider-share-subscription reinstate ' - '--account-name "{Account1}" ' + '--account-name "{ProviderAccount}" ' '--share-subscription "{ProviderShareSubscriptionObjectId}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}"', + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}"', checks=[self.check('consumerEmail', '{ConsumerEmail}'), self.check('providerEmail', '{ProviderEmail}'), self.check('shareSubscriptionStatus', 'Active'), - self.check('name', '{ShareSubscription1}'), + self.check('name', '{ConsumerShareSubscription}'), self.check('shareSubscriptionObjectId', '{ProviderShareSubscriptionObjectId}')]) - # Clean up + # Provider Clean up self.cmd('az datashare synchronization-setting delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' - '--name "{SynchronizationSettings_2}" ' + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}" ' + '--name "{ProviderSynchronizationSetting}" ' '--yes', checks=[]) # self.cmd('az datashare invitation delete ' - # '--account-name "{Account1}" ' - # '--name "{Invitation1}" ' - # '--resource-group "{rg}" ' - # '--share-name "{Share1}"', + # '--account-name "{ProviderAccount}" ' + # '--name "{ProviderInvitation}" ' + # '--resource-group "{ProviderResourceGroup}" ' + # '--share-name "{ProviderShare}"', # checks=[]) self.cmd('az datashare dataset delete ' - '--account-name "{Account1}" ' - '--name "{Dataset1}" ' - '--resource-group "{rg}" ' - '--share-name "{Share1}" ' + '--account-name "{ProviderAccount}" ' + '--name "{ProviderDataset}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--share-name "{ProviderShare}" ' '--yes', checks=[]) self.cmd('az datashare delete ' - '--account-name "{Account1}" ' - '--resource-group "{rg}" ' - '--name "{Share1}" ' + '--account-name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' + '--name "{ProviderShare}" ' '--yes', checks=[]) self.cmd('az datashare account delete ' - '--name "{Account1}" ' - '--resource-group "{rg}" ' + '--name "{ProviderAccount}" ' + '--resource-group "{ProviderResourceGroup}" ' '--no-wait ' '--yes', checks=[]) + + self.cmd('az datashare trigger delete ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--name "{ConsumerTrigger}" ' + '--yes ' + '--subscription "{ConsumerSubscription}"', + checks=[]) + self.cmd('az datashare dataset-mapping delete ' + '--account-name "{ConsumerAccount}" ' + '--name "{ConsumerDatasetMapping}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--share-subscription-name "{ConsumerShareSubscription}" ' + '--yes ' + '--subscription "{ConsumerSubscription}"', + checks=[]) + self.cmd('az datashare share-subscription delete ' + '--account-name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--name "{ConsumerShareSubscription}" ' + '--yes ' + '--subscription "{ConsumerSubscription}"', + checks=[]) + self.cmd('az datashare account delete ' + '--name "{ConsumerAccount}" ' + '--resource-group "{ConsumerResourceGroup}" ' + '--no-wait ' + '--yes ' + '--subscription "{ConsumerSubscription}"', + checks=[]) From 47fd90d0e68621ed7180a3a0fa04cc7ee5cea4a7 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Thu, 9 Apr 2020 23:50:28 +0800 Subject: [PATCH 10/23] refactor command interface --- .github/CODEOWNERS | 2 + .../azext_datashare/generated/_help.py | 182 ----- .../azext_datashare/generated/_params.py | 12 +- .../azext_datashare/generated/commands.py | 56 +- src/datashare/azext_datashare/manual/_help.py | 314 +++++---- .../azext_datashare/manual/_params.py | 170 ++--- .../azext_datashare/manual/commands.py | 28 +- .../azext_datashare/manual/custom.py | 205 +++--- .../latest/recordings/test_datashare.yaml | 656 +++++++++--------- .../tests/latest/test_datashare_scenario.py | 52 +- 10 files changed, 763 insertions(+), 914 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 32e84fd2084..23e5f7c6227 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -97,3 +97,5 @@ /src/databox/ @jsntcy /src/hpc-cache/ @qianwens + +/src/datashare/ @fengzhou-msft \ No newline at end of file diff --git a/src/datashare/azext_datashare/generated/_help.py b/src/datashare/azext_datashare/generated/_help.py index a9ec3066486..0f4cdf2a78b 100644 --- a/src/datashare/azext_datashare/generated/_help.py +++ b/src/datashare/azext_datashare/generated/_help.py @@ -62,40 +62,6 @@ "SampleResourceGroup" """ -helps['datashare consumer-invitation'] = """ - type: group - short-summary: datashare consumer-invitation -""" - -helps['datashare consumer-invitation list'] = """ - type: command - short-summary: Lists invitations - examples: - - name: ConsumerInvitations_ListInvitations - text: |- - az datashare consumer-invitation list -""" - -helps['datashare consumer-invitation show'] = """ - type: command - short-summary: Get an invitation - examples: - - name: ConsumerInvitations_Get - text: |- - az datashare consumer-invitation show --invitation-id - "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" -""" - -helps['datashare consumer-invitation reject-invitation'] = """ - type: command - short-summary: Reject an invitation - examples: - - name: ConsumerInvitations_RejectInvitation - text: |- - az datashare consumer-invitation reject-invitation --properties-invitation-id - "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" -""" - helps['datashare invitation'] = """ type: group short-summary: datashare invitation @@ -190,106 +156,6 @@ "SampleResourceGroup" --share-name "Share1" """ -helps['datashare share-subscription'] = """ - type: group - short-summary: datashare share-subscription -""" - -helps['datashare share-subscription list'] = """ - type: command - short-summary: List share subscriptions in an account - examples: - - name: ShareSubscriptions_ListByAccount - text: |- - az datashare share-subscription list --account-name "Account1" --resource-group - "SampleResourceGroup" -""" - -helps['datashare share-subscription show'] = """ - type: command - short-summary: Get a shareSubscription in an account - examples: - - name: ShareSubscriptions_Get - text: |- - az datashare share-subscription show --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" -""" - -helps['datashare share-subscription create'] = """ - type: command - short-summary: Create a shareSubscription in an account - examples: - - name: ShareSubscriptions_Create - text: |- - az datashare share-subscription create --account-name "Account1" --resource-group - "SampleResourceGroup" --properties-invitation-id "12345678-1234-1234-12345678abd" - --properties-source-share-location "eastus2" --share-subscription-name - "ShareSubscription1" -""" - -helps['datashare share-subscription delete'] = """ - type: command - short-summary: Delete a shareSubscription in an account - examples: - - name: ShareSubscriptions_Delete - text: |- - az datashare share-subscription delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" -""" - -helps['datashare share-subscription list-synchronization-detail'] = """ - type: command - short-summary: List synchronization details - examples: - - name: ShareSubscriptions_ListSynchronizationDetails - text: |- - az datashare share-subscription list-synchronization-detail --account-name "Account1" - --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" - --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" -""" - -helps['datashare share-subscription synchronize'] = """ - type: command - short-summary: Initiate a copy - examples: - - name: ShareSubscriptions_Synchronize - text: |- - az datashare share-subscription synchronize --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" - --synchronization-mode "Incremental" -""" - -helps['datashare share-subscription cancel-synchronization'] = """ - type: command - short-summary: Request to cancel a synchronization. - examples: - - name: ShareSubscriptions_CancelSynchronization - text: |- - az datashare share-subscription cancel-synchronization --account-name "Account1" - --resource-group "SampleResourceGroup" --share-subscription-name "ShareSubscription1" - --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" -""" - -helps['datashare share-subscription list-source-share-synchronization-setting'] = """ - type: command - short-summary: Get synchronization settings set on a share - examples: - - name: ShareSubscriptions_ListSourceShareSynchronizationSettings - text: |- - az datashare share-subscription list-source-share-synchronization-setting --account-name - "Account1" --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" -""" - -helps['datashare share-subscription list-synchronization'] = """ - type: command - short-summary: List synchronizations of a share subscription - examples: - - name: ShareSubscriptions_ListSynchronizations - text: |- - az datashare share-subscription list-synchronization --account-name "Account1" - --resource-group "SampleResourceGroup" --share-subscription-name "ShareSub1" -""" - helps['datashare synchronization-setting'] = """ type: group short-summary: datashare synchronization-setting @@ -337,51 +203,3 @@ "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name "SyncrhonizationSetting1" """ - -helps['datashare trigger'] = """ - type: group - short-summary: datashare trigger -""" - -helps['datashare trigger list'] = """ - type: command - short-summary: List Triggers in a share subscription - examples: - - name: Triggers_ListByShareSubscription - text: |- - az datashare trigger list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" -""" - -helps['datashare trigger show'] = """ - type: command - short-summary: Get a Trigger in a shareSubscription - examples: - - name: Triggers_Get - text: |- - az datashare trigger show --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name - "Trigger1" -""" - -helps['datashare trigger create'] = """ - type: command - short-summary: Create a Trigger - examples: - - name: Triggers_Create - text: |- - az datashare trigger create --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --kind - "ScheduleBased" --trigger-name "Trigger1" -""" - -helps['datashare trigger delete'] = """ - type: command - short-summary: Delete a Trigger in a shareSubscription - examples: - - name: Triggers_Delete - text: |- - az datashare trigger delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-subscription-name "ShareSubscription1" --trigger-name - "Trigger1" -""" diff --git a/src/datashare/azext_datashare/generated/_params.py b/src/datashare/azext_datashare/generated/_params.py index 4ca7a9ee90c..27a2e873b06 100644 --- a/src/datashare/azext_datashare/generated/_params.py +++ b/src/datashare/azext_datashare/generated/_params.py @@ -152,7 +152,7 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - with self.argument_context('datashare share list-synchronization-detail') as c: + with self.argument_context('datashare share synchronization list-detail') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') @@ -167,7 +167,7 @@ def load_arguments(self, _): c.argument('status', help='Raw Status') c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare share list-synchronization') as c: + with self.argument_context('datashare share synchronization list') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') @@ -219,20 +219,20 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') - with self.argument_context('datashare share-subscription list-synchronization-detail') as c: + with self.argument_context('datashare share-subscription synchronization list-detail') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare share-subscription synchronize') as c: + with self.argument_context('datashare share-subscription synchronization start') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('synchronization_mode', arg_type=get_enum_type(['Incremental', 'FullSync']), help='Synchronization mode') - with self.argument_context('datashare share-subscription cancel-synchronization') as c: + with self.argument_context('datashare share-subscription synchronization cancel') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') @@ -244,7 +244,7 @@ def load_arguments(self, _): c.argument('share_subscription_name', help='The name of the shareSubscription.') c.argument('skip_token', help='Continuation token') - with self.argument_context('datashare share-subscription list-synchronization') as c: + with self.argument_context('datashare share-subscription synchronization list') as c: c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the shareSubscription.') diff --git a/src/datashare/azext_datashare/generated/commands.py b/src/datashare/azext_datashare/generated/commands.py index 695513e9258..662080418a0 100644 --- a/src/datashare/azext_datashare/generated/commands.py +++ b/src/datashare/azext_datashare/generated/commands.py @@ -22,14 +22,14 @@ def load_command_table(self, _): g.custom_command('delete', 'datashare_account_delete', supports_no_wait=True) g.wait_command('wait') - from azext_datashare.generated._client_factory import cf_consumer_invitation - datashare_consumer_invitation = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_invitation_operations#ConsumerInvitationOperations.{}', - client_factory=cf_consumer_invitation) - with self.command_group('datashare consumer-invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: - g.custom_command('list', 'datashare_consumer_invitation_list') - g.custom_show_command('show', 'datashare_consumer_invitation_show') - g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') + # from azext_datashare.generated._client_factory import cf_consumer_invitation + # datashare_consumer_invitation = CliCommandType( + # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_invitation_operations#ConsumerInvitationOperations.{}', + # client_factory=cf_consumer_invitation) + # with self.command_group('datashare consumer-invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: + # g.custom_command('list', 'datashare_consumer_invitation_list') + # g.custom_show_command('show', 'datashare_consumer_invitation_show') + # g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') # from azext_datashare.generated._client_factory import cf_data_set # datashare_data_set = CliCommandType( @@ -71,8 +71,8 @@ def load_command_table(self, _): # g.custom_show_command('show', 'datashare_share_show') # g.custom_command('create', 'datashare_share_create') # g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True) - # g.custom_command('list-synchronization-detail', 'datashare_share_list_synchronization_detail') - # g.custom_command('list-synchronization', 'datashare_share_list_synchronization') + # g.custom_command('synchronization list-detail', 'datashare_share_list_synchronization_detail') + # g.custom_command('synchronization list', 'datashare_share_list_synchronization') # g.wait_command('wait') from azext_datashare.generated._client_factory import cf_provider_share_subscription @@ -86,22 +86,6 @@ def load_command_table(self, _): g.custom_command('reinstate', 'datashare_provider_share_subscription_reinstate') g.wait_command('wait') - from azext_datashare.generated._client_factory import cf_share_subscription - datashare_share_subscription = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_subscription_operations#ShareSubscriptionOperations.{}', - client_factory=cf_share_subscription) - with self.command_group('datashare share-subscription', datashare_share_subscription, client_factory=cf_share_subscription) as g: - g.custom_command('list', 'datashare_share_subscription_list') - g.custom_show_command('show', 'datashare_share_subscription_show') - g.custom_command('create', 'datashare_share_subscription_create') - g.custom_command('delete', 'datashare_share_subscription_delete', supports_no_wait=True) - g.custom_command('list-synchronization-detail', 'datashare_share_subscription_list_synchronization_detail') - g.custom_command('synchronize', 'datashare_share_subscription_synchronize', supports_no_wait=True) - g.custom_command('cancel-synchronization', 'datashare_share_subscription_cancel_synchronization', supports_no_wait=True) - g.custom_command('list-source-share-synchronization-setting', 'datashare_share_subscription_list_source_share_synchronization_setting') - g.custom_command('list-synchronization', 'datashare_share_subscription_list_synchronization') - g.wait_command('wait') - # from azext_datashare.generated._client_factory import cf_consumer_source_data_set # datashare_consumer_source_data_set = CliCommandType( # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', @@ -120,13 +104,13 @@ def load_command_table(self, _): g.custom_command('delete', 'datashare_synchronization_setting_delete', supports_no_wait=True) g.wait_command('wait') - from azext_datashare.generated._client_factory import cf_trigger - datashare_trigger = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._trigger_operations#TriggerOperations.{}', - client_factory=cf_trigger) - with self.command_group('datashare trigger', datashare_trigger, client_factory=cf_trigger) as g: - g.custom_command('list', 'datashare_trigger_list') - g.custom_show_command('show', 'datashare_trigger_show') - g.custom_command('create', 'datashare_trigger_create', supports_no_wait=True) - g.custom_command('delete', 'datashare_trigger_delete', supports_no_wait=True) - g.wait_command('wait') + # from azext_datashare.generated._client_factory import cf_trigger + # datashare_trigger = CliCommandType( + # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._trigger_operations#TriggerOperations.{}', + # client_factory=cf_trigger) + # with self.command_group('datashare trigger', datashare_trigger, client_factory=cf_trigger) as g: + # g.custom_command('list', 'datashare_trigger_list') + # g.custom_show_command('show', 'datashare_trigger_show') + # g.custom_command('create', 'datashare_trigger_create', supports_no_wait=True) + # g.custom_command('delete', 'datashare_trigger_delete', supports_no_wait=True) + # g.wait_command('wait') diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 71fa52566a6..67e643d32ab 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -8,6 +8,11 @@ from knack.help_files import helps +helps['datashare consumer'] = """ + type: group + short-summary: Commands for consumers to manage datashare +""" + helps['datashare account'] = """ type: group short-summary: Commands to manage datashare accounts @@ -15,18 +20,18 @@ helps['datashare account list'] = """ type: command - short-summary: List Accounts in Subscription + short-summary: List datashare accounts examples: - - name: Accounts_ListByResourceGroup + - name: List accounts by resource group text: |- az datashare account list --resource-group MyResourceGroup """ helps['datashare account show'] = """ type: command - short-summary: Get an account + short-summary: Show an account examples: - - name: Accounts_Get + - name: Show account information text: |- az datashare account show --name MyAccount --resource-group MyResourceGroup """ @@ -40,7 +45,7 @@ long-summary: | Usage: --identity [type=SystemAssigned] [tenantId=VAL principalId=VAL] examples: - - name: Accounts_Create + - name: Create an account text: |- az datashare account create --identity type=SystemAssigned --location "West US 2" --tags tag1=Red tag2=White --name MyAccount --resource-group MyResourceGroup """ @@ -49,7 +54,7 @@ type: command short-summary: Patch an account examples: - - name: Accounts_Update + - name: Update account tags text: |- az datashare account update --name MyAccount --tags tag1=Red tag2=White --resource-group MyResourceGroup """ @@ -71,36 +76,36 @@ text: az datashare account wait --name MyAccount --resource-group MyResourceGroup --created """ -helps['datashare consumer-invitation'] = """ +helps['datashare consumer invitation'] = """ type: group short-summary: Commands for consumers to manage datashare invitations """ -helps['datashare consumer-invitation list'] = """ +helps['datashare consumer invitation list'] = """ type: command - short-summary: Lists invitations + short-summary: List received invitations examples: - - name: ConsumerInvitations_ListInvitations + - name: List invitations text: |- - az datashare consumer-invitation list + az datashare consumer invitation list """ -helps['datashare consumer-invitation show'] = """ +helps['datashare consumer invitation show'] = """ type: command - short-summary: Get an invitation + short-summary: Show a received invitation examples: - - name: ConsumerInvitations_Get + - name: Show an invitation text: |- - az datashare consumer-invitation show --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" + az datashare consumer invitation show --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" """ -helps['datashare consumer-invitation reject-invitation'] = """ +helps['datashare consumer invitation reject-invitation'] = """ type: command short-summary: Reject an invitation examples: - - name: ConsumerInvitations_RejectInvitation + - name: Reject an invitation text: |- - az datashare consumer-invitation reject-invitation --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" + az datashare consumer invitation reject-invitation --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" """ helps['datashare dataset'] = """ @@ -110,48 +115,48 @@ helps['datashare dataset list'] = """ type: command - short-summary: List DataSets in a share + short-summary: List datasets in a share examples: - - name: DataSets_ListByShare + - name: List datasets text: |- az datashare dataset list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare dataset show'] = """ type: command - short-summary: Get a DataSet in a share + short-summary: Show a dataset examples: - - name: DataSets_Get + - name: Show a dataset text: |- az datashare dataset show --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare dataset create'] = """ type: command - short-summary: Create a DataSet + short-summary: Create a dataset examples: - - name: DataSets_Create + - name: Create a Blob dataset text: |- az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ --dataset "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"filePath\\":\\"file21\\",\\"resourceGroup\\": \ \\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" - - name: DataSets_KustoCluster_Create + - name: Create a KustoCluster dataset text: |- az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ --dataset "{\\"kind\\":\\"KustoCluster\\",\\"properties\\":{\\"kustoClusterResourceId\\": \ \\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1\\"}}" - - name: DataSets_KustoDatabase_Create + - name: Create a KustoDatabase dataset text: |- az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ --dataset "{\\"kind\\":\\"KustoDatabase\\",\\"properties\\":{\\"kustoDatabaseResourceId\\": \ \\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1/databases/Database1\\"}}" - - name: DataSets_SqlDBTable_Create + - name: Create a SqlDBTable dataset text: |- az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ --dataset "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"databaseName\\":\\"SqlDB1\\",\\"schemaName\\":\\"dbo\\", \ \\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\", \ \\"tableName\\":\\"Table1\\"}}" - - name: DataSets_SqlDWTable_Create + - name: Create a SqlDWTable dataset text: |- az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ --dataset "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataWarehouseName\\":\\"DataWarehouse1\\",\\"schemaName\\":\\"dbo\\", \ @@ -161,9 +166,9 @@ helps['datashare dataset delete'] = """ type: command - short-summary: Delete a DataSet in a share + short-summary: Delete a dataset in a share examples: - - name: DataSets_Delete + - name: Delete a dataset text: |- az datashare dataset delete --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" """ @@ -176,62 +181,62 @@ text: az datashare dataset wait --account-name MyAccount --share-name "Share1" --name "Dataset1" --resource-group MyResourceGroup --created """ -helps['datashare dataset-mapping'] = """ +helps['datashare consumer dataset-mapping'] = """ type: group short-summary: Commands for consumers to manage datashare dataset mappings """ -helps['datashare dataset-mapping list'] = """ +helps['datashare consumer dataset-mapping list'] = """ type: command - short-summary: List DataSetMappings in a share subscription + short-summary: List dataset mappings in a share subscription examples: - - name: DataSetMappings_ListByShareSubscription + - name: List dataset mappings text: |- - az datashare dataset-mapping list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer dataset-mapping list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ -helps['datashare dataset-mapping show'] = """ +helps['datashare consumer dataset-mapping show'] = """ type: command - short-summary: Get a DataSetMapping in a shareSubscription + short-summary: Show a dataset mapping in a share subscription examples: - - name: DataSetMappings_Get + - name: Show a dataset mapping text: |- - az datashare dataset-mapping show --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer dataset-mapping show --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ -helps['datashare dataset-mapping create'] = """ +helps['datashare consumer dataset-mapping create'] = """ type: command - short-summary: Create a DataSetMapping + short-summary: Create a dataSet mapping examples: - - name: DataSetMappings_Create + - name: Create a Blob dataset mapping text: |- - az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ + az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ --mapping "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"filePath\ \\":\\"file21\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" - - name: DataSetMappings_SqlDB_Create + - name: Create a SqlDBTable dataset mapping text: |- - az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ + az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ --mapping "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"databaseName\\":\\"Database1\\"\ ,\\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" - - name: DataSetMappings_SqlDWDataSetToAdlsGen2File_Create + - name: Create a AdlsGen2File dataset mapping text: |- - az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ + az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ --mapping "{\\"kind\\":\\"AdlsGen2File\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"filePath\\":\\"file21\\",\\"fileSystem\\": \ \\"fileSystem\\",\\"outputType\\":\\"Csv\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" - - name: DataSetMappings_SqlDW_Create + - name: Create a SqlDWTable dataset mapping text: |- - az datashare dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ + az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ --mapping "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"dataWarehouseName\\":\\"DataWarehouse1\\",\ \\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" """ -helps['datashare dataset-mapping delete'] = """ +helps['datashare consumer dataset-mapping delete'] = """ type: command - short-summary: Delete a DataSetMapping in a shareSubscription + short-summary: Delete a dataset mapping in a share subscription examples: - - name: DataSetMappings_Delete + - name: Delete a dataset mapping text: |- - az datashare dataset-mapping delete --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer dataset-mapping delete --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ helps['datashare invitation'] = """ @@ -243,16 +248,16 @@ type: command short-summary: List invitations in a share examples: - - name: Invitations_ListByShare + - name: List invitations text: |- az datashare invitation list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare invitation show'] = """ type: command - short-summary: Get an invitation in a share + short-summary: Show an invitation in a share examples: - - name: Invitations_Get + - name: Show an invitation text: |- az datashare invitation show --account-name MyAccount --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ @@ -261,7 +266,7 @@ type: command short-summary: Create an invitation examples: - - name: Invitations_Create + - name: Create an invitation text: |- az datashare invitation create --account-name MyAccount --target-email "receiver@microsoft.com" --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ @@ -270,7 +275,7 @@ type: command short-summary: Delete an invitation in a share examples: - - name: Invitations_Delete + - name: Delete an invitation text: |- az datashare invitation delete --account-name MyAccount --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" """ @@ -282,56 +287,61 @@ helps['datashare list'] = """ type: command - short-summary: List shares in an account + short-summary: List datashares in an account examples: - - name: Shares_ListByAccount + - name: List datashares text: |- az datashare list --account-name MyAccount --resource-group MyResourceGroup """ helps['datashare show'] = """ type: command - short-summary: Get a share + short-summary: Show a datashare examples: - - name: Shares_Get + - name: Show a datashare text: |- az datashare show --account-name MyAccount --resource-group MyResourceGroup --name "Share1" """ helps['datashare create'] = """ type: command - short-summary: Create a share + short-summary: Create a datashare examples: - - name: Shares_Create + - name: Create a datashare text: |- az datashare create --account-name MyAccount --resource-group MyResourceGroup --description "share description" --share-kind "CopyBased" --terms "Confidential" --name "Share1" """ helps['datashare delete'] = """ type: command - short-summary: Delete a share + short-summary: Delete a datashare examples: - - name: Shares_Delete + - name: Delete a datashare text: |- az datashare delete --account-name MyAccount --resource-group MyResourceGroup --name "Share1" """ -helps['datashare list-synchronization-detail'] = """ +helps['datashare synchronization'] = """ + type: group + short-summary: Commands to manage datashare synchronization +""" + +helps['datashare synchronization list-detail'] = """ type: command short-summary: List synchronization details examples: - - name: Shares_ListSynchronizationDetails + - name: List synchronization details text: |- - az datashare list-synchronization-detail --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare synchronization list-detail --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ -helps['datashare list-synchronization'] = """ +helps['datashare synchronization list'] = """ type: command - short-summary: List synchronizations of a share + short-summary: List synchronizations of a datashare examples: - - name: Shares_ListSynchronizations + - name: List synchronizations text: |- - az datashare list-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" + az datashare synchronization list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare wait'] = """ @@ -351,34 +361,34 @@ type: command short-summary: List share subscriptions in a provider share examples: - - name: ProviderShareSubscriptions_ListByShare + - name: List share subscriptions text: |- az datashare provider-share-subscription list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription show'] = """ type: command - short-summary: Get share subscription in a provider share + short-summary: Show a share subscription in a provider share examples: - - name: ProviderShareSubscriptions_GetByShare + - name: Show a share subscription text: |- az datashare provider-share-subscription show --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription revoke'] = """ type: command - short-summary: Revoke share subscription in a provider share + short-summary: Revoke a share subscription in a provider share examples: - - name: ProviderShareSubscriptions_Revoke + - name: Revoke a share subscription text: |- az datashare provider-share-subscription revoke --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare provider-share-subscription reinstate'] = """ type: command - short-summary: Reinstate share subscription in a provider share + short-summary: Reinstate a share subscription in a provider share examples: - - name: ProviderShareSubscriptions_Reinstate + - name: Reinstate a share subscription text: |- az datashare provider-share-subscription reinstate --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" """ @@ -391,112 +401,112 @@ text: az datashare provider-share-subscription wait --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" --created """ -helps['datashare share-subscription'] = """ +helps['datashare consumer share-subscription'] = """ type: group short-summary: Commands for consumers to manage datashare share subscriptions """ -helps['datashare share-subscription list'] = """ +helps['datashare consumer share-subscription list'] = """ type: command short-summary: List share subscriptions in an account examples: - - name: ShareSubscriptions_ListByAccount + - name: List share subscriptions text: |- - az datashare share-subscription list --account-name MyAccount --resource-group MyResourceGroup + az datashare consumer share-subscription list --account-name MyAccount --resource-group MyResourceGroup """ -helps['datashare share-subscription show'] = """ +helps['datashare consumer share-subscription show'] = """ type: command - short-summary: Get a shareSubscription in an account + short-summary: Show a share subscription in an account examples: - - name: ShareSubscriptions_Get + - name: Show a share subscription text: |- - az datashare share-subscription show --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" + az datashare consumer share-subscription show --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" """ -helps['datashare share-subscription create'] = """ +helps['datashare consumer share-subscription create'] = """ type: command - short-summary: Create a shareSubscription in an account + short-summary: Create a share subscription in an account examples: - - name: ShareSubscriptions_Create + - name: Create a share subscription text: |- - az datashare share-subscription create --account-name MyAccount --resource-group MyResourceGroup --invitation-id "12345678-1234-1234-12345678abd" --source-share-location "eastus2" --name "ShareSubscription1" + az datashare consumer share-subscription create --account-name MyAccount --resource-group MyResourceGroup --invitation-id "12345678-1234-1234-12345678abd" --source-share-location "eastus2" --name "ShareSubscription1" """ -helps['datashare share-subscription delete'] = """ +helps['datashare consumer share-subscription delete'] = """ type: command - short-summary: Delete a shareSubscription in an account + short-summary: Delete a share subscription in an account examples: - - name: ShareSubscriptions_Delete + - name: Delete a share subscription text: |- - az datashare share-subscription delete --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" + az datashare consumer share-subscription delete --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" """ -helps['datashare share-subscription list-synchronization-detail'] = """ +helps['datashare consumer share-subscription synchronization'] = """ + type: group + short-summary: Commands for consumers to manage datashare share subscription synchronizations +""" + +helps['datashare consumer share-subscription synchronization list-detail'] = """ type: command short-summary: List synchronization details examples: - - name: ShareSubscriptions_ListSynchronizationDetails + - name: List synchronization details text: |- - az datashare share-subscription list-synchronization-detail --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare consumer share-subscription synchronization list-detail --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ -helps['datashare share-subscription synchronize'] = """ +helps['datashare consumer share-subscription synchronization start'] = """ type: command - short-summary: Initiate a copy + short-summary: Initiate a dataset synchronization examples: - - name: ShareSubscriptions_Synchronize + - name: Initiate a dataset synchronization text: |- - az datashare share-subscription synchronize --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-mode "Incremental" + az datashare consumer share-subscription synchronization start --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-mode "Incremental" """ -helps['datashare share-subscription cancel-synchronization'] = """ +helps['datashare consumer share-subscription synchronization cancel'] = """ type: command short-summary: Request to cancel a synchronization. examples: - - name: ShareSubscriptions_CancelSynchronization + - name: Request to cancel a synchronization text: |- - az datashare share-subscription cancel-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare consumer share-subscription synchronization cancel --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ -helps['datashare share-subscription list-source-share-synchronization-setting'] = """ +helps['datashare consumer share-subscription list-source-share-synchronization-setting'] = """ type: command - short-summary: Get synchronization settings set on a share + short-summary: List synchronization settings set on a share examples: - - name: ShareSubscriptions_ListSourceShareSynchronizationSettings + - name: List synchronization settings text: |- - az datashare share-subscription list-source-share-synchronization-setting --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" + az datashare consumer share-subscription list-source-share-synchronization-setting --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" """ -helps['datashare share-subscription list-synchronization'] = """ +helps['datashare consumer share-subscription synchronization list'] = """ type: command short-summary: List synchronizations of a share subscription examples: - - name: ShareSubscriptions_ListSynchronizations + - name: List synchronizations text: |- - az datashare share-subscription list-synchronization --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" + az datashare consumer share-subscription synchronization list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" """ -helps['datashare share-subscription wait'] = """ +helps['datashare consumer share-subscription wait'] = """ type: command short-summary: Place the CLI in a waiting state until a condition of the datashare share subscription is met. examples: - name: Pause executing next line of CLI script until the datashare share subscription is successfully provisioned. - text: az datashare share-subscription wait --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" --created -""" - -helps['datashare consumer-source-dataset'] = """ - type: group - short-summary: Commands for consumers to manage datashare source datasets + text: az datashare consumer share-subscription wait --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" --created """ -helps['datashare consumer-source-dataset list'] = """ +helps['datashare consumer share-subscription list-source-dataset'] = """ type: command - short-summary: Get source dataSets of a shareSubscription + short-summary: List source datasets of a share subscription examples: - - name: ConsumerSourceDataSets_ListByShareSubscription + - name: List source datasets text: |- - az datashare consumer-source-dataset list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "Share1" + az datashare consumer share-subscription list-source-dataset --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "Share1" """ helps['datashare synchronization-setting'] = """ @@ -506,36 +516,36 @@ helps['datashare synchronization-setting list'] = """ type: command - short-summary: List synchronizationSettings in a share + short-summary: List synchronization settings in a share examples: - - name: SynchronizationSettings_ListByShare + - name: List synchronization settings text: |- az datashare synchronization-setting list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" """ helps['datashare synchronization-setting show'] = """ type: command - short-summary: Get a synchronizationSetting in a share + short-summary: Show a synchronization setting in a share examples: - - name: SynchronizationSettings_Get + - name: Show a synchronization setting text: |- az datashare synchronization-setting show --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" """ helps['datashare synchronization-setting create'] = """ type: command - short-summary: Create or update a synchronizationSetting + short-summary: Create a synchronization setting examples: - - name: SynchronizationSettings_Create + - name: Create a synchronization setting text: |- az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "Dataset1" --setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" """ helps['datashare synchronization-setting delete'] = """ type: command - short-summary: Delete a synchronizationSetting in a share + short-summary: Delete a synchronization setting in a share examples: - - name: SynchronizationSettings_Delete + - name: Delete a synchronization setting text: |- az datashare synchronization-setting delete --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" """ @@ -548,51 +558,51 @@ text: az datashare synchronization-setting wait --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" --created """ -helps['datashare trigger'] = """ +helps['datashare consumer trigger'] = """ type: group - short-summary: Commands for consumers to manage datashare triggers + short-summary: Commands for consumers to manage datashare consumer triggers """ -helps['datashare trigger list'] = """ +helps['datashare consumer trigger list'] = """ type: command - short-summary: List Triggers in a share subscription + short-summary: List triggers in a share subscription examples: - - name: Triggers_ListByShareSubscription + - name: List triggers text: |- - az datashare trigger list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer trigger list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" """ -helps['datashare trigger show'] = """ +helps['datashare consumer trigger show'] = """ type: command - short-summary: Get a Trigger in a shareSubscription + short-summary: Show a trigger in a share subscription examples: - - name: Triggers_Get + - name: Show a trigger text: |- - az datashare trigger show --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" + az datashare consumer trigger show --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" """ -helps['datashare trigger create'] = """ +helps['datashare consumer trigger create'] = """ type: command - short-summary: Create a Trigger + short-summary: Create a trigger examples: - - name: Triggers_Create + - name: Create a trigger text: |- - az datashare trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" + az datashare consumer trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" """ -helps['datashare trigger delete'] = """ +helps['datashare consumer trigger delete'] = """ type: command - short-summary: Delete a Trigger in a shareSubscription + short-summary: Delete a trigger in a share subscription examples: - - name: Triggers_Delete + - name: Delete a trigger text: |- - az datashare trigger delete --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" + az datashare consumer trigger delete --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" """ -helps['datashare trigger wait'] = """ +helps['datashare consumer trigger wait'] = """ type: command short-summary: Place the CLI in a waiting state until a condition of the datashare trigger is met. examples: - name: Pause executing next line of CLI script until the datashare trigger is successfully provisioned. - text: az datashare trigger wait --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --created + text: az datashare consumer trigger wait --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --created """ diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index d118d00843c..61583fd0f07 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -24,7 +24,6 @@ def load_arguments(self, _): with self.argument_context('datashare account list') as c: c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('skip_token', help='Continuation token') with self.argument_context('datashare account show') as c: c.argument('resource_group_name', resource_group_name_type) # modified @@ -40,7 +39,7 @@ def load_arguments(self, _): with self.argument_context('datashare account update') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', options_list=['--name', '-n'], id_part='name', help='The name of the share account.') # modified - c.argument('tags', tags_type, help='Tags on the azure resource.') + c.argument('tags', tags_type) # modified with self.argument_context('datashare account delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified @@ -49,79 +48,77 @@ def load_arguments(self, _): with self.argument_context('datashare account wait') as c: c.argument('account_name', options_list=['--name', '-n'], id_part='name', help='The name of the share account.') # modified - with self.argument_context('datashare consumer-invitation list') as c: - c.argument('skip_token', help='Continuation token') + with self.argument_context('datashare consumer invitation list') as c: + pass - with self.argument_context('datashare consumer-invitation show') as c: + with self.argument_context('datashare consumer invitation show') as c: c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') - with self.argument_context('datashare consumer-invitation reject-invitation') as c: + with self.argument_context('datashare consumer invitation reject-invitation') as c: c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified - c.argument('invitation_id', help='Unique id of the invitation.') # modified + c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') # modified with self.argument_context('datashare dataset list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') with self.argument_context('datashare dataset show') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataSet.') # modified + c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataset.') # modified with self.argument_context('datashare dataset create') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('data_set_name', options_list=['--name', '-n'], help='The name of the dataSet.') # modified - c.argument('kind', arg_type=get_enum_type(Kind), help='Kind of data set.') # modified + c.argument('data_set_name', options_list=['--name', '-n'], help='The name of the dataset.') # modified c.argument('data_set', options_list=['--dataset'], type=validate_file_or_dict, help='Dataset parameters in JSON string or path to JSON file.') # modified with self.argument_context('datashare dataset delete') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataSet.') # modified + c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataset.') # modified with self.argument_context('datashare dataset wait') as c: - c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataSet.') # modified + c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataset.') # modified - with self.argument_context('datashare dataset-mapping list') as c: # modified + with self.argument_context('datashare consumer dataset-mapping list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') + c.argument('share_subscription_name', help='The name of the share subscription.') - with self.argument_context('datashare dataset-mapping show') as c: # modified + with self.argument_context('datashare consumer dataset-mapping show') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') + c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - with self.argument_context('datashare dataset-mapping create') as c: # modified + with self.argument_context('datashare consumer dataset-mapping create') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified + c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified c.argument('data_set_mapping', options_list=['--mapping'], type=validate_file_or_dict, help='Dataset mapping in JSON string or path to JSON file.') # modified - with self.argument_context('datashare dataset-mapping delete') as c: # modified + with self.argument_context('datashare consumer dataset-mapping delete') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') + c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - with self.argument_context('datashare dataset-mapping wait') as c: - c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the dataSetMapping.') # modified + with self.argument_context('datashare consumer dataset-mapping wait') as c: + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') + c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified with self.argument_context('datashare invitation list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') with self.argument_context('datashare invitation show') as c: c.argument('resource_group_name', resource_group_name_type) # modified @@ -147,7 +144,6 @@ def load_arguments(self, _): with self.argument_context('datashare list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('skip_token', help='Continuation token') with self.argument_context('datashare show') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified @@ -167,124 +163,111 @@ def load_arguments(self, _): c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified - with self.argument_context('datashare list-synchronization-detail') as c: + with self.argument_context('datashare synchronization list-detail') as c: c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('skip_token', help='Continuation token') - c.argument('consumer_email', help='Email of the user who created the synchronization') - c.argument('consumer_name', help='Name of the user who created the synchronization') - c.argument('consumer_tenant_name', help='Tenant name of the consumer who created the synchronization') - c.argument('duration_ms', help='synchronization duration') - c.argument('end_time', help='End time of synchronization') - c.argument('message', help='message of synchronization') - c.argument('start_time', help='start time of synchronization') - c.argument('status', help='Raw Status') + c.argument('account_name', help='The name of the share account.') # modified + c.argument('share_name', help='The name of the share.') # modified c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare list-synchronization') as c: # modified + with self.argument_context('datashare synchronization list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('skip_token', help='Continuation token') + c.argument('account_name', help='The name of the share account.') # modified + c.argument('share_name', help='The name of the share.') # modified with self.argument_context('datashare wait') as c: - c.argument('share_name', options_list=['--name', '-n'], help='The name of the share.') # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified with self.argument_context('datashare provider-share-subscription list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') with self.argument_context('datashare provider-share-subscription show') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified TODO validator + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate share subscription') # modified TODO validator with self.argument_context('datashare provider-share-subscription revoke') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate share subscription') # modified with self.argument_context('datashare provider-share-subscription reinstate') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate share subscription') # modified with self.argument_context('datashare provider-share-subscription wait') as c: - c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate shareSubscription') # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate share subscription') # modified - with self.argument_context('datashare share-subscription list') as c: + with self.argument_context('datashare consumer share-subscription list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('skip_token', help='Continuation token') - with self.argument_context('datashare share-subscription show') as c: + with self.argument_context('datashare consumer share-subscription show') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the shareSubscription.') # modified + c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share subscription.') # modified - with self.argument_context('datashare share-subscription create') as c: + with self.argument_context('datashare consumer share-subscription create') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', options_list=['--name', '-n'], help='The name of the shareSubscription.') # modified - c.argument('invitation_id', help='The invitation id.') # modified + c.argument('share_subscription_name', options_list=['--name', '-n'], help='The name of the share subscription.') # modified + c.argument('invitation_id', validator=invitation_id_validator, help='The invitation id.') # modified c.argument('source_share_location', help='Source share location.') # modified - with self.argument_context('datashare share-subscription delete') as c: + with self.argument_context('datashare consumer share-subscription delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the shareSubscription.') # modified + c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share subscription.') # modified - with self.argument_context('datashare share-subscription list-synchronization-detail') as c: + with self.argument_context('datashare consumer share-subscription synchronization start') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') - c.argument('synchronization_id', help='Synchronization id') + c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('synchronization_mode', arg_type=get_enum_type(SynchronizationMode), help='Synchronization mode') # modified - with self.argument_context('datashare share-subscription synchronize') as c: + with self.argument_context('datashare consumer share-subscription synchronization cancel') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('synchronization_mode', arg_type=get_enum_type(SynchronizationMode), help='Synchronization mode') # modified + c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare share-subscription cancel-synchronization') as c: + with self.argument_context('datashare consumer share-subscription synchronization list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('synchronization_id', help='Synchronization id') + c.argument('share_subscription_name', help='The name of the share subscription.') - with self.argument_context('datashare share-subscription list-source-share-synchronization-setting') as c: + with self.argument_context('datashare consumer share-subscription synchronization list-detail') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') + c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare share-subscription list-synchronization') as c: + with self.argument_context('datashare consumer share-subscription list-source-share-synchronization-setting') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') + c.argument('share_subscription_name', help='The name of the share subscription.') - with self.argument_context('datashare share-subscription wait') as c: - c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the shareSubscription.') # modified + with self.argument_context('datashare consumer share-subscription wait') as c: + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share subscription.') # modified - with self.argument_context('datashare consumer-source-dataset list') as c: + with self.argument_context('datashare consumer share-subscription list-source-dataset') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') + c.argument('share_subscription_name', help='The name of the share subscription.') with self.argument_context('datashare synchronization-setting list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') with self.argument_context('datashare synchronization-setting show') as c: c.argument('resource_group_name', resource_group_name_type) # modified @@ -308,30 +291,29 @@ def load_arguments(self, _): with self.argument_context('datashare synchronization-setting wait') as c: c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified - with self.argument_context('datashare trigger list') as c: + with self.argument_context('datashare consumer trigger list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') + c.argument('share_subscription_name', help='The name of the share subscription.') - with self.argument_context('datashare trigger show') as c: + with self.argument_context('datashare consumer trigger show') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') - c.argument('share_subscription_name', id_part='child_name_1', help='The name of the shareSubscription.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') c.argument('trigger_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the trigger.') - with self.argument_context('datashare trigger create') as c: + with self.argument_context('datashare consumer trigger create') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') + c.argument('share_subscription_name', help='The name of the share subscription.') c.argument('trigger_name', options_list=['--name', '-n'], help='The name of the trigger.') # modified c.argument('trigger', type=validate_file_or_dict, help='Trigger parameters in JSON string or path to JSON file.') # modified - with self.argument_context('datashare trigger delete') as c: + with self.argument_context('datashare consumer trigger delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_subscription_name', id_part='child_name_1', help='The name of the shareSubscription.') # modified + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') # modified c.argument('trigger_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the trigger.') # modified - with self.argument_context('datashare trigger wait') as c: + with self.argument_context('datashare consumer trigger wait') as c: c.argument('trigger_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the trigger.') # modified diff --git a/src/datashare/azext_datashare/manual/commands.py b/src/datashare/azext_datashare/manual/commands.py index 343c49a8b5f..77363fdcc83 100644 --- a/src/datashare/azext_datashare/manual/commands.py +++ b/src/datashare/azext_datashare/manual/commands.py @@ -26,7 +26,7 @@ def load_command_table(self, _): datashare_consumer_invitation = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_invitation_operations#ConsumerInvitationOperations.{}', client_factory=cf_consumer_invitation) - with self.command_group('datashare consumer-invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: + with self.command_group('datashare consumer invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: g.custom_command('list', 'datashare_consumer_invitation_list') g.custom_show_command('show', 'datashare_consumer_invitation_show') g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') @@ -46,7 +46,7 @@ def load_command_table(self, _): datashare_data_set_mapping = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_mapping_operations#DataSetMappingOperations.{}', client_factory=cf_data_set_mapping) - with self.command_group('datashare dataset-mapping', datashare_data_set_mapping, client_factory=cf_data_set_mapping) as g: # modified + with self.command_group('datashare consumer dataset-mapping', datashare_data_set_mapping, client_factory=cf_data_set_mapping) as g: # modified g.custom_command('list', 'datashare_data_set_mapping_list') g.custom_show_command('show', 'datashare_data_set_mapping_show') g.custom_command('create', 'datashare_data_set_mapping_create') @@ -71,10 +71,12 @@ def load_command_table(self, _): g.custom_show_command('show', 'datashare_share_show') g.custom_command('create', 'datashare_share_create') g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True, confirmation=True) - g.custom_command('list-synchronization-detail', 'datashare_share_list_synchronization_detail') - g.custom_command('list-synchronization', 'datashare_share_list_synchronization') g.wait_command('wait') + with self.command_group('datashare synchronization', datashare_share, client_factory=cf_share, is_experimental=True) as g: + g.custom_command('list-detail', 'datashare_share_list_synchronization_detail') + g.custom_command('list', 'datashare_share_list_synchronization') + from azext_datashare.generated._client_factory import cf_provider_share_subscription datashare_provider_share_subscription = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._provider_share_subscription_operations#ProviderShareSubscriptionOperations.{}', @@ -90,24 +92,26 @@ def load_command_table(self, _): datashare_share_subscription = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_subscription_operations#ShareSubscriptionOperations.{}', client_factory=cf_share_subscription) - with self.command_group('datashare share-subscription', datashare_share_subscription, client_factory=cf_share_subscription) as g: + with self.command_group('datashare consumer share-subscription', datashare_share_subscription, client_factory=cf_share_subscription) as g: g.custom_command('list', 'datashare_share_subscription_list') g.custom_show_command('show', 'datashare_share_subscription_show') g.custom_command('create', 'datashare_share_subscription_create') g.custom_command('delete', 'datashare_share_subscription_delete', supports_no_wait=True, confirmation=True) - g.custom_command('list-synchronization-detail', 'datashare_share_subscription_list_synchronization_detail') - g.custom_command('synchronize', 'datashare_share_subscription_synchronize', supports_no_wait=True) - g.custom_command('cancel-synchronization', 'datashare_share_subscription_cancel_synchronization', supports_no_wait=True) g.custom_command('list-source-share-synchronization-setting', 'datashare_share_subscription_list_source_share_synchronization_setting') - g.custom_command('list-synchronization', 'datashare_share_subscription_list_synchronization') g.wait_command('wait') + with self.command_group('datashare consumer share-subscription synchronization', datashare_share_subscription, client_factory=cf_share_subscription) as g: + g.custom_command('list', 'datashare_share_subscription_list_synchronization') + g.custom_command('list-detail', 'datashare_share_subscription_list_synchronization_detail') + g.custom_command('start', 'datashare_share_subscription_synchronize', supports_no_wait=True) + g.custom_command('cancel', 'datashare_share_subscription_cancel_synchronization', supports_no_wait=True) + from azext_datashare.generated._client_factory import cf_consumer_source_data_set datashare_consumer_source_data_set = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', client_factory=cf_consumer_source_data_set) - with self.command_group('datashare consumer-source-dataset', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: - g.custom_command('list', 'datashare_consumer_source_data_set_list') + with self.command_group('datashare consumer share-subscription', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: + g.custom_command('list-source-dataset', 'datashare_consumer_source_data_set_list') from azext_datashare.generated._client_factory import cf_synchronization_setting datashare_synchronization_setting = CliCommandType( @@ -124,7 +128,7 @@ def load_command_table(self, _): datashare_trigger = CliCommandType( operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._trigger_operations#TriggerOperations.{}', client_factory=cf_trigger) - with self.command_group('datashare trigger', datashare_trigger, client_factory=cf_trigger) as g: + with self.command_group('datashare consumer trigger', datashare_trigger, client_factory=cf_trigger) as g: g.custom_command('list', 'datashare_trigger_list') g.custom_show_command('show', 'datashare_trigger_show') g.custom_command('create', 'datashare_trigger_create', supports_no_wait=True) diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index 9ef3bbec6de..901ef93347b 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -9,11 +9,10 @@ def datashare_account_list(cmd, client, - resource_group_name=None, - skip_token=None): + resource_group_name=None): if resource_group_name: - return client.list_by_resource_group(resource_group_name=resource_group_name, skip_token=skip_token) - return client.list_by_subscription(skip_token=skip_token) + return client.list_by_resource_group(resource_group_name=resource_group_name) + return client.list_by_subscription() def datashare_account_show(cmd, client, @@ -55,9 +54,8 @@ def datashare_account_delete(cmd, client, account_name=account_name) -def datashare_consumer_invitation_list(cmd, client, - skip_token=None): - return client.list_invitation(skip_token=skip_token) +def datashare_consumer_invitation_list(cmd, client): + return client.list_invitation() def datashare_consumer_invitation_show(cmd, client, @@ -75,9 +73,10 @@ def datashare_consumer_invitation_reject_invitation(cmd, client, def datashare_data_set_list(cmd, client, resource_group_name, account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + share_name): + return client.list_by_share(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name) def datashare_data_set_show(cmd, client, @@ -119,16 +118,23 @@ def datashare_data_set_delete(cmd, client, resource_group_name, account_name, share_name, - data_set_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) + data_set_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + data_set_name=data_set_name) def datashare_data_set_mapping_list(cmd, client, resource_group_name, account_name, - share_subscription_name, - skip_token=None): - return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + share_subscription_name): + return client.list_by_share_subscription(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name) def datashare_data_set_mapping_show(cmd, client, @@ -168,9 +174,10 @@ def datashare_data_set_mapping_delete(cmd, client, def datashare_invitation_list(cmd, client, resource_group_name, account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + share_name): + return client.list_by_share(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name) def datashare_invitation_show(cmd, client, @@ -202,9 +209,8 @@ def datashare_invitation_delete(cmd, client, def datashare_share_list(cmd, client, resource_group_name, - account_name, - skip_token=None): - return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) + account_name): + return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name) def datashare_share_show(cmd, client, @@ -227,41 +233,42 @@ def datashare_share_create(cmd, client, def datashare_share_delete(cmd, client, resource_group_name, account_name, - share_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name) + share_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name) def datashare_share_list_synchronization_detail(cmd, client, resource_group_name, account_name, share_name, - skip_token=None, - consumer_email=None, - consumer_name=None, - consumer_tenant_name=None, - duration_ms=None, - end_time=None, - message=None, - start_time=None, - status=None, synchronization_id=None): - return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token, consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) + return client.list_synchronization_detail(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + synchronization_id=synchronization_id) def datashare_share_list_synchronization(cmd, client, resource_group_name, account_name, - share_name, - skip_token=None): - return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + share_name): + return client.list_synchronization(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name) def datashare_provider_share_subscription_list(cmd, client, resource_group_name, account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + share_name): + return client.list_by_share(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name) def datashare_provider_share_subscription_show(cmd, client, @@ -276,8 +283,14 @@ def datashare_provider_share_subscription_revoke(cmd, client, resource_group_name, account_name, share_name, - provider_share_subscription_id): - return client.begin_revoke(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) + provider_share_subscription_id, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_revoke, + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + provider_share_subscription_id=provider_share_subscription_id) def datashare_provider_share_subscription_reinstate(cmd, client, @@ -290,9 +303,8 @@ def datashare_provider_share_subscription_reinstate(cmd, client, def datashare_share_subscription_list(cmd, client, resource_group_name, - account_name, - skip_token=None): - return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) + account_name): + return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name) def datashare_share_subscription_show(cmd, client, @@ -314,65 +326,86 @@ def datashare_share_subscription_create(cmd, client, def datashare_share_subscription_delete(cmd, client, resource_group_name, account_name, - share_subscription_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) + share_subscription_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name) def datashare_share_subscription_list_synchronization_detail(cmd, client, resource_group_name, account_name, share_subscription_name, - synchronization_id, - skip_token=None): - return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token, synchronization_id=synchronization_id) + synchronization_id): + return client.list_synchronization_detail(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + synchronization_id=synchronization_id) def datashare_share_subscription_synchronize(cmd, client, resource_group_name, account_name, share_subscription_name, - synchronization_mode=None): - return client.begin_synchronize(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_mode=synchronization_mode) + synchronization_mode=None, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_synchronize, + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + synchronization_mode=synchronization_mode) def datashare_share_subscription_cancel_synchronization(cmd, client, resource_group_name, account_name, share_subscription_name, - synchronization_id): - return client.begin_cancel_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_id=synchronization_id) + synchronization_id, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_cancel_synchronization, + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + synchronization_id=synchronization_id) def datashare_share_subscription_list_source_share_synchronization_setting(cmd, client, resource_group_name, account_name, - share_subscription_name, - skip_token=None): - return client.list_source_share_synchronization_setting(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + share_subscription_name): + return client.list_source_share_synchronization_setting(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name) def datashare_share_subscription_list_synchronization(cmd, client, resource_group_name, account_name, - share_subscription_name, - skip_token=None): - return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + share_subscription_name): + return client.list_synchronization(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name) def datashare_consumer_source_data_set_list(cmd, client, resource_group_name, account_name, - share_subscription_name, - skip_token=None): - return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + share_subscription_name): + return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) def datashare_synchronization_setting_list(cmd, client, resource_group_name, account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) + share_name): + return client.list_by_share(resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name) def datashare_synchronization_setting_show(cmd, client, @@ -410,16 +443,23 @@ def datashare_synchronization_setting_delete(cmd, client, resource_group_name, account_name, share_name, - synchronization_setting_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) + synchronization_setting_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + account_name=account_name, + share_name=share_name, + synchronization_setting_name=synchronization_setting_name) def datashare_trigger_list(cmd, client, resource_group_name, account_name, - share_subscription_name, - skip_token=None): - return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) + share_subscription_name): + return client.list_by_share_subscription(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name) def datashare_trigger_show(cmd, client, @@ -435,17 +475,26 @@ def datashare_trigger_create(cmd, client, account_name, share_subscription_name, trigger_name, - trigger): - return client.begin_create(resource_group_name=resource_group_name, - account_name=account_name, - share_subscription_name=share_subscription_name, - trigger_name=trigger_name, - trigger=trigger) + trigger, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_create, + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + trigger_name=trigger_name, + trigger=trigger) def datashare_trigger_delete(cmd, client, resource_group_name, account_name, share_subscription_name, - trigger_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name) + trigger_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name, + trigger_name=trigger_name) diff --git a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml index c20a557f502..b447e7ee01a 100644 --- a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml +++ b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml @@ -68,7 +68,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:57:11 GMT + - Thu, 09 Apr 2020 15:36:12 GMT expires: - '-1' pragma: @@ -104,24 +104,24 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '618' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:57:19 GMT + - Thu, 09 Apr 2020 15:36:22 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 pragma: - no-cache server: @@ -131,10 +131,10 @@ interactions: x-content-type-options: - nosniff x-ms-quota: - - '[{"currentUsed":3,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account"}]' + - '[{"currentUsed":2,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -155,20 +155,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '618' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:57:36 GMT + - Thu, 09 Apr 2020 15:36:23 GMT expires: - '-1' pragma: @@ -203,20 +203,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '618' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:58:07 GMT + - Thu, 09 Apr 2020 15:36:54 GMT expires: - '-1' pragma: @@ -251,20 +251,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '618' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:58:38 GMT + - Thu, 09 Apr 2020 15:37:24 GMT expires: - '-1' pragma: @@ -299,20 +299,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '618' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:09 GMT + - Thu, 09 Apr 2020 15:37:55 GMT expires: - '-1' pragma: @@ -347,20 +347,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '620' + - '619' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:39 GMT + - Thu, 09 Apr 2020 15:38:26 GMT expires: - '-1' pragma: @@ -395,20 +395,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '620' + - '619' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:42 GMT + - Thu, 09 Apr 2020 15:38:39 GMT expires: - '-1' pragma: @@ -443,20 +443,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '620' + - '619' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:44 GMT + - Thu, 09 Apr 2020 15:38:41 GMT expires: - '-1' pragma: @@ -491,20 +491,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts?api-version=2019-11-01 response: body: - string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' + string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' headers: cache-control: - no-cache content-length: - - '632' + - '631' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:48 GMT + - Thu, 09 Apr 2020 15:38:43 GMT expires: - '-1' pragma: @@ -543,20 +543,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-07T10:57:18.8514158Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' + string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' headers: cache-control: - no-cache content-length: - - '607' + - '606' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:55 GMT + - Thu, 09 Apr 2020 15:38:48 GMT expires: - '-1' pragma: @@ -598,11 +598,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache @@ -611,11 +611,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:56 GMT + - Thu, 09 Apr 2020 15:38:50 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/cli_test_share + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/cli_test_share pragma: - no-cache server: @@ -626,9 +626,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"Share resource quota","value":"Share - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share"}]' + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -649,11 +649,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache @@ -662,7 +662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:57 GMT + - Thu, 09 Apr 2020 15:38:53 GMT expires: - '-1' pragma: @@ -697,11 +697,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache @@ -710,7 +710,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 10:59:59 GMT + - Thu, 09 Apr 2020 15:38:54 GMT expires: - '-1' pragma: @@ -745,11 +745,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-07T10:59:56.6855271Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}]}' + string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}]}' headers: cache-control: - no-cache @@ -758,7 +758,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:00 GMT + - Thu, 09 Apr 2020 15:38:55 GMT expires: - '-1' pragma: @@ -795,10 +795,10 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002?api-version=2019-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002?api-version=2019-06-01 response: body: - string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002","name":"clitestda000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-07T10:56:50.1605694Z","primaryEndpoints":{"blob":"https://clitestda000002.blob.core.windows.net/","queue":"https://clitestda000002.queue.core.windows.net/","table":"https://clitestda000002.table.core.windows.net/","file":"https://clitestda000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}}' + string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-09T15:35:51.6545305Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}}' headers: cache-control: - no-cache @@ -807,7 +807,7 @@ interactions: content-type: - application/json date: - - Tue, 07 Apr 2020 11:00:02 GMT + - Thu, 09 Apr 2020 15:38:56 GMT expires: - '-1' pragma: @@ -827,7 +827,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1", - "principalId": "6d9ede6e-e102-4c5d-be64-98dd27bac5ad", "principalType": "ServicePrincipal"}}' + "principalId": "7f6ad27d-edf3-48f8-babd-5d48e6a74202", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -849,10 +849,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002/providers/Microsoft.Authorization/roleAssignments/434b1326-6d97-4f69-9ae5-643e6fbaebf2?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/3bbe99a2-afc8-4435-b383-5a4e586a8916?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"6d9ede6e-e102-4c5d-be64-98dd27bac5ad","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002","createdOn":"2020-04-07T11:00:06.0388869Z","updatedOn":"2020-04-07T11:00:06.0388869Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002/providers/Microsoft.Authorization/roleAssignments/434b1326-6d97-4f69-9ae5-643e6fbaebf2","type":"Microsoft.Authorization/roleAssignments","name":"434b1326-6d97-4f69-9ae5-643e6fbaebf2"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","createdOn":"2020-04-09T15:38:58.0563829Z","updatedOn":"2020-04-09T15:38:58.0563829Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/3bbe99a2-afc8-4435-b383-5a4e586a8916","type":"Microsoft.Authorization/roleAssignments","name":"3bbe99a2-afc8-4435-b383-5a4e586a8916"}' headers: cache-control: - no-cache @@ -861,7 +861,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:11 GMT + - Thu, 09 Apr 2020 15:39:04 GMT expires: - '-1' pragma: @@ -873,7 +873,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -899,17 +899,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts?api-version=2019-06-01 response: body: - string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/sfsafsaf","name":"sfsafsaf","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-12T10:01:37.0551963Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-12T10:01:36.9614761Z","primaryEndpoints":{"dfs":"https://sfsafsaf.dfs.core.windows.net/","web":"https://sfsafsaf.z22.web.core.windows.net/","blob":"https://sfsafsaf.blob.core.windows.net/","queue":"https://sfsafsaf.queue.core.windows.net/","table":"https://sfsafsaf.table.core.windows.net/","file":"https://sfsafsaf.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T03:09:41.6962163Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z22.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/","queue":"https://zhoxingtest2.queue.core.windows.net/","table":"https://zhoxingtest2.table.core.windows.net/","file":"https://zhoxingtest2.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest2-secondary.dfs.core.windows.net/","web":"https://zhoxingtest2-secondary.z22.web.core.windows.net/","blob":"https://zhoxingtest2-secondary.blob.core.windows.net/","queue":"https://zhoxingtest2-secondary.queue.core.windows.net/","table":"https://zhoxingtest2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xiaojianxustorage","name":"xiaojianxustorage","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:53:04.7312881Z","primaryEndpoints":{"dfs":"https://xiaojianxustorage.dfs.core.windows.net/","web":"https://xiaojianxustorage.z7.web.core.windows.net/","blob":"https://xiaojianxustorage.blob.core.windows.net/","queue":"https://xiaojianxustorage.queue.core.windows.net/","table":"https://xiaojianxustorage.table.core.windows.net/","file":"https://xiaojianxustorage.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xiaojianxustorage-secondary.dfs.core.windows.net/","web":"https://xiaojianxustorage-secondary.z7.web.core.windows.net/","blob":"https://xiaojianxustorage-secondary.blob.core.windows.net/","queue":"https://xiaojianxustorage-secondary.queue.core.windows.net/","table":"https://xiaojianxustorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloud-shell-storage-southeastasia/providers/Microsoft.Storage/storageAccounts/cs1100320007de01867","name":"cs1100320007de01867","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T07:50:16.1828874Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T07:50:16.1828874Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-07T07:50:16.1203711Z","primaryEndpoints":{"dfs":"https://cs1100320007de01867.dfs.core.windows.net/","web":"https://cs1100320007de01867.z23.web.core.windows.net/","blob":"https://cs1100320007de01867.blob.core.windows.net/","queue":"https://cs1100320007de01867.queue.core.windows.net/","table":"https://cs1100320007de01867.table.core.windows.net/","file":"https://cs1100320007de01867.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital - Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"ServiceName":"TAGVALUE"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage/privateEndpointConnections/zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","name":"zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/zuhPE"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002","name":"clitestda000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T10:56:50.2230847Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-07T10:56:50.1605694Z","primaryEndpoints":{"blob":"https://clitestda000002.blob.core.windows.net/","queue":"https://clitestda000002.queue.core.windows.net/","table":"https://clitestda000002.table.core.windows.net/","file":"https://clitestda000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_provider_rg/providers/Microsoft.Storage/storageAccounts/datashareprovidersa","name":"datashareprovidersa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T03:00:23.2516445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-07T03:00:23.2516445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-07T03:00:23.1734995Z","primaryEndpoints":{"dfs":"https://datashareprovidersa.dfs.core.windows.net/","web":"https://datashareprovidersa.z5.web.core.windows.net/","blob":"https://datashareprovidersa.blob.core.windows.net/","queue":"https://datashareprovidersa.queue.core.windows.net/","table":"https://datashareprovidersa.table.core.windows.net/","file":"https://datashareprovidersa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://datashareprovidersa-secondary.dfs.core.windows.net/","web":"https://datashareprovidersa-secondary.z5.web.core.windows.net/","blob":"https://datashareprovidersa-secondary.blob.core.windows.net/","queue":"https://datashareprovidersa-secondary.queue.core.windows.net/","table":"https://datashareprovidersa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-datashare-rg/providers/Microsoft.Storage/storageAccounts/fengdatasharesa","name":"fengdatasharesa","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-06T15:37:10.3261488Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-06T15:37:10.2792631Z","primaryEndpoints":{"dfs":"https://fengdatasharesa.dfs.core.windows.net/","web":"https://fengdatasharesa.z5.web.core.windows.net/","blob":"https://fengdatasharesa.blob.core.windows.net/","queue":"https://fengdatasharesa.queue.core.windows.net/","table":"https://fengdatasharesa.table.core.windows.net/","file":"https://fengdatasharesa.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengdatasharesa-secondary.dfs.core.windows.net/","web":"https://fengdatasharesa-secondary.z5.web.core.windows.net/","blob":"https://fengdatasharesa-secondary.blob.core.windows.net/","queue":"https://fengdatasharesa-secondary.queue.core.windows.net/","table":"https://fengdatasharesa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage_blob_restorelgsnaopzuzblnuxuzojq7eo725opbpfmp2jwlntndhozoedq6chvyzq/providers/Microsoft.Storage/storageAccounts/storageblobrestorelqgkde","name":"storageblobrestorelqgkde","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T18:27:29.0030818Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T18:27:28.9405812Z","primaryEndpoints":{"dfs":"https://storageblobrestorelqgkde.dfs.core.windows.net/","web":"https://storageblobrestorelqgkde.z3.web.core.windows.net/","blob":"https://storageblobrestorelqgkde.blob.core.windows.net/","queue":"https://storageblobrestorelqgkde.queue.core.windows.net/","table":"https://storageblobrestorelqgkde.table.core.windows.net/","file":"https://storageblobrestorelqgkde.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}}]}' + string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.Storage/storageAccounts/fystac","name":"fystac","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-08T03:10:13.3645539Z","primaryEndpoints":{"dfs":"https://fystac.dfs.core.windows.net/","web":"https://fystac.z13.web.core.windows.net/","blob":"https://fystac.blob.core.windows.net/","queue":"https://fystac.queue.core.windows.net/","table":"https://fystac.table.core.windows.net/","file":"https://fystac.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fystac-secondary.dfs.core.windows.net/","web":"https://fystac-secondary.z13.web.core.windows.net/","blob":"https://fystac-secondary.blob.core.windows.net/","queue":"https://fystac-secondary.queue.core.windows.net/","table":"https://fystac-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T03:09:41.6962163Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z22.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/","queue":"https://zhoxingtest2.queue.core.windows.net/","table":"https://zhoxingtest2.table.core.windows.net/","file":"https://zhoxingtest2.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest2-secondary.dfs.core.windows.net/","web":"https://zhoxingtest2-secondary.z22.web.core.windows.net/","blob":"https://zhoxingtest2-secondary.blob.core.windows.net/","queue":"https://zhoxingtest2-secondary.queue.core.windows.net/","table":"https://zhoxingtest2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xiaojianxustorage","name":"xiaojianxustorage","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:53:04.7312881Z","primaryEndpoints":{"dfs":"https://xiaojianxustorage.dfs.core.windows.net/","web":"https://xiaojianxustorage.z7.web.core.windows.net/","blob":"https://xiaojianxustorage.blob.core.windows.net/","queue":"https://xiaojianxustorage.queue.core.windows.net/","table":"https://xiaojianxustorage.table.core.windows.net/","file":"https://xiaojianxustorage.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xiaojianxustorage-secondary.dfs.core.windows.net/","web":"https://xiaojianxustorage-secondary.z7.web.core.windows.net/","blob":"https://xiaojianxustorage-secondary.blob.core.windows.net/","queue":"https://xiaojianxustorage-secondary.queue.core.windows.net/","table":"https://xiaojianxustorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital + Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"key4":"value4","5":"5","6":"6"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage/privateEndpointConnections/zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","name":"zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/zuhPE"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-09T15:35:51.6545305Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"d2e83740-1d90-4aa7-901c-97c510d4f7ec","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/zuhkey/2780bea583714f33b8051ea24f90a246","lastKeyRotationTimestamp":"2020-04-09T06:46:21.5968704Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"zuhkey","keyversion":"2780bea583714f33b8051ea24f90a246"},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Keyvault"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/storagekey/5d86c92941554675977a2adcee8ce06f","lastKeyRotationTimestamp":"2020-04-09T06:09:59.5153057Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"storagekey","keyversion":"5d86c92941554675977a2adcee8ce06f"},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Keyvault"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}}]}' headers: cache-control: - no-cache content-length: - - '118504' + - '113551' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:15 GMT + - Thu, 09 Apr 2020 15:39:11 GMT expires: - '-1' pragma: @@ -921,16 +921,16 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - d8f44c80-2335-4c06-9c40-a22e6d3557bf - - 3a55f768-7af5-4f94-ba23-0d9d3302bbd0 - - 91e6fde1-6ded-46ad-86fc-091b0d993b8f - - 48427f7e-cc61-41af-9cb9-a6deeeaa2051 - - 9f93909a-074e-4bbd-8d65-38fdbc611fc5 - - 56b14033-11d1-412d-9132-efe43771b319 - - 1bfa0a55-1c44-4e04-bf66-b21e3ecf2a49 - - 7af3382d-6b90-45f3-8b36-1709cb30e1e0 - - cc88d024-d053-44a3-b916-68a64028048a - - b66ad0e8-3842-4e18-8153-f1db95ffe967 + - da26e5e7-3e7c-4663-becf-a6abe35ae908 + - 2517615b-4b60-4dd2-a56a-d1ce2e201ea3 + - 92bb620b-e10f-4cff-8971-0bc2c854f8b2 + - c896ad6e-b9e6-4995-9f7a-20b0d9c02608 + - 31e747f0-b76a-4212-bec9-61634008f0b5 + - b5ff9f42-5ca9-4895-b8a9-0aa2a7f398ef + - b654ea98-f67c-4e1d-94d3-f4ab2586d089 + - a83adb45-3a19-42a1-be09-99c3d8270a8d + - e794d4f3-e843-45e8-9c02-0cd274e9c8c3 + - cf850416-f413-4c50-b097-7267a64bbeb7 status: code: 200 message: OK @@ -955,7 +955,7 @@ interactions: accept-language: - en-US method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.Storage/storageAccounts/clitestda000002/listKeys?api-version=2019-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/listKeys?api-version=2019-06-01 response: body: string: '{"keys":[{"keyName":"key1","value":"veryFakedStorageAccountKey==","permissions":"FULL"},{"keyName":"key2","value":"veryFakedStorageAccountKey==","permissions":"FULL"}]}' @@ -967,7 +967,7 @@ interactions: content-type: - application/json date: - - Tue, 07 Apr 2020 11:00:15 GMT + - Thu, 09 Apr 2020 15:39:11 GMT expires: - '-1' pragma: @@ -998,11 +998,11 @@ interactions: - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.2; Windows 10) AZURECLI/2.3.1 (MSI) x-ms-date: - - Tue, 07 Apr 2020 11:00:16 GMT + - Thu, 09 Apr 2020 15:39:12 GMT x-ms-version: - '2018-11-09' method: PUT - uri: https://clitestda000002.blob.core.windows.net/clitestcontainer?restype=container + uri: https://clitestdatas000002.blob.core.windows.net/clitestcontainer?restype=container response: body: string: '' @@ -1010,11 +1010,11 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:00:16 GMT + - Thu, 09 Apr 2020 15:39:13 GMT etag: - - '"0x8D7DAE2DAFEC056"' + - '"0x8D7DC9C280934F5"' last-modified: - - Tue, 07 Apr 2020 11:00:16 GMT + - Thu, 09 Apr 2020 15:39:14 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1024,7 +1024,7 @@ interactions: message: Created - request: body: 'b''b\''{"kind": "Container", "properties": {"containerName": "clitestcontainer", - "resourceGroup": "cli_test_000001", "storageAccountName": "clitestda000002", + "resourceGroup": "cli_test_dat000001", "storageAccountName": "clitestdatas000002", "subscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590"}}\''''' headers: Accept: @@ -1045,10 +1045,10 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_000001","storageAccountName":"clitestda000002","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache @@ -1057,11 +1057,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:21 GMT + - Thu, 09 Apr 2020 15:39:17 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 pragma: - no-cache server: @@ -1072,9 +1072,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1095,10 +1095,10 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_000001","storageAccountName":"clitestda000002","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache @@ -1107,7 +1107,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:22 GMT + - Thu, 09 Apr 2020 15:39:19 GMT expires: - '-1' pragma: @@ -1142,10 +1142,10 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_000001","storageAccountName":"clitestda000002","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}]}' + string: '{"value":[{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}]}' headers: cache-control: - no-cache @@ -1154,7 +1154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:24 GMT + - Thu, 09 Apr 2020 15:39:21 GMT expires: - '-1' pragma: @@ -1194,11 +1194,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:00:28.4063904Z","userName":"Feng - Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:39:23.0753152Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: - no-cache @@ -1207,11 +1207,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:28 GMT + - Thu, 09 Apr 2020 15:39:22 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting pragma: - no-cache server: @@ -1221,7 +1221,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1242,11 +1242,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:00:28.4063904Z","userName":"Feng - Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:39:23.0753152Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: - no-cache @@ -1255,7 +1255,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:33 GMT + - Thu, 09 Apr 2020 15:39:24 GMT expires: - '-1' pragma: @@ -1290,11 +1290,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:00:28.4063904Z","userName":"Feng - Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}]}' + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:39:23.0753152Z","userName":"Feng + Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}]}' headers: cache-control: - no-cache @@ -1303,7 +1303,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:35 GMT + - Thu, 09 Apr 2020 15:39:25 GMT expires: - '-1' pragma: @@ -1329,7 +1329,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare list-synchronization + - datashare synchronization list Connection: - keep-alive Content-Length: @@ -1340,7 +1340,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/listSynchronizations?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/listSynchronizations?api-version=2019-11-01 response: body: string: '{"value":[]}' @@ -1352,7 +1352,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:37 GMT + - Thu, 09 Apr 2020 15:39:27 GMT expires: - '-1' pragma: @@ -1393,11 +1393,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-07T11:00:40.2808409Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' + string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: - no-cache @@ -1406,11 +1406,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:40 GMT + - Thu, 09 Apr 2020 15:39:29 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation/5b089b9d-580d-4d9e-b300-63487dc743f6 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation/41819df4-3144-4d43-9e0b-5361e9317e81 pragma: - no-cache server: @@ -1420,7 +1420,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -1441,11 +1441,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"sentAt":"2020-04-07T11:00:40.2808409Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}]}' + string: '{"value":[{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}]}' headers: cache-control: - no-cache @@ -1454,7 +1454,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:42 GMT + - Thu, 09 Apr 2020 15:39:31 GMT expires: - '-1' pragma: @@ -1489,11 +1489,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-07T11:00:40.2808409Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' + string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: - no-cache @@ -1502,7 +1502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:43 GMT + - Thu, 09 Apr 2020 15:39:33 GMT expires: - '-1' pragma: @@ -1591,7 +1591,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:00:45 GMT + - Thu, 09 Apr 2020 15:39:34 GMT expires: - '-1' pragma: @@ -1626,24 +1626,24 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '551' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:01:03 GMT + - Thu, 09 Apr 2020 15:39:45 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 pragma: - no-cache server: @@ -1654,7 +1654,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account"}]' + resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account"}]' x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1668,7 +1668,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare consumer-invitation list + - datashare consumer invitation list Connection: - keep-alive ParameterSetName: @@ -1680,8 +1680,8 @@ interactions: uri: https://management.azure.com/providers/Microsoft.DataShare/ListInvitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-07T11:00:40.2808409Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/5b089b9d-580d-4d9e-b300-63487dc743f6","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' + string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-09T15:39:29.2224301Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' headers: cache-control: - no-cache @@ -1690,7 +1690,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:01:05 GMT + - Thu, 09 Apr 2020 15:39:47 GMT expires: - '-1' pragma: @@ -1719,7 +1719,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare consumer-invitation show + - datashare consumer invitation show Connection: - keep-alive ParameterSetName: @@ -1728,11 +1728,11 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/5b089b9d-580d-4d9e-b300-63487dc743f6?api-version=2019-11-01 + uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-07T11:00:40.2808409Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/5b089b9d-580d-4d9e-b300-63487dc743f6","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' + string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-09T15:39:29.2224301Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' headers: cache-control: - no-cache @@ -1741,7 +1741,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:01:08 GMT + - Thu, 09 Apr 2020 15:39:49 GMT expires: - '-1' pragma: @@ -1776,20 +1776,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '551' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:01:09 GMT + - Thu, 09 Apr 2020 15:39:51 GMT expires: - '-1' pragma: @@ -1824,20 +1824,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '551' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:01:39 GMT + - Thu, 09 Apr 2020 15:40:21 GMT expires: - '-1' pragma: @@ -1872,20 +1872,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '551' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:02:10 GMT + - Thu, 09 Apr 2020 15:40:52 GMT expires: - '-1' pragma: @@ -1920,20 +1920,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '551' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:02:41 GMT + - Thu, 09 Apr 2020 15:41:23 GMT expires: - '-1' pragma: @@ -1968,20 +1968,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-07T11:01:01.3386676Z","provisioningState":"Succeeded","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account","name":"cli_test_acc_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Succeeded","userName":"Allen + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '552' + - '544' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:11 GMT + - Thu, 09 Apr 2020 15:41:54 GMT expires: - '-1' pragma: @@ -2000,7 +2000,7 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"invitationId": "5b089b9d-580d-4d9e-b300-63487dc743f6", + body: '{"properties": {"invitationId": "41819df4-3144-4d43-9e0b-5361e9317e81", "sourceShareLocation": "westus2"}}' headers: Accept: @@ -2008,7 +2008,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare share-subscription create + - datashare consumer share-subscription create Connection: - keep-alive Content-Length: @@ -2022,26 +2022,26 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-07T11:03:14.8382416Z","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '792' + - '788' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:14 GMT + - Thu, 09 Apr 2020 15:41:58 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/cli_test_share_subscription + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/cli_test_share_subscription pragma: - no-cache server: @@ -2052,7 +2052,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"ShareSubscription - resource quota","value":"ShareSubscription resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription"}]' + resource quota","value":"ShareSubscription resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription"}]' x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -2066,7 +2066,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare share-subscription show + - datashare consumer share-subscription show Connection: - keep-alive ParameterSetName: @@ -2075,22 +2075,22 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-07T11:03:14.8382416Z","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '792' + - '788' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:16 GMT + - Thu, 09 Apr 2020 15:41:59 GMT expires: - '-1' pragma: @@ -2116,7 +2116,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare share-subscription list + - datashare consumer share-subscription list Connection: - keep-alive ParameterSetName: @@ -2125,22 +2125,22 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"createdAt":"2020-04-07T11:03:14.8382416Z","invitationId":"5b089b9d-580d-4d9e-b300-63487dc743f6","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"value":[{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache content-length: - - '804' + - '800' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:21 GMT + - Thu, 09 Apr 2020 15:42:01 GMT expires: - '-1' pragma: @@ -2166,7 +2166,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare consumer-source-dataset list + - datashare consumer share-subscription list-source-dataset Connection: - keep-alive ParameterSetName: @@ -2175,19 +2175,19 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/ConsumerSourceDataSets?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/ConsumerSourceDataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"dataSetName":"cli_test_data_set","dataSetPath":"clitestcontainer","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/consumerSourceDataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' + string: '{"value":[{"properties":{"dataSetName":"cli_test_data_set","dataSetPath":"clitestcontainer","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/consumerSourceDataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' headers: cache-control: - no-cache content-length: - - '526' + - '522' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:22 GMT + - Thu, 09 Apr 2020 15:42:03 GMT expires: - '-1' pragma: @@ -2236,7 +2236,7 @@ interactions: content-type: - application/json date: - - Tue, 07 Apr 2020 11:03:24 GMT + - Thu, 09 Apr 2020 15:42:04 GMT expires: - '-1' pragma: @@ -2256,7 +2256,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe", - "principalId": "01002f74-47d9-48cc-831c-1492617ed3ff", "principalType": "ServicePrincipal"}}' + "principalId": "6a0d063a-49c8-4b0c-b995-8b8d12587aea", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -2278,10 +2278,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/da1505d0-9839-4ce9-95f2-af7406cacb23?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/a4b86e67-be6e-47cf-ac5d-d0b64fb7ed93?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"01002f74-47d9-48cc-831c-1492617ed3ff","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","createdOn":"2020-04-07T11:03:26.1744127Z","updatedOn":"2020-04-07T11:03:26.1744127Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/da1505d0-9839-4ce9-95f2-af7406cacb23","type":"Microsoft.Authorization/roleAssignments","name":"da1505d0-9839-4ce9-95f2-af7406cacb23"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","createdOn":"2020-04-09T15:42:06.8394735Z","updatedOn":"2020-04-09T15:42:06.8394735Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/a4b86e67-be6e-47cf-ac5d-d0b64fb7ed93","type":"Microsoft.Authorization/roleAssignments","name":"a4b86e67-be6e-47cf-ac5d-d0b64fb7ed93"}' headers: cache-control: - no-cache @@ -2290,7 +2290,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:31 GMT + - Thu, 09 Apr 2020 15:42:12 GMT expires: - '-1' pragma: @@ -2308,7 +2308,7 @@ interactions: message: Created - request: body: '{"kind": "BlobFolder", "properties": {"containerName": "clitestconsumercontainer", - "dataSetId": "80f28d74-ad6a-4649-894c-dc20fcacb50b", "prefix": "cli_test_data_set", + "dataSetId": "244c883f-31e5-456a-aeb2-6e85ef405252", "prefix": "cli_test_data_set", "resourceGroup": "datashare_consumer_rg", "storageAccountName": "datashareconsumersa", "subscriptionId": "9abff005-2afc-4de1-b39c-344b9de2cc9c"}}' headers: @@ -2317,7 +2317,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare dataset-mapping create + - datashare consumer dataset-mapping create Connection: - keep-alive Content-Length: @@ -2331,23 +2331,23 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' headers: cache-control: - no-cache content-length: - - '692' + - '688' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:39 GMT + - Thu, 09 Apr 2020 15:42:23 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 pragma: - no-cache server: @@ -2358,9 +2358,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSetMapping resource - quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' + quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -2372,7 +2372,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare share-subscription synchronize + - datashare consumer share-subscription synchronization start Connection: - keep-alive Content-Length: @@ -2386,13 +2386,13 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/Synchronize?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/Synchronize?api-version=2019-11-01 response: body: - string: '{"status":"Queued","synchronizationId":"926ec24c-bb33-4f61-aa05-cc4a85692367","synchronizationMode":"Incremental"}' + string: '{"status":"Queued","synchronizationId":"915c018b-751d-4204-a394-89d89aee35b9","synchronizationMode":"Incremental"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/synchronizationOperationResults/926ec24c-bb33-4f61-aa05-cc4a85692367?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/synchronizationOperationResults/915c018b-751d-4204-a394-89d89aee35b9?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -2400,11 +2400,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:53 GMT + - Thu, 09 Apr 2020 15:42:29 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/shareSubscriptionSynchronizations/926ec24c-bb33-4f61-aa05-cc4a85692367?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/shareSubscriptionSynchronizations/915c018b-751d-4204-a394-89d89aee35b9?api-version=2019-11-01 pragma: - no-cache server: @@ -2426,7 +2426,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare dataset-mapping show + - datashare consumer dataset-mapping show Connection: - keep-alive ParameterSetName: @@ -2435,19 +2435,19 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' headers: cache-control: - no-cache content-length: - - '692' + - '688' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:55 GMT + - Thu, 09 Apr 2020 15:42:31 GMT expires: - '-1' pragma: @@ -2473,7 +2473,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare dataset-mapping list + - datashare consumer dataset-mapping list Connection: - keep-alive ParameterSetName: @@ -2482,19 +2482,19 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"80f28d74-ad6a-4649-894c-dc20fcacb50b","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}]}' + string: '{"value":[{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}]}' headers: cache-control: - no-cache content-length: - - '704' + - '700' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:56 GMT + - Thu, 09 Apr 2020 15:42:32 GMT expires: - '-1' pragma: @@ -2520,7 +2520,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare share-subscription list-synchronization + - datashare consumer share-subscription synchronization list Connection: - keep-alive Content-Length: @@ -2531,10 +2531,10 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/listSynchronizations?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/listSynchronizations?api-version=2019-11-01 response: body: - string: '{"value":[{"status":"Queued","synchronizationId":"926ec24c-bb33-4f61-aa05-cc4a85692367","synchronizationMode":"Incremental"}]}' + string: '{"value":[{"status":"Queued","synchronizationId":"915c018b-751d-4204-a394-89d89aee35b9","synchronizationMode":"Incremental"}]}' headers: cache-control: - no-cache @@ -2543,7 +2543,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:03:58 GMT + - Thu, 09 Apr 2020 15:42:34 GMT expires: - '-1' pragma: @@ -2559,7 +2559,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -2571,7 +2571,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare share-subscription list-source-share-synchronization-setting + - datashare consumer share-subscription list-source-share-synchronization-setting Connection: - keep-alive Content-Length: @@ -2582,7 +2582,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/listSourceShareSynchronizationSettings?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/listSourceShareSynchronizationSettings?api-version=2019-11-01 response: body: string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z"},"kind":"ScheduleBased"}]}' @@ -2594,7 +2594,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:01 GMT + - Thu, 09 Apr 2020 15:42:36 GMT expires: - '-1' pragma: @@ -2610,7 +2610,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -2623,7 +2623,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare trigger create + - datashare consumer trigger create Connection: - keep-alive Content-Length: @@ -2637,24 +2637,24 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:04:04.3645319Z","userName":"Allen - Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:42:38.6650243Z","userName":"Allen + Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' headers: cache-control: - no-cache content-length: - - '574' + - '570' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:04 GMT + - Thu, 09 Apr 2020 15:42:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 pragma: - no-cache server: @@ -2664,7 +2664,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -2676,7 +2676,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare trigger show + - datashare consumer trigger show Connection: - keep-alive ParameterSetName: @@ -2685,20 +2685,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:04:04.3645319Z","userName":"Allen - Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:42:38.6650243Z","userName":"Allen + Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' headers: cache-control: - no-cache content-length: - - '574' + - '570' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:06 GMT + - Thu, 09 Apr 2020 15:42:40 GMT expires: - '-1' pragma: @@ -2724,7 +2724,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare trigger list + - datashare consumer trigger list Connection: - keep-alive ParameterSetName: @@ -2733,20 +2733,20 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-07T11:04:04.3645319Z","userName":"Allen - Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}]}' + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:42:38.6650243Z","userName":"Allen + Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}]}' headers: cache-control: - no-cache content-length: - - '586' + - '582' content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:07 GMT + - Thu, 09 Apr 2020 15:42:42 GMT expires: - '-1' pragma: @@ -2781,12 +2781,12 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen - Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + string: '{"value":[{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache @@ -2795,7 +2795,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:08 GMT + - Thu, 09 Apr 2020 15:42:44 GMT expires: - '-1' pragma: @@ -2830,12 +2830,12 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen - Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache @@ -2844,7 +2844,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:10 GMT + - Thu, 09 Apr 2020 15:42:45 GMT expires: - '-1' pragma: @@ -2881,15 +2881,15 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995/revoke?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac/revoke?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen - Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/d4f32811-7f58-4819-92c0-0c0bc524e43a?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/5d848d60-ae6e-4f04-851c-18778d2629bd?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -2897,11 +2897,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:11 GMT + - Thu, 09 Apr 2020 15:42:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac?api-version=2019-11-01 pragma: - no-cache server: @@ -2911,7 +2911,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -2934,12 +2934,12 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995/reinstate?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac/reinstate?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"2b45c0ed-244f-4ba5-b452-afefd4327995","consumerName":"Allen - Zhou","createdAt":"2020-04-07T11:03:14.8382416Z","sharedAt":"2020-04-07T11:00:40.2808409Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/2b45c0ed-244f-4ba5-b452-afefd4327995","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache @@ -2948,7 +2948,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 07 Apr 2020 11:04:19 GMT + - Thu, 09 Apr 2020 15:42:55 GMT expires: - '-1' pragma: @@ -2987,7 +2987,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: string: '' @@ -2997,11 +2997,11 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:22 GMT + - Thu, 09 Apr 2020 15:42:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/d20a2b67-9691-4ad3-83d1-0011b91e0080?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/57652552-baa1-4d9b-8d08-98e78edda366?api-version=2019-11-01 pragma: - no-cache server: @@ -3011,7 +3011,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -3034,7 +3034,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: string: '' @@ -3044,7 +3044,7 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:24 GMT + - Thu, 09 Apr 2020 15:42:59 GMT expires: - '-1' pragma: @@ -3057,7 +3057,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_ldm7ubwe6uhdwee5s54if3kzuxrlslx7szbx2yblxck2l4bmyjqbslkorsahcfw5yg/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: @@ -3082,7 +3082,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: string: '' @@ -3092,11 +3092,11 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:25 GMT + - Thu, 09 Apr 2020 15:43:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/28699e9d-b468-4c5f-ab5d-9cd8f8c06a98?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/53b215ff-2f66-4810-bb0d-4fd68ba7288b?api-version=2019-11-01 pragma: - no-cache server: @@ -3129,7 +3129,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: string: '' @@ -3139,11 +3139,11 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:28 GMT + - Thu, 09 Apr 2020 15:43:04 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/6b2320bd-b020-420e-87d3-70f71b8b50c6?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/756eb80a-c3d7-47c3-a99c-a4c876fe2d35?api-version=2019-11-01 pragma: - no-cache server: @@ -3153,7 +3153,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14997' status: code: 202 message: Accepted @@ -3165,7 +3165,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare trigger delete + - datashare consumer trigger delete Connection: - keep-alive Content-Length: @@ -3176,7 +3176,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 response: body: string: '' @@ -3186,11 +3186,11 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:31 GMT + - Thu, 09 Apr 2020 15:43:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/6fc3ec6b-0d45-483a-ad25-dbf700da14de?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/4d84b418-b1f7-40bc-9ac3-41ec5857471e?api-version=2019-11-01 pragma: - no-cache server: @@ -3212,7 +3212,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare dataset-mapping delete + - datashare consumer dataset-mapping delete Connection: - keep-alive Content-Length: @@ -3223,7 +3223,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: string: '' @@ -3233,7 +3233,7 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:36 GMT + - Thu, 09 Apr 2020 15:43:07 GMT expires: - '-1' pragma: @@ -3246,7 +3246,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSetMapping resource - quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' + quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: @@ -3260,7 +3260,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - datashare share-subscription delete + - datashare consumer share-subscription delete Connection: - keep-alive Content-Length: @@ -3271,7 +3271,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: string: '' @@ -3281,11 +3281,11 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:39 GMT + - Thu, 09 Apr 2020 15:43:09 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/5823551b-f668-4440-a05d-13bad1c95547?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/377bed37-32c8-413e-b9c4-69d0dc9c8870?api-version=2019-11-01 pragma: - no-cache server: @@ -3295,7 +3295,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted @@ -3318,7 +3318,7 @@ interactions: - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_acc_consumer_account?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: string: '' @@ -3328,11 +3328,11 @@ interactions: content-length: - '0' date: - - Tue, 07 Apr 2020 11:04:41 GMT + - Thu, 09 Apr 2020 15:43:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/bbe8a747-f003-4999-b2d9-92dc01f2c55c?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/63332f1a-96ec-445e-839f-d32d9cb8b534?api-version=2019-11-01 pragma: - no-cache server: @@ -3342,7 +3342,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index 6c2b73d447c..b844044cc68 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -14,8 +14,8 @@ class DataShareManagementClientScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='cli_test_datashare_provider_rg'[:9], location='westus2', key='ProviderResourceGroup') - @StorageAccountPreparer(name_prefix='clitestdatashareprovidersa'[:9], location='westus2', key='ProviderStorageAccount') + @ResourceGroupPreparer(name_prefix='cli_test_datashare_provider_rg'[:12], location='westus2', key='ProviderResourceGroup') + @StorageAccountPreparer(name_prefix='clitestdatashareprovidersa'[:12], location='westus2', key='ProviderStorageAccount') @AllowLargeResponse() def test_datashare(self, resource_group, storage_account): @@ -26,7 +26,7 @@ def test_datashare(self, resource_group, storage_account): 'ProviderEmail': 'feng.zhou@microsoft.com', 'ConsumerEmail': 'fengzhou810@163.com', 'ProviderAccount': 'cli_test_account', - 'ConsumerAccount': 'cli_test_acc_consumer_account', + 'ConsumerAccount': 'cli_test_consumer_account', 'ProviderDataset': 'cli_test_data_set', 'ConsumerDatasetMapping': 'cli_test_data_set_mapping', 'ProviderInvitation': 'cli_test_invitation', @@ -224,13 +224,13 @@ def test_datashare(self, resource_group, storage_account): self.check('[0].resourceGroup', '{ProviderResourceGroup}'), self.check('[0].synchronizationTime', '2020-04-05T10:50:00+00:00')]) - self.cmd('az datashare list-synchronization ' + self.cmd('az datashare synchronization list ' '--account-name "{ProviderAccount}" ' '--resource-group "{ProviderResourceGroup}" ' '--share-name "{ProviderShare}"', checks=[]) - # self.cmd('az datashare list-synchronization-detail ' + # self.cmd('az datashare synchronization list-detail ' # '--account-name "{ProviderAccount}" ' # '--resource-group "{ProviderResourceGroup}" ' # '--share-name "{ProviderShare}" ' @@ -278,7 +278,7 @@ def test_datashare(self, resource_group, storage_account): self.check('location', 'westus2'), self.check('resourceGroup', '{ConsumerResourceGroup}')]).get_output_in_json() - invitations = self.cmd('az datashare consumer-invitation list ' + invitations = self.cmd('az datashare consumer invitation list ' '--subscription "{ConsumerSubscription}"', checks=[self.check('[0].invitationStatus', 'Pending'), self.check('[0].name', '{ProviderInvitation}'), @@ -290,7 +290,7 @@ def test_datashare(self, resource_group, storage_account): self.kwargs.update({'InvitationId1': invitationId, 'Location1': sourceShareLocation}) - self.cmd('az datashare consumer-invitation show ' + self.cmd('az datashare consumer invitation show ' '--invitation-id "{InvitationId1}" ' '--subscription "{ConsumerSubscription}"', checks=[self.check('invitationStatus', 'Pending'), @@ -298,7 +298,7 @@ def test_datashare(self, resource_group, storage_account): self.check('shareName', '{ProviderShare}'), self.check('providerEmail', '{ProviderEmail}')]) -# self.cmd('az datashare consumer-invitation reject-invitation ' +# self.cmd('az datashare consumer invitation reject-invitation ' # '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' # checks=[]) @@ -309,7 +309,7 @@ def test_datashare(self, resource_group, storage_account): '--subscription "{ConsumerSubscription}"', checks=[]) - self.cmd('az datashare share-subscription create ' + self.cmd('az datashare consumer share-subscription create ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--invitation-id "{InvitationId1}" ' @@ -323,7 +323,7 @@ def test_datashare(self, resource_group, storage_account): self.check('shareKind', 'CopyBased'), self.check('sourceShareLocation', '{Location1}')]) - self.cmd('az datashare share-subscription show ' + self.cmd('az datashare consumer share-subscription show ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--name "{ConsumerShareSubscription}" ' @@ -335,7 +335,7 @@ def test_datashare(self, resource_group, storage_account): self.check('shareKind', 'CopyBased'), self.check('sourceShareLocation', '{Location1}')]) - self.cmd('az datashare share-subscription list ' + self.cmd('az datashare consumer share-subscription list ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--subscription "{ConsumerSubscription}"', @@ -346,7 +346,7 @@ def test_datashare(self, resource_group, storage_account): self.check('[0].shareKind', 'CopyBased'), self.check('[0].sourceShareLocation', '{Location1}')]) - sourceDatasets = self.cmd('az datashare consumer-source-dataset list ' + sourceDatasets = self.cmd('az datashare consumer share-subscription list-source-dataset ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -383,7 +383,7 @@ def test_datashare(self, resource_group, storage_account): self.kwargs.update({ 'ConsumerDatasetMappingContent': datasetMappingContent }) - self.cmd('az datashare dataset-mapping create ' + self.cmd('az datashare consumer dataset-mapping create ' '--account-name "{ConsumerAccount}" ' '--name "{ConsumerDatasetMapping}" ' '--resource-group "{ConsumerResourceGroup}" ' @@ -395,7 +395,7 @@ def test_datashare(self, resource_group, storage_account): self.check('prefix', '{ProviderDataset}'), self.check('storageAccountName', '{ConsumerStorageAccount}')]) - self.cmd('az datashare share-subscription synchronize ' + self.cmd('az datashare consumer share-subscription synchronization start ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -404,7 +404,7 @@ def test_datashare(self, resource_group, storage_account): checks=[self.check('status', 'Queued'), self.check('synchronizationMode', 'Incremental')]) - self.cmd('az datashare dataset-mapping show ' + self.cmd('az datashare consumer dataset-mapping show ' '--account-name "{ConsumerAccount}" ' '--name "{ConsumerDatasetMapping}" ' '--resource-group "{ConsumerResourceGroup}" ' @@ -415,7 +415,7 @@ def test_datashare(self, resource_group, storage_account): self.check('prefix', '{ProviderDataset}'), self.check('storageAccountName', '{ConsumerStorageAccount}')]) - self.cmd('az datashare dataset-mapping list ' + self.cmd('az datashare consumer dataset-mapping list ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -425,14 +425,14 @@ def test_datashare(self, resource_group, storage_account): self.check('[0].prefix', '{ProviderDataset}'), self.check('[0].storageAccountName', '{ConsumerStorageAccount}')]) - self.cmd('az datashare share-subscription list-synchronization ' + self.cmd('az datashare consumer share-subscription synchronization list ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' '--subscription "{ConsumerSubscription}"', checks=[self.check('[0].synchronizationMode', 'Incremental')]) -# self.cmd('az datashare share-subscription list-synchronization-detail ' +# self.cmd('az datashare consumer share-subscription synchronization list-detail ' # '--account-name "{ConsumerAccount}" ' # '--resource-group "{ConsumerResourceGroup}" ' # '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -440,7 +440,7 @@ def test_datashare(self, resource_group, storage_account): # '--subscription "{ConsumerSubscription}"', # checks=[]) -# self.cmd('az datashare share-subscription cancel-synchronization ' +# self.cmd('az datashare consumer share-subscription synchronization cancel ' # '--account-name "{ConsumerAccount}" ' # '--resource-group "{ConsumerResourceGroup}" ' # '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -448,7 +448,7 @@ def test_datashare(self, resource_group, storage_account): # '--subscription "{ConsumerSubscription}"', # checks=[]) - self.cmd('az datashare share-subscription list-source-share-synchronization-setting ' + self.cmd('az datashare consumer share-subscription list-source-share-synchronization-setting ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -458,7 +458,7 @@ def test_datashare(self, resource_group, storage_account): triggerContent = {"kind": "ScheduleBased", "recurrenceInterval": "Day", "synchronizationTime": "2020-04-05T10:50:00+00:00"} self.kwargs.update({'TriggerContent': triggerContent}) - self.cmd('az datashare trigger create ' + self.cmd('az datashare consumer trigger create ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -468,7 +468,7 @@ def test_datashare(self, resource_group, storage_account): checks=[self.check('properties.recurrenceInterval', 'Day'), # TODO properties is not removed in the response structure self.check('properties.synchronizationMode', 'Incremental')]) - self.cmd('az datashare trigger show ' + self.cmd('az datashare consumer trigger show ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -477,7 +477,7 @@ def test_datashare(self, resource_group, storage_account): checks=[self.check('recurrenceInterval', 'Day'), self.check('synchronizationMode', 'Incremental')]) - self.cmd('az datashare trigger list ' + self.cmd('az datashare consumer trigger list ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -572,7 +572,7 @@ def test_datashare(self, resource_group, storage_account): '--yes', checks=[]) - self.cmd('az datashare trigger delete ' + self.cmd('az datashare consumer trigger delete ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' @@ -580,7 +580,7 @@ def test_datashare(self, resource_group, storage_account): '--yes ' '--subscription "{ConsumerSubscription}"', checks=[]) - self.cmd('az datashare dataset-mapping delete ' + self.cmd('az datashare consumer dataset-mapping delete ' '--account-name "{ConsumerAccount}" ' '--name "{ConsumerDatasetMapping}" ' '--resource-group "{ConsumerResourceGroup}" ' @@ -588,7 +588,7 @@ def test_datashare(self, resource_group, storage_account): '--yes ' '--subscription "{ConsumerSubscription}"', checks=[]) - self.cmd('az datashare share-subscription delete ' + self.cmd('az datashare consumer share-subscription delete ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--name "{ConsumerShareSubscription}" ' From 2fedea25c81751d42300ece2ba3fcf4662ea2f1f Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Fri, 10 Apr 2020 23:18:35 +0800 Subject: [PATCH 11/23] add README --- src/datashare/README.md | 196 ++++++++++++++++++ src/datashare/README.rst | 5 - .../latest/recordings/test_datashare.yaml | 86 ++++---- .../tests/latest/test_datashare_scenario.py | 4 +- src/datashare/setup.py | 2 +- 5 files changed, 242 insertions(+), 51 deletions(-) create mode 100644 src/datashare/README.md delete mode 100644 src/datashare/README.rst diff --git a/src/datashare/README.md b/src/datashare/README.md new file mode 100644 index 00000000000..033407a76e8 --- /dev/null +++ b/src/datashare/README.md @@ -0,0 +1,196 @@ +# Azure CLI datashare Extension # +This package is for the 'datashare' extension, i.e. 'az datashare'. More info on what is [Data Share](https://docs.microsoft.com/azure/data-share/). + +### How to use ### +Install this extension using the below CLI command +``` +az extension add --name datashare +``` + +Register DataShare Resource Provider for your default susbcription. +``` +az provider register -n "Microsoft.DataShare" +``` + +### Included Features +#### Datashare Account Management: +*Examples:* + +##### Create a Datashare Account + +``` +az datashare account create \ +--identity type=SystemAssigned \ +--location "West US 2" \ +--tags tag1=Red tag2=White \ +--name "cli_test_account" \ +--resource-group "datashare_provider_rg" +``` + +##### Wait for the Datashare Account to be provisioned +``` +az datashare account wait \ +--name "cli_test_account" \ +--resource-group "datashare_provider_rg" \ +--created +``` + +#### Datashare Resource Management for a Provider: +*Examples:* + +##### Create a Datashare +``` +az datashare create \ +--account-name "cli_test_account" \ +--resource-group "datashare_provider_rg" \ +--description "share description" \ +--share-kind "CopyBased" \ +--terms "Confidential" \ +--name "cli_test_share" +``` + +##### Create a Data Set +``` +az datashare dataset create \ +--account-name "cli_test_account" \ +--name "cli_test_data_set" \ +--resource-group "datashare_provider_rg" \ +--share-name "cli_test_share" \ +--dataset "{\"container_name\":\"mycontainer\",\"storage_account_name\":\"mysa\",\"kind\":\"Container\"}" +``` + +Please make sure the datashare account has the right permission to the data source when creating a data set upon it. +For instance, you can use `az datashare account show` to get 'identity.principalId' in the result, then assign the right role to it. +``` +az role assignment create \ +--role "Storage Blob Data Reader" \ +--assignee-object-id {DatashareAccountPrincipalId} \ +--assignee-principal-type ServicePrincipal \ +--scope {StorageAccountId} +``` + +##### Create a Synchronization Setting +``` +az datashare synchronization-setting create \ +--account-name "cli_test_account" \ +--resource-group "datashare_provider_rg" \ +--share-name "cli_test_share" \ +--name "cli_test_synchronization_setting" \ +--setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" +``` + +##### List Synchronization History +``` +az datashare synchronization list \ +--account-name "cli_test_account" \ +--resource-group "datashare_provider_rg" \ +--share-name "cli_test_share" +``` + +##### Create a Datashare Invitation +``` +az datashare invitation create \ +--account-name "cli_test_account" \ +--target-email "myname@microsoft.com" \ +--name "cli_test_invitation" \ +--resource-group "datashare_provider_rg" \ +--share-name "cli_test_share" +``` + +##### List Share Subscriptions +``` +az datashare provider-share-subscription list \ +--account-name "cli_test_account" \ +--resource-group "datashare_provider_rg" \ +--share-name "cli_test_share" +``` +Share subscriptions are created by Datashare consumers when they accept invitations. + +##### Revoke Datashare for a Share Subscription +az datashare provider-share-subscription revoke \ +--account-name "cli_test_account" \ +--share-subscription "{ProviderShareSubscriptionObjectId}" \ +--resource-group "datashare_provider_rg" \ +--share-name "cli_test_share" + +##### Reinstate Datashare for a Share Subscription +az datashare provider-share-subscription reinstate \ +--account-name "cli_test_account" \ +--share-subscription "{ProviderShareSubscriptionObjectId}" \ +--resource-group "datashare_provider_rg" \ +--share-name "cli_test_share" + +#### Datashare Resource Management for a Consumer: +*Examples:* + +##### List received Invitations +``` +az datashare consumer invitation list +``` + +##### Create a Share Subscription from an Invitation +``` +az datashare consumer share-subscription create \ +--account-name "cli_test_consumer_account" \ +--resource-group "datashare_consumer_rg" \ +--invitation-id "{InvitationId1}" \ +--source-share-location "sourceShareLocation" \ +--name "cli_test_share_subscription" +``` + +##### List Source Data Sets in the Share Subscription +``` +az datashare consumer share-subscription list-source-dataset \ +--account-name "cli_test_consumer_account" \ +--resource-group "datashare_consumer_rg" \ +--share-subscription-name "cli_test_share_subscription" +``` + +##### Create a Data Set Mapping of the Source Data Set +``` +az datashare consumer dataset-mapping create \ +--account-name "cli_test_consumer_account" \ +--name "cli_test_data_set_mapping" \ +--resource-group "datashare_consumer_rg" \ +--share-subscription-name "cli_test_share_subscription" \ +--mapping "{\"data_set_id\":\"2036a39f-add6-4347-9c82-a424dfaf4e8d\", \ +\"container_name\":\"newcontainer\", \"storage_account_name\":\"consumersa\", \ +\"kind\":\"BlobFolder\",\"prefix\":\"myprefix\"}" +``` +Please make sure the datashare account has the right permission to the data target when creating a data set mapping on it. +For instance, you can use `az datashare account show` to get 'identity.principalId' in the result, then assign the right role to it. +``` +az role assignment create \ +--role "Storage Blob Data Contributor" \ +--assignee-object-id "{ConsumerDatashareAccountPrincipalId}" \ +--assignee-principal-type ServicePrincipal \ +--scope "{ConsumerStorageAccountId}" +``` + +##### List the synchronization settings of the Source Datashare +``` +az datashare consumer share-subscription list-source-share-synchronization-setting \ +--account-name "cli_test_consumer_account" \ +--resource-group "datashare_consumer_rg" \ +--share-subscription-name "cli_test_share_subscription" +``` + +##### Create a trigger for the Share Subsciption +``` +az datashare consumer trigger create \ +--account-name "cli_test_consumer_account" \ +--resource-group "datashare_consumer_rg" \ +--share-subscription-name "cli_test_share_subscription" \ +--name "cli_test_trigger" \ +--trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\", \ +\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" +``` + +##### Start a synchronization for the Share Subscription +``` +az datashare consumer share-subscription synchronization start \ +--account-name "cli_test_consumer_account" \ +--resource-group "datashare_consumer_rg" \ +--share-subscription-name "cli_test_share_subscription" \ +--synchronization-mode "Incremental" +``` diff --git a/src/datashare/README.rst b/src/datashare/README.rst deleted file mode 100644 index 07996185302..00000000000 --- a/src/datashare/README.rst +++ /dev/null @@ -1,5 +0,0 @@ -Microsoft Azure CLI 'datashare' Extension -========================================== - -This package is for the 'datashare' extension. -i.e. 'az datashare' diff --git a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml index b447e7ee01a..2b6b8a2a09d 100644 --- a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml +++ b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml @@ -108,7 +108,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -159,7 +159,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -207,7 +207,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -255,7 +255,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -303,7 +303,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -351,7 +351,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -399,7 +399,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -447,7 +447,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache @@ -495,7 +495,7 @@ interactions: response: body: string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' headers: cache-control: - no-cache @@ -547,7 +547,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' headers: cache-control: - no-cache @@ -602,7 +602,7 @@ interactions: response: body: string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache @@ -653,7 +653,7 @@ interactions: response: body: string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache @@ -701,7 +701,7 @@ interactions: response: body: string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: - no-cache @@ -749,7 +749,7 @@ interactions: response: body: string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}]}' + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}]}' headers: cache-control: - no-cache @@ -1373,7 +1373,7 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"targetEmail": "fengzhou810@163.com"}}' + body: '{"properties": {"targetEmail": "consumer@microsoft.com"}}' headers: Accept: - application/json @@ -1396,8 +1396,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' + string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: - no-cache @@ -1444,8 +1444,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}]}' + string: '{"value":[{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}]}' headers: cache-control: - no-cache @@ -1492,8 +1492,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"fengzhou810@163.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng - Zhou","userEmail":"feng.zhou@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' + string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: - no-cache @@ -1630,7 +1630,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache @@ -1681,7 +1681,7 @@ interactions: response: body: string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-09T15:39:29.2224301Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' headers: cache-control: - no-cache @@ -1732,7 +1732,7 @@ interactions: response: body: string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-09T15:39:29.2224301Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' headers: cache-control: - no-cache @@ -1780,7 +1780,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache @@ -1828,7 +1828,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache @@ -1876,7 +1876,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache @@ -1924,7 +1924,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache @@ -1972,7 +1972,7 @@ interactions: response: body: string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Succeeded","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache @@ -2027,8 +2027,8 @@ interactions: body: string: '{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache @@ -2080,8 +2080,8 @@ interactions: body: string: '{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache @@ -2130,8 +2130,8 @@ interactions: body: string: '{"value":[{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng - Zhou","providerEmail":"feng.zhou@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen - Zhou","userEmail":"fengzhou810@163.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache @@ -2785,8 +2785,8 @@ interactions: response: body: string: '{"value":[{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache @@ -2834,8 +2834,8 @@ interactions: response: body: string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache @@ -2885,8 +2885,8 @@ interactions: response: body: string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: azure-asyncoperation: - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/5d848d60-ae6e-4f04-851c-18778d2629bd?api-version=2019-11-01 @@ -2938,8 +2938,8 @@ interactions: response: body: string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"fengzhou810@163.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"feng.zhou@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index b844044cc68..c475ccbde2e 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -23,8 +23,8 @@ def test_datashare(self, resource_group, storage_account): 'ConsumerSubscription': '00000000-0000-0000-0000-000000000000', # change this value in live test 'ConsumerResourceGroup': 'datashare_consumer_rg', # this is a pre-existing reosurce group in consumer subscription 'ConsumerStorageAccount': 'datashareconsumersa', # this is a pre-existing storage account in consumer subscription - 'ProviderEmail': 'feng.zhou@microsoft.com', - 'ConsumerEmail': 'fengzhou810@163.com', + 'ProviderEmail': 'provider@microsoft.com', # change this value in live test + 'ConsumerEmail': 'consumer@microsoft.com', # change this value in live test 'ProviderAccount': 'cli_test_account', 'ConsumerAccount': 'cli_test_consumer_account', 'ProviderDataset': 'cli_test_data_set', diff --git a/src/datashare/setup.py b/src/datashare/setup.py index d58a692c6b8..172005632aa 100644 --- a/src/datashare/setup.py +++ b/src/datashare/setup.py @@ -35,7 +35,7 @@ # TODO: Add any additional SDK dependencies here DEPENDENCIES = [] -with open('README.rst', 'r', encoding='utf-8') as f: +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() From 306793f79997be48655ad7aeb6d66a403ebf3e18 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Sun, 12 Apr 2020 13:05:18 +0800 Subject: [PATCH 12/23] add wait command for datashare consumer share-subscription synchronization --- src/datashare/README.md | 7 +- src/datashare/azext_datashare/__init__.py | 2 +- src/datashare/azext_datashare/manual/_help.py | 10 + .../azext_datashare/manual/_params.py | 174 +++++++++--------- .../azext_datashare/manual/commands.py | 1 + .../azext_datashare/manual/custom.py | 14 ++ 6 files changed, 121 insertions(+), 87 deletions(-) diff --git a/src/datashare/README.md b/src/datashare/README.md index 033407a76e8..69cc1e0e44a 100644 --- a/src/datashare/README.md +++ b/src/datashare/README.md @@ -59,8 +59,8 @@ az datashare dataset create \ --dataset "{\"container_name\":\"mycontainer\",\"storage_account_name\":\"mysa\",\"kind\":\"Container\"}" ``` -Please make sure the datashare account has the right permission to the data source when creating a data set upon it. -For instance, you can use `az datashare account show` to get 'identity.principalId' in the result, then assign the right role to it. +Please make sure the datashare account has the right permission of the data source when creating a data set upon it. +For instance, you can use `az datashare account show` to get 'identity.principalId' of the account, then assign the right role to it. ``` az role assignment create \ --role "Storage Blob Data Reader" \ @@ -157,8 +157,7 @@ az datashare consumer dataset-mapping create \ \"container_name\":\"newcontainer\", \"storage_account_name\":\"consumersa\", \ \"kind\":\"BlobFolder\",\"prefix\":\"myprefix\"}" ``` -Please make sure the datashare account has the right permission to the data target when creating a data set mapping on it. -For instance, you can use `az datashare account show` to get 'identity.principalId' in the result, then assign the right role to it. +Please make sure the datashare consumer account has the right permission of the data target when creating a data set mapping on it. For instance, you can use `az datashare account show` to get 'identity.principalId' of the account, then assign the right role to it. ``` az role assignment create \ --role "Storage Blob Data Contributor" \ diff --git a/src/datashare/azext_datashare/__init__.py b/src/datashare/azext_datashare/__init__.py index d19287e47d7..fa1860db449 100644 --- a/src/datashare/azext_datashare/__init__.py +++ b/src/datashare/azext_datashare/__init__.py @@ -15,7 +15,7 @@ def __init__(self, cli_ctx=None): from azure.cli.core.commands import CliCommandType from azext_datashare.generated._client_factory import cf_datashare datashare_custom = CliCommandType( - operations_tmpl='azext_datashare.custom#{}', + operations_tmpl='azext_datashare.manual.custom#{}', # modified client_factory=cf_datashare) super(DataShareManagementClientCommandsLoader, self).__init__(cli_ctx=cli_ctx, custom_command_type=datashare_custom) diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 67e643d32ab..d360ca7434a 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -474,6 +474,16 @@ az datashare consumer share-subscription synchronization cancel --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" """ +helps['datashare consumer share-subscription synchronization wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the datashare share subscription synchronization is met. + examples: + - name: Pause executing next line of CLI script until the datashare share subscription synchronization finishes successfully. + text: az datashare consumer share-subscription synchronization wait --custom "status=='Succeeded'" --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + - name: Pause executing next line of CLI script until the datashare share subscription synchronization is cancelled. + text: az datashare consumer share-subscription synchronization wait --custom "status=='Cancelled'" --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" +""" + helps['datashare consumer share-subscription list-source-share-synchronization-setting'] = """ type: command short-summary: List synchronization settings set on a share diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 61583fd0f07..0da90c03b5c 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -48,16 +48,31 @@ def load_arguments(self, _): with self.argument_context('datashare account wait') as c: c.argument('account_name', options_list=['--name', '-n'], id_part='name', help='The name of the share account.') # modified - with self.argument_context('datashare consumer invitation list') as c: - pass + with self.argument_context('datashare list') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', help='The name of the share account.') - with self.argument_context('datashare consumer invitation show') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified - c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') + with self.argument_context('datashare show') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified - with self.argument_context('datashare consumer invitation reject-invitation') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified - c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') # modified + with self.argument_context('datashare create') as c: # modified + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', help='The name of the share account.') + c.argument('share_name', options_list=['--name', '-n'], help='The name of the share.') # modified + c.argument('description', help='Share description.') # modified + c.argument('share_kind', arg_type=get_enum_type(ShareKind), help='Share kind.') # modified + c.argument('terms', help='Share terms.') # modified + + with self.argument_context('datashare delete') as c: + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified + + with self.argument_context('datashare wait') as c: + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified with self.argument_context('datashare dataset list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified @@ -84,37 +99,10 @@ def load_arguments(self, _): c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataset.') # modified with self.argument_context('datashare dataset wait') as c: + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('data_set_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the dataset.') # modified - with self.argument_context('datashare consumer dataset-mapping list') as c: # modified - c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the share subscription.') - - with self.argument_context('datashare consumer dataset-mapping show') as c: # modified - c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', id_part='name', help='The name of the share account.') - c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') - c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - - with self.argument_context('datashare consumer dataset-mapping create') as c: # modified - c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the share subscription.') - c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - c.argument('data_set_mapping', options_list=['--mapping'], type=validate_file_or_dict, help='Dataset mapping in JSON string or path to JSON file.') # modified - - with self.argument_context('datashare consumer dataset-mapping delete') as c: # modified - c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', id_part='name', help='The name of the share account.') - c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') - c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - - with self.argument_context('datashare consumer dataset-mapping wait') as c: - c.argument('account_name', id_part='name', help='The name of the share account.') - c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') - c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - with self.argument_context('datashare invitation list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -141,43 +129,46 @@ def load_arguments(self, _): c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('invitation_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the invitation.') # modified - with self.argument_context('datashare list') as c: # modified + with self.argument_context('datashare synchronization-setting list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') + c.argument('share_name', help='The name of the share.') - with self.argument_context('datashare show') as c: # modified + with self.argument_context('datashare synchronization-setting show') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified - with self.argument_context('datashare create') as c: # modified + with self.argument_context('datashare synchronization-setting create') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_name', options_list=['--name', '-n'], help='The name of the share.') # modified - c.argument('description', help='Share description.') # modified - c.argument('share_kind', arg_type=get_enum_type(ShareKind), help='Share kind.') # modified - c.argument('terms', help='Share terms.') # modified + c.argument('share_name', help='The name of the share.') + c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified + c.argument('synchronization_setting', options_list=['--setting'], type=validate_file_or_dict, help='Synchronization settings in JSON string or path to JSON file.') - with self.argument_context('datashare delete') as c: + with self.argument_context('datashare synchronization-setting delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified + + with self.argument_context('datashare synchronization-setting wait') as c: + c.argument('account_name', id_part='name', help='The name of the share account.') # modified + c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified + c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified with self.argument_context('datashare synchronization list-detail') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') # modified c.argument('share_name', help='The name of the share.') # modified - c.argument('synchronization_id', help='Synchronization id') + c.argument('synchronization_id', help='The synchronization GUID.') with self.argument_context('datashare synchronization list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') # modified c.argument('share_name', help='The name of the share.') # modified - with self.argument_context('datashare wait') as c: - c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share.') # modified - with self.argument_context('datashare provider-share-subscription list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -206,6 +197,17 @@ def load_arguments(self, _): c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified c.argument('provider_share_subscription_id', options_list=['--share-subscription'], id_part='child_name_2', help='To locate share subscription') # modified + with self.argument_context('datashare consumer invitation list') as c: + pass + + with self.argument_context('datashare consumer invitation show') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified + c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') + + with self.argument_context('datashare consumer invitation reject-invitation') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified + c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') # modified + with self.argument_context('datashare consumer share-subscription list') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') @@ -216,80 +218,88 @@ def load_arguments(self, _): c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share subscription.') # modified with self.argument_context('datashare consumer share-subscription create') as c: + from azure.cli.core.commands.parameters import get_location_name_type, get_location_completion_list c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', options_list=['--name', '-n'], help='The name of the share subscription.') # modified c.argument('invitation_id', validator=invitation_id_validator, help='The invitation id.') # modified - c.argument('source_share_location', help='Source share location.') # modified + c.argument('source_share_location', type=get_location_name_type(self.cli_ctx), help='Source share location.', completer=get_location_completion_list) # modified with self.argument_context('datashare consumer share-subscription delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', id_part='name', help='The name of the share account.') # modified c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share subscription.') # modified - with self.argument_context('datashare consumer share-subscription synchronization start') as c: + with self.argument_context('datashare consumer share-subscription list-source-share-synchronization-setting') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the share subscription.') - c.argument('synchronization_mode', arg_type=get_enum_type(SynchronizationMode), help='Synchronization mode') # modified - with self.argument_context('datashare consumer share-subscription synchronization cancel') as c: + with self.argument_context('datashare consumer share-subscription list-source-dataset') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the share subscription.') - c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare consumer share-subscription synchronization list') as c: + with self.argument_context('datashare consumer share-subscription wait') as c: + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share subscription.') # modified + + with self.argument_context('datashare consumer share-subscription synchronization start') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('synchronization_mode', arg_type=get_enum_type(SynchronizationMode), help='Synchronization mode') # modified - with self.argument_context('datashare consumer share-subscription synchronization list-detail') as c: + with self.argument_context('datashare consumer share-subscription synchronization cancel') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the share subscription.') - c.argument('synchronization_id', help='Synchronization id') + c.argument('synchronization_id', help='The synchronization GUID') - with self.argument_context('datashare consumer share-subscription list-source-share-synchronization-setting') as c: - c.argument('resource_group_name', resource_group_name_type) # modified + with self.argument_context('datashare consumer share-subscription synchronization wait') as c: c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('synchronization_id', help='The synchronization GUID') - with self.argument_context('datashare consumer share-subscription wait') as c: - c.argument('account_name', id_part='name', help='The name of the share account.') - c.argument('share_subscription_name', options_list=['--name', '-n'], id_part='child_name_1', help='The name of the share subscription.') # modified + with self.argument_context('datashare consumer share-subscription synchronization list') as c: + c.argument('resource_group_name', resource_group_name_type) # modified + c.argument('account_name', help='The name of the share account.') + c.argument('share_subscription_name', help='The name of the share subscription.') - with self.argument_context('datashare consumer share-subscription list-source-dataset') as c: + with self.argument_context('datashare consumer share-subscription synchronization list-detail') as c: c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('synchronization_id', help='Synchronization id') - with self.argument_context('datashare synchronization-setting list') as c: + with self.argument_context('datashare consumer dataset-mapping list') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') + c.argument('share_subscription_name', help='The name of the share subscription.') - with self.argument_context('datashare synchronization-setting show') as c: + with self.argument_context('datashare consumer dataset-mapping show') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') + c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - with self.argument_context('datashare synchronization-setting create') as c: + with self.argument_context('datashare consumer dataset-mapping create') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified - c.argument('synchronization_setting', options_list=['--setting'], type=validate_file_or_dict, help='Synchronization settings in JSON string or path to JSON file.') + c.argument('share_subscription_name', help='The name of the share subscription.') + c.argument('data_set_mapping_name', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified + c.argument('data_set_mapping', options_list=['--mapping'], type=validate_file_or_dict, help='Dataset mapping in JSON string or path to JSON file.') # modified - with self.argument_context('datashare synchronization-setting delete') as c: + with self.argument_context('datashare consumer dataset-mapping delete') as c: # modified c.argument('resource_group_name', resource_group_name_type) # modified - c.argument('account_name', id_part='name', help='The name of the share account.') # modified - c.argument('share_name', id_part='child_name_1', help='The name of the share.') # modified - c.argument('synchronization_setting_name', options_list=['--name', '-n'], id_part='child_name_2', help='The name of the synchronizationSetting.') # modified + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') + c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified - with self.argument_context('datashare synchronization-setting wait') as c: - c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified + with self.argument_context('datashare consumer dataset-mapping wait') as c: + c.argument('account_name', id_part='name', help='The name of the share account.') + c.argument('share_subscription_name', id_part='child_name_1', help='The name of the share subscription.') + c.argument('data_set_mapping_name', id_part='child_name_2', options_list=['--name', '-n'], help='The name of the datasetMapping.') # modified with self.argument_context('datashare consumer trigger list') as c: c.argument('resource_group_name', resource_group_name_type) # modified diff --git a/src/datashare/azext_datashare/manual/commands.py b/src/datashare/azext_datashare/manual/commands.py index 77363fdcc83..44e9e8f30ee 100644 --- a/src/datashare/azext_datashare/manual/commands.py +++ b/src/datashare/azext_datashare/manual/commands.py @@ -105,6 +105,7 @@ def load_command_table(self, _): g.custom_command('list-detail', 'datashare_share_subscription_list_synchronization_detail') g.custom_command('start', 'datashare_share_subscription_synchronize', supports_no_wait=True) g.custom_command('cancel', 'datashare_share_subscription_cancel_synchronization', supports_no_wait=True) + g.custom_wait_command('wait', '_datashare_share_subscription_get_synchronization') from azext_datashare.generated._client_factory import cf_consumer_source_data_set datashare_consumer_source_data_set = CliCommandType( diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index 901ef93347b..ddbc0b3253b 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -392,6 +392,20 @@ def datashare_share_subscription_list_synchronization(cmd, client, share_subscription_name=share_subscription_name) +def _datashare_share_subscription_get_synchronization(cmd, client, + resource_group_name, + account_name, + share_subscription_name, + synchronization_id): + from knack.util import todict + from azure.cli.core.commands import AzCliCommandInvoker + result = client.list_synchronization(resource_group_name=resource_group_name, + account_name=account_name, + share_subscription_name=share_subscription_name) + result = todict(list(result), AzCliCommandInvoker.remove_additional_prop_layer) + return next((x for x in result if x['synchronizationId'] == synchronization_id), None) + + def datashare_consumer_source_data_set_list(cmd, client, resource_group_name, account_name, From f74f6718596594251fbd111ce5593ad222fe9263 Mon Sep 17 00:00:00 2001 From: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com> Date: Tue, 14 Apr 2020 21:31:54 +0800 Subject: [PATCH 13/23] Update README.md --- src/datashare/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/datashare/README.md b/src/datashare/README.md index 69cc1e0e44a..c9a47d20dc5 100644 --- a/src/datashare/README.md +++ b/src/datashare/README.md @@ -13,7 +13,7 @@ az provider register -n "Microsoft.DataShare" ``` ### Included Features -#### Datashare Account Management: +#### Datashare Account Management *Examples:* ##### Create a Datashare Account @@ -35,7 +35,7 @@ az datashare account wait \ --created ``` -#### Datashare Resource Management for a Provider: +#### Datashare Resource Management for a Provider *Examples:* ##### Create a Datashare @@ -107,20 +107,24 @@ az datashare provider-share-subscription list \ Share subscriptions are created by Datashare consumers when they accept invitations. ##### Revoke Datashare for a Share Subscription +``` az datashare provider-share-subscription revoke \ --account-name "cli_test_account" \ --share-subscription "{ProviderShareSubscriptionObjectId}" \ --resource-group "datashare_provider_rg" \ --share-name "cli_test_share" +``` ##### Reinstate Datashare for a Share Subscription +``` az datashare provider-share-subscription reinstate \ --account-name "cli_test_account" \ --share-subscription "{ProviderShareSubscriptionObjectId}" \ --resource-group "datashare_provider_rg" \ --share-name "cli_test_share" +``` -#### Datashare Resource Management for a Consumer: +#### Datashare Resource Management for a Consumer *Examples:* ##### List received Invitations From 217ef67544982e1d40e49d3650119348530b8ff5 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Tue, 14 Apr 2020 21:48:11 +0800 Subject: [PATCH 14/23] fix location --- .../azext_datashare/tests/latest/test_datashare_scenario.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index c475ccbde2e..f77dd3db655 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -292,7 +292,8 @@ def test_datashare(self, resource_group, storage_account): self.cmd('az datashare consumer invitation show ' '--invitation-id "{InvitationId1}" ' - '--subscription "{ConsumerSubscription}"', + '--subscription "{ConsumerSubscription}" ' + '--location "{Location1}"', checks=[self.check('invitationStatus', 'Pending'), self.check('name', '{ProviderInvitation}'), self.check('shareName', '{ProviderShare}'), From ab2b208882442d546718465482147d4f544faa11 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Sat, 18 Apr 2020 17:58:37 +0800 Subject: [PATCH 15/23] modify help --- src/datashare/azext_datashare/manual/_help.py | 144 +++++++++--------- .../azext_datashare/manual/_params.py | 2 +- .../azext_datashare/manual/commands.py | 2 +- .../azext_datashare/manual/custom.py | 9 -- .../tests/latest/test_datashare_scenario.py | 4 +- 5 files changed, 76 insertions(+), 85 deletions(-) diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index d360ca7434a..34475c21937 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -96,16 +96,16 @@ examples: - name: Show an invitation text: |- - az datashare consumer invitation show --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" + az datashare consumer invitation show --invitation-id 00000000-0000-0000-0000-000000000000 --location "East US 2" """ -helps['datashare consumer invitation reject-invitation'] = """ +helps['datashare consumer invitation reject'] = """ type: command short-summary: Reject an invitation examples: - name: Reject an invitation text: |- - az datashare consumer invitation reject-invitation --invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" --location "East US 2" + az datashare consumer invitation reject --invitation-id 00000000-0000-0000-0000-000000000000 --location "East US 2" """ helps['datashare dataset'] = """ @@ -119,7 +119,7 @@ examples: - name: List datasets text: |- - az datashare dataset list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset list --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare """ helps['datashare dataset show'] = """ @@ -128,7 +128,7 @@ examples: - name: Show a dataset text: |- - az datashare dataset show --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset show --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare """ helps['datashare dataset create'] = """ @@ -137,31 +137,31 @@ examples: - name: Create a Blob dataset text: |- - az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ + az datashare dataset create --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare \ --dataset "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"filePath\\":\\"file21\\",\\"resourceGroup\\": \ -\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" +\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"00000000-0000-0000-0000-000000000000\\"}}" - name: Create a KustoCluster dataset text: |- - az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ + az datashare dataset create --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare \ --dataset "{\\"kind\\":\\"KustoCluster\\",\\"properties\\":{\\"kustoClusterResourceId\\": \ -\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1\\"}}" +\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1\\"}}" - name: Create a KustoDatabase dataset text: |- - az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ + az datashare dataset create --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare \ --dataset "{\\"kind\\":\\"KustoDatabase\\",\\"properties\\":{\\"kustoDatabaseResourceId\\": \ -\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1/databases/Database1\\"}}" +\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleResourceGroup/providers/Microsoft.Kusto/clusters/Cluster1/databases/Database1\\"}}" - name: Create a SqlDBTable dataset text: |- - az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ ---dataset "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"databaseName\\":\\"SqlDB1\\",\\"schemaName\\":\\"dbo\\", \ -\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\", \ + az datashare dataset create --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare \ +--dataset "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"databaseName\\":\\"MySqlDB\\",\\"schemaName\\":\\"dbo\\", \ +\\"sqlServerResourceId\\":\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\", \ \\"tableName\\":\\"Table1\\"}}" - name: Create a SqlDWTable dataset text: |- - az datashare dataset create --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" \ ---dataset "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataWarehouseName\\":\\"DataWarehouse1\\",\\"schemaName\\":\\"dbo\\", \ -\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\ -\\",\\"tableName\\":\\"Table1\\"}}" + az datashare dataset create --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare \ +--dataset "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataWarehouseName\\":\\"MyDataWarehouse\\",\\"schemaName\\":\\"dbo\\", \ +\\"sqlServerResourceId\\":\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/MyServer\ +\\",\\"tableName\\":\\"MyTable\\"}}" """ helps['datashare dataset delete'] = """ @@ -170,7 +170,7 @@ examples: - name: Delete a dataset text: |- - az datashare dataset delete --account-name MyAccount --name "Dataset1" --resource-group MyResourceGroup --share-name "Share1" + az datashare dataset delete --account-name MyAccount --name MyDataset --resource-group MyResourceGroup --share-name MyShare """ helps['datashare dataset wait'] = """ @@ -178,7 +178,7 @@ short-summary: Place the CLI in a waiting state until a condition of the datashare dataset is met. examples: - name: Pause executing next line of CLI script until the datashare dataset is successfully provisioned. - text: az datashare dataset wait --account-name MyAccount --share-name "Share1" --name "Dataset1" --resource-group MyResourceGroup --created + text: az datashare dataset wait --account-name MyAccount --share-name MyShare --name MyDataset --resource-group MyResourceGroup --created """ helps['datashare consumer dataset-mapping'] = """ @@ -192,7 +192,7 @@ examples: - name: List dataset mappings text: |- - az datashare consumer dataset-mapping list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer dataset-mapping list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription """ helps['datashare consumer dataset-mapping show'] = """ @@ -201,7 +201,7 @@ examples: - name: Show a dataset mapping text: |- - az datashare consumer dataset-mapping show --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer dataset-mapping show --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription """ helps['datashare consumer dataset-mapping create'] = """ @@ -210,24 +210,24 @@ examples: - name: Create a Blob dataset mapping text: |- - az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ ---mapping "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"filePath\ -\\":\\"file21\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" + az datashare consumer dataset-mapping create --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription \ +--mapping "{\\"kind\\":\\"Blob\\",\\"properties\\":{\\"containerName\\":\\"C1\\",\\"dataSetId\\":\\"00000000-0000-0000-0000-000000000000\\",\\"filePath\ +\\":\\"file21\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"00000000-0000-0000-0000-000000000000\\"}}" - name: Create a SqlDBTable dataset mapping text: |- - az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ ---mapping "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"databaseName\\":\\"Database1\\"\ -,\\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" + az datashare consumer dataset-mapping create --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription \ +--mapping "{\\"kind\\":\\"SqlDBTable\\",\\"properties\\":{\\"dataSetId\\":\\"00000000-0000-0000-0000-000000000000\\",\\"databaseName\\":\\"Database1\\"\ +,\\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" - name: Create a AdlsGen2File dataset mapping text: |- - az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ ---mapping "{\\"kind\\":\\"AdlsGen2File\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"filePath\\":\\"file21\\",\\"fileSystem\\": \ -\\"fileSystem\\",\\"outputType\\":\\"Csv\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"433a8dfd-e5d5-4e77-ad86-90acdc75eb1a\\"}}" + az datashare consumer dataset-mapping create --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription \ +--mapping "{\\"kind\\":\\"AdlsGen2File\\",\\"properties\\":{\\"dataSetId\\":\\"00000000-0000-0000-0000-000000000000\\",\\"filePath\\":\\"file21\\",\\"fileSystem\\": \ +\\"fileSystem\\",\\"outputType\\":\\"Csv\\",\\"resourceGroup\\":\\"SampleResourceGroup\\",\\"storageAccountName\\":\\"storage2\\",\\"subscriptionId\\":\\"00000000-0000-0000-0000-000000000000\\"}}" - name: Create a SqlDWTable dataset mapping text: |- - az datashare consumer dataset-mapping create --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" \ ---mapping "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataSetId\\":\\"a08f184b-0567-4b11-ba22-a1199336d226\\",\\"dataWarehouseName\\":\\"DataWarehouse1\\",\ -\\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" + az datashare consumer dataset-mapping create --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription \ +--mapping "{\\"kind\\":\\"SqlDWTable\\",\\"properties\\":{\\"dataSetId\\":\\"00000000-0000-0000-0000-000000000000\\",\\"dataWarehouseName\\":\\"DataWarehouse1\\",\ +\\"schemaName\\":\\"dbo\\",\\"sqlServerResourceId\\":\\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SampleResourceGroup/providers/Microsoft.Sql/servers/Server1\\",\\"tableName\\":\\"Table1\\"}}" """ helps['datashare consumer dataset-mapping delete'] = """ @@ -236,7 +236,7 @@ examples: - name: Delete a dataset mapping text: |- - az datashare consumer dataset-mapping delete --account-name MyAccount --name "DatasetMapping1" --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer dataset-mapping delete --account-name MyAccount --name MyDatasetMapping --resource-group MyResourceGroup --share-subscription-name MyShareSubscription """ helps['datashare invitation'] = """ @@ -250,7 +250,7 @@ examples: - name: List invitations text: |- - az datashare invitation list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation list --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare """ helps['datashare invitation show'] = """ @@ -259,7 +259,7 @@ examples: - name: Show an invitation text: |- - az datashare invitation show --account-name MyAccount --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation show --account-name MyAccount --name MyInvitation --resource-group MyResourceGroup --share-name MyShare """ helps['datashare invitation create'] = """ @@ -268,7 +268,7 @@ examples: - name: Create an invitation text: |- - az datashare invitation create --account-name MyAccount --target-email "receiver@microsoft.com" --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation create --account-name MyAccount --target-email "receiver@microsoft.com" --name MyInvitation --resource-group MyResourceGroup --share-name MyShare """ helps['datashare invitation delete'] = """ @@ -277,7 +277,7 @@ examples: - name: Delete an invitation text: |- - az datashare invitation delete --account-name MyAccount --name "Invitation1" --resource-group MyResourceGroup --share-name "Share1" + az datashare invitation delete --account-name MyAccount --name MyInvitation --resource-group MyResourceGroup --share-name MyShare """ helps['datashare'] = """ @@ -300,7 +300,7 @@ examples: - name: Show a datashare text: |- - az datashare show --account-name MyAccount --resource-group MyResourceGroup --name "Share1" + az datashare show --account-name MyAccount --resource-group MyResourceGroup --name MyShare """ helps['datashare create'] = """ @@ -309,7 +309,7 @@ examples: - name: Create a datashare text: |- - az datashare create --account-name MyAccount --resource-group MyResourceGroup --description "share description" --share-kind "CopyBased" --terms "Confidential" --name "Share1" + az datashare create --account-name MyAccount --resource-group MyResourceGroup --description "share description" --share-kind "CopyBased" --terms "Confidential" --name MyShare """ helps['datashare delete'] = """ @@ -318,7 +318,7 @@ examples: - name: Delete a datashare text: |- - az datashare delete --account-name MyAccount --resource-group MyResourceGroup --name "Share1" + az datashare delete --account-name MyAccount --resource-group MyResourceGroup --name MyShare """ helps['datashare synchronization'] = """ @@ -332,7 +332,7 @@ examples: - name: List synchronization details text: |- - az datashare synchronization list-detail --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare synchronization list-detail --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare --synchronization-id 00000000-0000-0000-0000-000000000000 """ helps['datashare synchronization list'] = """ @@ -341,7 +341,7 @@ examples: - name: List synchronizations text: |- - az datashare synchronization list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" + az datashare synchronization list --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare """ helps['datashare wait'] = """ @@ -349,7 +349,7 @@ short-summary: Place the CLI in a waiting state until a condition of the datashare is met. examples: - name: Pause executing next line of CLI script until the datashare is successfully provisioned. - text: az datashare wait --account-name MyAccount --resource-group MyResourceGroup --name "Share1" --created + text: az datashare wait --account-name MyAccount --resource-group MyResourceGroup --name MyShare --created """ helps['datashare provider-share-subscription'] = """ @@ -363,7 +363,7 @@ examples: - name: List share subscriptions text: |- - az datashare provider-share-subscription list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription list --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare """ helps['datashare provider-share-subscription show'] = """ @@ -372,7 +372,7 @@ examples: - name: Show a share subscription text: |- - az datashare provider-share-subscription show --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription show --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare """ helps['datashare provider-share-subscription revoke'] = """ @@ -381,7 +381,7 @@ examples: - name: Revoke a share subscription text: |- - az datashare provider-share-subscription revoke --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription revoke --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare """ helps['datashare provider-share-subscription reinstate'] = """ @@ -390,7 +390,7 @@ examples: - name: Reinstate a share subscription text: |- - az datashare provider-share-subscription reinstate --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" + az datashare provider-share-subscription reinstate --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare """ helps['datashare provider-share-subscription wait'] = """ @@ -398,7 +398,7 @@ short-summary: Place the CLI in a waiting state until a condition of the datashare provider share subscription is met. examples: - name: Pause executing next line of CLI script until the datashare provider share subscription is successfully provisioned. - text: az datashare provider-share-subscription wait --account-name MyAccount --share-subscription "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group MyResourceGroup --share-name "Share1" --created + text: az datashare provider-share-subscription wait --account-name MyAccount --share-subscription 00000000-0000-0000-0000-000000000000 --resource-group MyResourceGroup --share-name MyShare --created """ helps['datashare consumer share-subscription'] = """ @@ -421,7 +421,7 @@ examples: - name: Show a share subscription text: |- - az datashare consumer share-subscription show --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" + az datashare consumer share-subscription show --account-name MyAccount --resource-group MyResourceGroup --name MyShareSubscription """ helps['datashare consumer share-subscription create'] = """ @@ -430,7 +430,7 @@ examples: - name: Create a share subscription text: |- - az datashare consumer share-subscription create --account-name MyAccount --resource-group MyResourceGroup --invitation-id "12345678-1234-1234-12345678abd" --source-share-location "eastus2" --name "ShareSubscription1" + az datashare consumer share-subscription create --account-name MyAccount --resource-group MyResourceGroup --invitation-id 00000000-0000-0000-0000-000000000000 --source-share-location "eastus2" --name MyShareSubscription """ helps['datashare consumer share-subscription delete'] = """ @@ -439,7 +439,7 @@ examples: - name: Delete a share subscription text: |- - az datashare consumer share-subscription delete --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" + az datashare consumer share-subscription delete --account-name MyAccount --resource-group MyResourceGroup --name MyShareSubscription """ helps['datashare consumer share-subscription synchronization'] = """ @@ -453,7 +453,7 @@ examples: - name: List synchronization details text: |- - az datashare consumer share-subscription synchronization list-detail --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare consumer share-subscription synchronization list-detail --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSub --synchronization-id 00000000-0000-0000-0000-000000000000 """ helps['datashare consumer share-subscription synchronization start'] = """ @@ -462,7 +462,7 @@ examples: - name: Initiate a dataset synchronization text: |- - az datashare consumer share-subscription synchronization start --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-mode "Incremental" + az datashare consumer share-subscription synchronization start --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --synchronization-mode "Incremental" """ helps['datashare consumer share-subscription synchronization cancel'] = """ @@ -471,7 +471,7 @@ examples: - name: Request to cancel a synchronization text: |- - az datashare consumer share-subscription synchronization cancel --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + az datashare consumer share-subscription synchronization cancel --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --synchronization-id 00000000-0000-0000-0000-000000000000 """ helps['datashare consumer share-subscription synchronization wait'] = """ @@ -479,9 +479,9 @@ short-summary: Place the CLI in a waiting state until a condition of the datashare share subscription synchronization is met. examples: - name: Pause executing next line of CLI script until the datashare share subscription synchronization finishes successfully. - text: az datashare consumer share-subscription synchronization wait --custom "status=='Succeeded'" --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + text: az datashare consumer share-subscription synchronization wait --custom "status=='Succeeded'" --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --synchronization-id 00000000-0000-0000-0000-000000000000 - name: Pause executing next line of CLI script until the datashare share subscription synchronization is cancelled. - text: az datashare consumer share-subscription synchronization wait --custom "status=='Cancelled'" --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb" + text: az datashare consumer share-subscription synchronization wait --custom "status=='Cancelled'" --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --synchronization-id 00000000-0000-0000-0000-000000000000 """ helps['datashare consumer share-subscription list-source-share-synchronization-setting'] = """ @@ -490,7 +490,7 @@ examples: - name: List synchronization settings text: |- - az datashare consumer share-subscription list-source-share-synchronization-setting --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" + az datashare consumer share-subscription list-source-share-synchronization-setting --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSub """ helps['datashare consumer share-subscription synchronization list'] = """ @@ -499,7 +499,7 @@ examples: - name: List synchronizations text: |- - az datashare consumer share-subscription synchronization list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSub1" + az datashare consumer share-subscription synchronization list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSub """ helps['datashare consumer share-subscription wait'] = """ @@ -507,7 +507,7 @@ short-summary: Place the CLI in a waiting state until a condition of the datashare share subscription is met. examples: - name: Pause executing next line of CLI script until the datashare share subscription is successfully provisioned. - text: az datashare consumer share-subscription wait --account-name MyAccount --resource-group MyResourceGroup --name "ShareSubscription1" --created + text: az datashare consumer share-subscription wait --account-name MyAccount --resource-group MyResourceGroup --name MyShareSubscription --created """ helps['datashare consumer share-subscription list-source-dataset'] = """ @@ -516,7 +516,7 @@ examples: - name: List source datasets text: |- - az datashare consumer share-subscription list-source-dataset --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "Share1" + az datashare consumer share-subscription list-source-dataset --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShare """ helps['datashare synchronization-setting'] = """ @@ -530,7 +530,7 @@ examples: - name: List synchronization settings text: |- - az datashare synchronization-setting list --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" + az datashare synchronization-setting list --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare """ helps['datashare synchronization-setting show'] = """ @@ -539,7 +539,7 @@ examples: - name: Show a synchronization setting text: |- - az datashare synchronization-setting show --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" + az datashare synchronization-setting show --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare --name MySyncrhonizationSetting """ helps['datashare synchronization-setting create'] = """ @@ -548,7 +548,7 @@ examples: - name: Create a synchronization setting text: |- - az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "Dataset1" --setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" + az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare --name MyDataset --setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" """ helps['datashare synchronization-setting delete'] = """ @@ -557,7 +557,7 @@ examples: - name: Delete a synchronization setting text: |- - az datashare synchronization-setting delete --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" + az datashare synchronization-setting delete --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare --name MySyncrhonizationSetting """ helps['datashare synchronization-setting wait'] = """ @@ -565,7 +565,7 @@ short-summary: Place the CLI in a waiting state until a condition of the datashare synchronization setting is met. examples: - name: Pause executing next line of CLI script until the datashare synchronization setting is successfully provisioned. - text: az datashare synchronization-setting wait --account-name MyAccount --resource-group MyResourceGroup --share-name "Share1" --name "SyncrhonizationSetting1" --created + text: az datashare synchronization-setting wait --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare --name MySyncrhonizationSetting --created """ helps['datashare consumer trigger'] = """ @@ -579,7 +579,7 @@ examples: - name: List triggers text: |- - az datashare consumer trigger list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" + az datashare consumer trigger list --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription """ helps['datashare consumer trigger show'] = """ @@ -588,7 +588,7 @@ examples: - name: Show a trigger text: |- - az datashare consumer trigger show --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" + az datashare consumer trigger show --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --name MyTrigger """ helps['datashare consumer trigger create'] = """ @@ -597,7 +597,7 @@ examples: - name: Create a trigger text: |- - az datashare consumer trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" + az datashare consumer trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --name MyTrigger --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" """ helps['datashare consumer trigger delete'] = """ @@ -606,7 +606,7 @@ examples: - name: Delete a trigger text: |- - az datashare consumer trigger delete --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" + az datashare consumer trigger delete --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --name MyTrigger """ helps['datashare consumer trigger wait'] = """ @@ -614,5 +614,5 @@ short-summary: Place the CLI in a waiting state until a condition of the datashare trigger is met. examples: - name: Pause executing next line of CLI script until the datashare trigger is successfully provisioned. - text: az datashare consumer trigger wait --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name "ShareSubscription1" --name "Trigger1" --created + text: az datashare consumer trigger wait --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --name MyTrigger --created """ diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 0da90c03b5c..fdad40de200 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -204,7 +204,7 @@ def load_arguments(self, _): c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') - with self.argument_context('datashare consumer invitation reject-invitation') as c: + with self.argument_context('datashare consumer invitation reject') as c: c.argument('location', arg_type=get_location_type(self.cli_ctx)) # modified c.argument('invitation_id', validator=invitation_id_validator, help='An invitation id') # modified diff --git a/src/datashare/azext_datashare/manual/commands.py b/src/datashare/azext_datashare/manual/commands.py index 44e9e8f30ee..7caeb1df48f 100644 --- a/src/datashare/azext_datashare/manual/commands.py +++ b/src/datashare/azext_datashare/manual/commands.py @@ -29,7 +29,7 @@ def load_command_table(self, _): with self.command_group('datashare consumer invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: g.custom_command('list', 'datashare_consumer_invitation_list') g.custom_show_command('show', 'datashare_consumer_invitation_show') - g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') + g.custom_command('reject', 'datashare_consumer_invitation_reject_invitation') from azext_datashare.generated._client_factory import cf_data_set datashare_data_set = CliCommandType( diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index ddbc0b3253b..67680653135 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -87,14 +87,6 @@ def datashare_data_set_show(cmd, client, return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) -def _assign_owner_role_in_target_scope(cmd, role_scope, spn_object_id): - from azure.cli.command_modules.role.custom import list_role_assignments, create_role_assignment - role_assignments = list_role_assignments(cmd, assignee=spn_object_id, role='Owner', scope=role_scope) - if not role_assignments: - create_role_assignment(cmd, role='Owner', assignee_object_id=spn_object_id, scope=role_scope, - assignee_principal_type='ServicePrincipal') - - def datashare_data_set_create(cmd, client, resource_group_name, account_name, @@ -106,7 +98,6 @@ def datashare_data_set_create(cmd, client, data_set['resource_group'] = resource_group_name if 'subscription_id' not in data_set: data_set['subscription_id'] = get_subscription_id(cmd.cli_ctx) - # assign role return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index f77dd3db655..e763fa163b0 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -299,8 +299,8 @@ def test_datashare(self, resource_group, storage_account): self.check('shareName', '{ProviderShare}'), self.check('providerEmail', '{ProviderEmail}')]) -# self.cmd('az datashare consumer invitation reject-invitation ' -# '--invitation-id "dfbbc788-19eb-4607-a5a1-c74181bfff03" ' +# self.cmd('az datashare consumer invitation reject ' +# '--invitation-id 00000000-0000-0000-0000-000000000000 ' # checks=[]) self.cmd('az datashare account wait ' From aa7cd57f8578a5d583c50a96501e6df8298a9be1 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Tue, 21 Apr 2020 14:48:01 +0800 Subject: [PATCH 16/23] remove --identity --- src/datashare/README.md | 1 - src/datashare/azext_datashare/generated/_help.py | 2 +- src/datashare/azext_datashare/manual/_help.py | 7 +------ src/datashare/azext_datashare/manual/_params.py | 2 +- src/datashare/azext_datashare/manual/custom.py | 4 +++- .../tests/latest/test_datashare_scenario.py | 2 -- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/datashare/README.md b/src/datashare/README.md index c9a47d20dc5..13999c46e81 100644 --- a/src/datashare/README.md +++ b/src/datashare/README.md @@ -20,7 +20,6 @@ az provider register -n "Microsoft.DataShare" ``` az datashare account create \ ---identity type=SystemAssigned \ --location "West US 2" \ --tags tag1=Red tag2=White \ --name "cli_test_account" \ diff --git a/src/datashare/azext_datashare/generated/_help.py b/src/datashare/azext_datashare/generated/_help.py index 0f4cdf2a78b..d82f306dd11 100644 --- a/src/datashare/azext_datashare/generated/_help.py +++ b/src/datashare/azext_datashare/generated/_help.py @@ -38,7 +38,7 @@ examples: - name: Accounts_Create text: |- - az datashare account create --identity type=SystemAssigned --location "West US 2" --tags + az datashare account create --location "West US 2" --tags tag1=Red tag2=White --account-name "Account1" --resource-group "SampleResourceGroup" """ diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 34475c21937..b68c6308855 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -39,15 +39,10 @@ helps['datashare account create'] = """ type: command short-summary: Create an account - parameters: - - name: --identity - short-summary: Identity of resource. - long-summary: | - Usage: --identity [type=SystemAssigned] [tenantId=VAL principalId=VAL] examples: - name: Create an account text: |- - az datashare account create --identity type=SystemAssigned --location "West US 2" --tags tag1=Red tag2=White --name MyAccount --resource-group MyResourceGroup + az datashare account create --location "West US 2" --tags tag1=Red tag2=White --name MyAccount --resource-group MyResourceGroup """ helps['datashare account update'] = """ diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index fdad40de200..00974e6f72a 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -34,7 +34,7 @@ def load_arguments(self, _): c.argument('account_name', options_list=['--name', '-n'], help='The name of the share account.') # modified c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group) # modified c.argument('tags', tags_type) # modified - c.argument('identity', action=AddIdentity, nargs='+', help='Identity of resource') + c.ignore('identity') # Only system assigned identity is supported, we can omit this option with self.argument_context('datashare account update') as c: c.argument('resource_group_name', resource_group_name_type) # modified diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index 67680653135..c3f67dcb50e 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -24,10 +24,12 @@ def datashare_account_show(cmd, client, def datashare_account_create(cmd, client, resource_group_name, account_name, - identity, + identity=None, location=None, tags=None, no_wait=False): + if identity is None: + identity = {'type': 'SystemAssigned'} return sdk_no_wait(no_wait, client.begin_create, resource_group_name=resource_group_name, diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index e763fa163b0..eba9c9e7adb 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -40,7 +40,6 @@ def test_datashare(self, resource_group, storage_account): # Provider commands datashareAccount = self.cmd('az datashare account create ' - '--identity type=SystemAssigned ' '--location "West US 2" ' '--tags tag1=Red tag2=White ' '--name "{ProviderAccount}" ' @@ -269,7 +268,6 @@ def test_datashare(self, resource_group, storage_account): # Consumer commands datashareConsumerAccount = self.cmd('az datashare account create ' - '--identity type=SystemAssigned ' '--location "West US 2" ' '--name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' From d1073be588e9f18b73c3b7826b28729fc5990d23 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Tue, 21 Apr 2020 16:55:52 +0800 Subject: [PATCH 17/23] flattern synchronization setting --- .../azext_datashare/generated/_validators.py | 18 - src/datashare/azext_datashare/manual/_help.py | 2 +- .../azext_datashare/manual/_params.py | 10 +- .../azext_datashare/manual/custom.py | 24 +- .../latest/recordings/test_datashare.yaml | 742 +++++++----------- .../tests/latest/test_datashare_scenario.py | 7 +- .../_data_share_management_client_enums.py | 2 + 7 files changed, 302 insertions(+), 503 deletions(-) delete mode 100644 src/datashare/azext_datashare/generated/_validators.py diff --git a/src/datashare/azext_datashare/generated/_validators.py b/src/datashare/azext_datashare/generated/_validators.py deleted file mode 100644 index 25e260a7bb4..00000000000 --- a/src/datashare/azext_datashare/generated/_validators.py +++ /dev/null @@ -1,18 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - - -def example_name_or_id_validator(cmd, namespace): - from azure.cli.core.commands.client_factory import get_subscription_id - from msrestazure.tools import is_valid_resource_id, resource_id - if namespace.storage_account: - if not is_valid_resource_id(namespace.RESOURCE): - namespace.storage_account = resource_id( - subscription=get_subscription_id(cmd.cli_ctx), - resource_group=namespace.resource_group_name, - namespace='Microsoft.Storage', - type='storageAccounts', - name=namespace.storage_account - ) diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index b68c6308855..2d5e64ef30d 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -543,7 +543,7 @@ examples: - name: Create a synchronization setting text: |- - az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare --name MyDataset --setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" + az datashare synchronization-setting create --account-name MyAccount --resource-group MyResourceGroup --share-name MyShare --name MyDataset --recurrence-interval Day --synchronization-time "2020-04-05 10:50:00 +00:00" --kind ScheduleBased """ helps['datashare synchronization-setting delete'] = """ diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 00974e6f72a..8440c15508a 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -12,11 +12,12 @@ tags_type, get_enum_type, resource_group_name_type, - get_location_type + get_location_type, + get_datetime_type ) from azure.cli.core.commands.validators import get_default_location_from_resource_group, validate_file_or_dict from azext_datashare.action import AddIdentity -from azext_datashare.vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode +from azext_datashare.vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode, SynchronizationKind, RecurrenceInterval from azext_datashare.manual._validators import invitation_id_validator @@ -145,7 +146,10 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified - c.argument('synchronization_setting', options_list=['--setting'], type=validate_file_or_dict, help='Synchronization settings in JSON string or path to JSON file.') + # c.argument('synchronization_setting', options_list=['--setting'], type=validate_file_or_dict, help='Synchronization settings in JSON string or path to JSON file.') + c.argument('recurrence_interval', arg_type=get_enum_type(RecurrenceInterval), arg_group='Synchronization Setting', help='Synchronization Recurrence Interval.') + c.argument('synchronization_time', arg_group='Synchronization Setting', arg_type=get_datetime_type(help='Synchronization time.')) + c.argument('kind', arg_type=get_enum_type(SynchronizationKind), arg_group='Synchronization Setting', default='ScheduleBased', help='Kind of synchronization.') with self.argument_context('datashare synchronization-setting delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index c3f67dcb50e..7b4de66c004 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -423,13 +423,13 @@ def datashare_synchronization_setting_show(cmd, client, return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) -def _format_datetime(date_string): - from dateutil.parser import parse - try: - return parse(date_string).strftime("%Y-%m-%dT%H:%M:%SZ") - except ValueError: - # logger.debug("Unable to parse date_string '%s'", date_string) - return date_string or ' ' +# def _format_datetime(date_string): +# from dateutil.parser import parse +# try: +# return parse(date_string).strftime("%Y-%m-%dT%H:%M:%SZ") +# except ValueError: +# # logger.debug("Unable to parse date_string '%s'", date_string) +# return date_string or ' ' def datashare_synchronization_setting_create(cmd, client, @@ -437,8 +437,14 @@ def datashare_synchronization_setting_create(cmd, client, account_name, share_name, synchronization_setting_name, - synchronization_setting): - synchronization_setting['synchronizationTime'] = _format_datetime(synchronization_setting['synchronizationTime']) + recurrence_interval, + synchronization_time, + kind=None): + synchronization_setting = { + 'synchronizationTime': synchronization_time, + 'recurrenceInterval': recurrence_interval, + 'kind': kind + } return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, diff --git a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml index 2b6b8a2a09d..44c6bfd010e 100644 --- a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml +++ b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml @@ -11,8 +11,8 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: GET @@ -68,7 +68,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:36:12 GMT + - Tue, 21 Apr 2020 08:40:14 GMT expires: - '-1' pragma: @@ -99,25 +99,25 @@ interactions: Content-Type: - application/json ParameterSetName: - - --identity --location --tags --name --resource-group + - --location --tags --name --resource-group User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '618' + - '619' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:36:22 GMT + - Tue, 21 Apr 2020 08:40:24 GMT expires: - '-1' location: @@ -131,10 +131,10 @@ interactions: x-content-type-options: - nosniff x-ms-quota: - - '[{"currentUsed":2,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account"}]' + - '[{"currentUsed":6,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -152,23 +152,23 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '618' + - '619' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:36:23 GMT + - Tue, 21 Apr 2020 08:40:26 GMT expires: - '-1' pragma: @@ -200,23 +200,23 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '618' + - '619' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:36:54 GMT + - Tue, 21 Apr 2020 08:40:56 GMT expires: - '-1' pragma: @@ -248,23 +248,23 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '618' + - '619' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:37:24 GMT + - Tue, 21 Apr 2020 08:41:27 GMT expires: - '-1' pragma: @@ -296,23 +296,23 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '618' + - '619' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:37:55 GMT + - Tue, 21 Apr 2020 08:41:57 GMT expires: - '-1' pragma: @@ -344,23 +344,23 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '620' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:26 GMT + - Tue, 21 Apr 2020 08:42:28 GMT expires: - '-1' pragma: @@ -392,23 +392,23 @@ interactions: ParameterSetName: - -n --resource-group User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '620' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:39 GMT + - Tue, 21 Apr 2020 08:42:29 GMT expires: - '-1' pragma: @@ -440,23 +440,23 @@ interactions: ParameterSetName: - --ids User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: - no-cache content-length: - - '619' + - '620' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:41 GMT + - Tue, 21 Apr 2020 08:42:31 GMT expires: - '-1' pragma: @@ -488,23 +488,23 @@ interactions: ParameterSetName: - --resource-group User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts?api-version=2019-11-01 response: body: - string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' headers: cache-control: - no-cache content-length: - - '631' + - '632' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:43 GMT + - Tue, 21 Apr 2020 08:42:32 GMT expires: - '-1' pragma: @@ -540,23 +540,23 @@ interactions: ParameterSetName: - --name --tags --resource-group User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-09T15:36:20.172488Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' headers: cache-control: - no-cache content-length: - - '606' + - '607' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:48 GMT + - Tue, 21 Apr 2020 08:42:37 GMT expires: - '-1' pragma: @@ -572,7 +572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -595,13 +595,13 @@ interactions: ParameterSetName: - --account-name --resource-group --description --share-kind --terms --name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: @@ -611,7 +611,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:50 GMT + - Tue, 21 Apr 2020 08:42:40 GMT expires: - '-1' location: @@ -626,9 +626,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"Share resource quota","value":"Share - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share"}]' + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -646,13 +646,13 @@ interactions: ParameterSetName: - --account-name --resource-group --name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: @@ -662,7 +662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:53 GMT + - Tue, 21 Apr 2020 08:42:41 GMT expires: - '-1' pragma: @@ -694,13 +694,13 @@ interactions: ParameterSetName: - --ids User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: @@ -710,7 +710,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:54 GMT + - Tue, 21 Apr 2020 08:42:43 GMT expires: - '-1' pragma: @@ -742,13 +742,13 @@ interactions: ParameterSetName: - --account-name --resource-group User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-09T15:38:51.4929862Z","userName":"Feng + string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}]}' headers: cache-control: @@ -758,7 +758,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:38:55 GMT + - Tue, 21 Apr 2020 08:42:44 GMT expires: - '-1' pragma: @@ -790,24 +790,24 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002?api-version=2019-06-01 response: body: - string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-09T15:35:51.6545305Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}}' + string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-21T08:39:54.1291957Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}}' headers: cache-control: - no-cache content-length: - - '1242' + - '1263' content-type: - application/json date: - - Thu, 09 Apr 2020 15:38:56 GMT + - Tue, 21 Apr 2020 08:42:46 GMT expires: - '-1' pragma: @@ -827,7 +827,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1", - "principalId": "7f6ad27d-edf3-48f8-babd-5d48e6a74202", "principalType": "ServicePrincipal"}}' + "principalId": "59322a57-a42c-4c86-a360-e4f789d19413", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -844,15 +844,15 @@ interactions: ParameterSetName: - --role --assignee-object-id --assignee-principal-type --scope User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/3bbe99a2-afc8-4435-b383-5a4e586a8916?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/0046396c-683d-4d8b-8819-01b8539634d8?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"7f6ad27d-edf3-48f8-babd-5d48e6a74202","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","createdOn":"2020-04-09T15:38:58.0563829Z","updatedOn":"2020-04-09T15:38:58.0563829Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/3bbe99a2-afc8-4435-b383-5a4e586a8916","type":"Microsoft.Authorization/roleAssignments","name":"3bbe99a2-afc8-4435-b383-5a4e586a8916"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","createdOn":"2020-04-21T08:42:48.3930477Z","updatedOn":"2020-04-21T08:42:48.3930477Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/0046396c-683d-4d8b-8819-01b8539634d8","type":"Microsoft.Authorization/roleAssignments","name":"0046396c-683d-4d8b-8819-01b8539634d8"}' headers: cache-control: - no-cache @@ -861,7 +861,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:04 GMT + - Tue, 21 Apr 2020 08:42:52 GMT expires: - '-1' pragma: @@ -873,7 +873,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1180' status: code: 201 message: Created @@ -891,25 +891,25 @@ interactions: ParameterSetName: - --account-name --name User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/storageAccounts?api-version=2019-06-01 response: body: - string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.Storage/storageAccounts/fystac","name":"fystac","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-08T03:10:13.3645539Z","primaryEndpoints":{"dfs":"https://fystac.dfs.core.windows.net/","web":"https://fystac.z13.web.core.windows.net/","blob":"https://fystac.blob.core.windows.net/","queue":"https://fystac.queue.core.windows.net/","table":"https://fystac.table.core.windows.net/","file":"https://fystac.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fystac-secondary.dfs.core.windows.net/","web":"https://fystac-secondary.z13.web.core.windows.net/","blob":"https://fystac-secondary.blob.core.windows.net/","queue":"https://fystac-secondary.queue.core.windows.net/","table":"https://fystac-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T03:09:41.7587583Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T03:09:41.6962163Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z22.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/","queue":"https://zhoxingtest2.queue.core.windows.net/","table":"https://zhoxingtest2.table.core.windows.net/","file":"https://zhoxingtest2.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest2-secondary.dfs.core.windows.net/","web":"https://zhoxingtest2-secondary.z22.web.core.windows.net/","blob":"https://zhoxingtest2-secondary.blob.core.windows.net/","queue":"https://zhoxingtest2-secondary.queue.core.windows.net/","table":"https://zhoxingtest2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xiaojianxustorage","name":"xiaojianxustorage","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:53:04.7781703Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:53:04.7312881Z","primaryEndpoints":{"dfs":"https://xiaojianxustorage.dfs.core.windows.net/","web":"https://xiaojianxustorage.z7.web.core.windows.net/","blob":"https://xiaojianxustorage.blob.core.windows.net/","queue":"https://xiaojianxustorage.queue.core.windows.net/","table":"https://xiaojianxustorage.table.core.windows.net/","file":"https://xiaojianxustorage.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xiaojianxustorage-secondary.dfs.core.windows.net/","web":"https://xiaojianxustorage-secondary.z7.web.core.windows.net/","blob":"https://xiaojianxustorage-secondary.blob.core.windows.net/","queue":"https://xiaojianxustorage-secondary.queue.core.windows.net/","table":"https://xiaojianxustorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital - Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"key4":"value4","5":"5","6":"6"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage/privateEndpointConnections/zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","name":"zuhstorage.5ae41b56-a372-4111-b6d8-9ce4364fd8f4","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/zuhPE"},"privateLinkServiceConnectionState":{"status":"Rejected","description":"","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-09T15:35:51.7326400Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-09T15:35:51.6545305Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"d2e83740-1d90-4aa7-901c-97c510d4f7ec","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/zuhkey/2780bea583714f33b8051ea24f90a246","lastKeyRotationTimestamp":"2020-04-09T06:46:21.5968704Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"zuhkey","keyversion":"2780bea583714f33b8051ea24f90a246"},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Keyvault"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/storagekey/5d86c92941554675977a2adcee8ce06f","lastKeyRotationTimestamp":"2020-04-09T06:09:59.5153057Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"storagekey","keyversion":"5d86c92941554675977a2adcee8ce06f"},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Keyvault"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}}]}' + string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.Storage/storageAccounts/fystac","name":"fystac","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-08T03:10:13.3645539Z","primaryEndpoints":{"dfs":"https://fystac.dfs.core.windows.net/","web":"https://fystac.z13.web.core.windows.net/","blob":"https://fystac.blob.core.windows.net/","queue":"https://fystac.queue.core.windows.net/","table":"https://fystac.table.core.windows.net/","file":"https://fystac.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fystac-secondary.dfs.core.windows.net/","web":"https://fystac-secondary.z13.web.core.windows.net/","blob":"https://fystac-secondary.blob.core.windows.net/","queue":"https://fystac-secondary.queue.core.windows.net/","table":"https://fystac-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxing","name":"zhoxing","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-15T08:53:45.4310180Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-15T08:53:45.4310180Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-15T08:53:45.3528671Z","primaryEndpoints":{"dfs":"https://zhoxing.dfs.core.windows.net/","web":"https://zhoxing.z13.web.core.windows.net/","blob":"https://zhoxing.blob.core.windows.net/","queue":"https://zhoxing.queue.core.windows.net/","table":"https://zhoxing.table.core.windows.net/","file":"https://zhoxing.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxing-secondary.dfs.core.windows.net/","web":"https://zhoxing-secondary.z13.web.core.windows.net/","blob":"https://zhoxing-secondary.blob.core.windows.net/","queue":"https://zhoxing-secondary.queue.core.windows.net/","table":"https://zhoxing-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlst","name":"jlst","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-14T12:05:01.5230050Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-14T12:05:01.5230050Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-14T12:05:01.4448881Z","primaryEndpoints":{"dfs":"https://jlst.dfs.core.windows.net/","web":"https://jlst.z20.web.core.windows.net/","blob":"https://jlst.blob.core.windows.net/","queue":"https://jlst.queue.core.windows.net/","table":"https://jlst.table.core.windows.net/","file":"https://jlst.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/tsiext","name":"tsiext","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-16T04:42:27.8695098Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-16T04:42:27.8695098Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-16T04:42:27.8070104Z","primaryEndpoints":{"dfs":"https://tsiext.dfs.core.windows.net/","web":"https://tsiext.z20.web.core.windows.net/","blob":"https://tsiext.blob.core.windows.net/","queue":"https://tsiext.queue.core.windows.net/","table":"https://tsiext.table.core.windows.net/","file":"https://tsiext.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851/privateEndpointConnections/azhoxingtest9851.6911cd49-cfc1-4bcf-887b-6941ff2b8756","name":"azhoxingtest9851.6911cd49-cfc1-4bcf-887b-6941ff2b8756","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/test"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-test-ws-udvur1v2scpdh/providers/Microsoft.Storage/storageAccounts/dbstorageazqiaxnzp45c4","name":"dbstorageazqiaxnzp45c4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T03:47:02.5418099Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T03:47:02.5418099Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-13T03:47:02.4793343Z","primaryEndpoints":{"dfs":"https://dbstorageazqiaxnzp45c4.dfs.core.windows.net/","blob":"https://dbstorageazqiaxnzp45c4.blob.core.windows.net/","table":"https://dbstorageazqiaxnzp45c4.table.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-test-ws-1-tkfkantu2y5cn/providers/Microsoft.Storage/storageAccounts/dbstorageucp43z6irid74","name":"dbstorageucp43z6irid74","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T04:56:17.5656641Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T04:56:17.5656641Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-13T04:56:17.4874850Z","primaryEndpoints":{"dfs":"https://dbstorageucp43z6irid74.dfs.core.windows.net/","blob":"https://dbstorageucp43z6irid74.blob.core.windows.net/","table":"https://dbstorageucp43z6irid74.table.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-test-ws-2-eh7zug4x1inzs/providers/Microsoft.Storage/storageAccounts/dbstoragezkqasazvxxgmu","name":"dbstoragezkqasazvxxgmu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T05:06:37.5070495Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T05:06:37.5070495Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-13T05:06:37.4288942Z","primaryEndpoints":{"dfs":"https://dbstoragezkqasazvxxgmu.dfs.core.windows.net/","blob":"https://dbstoragezkqasazvxxgmu.blob.core.windows.net/","table":"https://dbstoragezkqasazvxxgmu.table.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjtest1","name":"xxjtest1","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T08:36:23.6918366Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T08:36:23.6918366Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T08:36:23.6293420Z","primaryEndpoints":{"dfs":"https://xxjtest1.dfs.core.windows.net/","web":"https://xxjtest1.z7.web.core.windows.net/","blob":"https://xxjtest1.blob.core.windows.net/","queue":"https://xxjtest1.queue.core.windows.net/","table":"https://xxjtest1.table.core.windows.net/","file":"https://xxjtest1.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjtest1-secondary.dfs.core.windows.net/","web":"https://xxjtest1-secondary.z7.web.core.windows.net/","blob":"https://xxjtest1-secondary.blob.core.windows.net/","queue":"https://xxjtest1-secondary.queue.core.windows.net/","table":"https://xxjtest1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital + Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxing2","name":"zhoxing2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:54:17.8037418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:54:17.8037418Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T06:54:17.7099423Z","primaryEndpoints":{"dfs":"https://zhoxing2.dfs.core.windows.net/","web":"https://zhoxing2.z19.web.core.windows.net/","blob":"https://zhoxing2.blob.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest","name":"zhoxingtest","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T09:01:14.2087269Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T09:01:14.2087269Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T09:01:14.1462280Z","primaryEndpoints":{"dfs":"https://zhoxingtest.dfs.core.windows.net/","web":"https://zhoxingtest.z19.web.core.windows.net/","blob":"https://zhoxingtest.blob.core.windows.net/","queue":"https://zhoxingtest.queue.core.windows.net/","table":"https://zhoxingtest.table.core.windows.net/","file":"https://zhoxingtest.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest-secondary.dfs.core.windows.net/","web":"https://zhoxingtest-secondary.z19.web.core.windows.net/","blob":"https://zhoxingtest-secondary.blob.core.windows.net/","queue":"https://zhoxingtest-secondary.queue.core.windows.net/","table":"https://zhoxingtest-secondary.table.core.windows.net/"}}},{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:52:39.2007383Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:52:39.2007383Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T06:52:39.1039700Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z19.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"key":"val","key2":"val2"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-21T08:39:54.1291957Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storagetest22","name":"storagetest22","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T03:43:07.5284378Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T03:43:07.5284378Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T03:43:07.4503168Z","primaryEndpoints":{"dfs":"https://storagetest22.dfs.core.windows.net/","web":"https://storagetest22.z3.web.core.windows.net/","blob":"https://storagetest22.blob.core.windows.net/","queue":"https://storagetest22.queue.core.windows.net/","table":"https://storagetest22.table.core.windows.net/","file":"https://storagetest22.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagetest22-secondary.dfs.core.windows.net/","web":"https://storagetest22-secondary.z3.web.core.windows.net/","blob":"https://storagetest22-secondary.blob.core.windows.net/","queue":"https://storagetest22-secondary.queue.core.windows.net/","table":"https://storagetest22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"d2e83740-1d90-4aa7-901c-97c510d4f7ec","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/zuhkey/2780bea583714f33b8051ea24f90a246","lastKeyRotationTimestamp":"2020-04-09T06:46:21.5968704Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"zuhkey","keyversion":"2780bea583714f33b8051ea24f90a246"},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Keyvault"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/storagekey/04704263f43241dca0ff99c3794fd8c7","lastKeyRotationTimestamp":"2020-04-15T08:06:44.8059437Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"storagekey","keyversion":""},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Keyvault"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhstoragetest","name":"zuhstoragetest","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T07:16:48.8761196Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T07:16:48.8761196Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T07:16:48.8448300Z","primaryEndpoints":{"dfs":"https://zuhstoragetest.dfs.core.windows.net/","web":"https://zuhstoragetest.z3.web.core.windows.net/","blob":"https://zuhstoragetest.blob.core.windows.net/","queue":"https://zuhstoragetest.queue.core.windows.net/","table":"https://zuhstoragetest.table.core.windows.net/","file":"https://zuhstoragetest.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstoragetest-secondary.dfs.core.windows.net/","web":"https://zuhstoragetest-secondary.z3.web.core.windows.net/","blob":"https://zuhstoragetest-secondary.blob.core.windows.net/","queue":"https://zuhstoragetest-secondary.queue.core.windows.net/","table":"https://zuhstoragetest-secondary.table.core.windows.net/"}}}]}' headers: cache-control: - no-cache content-length: - - '113551' + - '126631' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:11 GMT + - Tue, 21 Apr 2020 08:42:59 GMT expires: - '-1' pragma: @@ -921,16 +921,17 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - da26e5e7-3e7c-4663-becf-a6abe35ae908 - - 2517615b-4b60-4dd2-a56a-d1ce2e201ea3 - - 92bb620b-e10f-4cff-8971-0bc2c854f8b2 - - c896ad6e-b9e6-4995-9f7a-20b0d9c02608 - - 31e747f0-b76a-4212-bec9-61634008f0b5 - - b5ff9f42-5ca9-4895-b8a9-0aa2a7f398ef - - b654ea98-f67c-4e1d-94d3-f4ab2586d089 - - a83adb45-3a19-42a1-be09-99c3d8270a8d - - e794d4f3-e843-45e8-9c02-0cd274e9c8c3 - - cf850416-f413-4c50-b097-7267a64bbeb7 + - 1fd0cc5a-83d9-410e-bb50-be523e083d68 + - 5c9edab4-58eb-49aa-bc34-0bdec572f98d + - 6b45106d-300d-49f9-b27f-7d7b8acc4c48 + - 0e5992a6-2caf-42d7-b608-38d59c9d1e0e + - 777f6fa3-c37b-42a8-8d1f-9296d0822adb + - a3419105-3b9c-42c5-99ca-d598c3e5129e + - e3aded35-826f-4a62-83f9-3ef9d90c2687 + - 0e35348e-38cb-4284-a370-0e25df444ecf + - da8b25c6-9eeb-4860-a0d1-19e2d34b5665 + - 30c541d5-6be5-4aa8-9187-25e0d088f4fb + - f20b7c0d-48ea-4035-aa6f-8c82da474f88 status: code: 200 message: OK @@ -950,8 +951,8 @@ interactions: ParameterSetName: - --account-name --name User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: POST @@ -967,7 +968,7 @@ interactions: content-type: - application/json date: - - Thu, 09 Apr 2020 15:39:11 GMT + - Tue, 21 Apr 2020 08:42:59 GMT expires: - '-1' pragma: @@ -995,10 +996,9 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.2; Windows 10) AZURECLI/2.3.1 - (MSI) + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.4.0 x-ms-date: - - Thu, 09 Apr 2020 15:39:12 GMT + - Tue, 21 Apr 2020 08:43:00 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1010,11 +1010,11 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:39:13 GMT + - Tue, 21 Apr 2020 08:43:02 GMT etag: - - '"0x8D7DC9C280934F5"' + - '"0x8D7E5D001067AB6"' last-modified: - - Thu, 09 Apr 2020 15:39:14 GMT + - Tue, 21 Apr 2020 08:43:02 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1042,13 +1042,13 @@ interactions: ParameterSetName: - --account-name --dataset --name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache @@ -1057,7 +1057,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:17 GMT + - Tue, 21 Apr 2020 08:43:05 GMT expires: - '-1' location: @@ -1072,7 +1072,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -1092,13 +1092,13 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache @@ -1107,7 +1107,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:19 GMT + - Tue, 21 Apr 2020 08:43:07 GMT expires: - '-1' pragma: @@ -1139,13 +1139,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}]}' + string: '{"value":[{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}]}' headers: cache-control: - no-cache @@ -1154,7 +1154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:21 GMT + - Tue, 21 Apr 2020 08:43:08 GMT expires: - '-1' pragma: @@ -1189,15 +1189,16 @@ interactions: Content-Type: - application/json ParameterSetName: - - --account-name --resource-group --share-name --name --setting + - --account-name --resource-group --share-name --name --recurrence-interval + --synchronization-time User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:39:23.0753152Z","userName":"Feng + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:43:11.3360896Z","userName":"Feng Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: @@ -1207,7 +1208,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:22 GMT + - Tue, 21 Apr 2020 08:43:11 GMT expires: - '-1' location: @@ -1221,7 +1222,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1239,13 +1240,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name --name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:39:23.0753152Z","userName":"Feng + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:43:11.3360896Z","userName":"Feng Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: @@ -1255,7 +1256,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:24 GMT + - Tue, 21 Apr 2020 08:43:11 GMT expires: - '-1' pragma: @@ -1287,13 +1288,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:39:23.0753152Z","userName":"Feng + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:43:11.3360896Z","userName":"Feng Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}]}' headers: cache-control: @@ -1303,7 +1304,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:25 GMT + - Tue, 21 Apr 2020 08:43:13 GMT expires: - '-1' pragma: @@ -1337,7 +1338,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/listSynchronizations?api-version=2019-11-01 @@ -1352,7 +1353,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:27 GMT + - Tue, 21 Apr 2020 08:43:14 GMT expires: - '-1' pragma: @@ -1390,13 +1391,13 @@ interactions: ParameterSetName: - --account-name --target-email --name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + string: '{"properties":{"sentAt":"2020-04-21T08:43:16.7151898Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: @@ -1406,11 +1407,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:29 GMT + - Tue, 21 Apr 2020 08:43:16 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation/41819df4-3144-4d43-9e0b-5361e9317e81 + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation/0ed527c3-7872-47f7-9c44-7f166f79935d pragma: - no-cache server: @@ -1420,7 +1421,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1438,13 +1439,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + string: '{"value":[{"properties":{"sentAt":"2020-04-21T08:43:16.7151898Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}]}' headers: cache-control: @@ -1454,7 +1455,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:31 GMT + - Tue, 21 Apr 2020 08:43:18 GMT expires: - '-1' pragma: @@ -1486,13 +1487,13 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-09T15:39:29.2224301Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","userName":"Feng + string: '{"properties":{"sentAt":"2020-04-21T08:43:16.7151898Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: @@ -1502,7 +1503,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:33 GMT + - Tue, 21 Apr 2020 08:43:19 GMT expires: - '-1' pragma: @@ -1534,8 +1535,8 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: GET @@ -1591,7 +1592,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:34 GMT + - Tue, 21 Apr 2020 08:43:19 GMT expires: - '-1' pragma: @@ -1621,45 +1622,44 @@ interactions: Content-Type: - application/json ParameterSetName: - - --identity --location --name --resource-group --subscription + - --location --name --resource-group --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen + string: '{"identity":{"type":"SystemAssigned","principalId":"35d6735b-ff6f-4b88-8daa-d5481c0035df","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-21T08:37:29.65675Z","provisioningState":"Succeeded","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '543' + - '542' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:45 GMT + - Tue, 21 Apr 2020 08:43:25 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 pragma: - no-cache server: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff - x-ms-quota: - - '[{"currentUsed":1,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account"}]' x-ms-ratelimit-remaining-subscription-writes: - '1199' status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: @@ -1674,14 +1674,14 @@ interactions: ParameterSetName: - --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.DataShare/ListInvitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-09T15:39:29.2224301Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' + string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-21T08:43:16.7151898Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/0ed527c3-7872-47f7-9c44-7f166f79935d","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' headers: cache-control: - no-cache @@ -1690,7 +1690,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:47 GMT + - Tue, 21 Apr 2020 08:43:28 GMT expires: - '-1' pragma: @@ -1723,16 +1723,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - --invitation-id --subscription + - --invitation-id --subscription --location User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81?api-version=2019-11-01 + uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/0ed527c3-7872-47f7-9c44-7f166f79935d?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-09T15:39:29.2224301Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/41819df4-3144-4d43-9e0b-5361e9317e81","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' + string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-21T08:43:16.7151898Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/0ed527c3-7872-47f7-9c44-7f166f79935d","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' headers: cache-control: - no-cache @@ -1741,7 +1741,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:49 GMT + - Tue, 21 Apr 2020 08:43:32 GMT expires: - '-1' pragma: @@ -1773,23 +1773,23 @@ interactions: ParameterSetName: - --name --resource-group --created --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen + string: '{"identity":{"type":"SystemAssigned","principalId":"35d6735b-ff6f-4b88-8daa-d5481c0035df","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-21T08:37:29.65675Z","provisioningState":"Succeeded","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '543' + - '542' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:39:51 GMT + - Tue, 21 Apr 2020 08:43:33 GMT expires: - '-1' pragma: @@ -1808,199 +1808,7 @@ interactions: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - datashare account wait - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --created --subscription - User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 - (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 - response: - body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' - headers: - cache-control: - - no-cache - content-length: - - '543' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 09 Apr 2020 15:40:21 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - 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: - - datashare account wait - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --created --subscription - User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 - (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 - response: - body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' - headers: - cache-control: - - no-cache - content-length: - - '543' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 09 Apr 2020 15:40:52 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - 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: - - datashare account wait - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --created --subscription - User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 - (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 - response: - body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Creating","userName":"Allen - Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' - headers: - cache-control: - - no-cache - content-length: - - '543' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 09 Apr 2020 15:41:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - 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: - - datashare account wait - Connection: - - keep-alive - ParameterSetName: - - --name --resource-group --created --subscription - User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 - (Windows-10-10.0.18362-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 - response: - body: - string: '{"identity":{"type":"SystemAssigned","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-09T15:39:43.9192138Z","provisioningState":"Succeeded","userName":"Allen - Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' - headers: - cache-control: - - no-cache - content-length: - - '544' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 09 Apr 2020 15:41:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Kestrel - 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: '{"properties": {"invitationId": "41819df4-3144-4d43-9e0b-5361e9317e81", + body: '{"properties": {"invitationId": "0ed527c3-7872-47f7-9c44-7f166f79935d", "sourceShareLocation": "westus2"}}' headers: Accept: @@ -2019,13 +1827,13 @@ interactions: - --account-name --resource-group --invitation-id --source-share-location --name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"properties":{"createdAt":"2020-04-21T08:43:36.302435Z","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' @@ -2033,11 +1841,11 @@ interactions: cache-control: - no-cache content-length: - - '788' + - '787' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:41:58 GMT + - Tue, 21 Apr 2020 08:43:36 GMT expires: - '-1' location: @@ -2072,13 +1880,13 @@ interactions: ParameterSetName: - --account-name --resource-group --name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"properties":{"createdAt":"2020-04-21T08:43:36.302435Z","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' @@ -2086,11 +1894,11 @@ interactions: cache-control: - no-cache content-length: - - '788' + - '787' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:41:59 GMT + - Tue, 21 Apr 2020 08:43:37 GMT expires: - '-1' pragma: @@ -2122,13 +1930,13 @@ interactions: ParameterSetName: - --account-name --resource-group --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"createdAt":"2020-04-09T15:41:58.0117724Z","invitationId":"41819df4-3144-4d43-9e0b-5361e9317e81","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"value":[{"properties":{"createdAt":"2020-04-21T08:43:36.302435Z","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' @@ -2136,11 +1944,11 @@ interactions: cache-control: - no-cache content-length: - - '800' + - '799' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:01 GMT + - Tue, 21 Apr 2020 08:43:38 GMT expires: - '-1' pragma: @@ -2172,13 +1980,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/ConsumerSourceDataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"dataSetName":"cli_test_data_set","dataSetPath":"clitestcontainer","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/consumerSourceDataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' + string: '{"value":[{"properties":{"dataSetName":"cli_test_data_set","dataSetPath":"clitestcontainer","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/consumerSourceDataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' headers: cache-control: - no-cache @@ -2187,7 +1995,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:03 GMT + - Tue, 21 Apr 2020 08:43:40 GMT expires: - '-1' pragma: @@ -2219,8 +2027,8 @@ interactions: ParameterSetName: - -n -g --subscription User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: GET @@ -2236,7 +2044,7 @@ interactions: content-type: - application/json date: - - Thu, 09 Apr 2020 15:42:04 GMT + - Tue, 21 Apr 2020 08:43:41 GMT expires: - '-1' pragma: @@ -2256,7 +2064,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe", - "principalId": "6a0d063a-49c8-4b0c-b995-8b8d12587aea", "principalType": "ServicePrincipal"}}' + "principalId": "35d6735b-ff6f-4b88-8daa-d5481c0035df", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -2273,15 +2081,15 @@ interactions: ParameterSetName: - --role --assignee-object-id --assignee-principal-type --scope --subscription User-Agent: - - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.3.1 (MSI) + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.4.0 accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/a4b86e67-be6e-47cf-ac5d-d0b64fb7ed93?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/e7253fdd-448a-4a36-b449-1a5395ff58ba?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"6a0d063a-49c8-4b0c-b995-8b8d12587aea","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","createdOn":"2020-04-09T15:42:06.8394735Z","updatedOn":"2020-04-09T15:42:06.8394735Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/a4b86e67-be6e-47cf-ac5d-d0b64fb7ed93","type":"Microsoft.Authorization/roleAssignments","name":"a4b86e67-be6e-47cf-ac5d-d0b64fb7ed93"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"35d6735b-ff6f-4b88-8daa-d5481c0035df","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","createdOn":"2020-04-21T08:43:42.8181350Z","updatedOn":"2020-04-21T08:43:42.8181350Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/e7253fdd-448a-4a36-b449-1a5395ff58ba","type":"Microsoft.Authorization/roleAssignments","name":"e7253fdd-448a-4a36-b449-1a5395ff58ba"}' headers: cache-control: - no-cache @@ -2290,7 +2098,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:12 GMT + - Tue, 21 Apr 2020 08:43:46 GMT expires: - '-1' pragma: @@ -2308,7 +2116,7 @@ interactions: message: Created - request: body: '{"kind": "BlobFolder", "properties": {"containerName": "clitestconsumercontainer", - "dataSetId": "244c883f-31e5-456a-aeb2-6e85ef405252", "prefix": "cli_test_data_set", + "dataSetId": "8edff0f9-3b35-450e-b64f-39d9f4b1b08d", "prefix": "cli_test_data_set", "resourceGroup": "datashare_consumer_rg", "storageAccountName": "datashareconsumersa", "subscriptionId": "9abff005-2afc-4de1-b39c-344b9de2cc9c"}}' headers: @@ -2328,13 +2136,13 @@ interactions: - --account-name --name --resource-group --share-subscription-name --mapping --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' headers: cache-control: - no-cache @@ -2343,7 +2151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:23 GMT + - Tue, 21 Apr 2020 08:43:57 GMT expires: - '-1' location: @@ -2383,16 +2191,16 @@ interactions: - --account-name --resource-group --share-subscription-name --synchronization-mode --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/Synchronize?api-version=2019-11-01 response: body: - string: '{"status":"Queued","synchronizationId":"915c018b-751d-4204-a394-89d89aee35b9","synchronizationMode":"Incremental"}' + string: '{"status":"Queued","synchronizationId":"0dfe90ef-fcf5-436c-9d93-aa92fc13504f","synchronizationMode":"Incremental"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/synchronizationOperationResults/915c018b-751d-4204-a394-89d89aee35b9?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/synchronizationOperationResults/0dfe90ef-fcf5-436c-9d93-aa92fc13504f?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -2400,11 +2208,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:29 GMT + - Tue, 21 Apr 2020 08:44:02 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/shareSubscriptionSynchronizations/915c018b-751d-4204-a394-89d89aee35b9?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/shareSubscriptionSynchronizations/0dfe90ef-fcf5-436c-9d93-aa92fc13504f?api-version=2019-11-01 pragma: - no-cache server: @@ -2432,13 +2240,13 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' headers: cache-control: - no-cache @@ -2447,7 +2255,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:31 GMT + - Tue, 21 Apr 2020 08:44:03 GMT expires: - '-1' pragma: @@ -2479,13 +2287,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"244c883f-31e5-456a-aeb2-6e85ef405252","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}]}' + string: '{"value":[{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}]}' headers: cache-control: - no-cache @@ -2494,7 +2302,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:32 GMT + - Tue, 21 Apr 2020 08:44:05 GMT expires: - '-1' pragma: @@ -2528,13 +2336,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/listSynchronizations?api-version=2019-11-01 response: body: - string: '{"value":[{"status":"Queued","synchronizationId":"915c018b-751d-4204-a394-89d89aee35b9","synchronizationMode":"Incremental"}]}' + string: '{"value":[{"status":"Queued","synchronizationId":"0dfe90ef-fcf5-436c-9d93-aa92fc13504f","synchronizationMode":"Incremental"}]}' headers: cache-control: - no-cache @@ -2543,7 +2351,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:34 GMT + - Tue, 21 Apr 2020 08:44:07 GMT expires: - '-1' pragma: @@ -2579,7 +2387,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/listSourceShareSynchronizationSettings?api-version=2019-11-01 @@ -2594,7 +2402,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:36 GMT + - Tue, 21 Apr 2020 08:44:08 GMT expires: - '-1' pragma: @@ -2610,7 +2418,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -2634,13 +2442,13 @@ interactions: - --account-name --resource-group --share-subscription-name --name --trigger --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:42:38.6650243Z","userName":"Allen + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:44:10.8245659Z","userName":"Allen Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' headers: cache-control: @@ -2650,7 +2458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:38 GMT + - Tue, 21 Apr 2020 08:44:10 GMT expires: - '-1' location: @@ -2682,13 +2490,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:42:38.6650243Z","userName":"Allen + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:44:10.8245659Z","userName":"Allen Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' headers: cache-control: @@ -2698,7 +2506,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:40 GMT + - Tue, 21 Apr 2020 08:44:12 GMT expires: - '-1' pragma: @@ -2730,23 +2538,23 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-09T15:42:38.6650243Z","userName":"Allen - Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}]}' + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:44:10.8245659Z","userName":"Allen + Zhou","provisioningState":"Succeeded","triggerStatus":"Active","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}]}' headers: cache-control: - no-cache content-length: - - '582' + - '581' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:42 GMT + - Tue, 21 Apr 2020 08:44:14 GMT expires: - '-1' pragma: @@ -2778,24 +2586,24 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + string: '{"value":[{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen + Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache content-length: - - '760' + - '759' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:44 GMT + - Tue, 21 Apr 2020 08:44:15 GMT expires: - '-1' pragma: @@ -2827,24 +2635,24 @@ interactions: ParameterSetName: - --account-name --share-subscription --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen + Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '748' + - '747' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:45 GMT + - Tue, 21 Apr 2020 08:44:17 GMT expires: - '-1' pragma: @@ -2878,30 +2686,30 @@ interactions: ParameterSetName: - --account-name --share-subscription --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac/revoke?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b/revoke?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen + Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/5d848d60-ae6e-4f04-851c-18778d2629bd?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/3b656d75-1027-422b-bf5c-798bc57939c3?api-version=2019-11-01 cache-control: - no-cache content-length: - - '750' + - '749' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:48 GMT + - Tue, 21 Apr 2020 08:44:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b?api-version=2019-11-01 pragma: - no-cache server: @@ -2911,7 +2719,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -2931,24 +2739,24 @@ interactions: ParameterSetName: - --account-name --share-subscription --resource-group --share-name User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac/reinstate?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b/reinstate?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"a9b50955-3354-4cf8-874e-19cd65e43aac","consumerName":"Allen - Zhou","createdAt":"2020-04-09T15:41:58.0117724Z","sharedAt":"2020-04-09T15:39:29.2224301Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/a9b50955-3354-4cf8-874e-19cd65e43aac","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen + Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '748' + - '747' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Apr 2020 15:42:55 GMT + - Tue, 21 Apr 2020 08:44:26 GMT expires: - '-1' pragma: @@ -2984,7 +2792,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name --name --yes User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 @@ -2997,11 +2805,11 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:42:57 GMT + - Tue, 21 Apr 2020 08:44:28 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/57652552-baa1-4d9b-8d08-98e78edda366?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/fe1ce1c1-61ff-41f2-9cd8-4401b19f3ef9?api-version=2019-11-01 pragma: - no-cache server: @@ -3011,7 +2819,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted @@ -3031,7 +2839,7 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name --yes User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 @@ -3044,7 +2852,7 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:42:59 GMT + - Tue, 21 Apr 2020 08:44:30 GMT expires: - '-1' pragma: @@ -3057,7 +2865,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datfmkdqa5zkmsswjxy43dterjfrxryeli2gzeyhzr64rybpwlnuzrmdxgacpi4w7f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: @@ -3079,7 +2887,7 @@ interactions: ParameterSetName: - --account-name --resource-group --name --yes User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 @@ -3092,11 +2900,11 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:43:01 GMT + - Tue, 21 Apr 2020 08:44:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/53b215ff-2f66-4810-bb0d-4fd68ba7288b?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/4f407dde-1975-468e-93b6-0bb579a7dd8a?api-version=2019-11-01 pragma: - no-cache server: @@ -3126,7 +2934,7 @@ interactions: ParameterSetName: - --name --resource-group --no-wait --yes User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 @@ -3139,11 +2947,11 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:43:04 GMT + - Tue, 21 Apr 2020 08:44:33 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/756eb80a-c3d7-47c3-a99c-a4c876fe2d35?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/bed2c3d2-4990-4926-88d1-4469d0ce0db4?api-version=2019-11-01 pragma: - no-cache server: @@ -3153,7 +2961,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14997' + - '14995' status: code: 202 message: Accepted @@ -3173,7 +2981,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --name --yes --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 @@ -3186,11 +2994,11 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:43:05 GMT + - Tue, 21 Apr 2020 08:44:35 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/4d84b418-b1f7-40bc-9ac3-41ec5857471e?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/8969068d-d56b-4f0b-978e-2f933d94281c?api-version=2019-11-01 pragma: - no-cache server: @@ -3220,7 +3028,7 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-subscription-name --yes --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 @@ -3233,7 +3041,7 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:43:07 GMT + - Tue, 21 Apr 2020 08:44:36 GMT expires: - '-1' pragma: @@ -3268,7 +3076,7 @@ interactions: ParameterSetName: - --account-name --resource-group --name --yes --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 @@ -3281,11 +3089,11 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:43:09 GMT + - Tue, 21 Apr 2020 08:44:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/377bed37-32c8-413e-b9c4-69d0dc9c8870?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/5f12d918-536e-4151-8a8e-3addec4c10a6?api-version=2019-11-01 pragma: - no-cache server: @@ -3315,7 +3123,7 @@ interactions: ParameterSetName: - --name --resource-group --no-wait --yes --subscription User-Agent: - - AZURECLI/2.3.1 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 @@ -3328,11 +3136,11 @@ interactions: content-length: - '0' date: - - Thu, 09 Apr 2020 15:43:11 GMT + - Tue, 21 Apr 2020 08:44:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/63332f1a-96ec-445e-839f-d32d9cb8b534?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/b738d498-7482-4caf-a97d-d41d8be5dfa9?api-version=2019-11-01 pragma: - no-cache server: @@ -3342,7 +3150,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index eba9c9e7adb..c9aeb04c4d5 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -186,16 +186,13 @@ def test_datashare(self, resource_group, storage_account): self.check('[0].kind', 'Container'), self.check('[0].name', '{ProviderDataset}')]) - syncSettingContent = {"recurrenceInterval": "Day", "synchronizationTime": "2020-04-05T10:50:00Z", "kind": "ScheduleBased"} - self.kwargs.update({ - 'ProviderSyncSettingContent': syncSettingContent - }) self.cmd('az datashare synchronization-setting create ' '--account-name "{ProviderAccount}" ' '--resource-group "{ProviderResourceGroup}" ' '--share-name "{ProviderShare}" ' '--name "{ProviderSynchronizationSetting}" ' - '--setting "{ProviderSyncSettingContent}"', + '--recurrence-interval "Day" ' + '--synchronization-time "2020-04-05 10:50:00 +00:00"', checks=[self.check('kind', 'ScheduleBased'), self.check('name', '{ProviderSynchronizationSetting}'), self.check('recurrenceInterval', 'Day'), diff --git a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py index 20589503478..a2a515c4266 100644 --- a/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py +++ b/src/datashare/azext_datashare/vendored_sdks/datashare/models/_data_share_management_client_enums.py @@ -43,6 +43,8 @@ class Kind(str, Enum): kusto_database = "KustoDatabase" sql_db_table = "SqlDBTable" sql_dw_table = "SqlDWTable" + +class SynchronizationKind(str, Enum): schedule_based = "ScheduleBased" class ShareKind(str, Enum): From 6b20902a5c912c47f562b4a02f7eececd604e74e Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Tue, 21 Apr 2020 17:16:56 +0800 Subject: [PATCH 18/23] remove some generated file --- src/datashare/azext_datashare/__init__.py | 14 +- src/datashare/azext_datashare/_help.py | 6 +- src/datashare/azext_datashare/_params.py | 6 +- src/datashare/azext_datashare/action.py | 6 +- src/datashare/azext_datashare/commands.py | 8 +- src/datashare/azext_datashare/custom.py | 2 +- .../azext_datashare/generated/_help.py | 205 --------- .../azext_datashare/generated/_params.py | 307 -------------- .../azext_datashare/generated/action.py | 26 -- .../azext_datashare/generated/commands.py | 116 ------ .../azext_datashare/generated/custom.py | 394 ------------------ .../azext_datashare/manual/_params.py | 1 - 12 files changed, 32 insertions(+), 1059 deletions(-) delete mode 100644 src/datashare/azext_datashare/generated/_help.py delete mode 100644 src/datashare/azext_datashare/generated/_params.py delete mode 100644 src/datashare/azext_datashare/generated/action.py delete mode 100644 src/datashare/azext_datashare/generated/commands.py delete mode 100644 src/datashare/azext_datashare/generated/custom.py diff --git a/src/datashare/azext_datashare/__init__.py b/src/datashare/azext_datashare/__init__.py index fa1860db449..505737b668a 100644 --- a/src/datashare/azext_datashare/__init__.py +++ b/src/datashare/azext_datashare/__init__.py @@ -21,8 +21,11 @@ def __init__(self, cli_ctx=None): custom_command_type=datashare_custom) def load_command_table(self, args): - from azext_datashare.generated.commands import load_command_table - load_command_table(self, args) + try: + from azext_datashare.generated.commands import load_command_table + load_command_table(self, args) + except ImportError: + pass try: from azext_datashare.manual.commands import load_command_table as load_command_table_manual load_command_table_manual(self, args) @@ -31,8 +34,11 @@ def load_command_table(self, args): return self.command_table def load_arguments(self, command): - from azext_datashare.generated._params import load_arguments - load_arguments(self, command) + try: + from azext_datashare.generated._params import load_arguments + load_arguments(self, command) + except ImportError: + pass try: from azext_datashare.manual._params import load_arguments as load_arguments_manual load_arguments_manual(self, command) diff --git a/src/datashare/azext_datashare/_help.py b/src/datashare/azext_datashare/_help.py index 3bee6f19af4..c0b36e140d8 100644 --- a/src/datashare/azext_datashare/_help.py +++ b/src/datashare/azext_datashare/_help.py @@ -5,7 +5,11 @@ # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import -from .generated._help import * # noqa: F403 +# try: +# from .generated._help import * # noqa: F403 +# except ImportError: +# pass + try: from .manual._help import * # noqa: F403 except ImportError: diff --git a/src/datashare/azext_datashare/_params.py b/src/datashare/azext_datashare/_params.py index 008d4cdb489..d1283049baf 100644 --- a/src/datashare/azext_datashare/_params.py +++ b/src/datashare/azext_datashare/_params.py @@ -5,7 +5,11 @@ # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import -from .generated._params import * # noqa: F403 +try: + from .generated._params import * # noqa: F403 +except ImportError: + pass + try: from .manual._params import * # noqa: F403 except ImportError: diff --git a/src/datashare/azext_datashare/action.py b/src/datashare/azext_datashare/action.py index 2cb3583de76..4ad472a8c52 100644 --- a/src/datashare/azext_datashare/action.py +++ b/src/datashare/azext_datashare/action.py @@ -5,7 +5,11 @@ # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import -from .generated.action import * # noqa: F403 +try: + from .generated.action import * # noqa: F403 +except ImportError: + pass + try: from .manual.action import * # noqa: F403 except ImportError: diff --git a/src/datashare/azext_datashare/commands.py b/src/datashare/azext_datashare/commands.py index 73c5cb52b0f..46016e824a3 100644 --- a/src/datashare/azext_datashare/commands.py +++ b/src/datashare/azext_datashare/commands.py @@ -5,8 +5,12 @@ # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import -from .generated.commands import * # noqa: F403 try: - from .manual.commands import * # noqa: F403 + from .generated.commands import * # noqa: F403 +except ImportError: + pass + +try: + from .generated.commands import * # noqa: F403 except ImportError: pass diff --git a/src/datashare/azext_datashare/custom.py b/src/datashare/azext_datashare/custom.py index 41ab47d5063..67310ca3277 100644 --- a/src/datashare/azext_datashare/custom.py +++ b/src/datashare/azext_datashare/custom.py @@ -5,8 +5,8 @@ # pylint: disable=wildcard-import # pylint: disable=unused-wildcard-import -from .generated.custom import * # noqa: F403 try: + from .generated.custom import * # noqa: F403 from .manual.custom import * # noqa: F403 except ImportError: pass diff --git a/src/datashare/azext_datashare/generated/_help.py b/src/datashare/azext_datashare/generated/_help.py deleted file mode 100644 index d82f306dd11..00000000000 --- a/src/datashare/azext_datashare/generated/_help.py +++ /dev/null @@ -1,205 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 -# pylint: disable=too-many-lines - -from knack.help_files import helps - - -helps['datashare account'] = """ - type: group - short-summary: datashare account -""" - -helps['datashare account list'] = """ - type: command - short-summary: List Accounts in Subscription - examples: - - name: Accounts_ListByResourceGroup - text: |- - az datashare account list --resource-group "SampleResourceGroup" -""" - -helps['datashare account show'] = """ - type: command - short-summary: Get an account - examples: - - name: Accounts_Get - text: |- - az datashare account show --account-name "Account1" --resource-group - "SampleResourceGroup" -""" - -helps['datashare account create'] = """ - type: command - short-summary: Create an account - examples: - - name: Accounts_Create - text: |- - az datashare account create --location "West US 2" --tags - tag1=Red tag2=White --account-name "Account1" --resource-group "SampleResourceGroup" -""" - -helps['datashare account update'] = """ - type: command - short-summary: Patch an account - examples: - - name: Accounts_Update - text: |- - az datashare account update --account-name "Account1" --tags tag1=Red tag2=White - --resource-group "SampleResourceGroup" -""" - -helps['datashare account delete'] = """ - type: command - short-summary: DeleteAccount - examples: - - name: Accounts_Delete - text: |- - az datashare account delete --account-name "Account1" --resource-group - "SampleResourceGroup" -""" - -helps['datashare invitation'] = """ - type: group - short-summary: datashare invitation -""" - -helps['datashare invitation list'] = """ - type: command - short-summary: List invitations in a share - examples: - - name: Invitations_ListByShare - text: |- - az datashare invitation list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare invitation show'] = """ - type: command - short-summary: Get an invitation in a share - examples: - - name: Invitations_Get - text: |- - az datashare invitation show --account-name "Account1" --invitation-name "Invitation1" - --resource-group "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare invitation create'] = """ - type: command - short-summary: Create an invitation - examples: - - name: Invitations_Create - text: |- - az datashare invitation create --account-name "Account1" --properties-target-email - "receiver@microsoft.com" --invitation-name "Invitation1" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare invitation delete'] = """ - type: command - short-summary: Delete an invitation in a share - examples: - - name: Invitations_Delete - text: |- - az datashare invitation delete --account-name "Account1" --invitation-name "Invitation1" - --resource-group "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare provider-share-subscription'] = """ - type: group - short-summary: datashare provider-share-subscription -""" - -helps['datashare provider-share-subscription list'] = """ - type: command - short-summary: List share subscriptions in a provider share - examples: - - name: ProviderShareSubscriptions_ListByShare - text: |- - az datashare provider-share-subscription list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare provider-share-subscription show'] = """ - type: command - short-summary: Get share subscription in a provider share - examples: - - name: ProviderShareSubscriptions_GetByShare - text: |- - az datashare provider-share-subscription show --account-name "Account1" - --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare provider-share-subscription revoke'] = """ - type: command - short-summary: Revoke share subscription in a provider share - examples: - - name: ProviderShareSubscriptions_Revoke - text: |- - az datashare provider-share-subscription revoke --account-name "Account1" - --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare provider-share-subscription reinstate'] = """ - type: command - short-summary: Reinstate share subscription in a provider share - examples: - - name: ProviderShareSubscriptions_Reinstate - text: |- - az datashare provider-share-subscription reinstate --account-name "Account1" - --provider-share-subscription-id "d5496da4-9c52-402f-b067-83cc9ddea888" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare synchronization-setting'] = """ - type: group - short-summary: datashare synchronization-setting -""" - -helps['datashare synchronization-setting list'] = """ - type: command - short-summary: List synchronizationSettings in a share - examples: - - name: SynchronizationSettings_ListByShare - text: |- - az datashare synchronization-setting list --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" -""" - -helps['datashare synchronization-setting show'] = """ - type: command - short-summary: Get a synchronizationSetting in a share - examples: - - name: SynchronizationSettings_Get - text: |- - az datashare synchronization-setting show --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name - "SyncrhonizationSetting1" -""" - -helps['datashare synchronization-setting create'] = """ - type: command - short-summary: Create or update a synchronizationSetting - examples: - - name: SynchronizationSettings_Create - text: |- - az datashare synchronization-setting create --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --kind "ScheduleBased" - --synchronization-setting-name "Dataset1" -""" - -helps['datashare synchronization-setting delete'] = """ - type: command - short-summary: Delete a synchronizationSetting in a share - examples: - - name: SynchronizationSettings_Delete - text: |- - az datashare synchronization-setting delete --account-name "Account1" --resource-group - "SampleResourceGroup" --share-name "Share1" --synchronization-setting-name - "SyncrhonizationSetting1" -""" diff --git a/src/datashare/azext_datashare/generated/_params.py b/src/datashare/azext_datashare/generated/_params.py deleted file mode 100644 index 27a2e873b06..00000000000 --- a/src/datashare/azext_datashare/generated/_params.py +++ /dev/null @@ -1,307 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 -# pylint: disable=too-many-lines -# pylint: disable=too-many-statements - -from azure.cli.core.commands.parameters import ( - tags_type, - get_enum_type, - resource_group_name_type, - get_location_type -) -from azext_datashare.action import AddIdentity - - -def load_arguments(self, _): - - with self.argument_context('datashare account list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare account show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - - with self.argument_context('datashare account create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the azure resource.') - c.argument('tags', tags_type, help='Tags on the azure resource.') - c.argument('identity', action=AddIdentity, nargs='+', help='Identity of resource') - - with self.argument_context('datashare account update') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('tags', tags_type, help='Tags on the azure resource.') - - with self.argument_context('datashare account delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - - with self.argument_context('datashare consumer-invitation list') as c: - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare consumer-invitation show') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') - c.argument('invitation_id', help='An invitation id') - - with self.argument_context('datashare consumer-invitation reject-invitation') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the invitation') - c.argument('properties_invitation_id', help='Unique id of the invitation.') - - with self.argument_context('datashare data-set list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare data-set show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('data_set_name', help='The name of the dataSet.') - - with self.argument_context('datashare data-set create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('data_set_name', help='The name of the dataSet.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') - - with self.argument_context('datashare data-set delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('data_set_name', help='The name of the dataSet.') - - with self.argument_context('datashare data-set-mapping list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare data-set-mapping show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') - - with self.argument_context('datashare data-set-mapping create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') - - with self.argument_context('datashare data-set-mapping delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('data_set_mapping_name', help='The name of the dataSetMapping.') - - with self.argument_context('datashare invitation list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare invitation show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('invitation_name', help='The name of the invitation.') - - with self.argument_context('datashare invitation create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('invitation_name', help='The name of the invitation.') - c.argument('properties_target_active_directory_id', help='The target Azure AD Id. Can\'t be combined with email.') - c.argument('properties_target_email', help='The email the invitation is directed to.') - c.argument('properties_target_object_id', help='The target user or application Id that invitation is being sent to. Must be specified along TargetActiveDirectoryId. This enables sending invitations to specific users or applications in an AD tenant.') - - with self.argument_context('datashare invitation delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('invitation_name', help='The name of the invitation.') - - with self.argument_context('datashare share list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare share show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - - with self.argument_context('datashare share create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('properties_description', help='Share description.') - c.argument('properties_share_kind', arg_type=get_enum_type(['CopyBased', 'InPlace']), help='Share kind.') - c.argument('properties_terms', help='Share terms.') - - with self.argument_context('datashare share delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - - with self.argument_context('datashare share synchronization list-detail') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') - c.argument('consumer_email', help='Email of the user who created the synchronization') - c.argument('consumer_name', help='Name of the user who created the synchronization') - c.argument('consumer_tenant_name', help='Tenant name of the consumer who created the synchronization') - c.argument('duration_ms', help='synchronization duration') - c.argument('end_time', help='End time of synchronization') - c.argument('message', help='message of synchronization') - c.argument('start_time', help='start time of synchronization') - c.argument('status', help='Raw Status') - c.argument('synchronization_id', help='Synchronization id') - - with self.argument_context('datashare share synchronization list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare provider-share-subscription list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare provider-share-subscription show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('provider_share_subscription_id', help='To locate shareSubscription') - - with self.argument_context('datashare provider-share-subscription revoke') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('provider_share_subscription_id', help='To locate shareSubscription') - - with self.argument_context('datashare provider-share-subscription reinstate') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('provider_share_subscription_id', help='To locate shareSubscription') - - with self.argument_context('datashare share-subscription list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare share-subscription show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - - with self.argument_context('datashare share-subscription create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('properties_invitation_id', help='The invitation id.') - c.argument('properties_source_share_location', help='Source share location.') - - with self.argument_context('datashare share-subscription delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - - with self.argument_context('datashare share-subscription synchronization list-detail') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') - c.argument('synchronization_id', help='Synchronization id') - - with self.argument_context('datashare share-subscription synchronization start') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('synchronization_mode', arg_type=get_enum_type(['Incremental', 'FullSync']), help='Synchronization mode') - - with self.argument_context('datashare share-subscription synchronization cancel') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('synchronization_id', help='Synchronization id') - - with self.argument_context('datashare share-subscription list-source-share-synchronization-setting') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare share-subscription synchronization list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare consumer-source-data-set list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare synchronization-setting list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare synchronization-setting show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') - - with self.argument_context('datashare synchronization-setting create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') - - with self.argument_context('datashare synchronization-setting delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_name', help='The name of the share.') - c.argument('synchronization_setting_name', help='The name of the synchronizationSetting.') - - with self.argument_context('datashare trigger list') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('skip_token', help='Continuation token') - - with self.argument_context('datashare trigger show') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('trigger_name', help='The name of the trigger.') - - with self.argument_context('datashare trigger create') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('trigger_name', help='The name of the trigger.') - c.argument('kind', arg_type=get_enum_type(['Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', 'ScheduleBased']), help='Kind of data set.') - - with self.argument_context('datashare trigger delete') as c: - c.argument('resource_group_name', resource_group_name_type, help='The resource group name.') - c.argument('account_name', help='The name of the share account.') - c.argument('share_subscription_name', help='The name of the shareSubscription.') - c.argument('trigger_name', help='The name of the trigger.') diff --git a/src/datashare/azext_datashare/generated/action.py b/src/datashare/azext_datashare/generated/action.py deleted file mode 100644 index a3dd5455c1e..00000000000 --- a/src/datashare/azext_datashare/generated/action.py +++ /dev/null @@ -1,26 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -# pylint: disable=protected-access - -import argparse -from knack.util import CLIError - - -class AddIdentity(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.identity = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = dict(x.split('=', 1) for x in values) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - d[kl] = v - return d diff --git a/src/datashare/azext_datashare/generated/commands.py b/src/datashare/azext_datashare/generated/commands.py deleted file mode 100644 index 662080418a0..00000000000 --- a/src/datashare/azext_datashare/generated/commands.py +++ /dev/null @@ -1,116 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 -# pylint: disable=too-many-statements - -from azure.cli.core.commands import CliCommandType - - -def load_command_table(self, _): - - from azext_datashare.generated._client_factory import cf_account - datashare_account = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._account_operations#AccountOperations.{}', - client_factory=cf_account) - with self.command_group('datashare account', datashare_account, client_factory=cf_account) as g: - g.custom_command('list', 'datashare_account_list') - g.custom_show_command('show', 'datashare_account_show') - g.custom_command('create', 'datashare_account_create', supports_no_wait=True) - g.custom_command('update', 'datashare_account_update') - g.custom_command('delete', 'datashare_account_delete', supports_no_wait=True) - g.wait_command('wait') - - # from azext_datashare.generated._client_factory import cf_consumer_invitation - # datashare_consumer_invitation = CliCommandType( - # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_invitation_operations#ConsumerInvitationOperations.{}', - # client_factory=cf_consumer_invitation) - # with self.command_group('datashare consumer-invitation', datashare_consumer_invitation, client_factory=cf_consumer_invitation) as g: - # g.custom_command('list', 'datashare_consumer_invitation_list') - # g.custom_show_command('show', 'datashare_consumer_invitation_show') - # g.custom_command('reject-invitation', 'datashare_consumer_invitation_reject_invitation') - - # from azext_datashare.generated._client_factory import cf_data_set - # datashare_data_set = CliCommandType( - # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_operations#DataSetOperations.{}', - # client_factory=cf_data_set) - # with self.command_group('datashare data-set', datashare_data_set, client_factory=cf_data_set) as g: - # g.custom_command('list', 'datashare_data_set_list') - # g.custom_show_command('show', 'datashare_data_set_show') - # g.custom_command('create', 'datashare_data_set_create') - # g.custom_command('delete', 'datashare_data_set_delete', supports_no_wait=True) - # g.wait_command('wait') - - # from azext_datashare.generated._client_factory import cf_data_set_mapping - # datashare_data_set_mapping = CliCommandType( - # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._data_set_mapping_operations#DataSetMappingOperations.{}', - # client_factory=cf_data_set_mapping) - # with self.command_group('datashare data-set-mapping', datashare_data_set_mapping, client_factory=cf_data_set_mapping) as g: - # g.custom_command('list', 'datashare_data_set_mapping_list') - # g.custom_show_command('show', 'datashare_data_set_mapping_show') - # g.custom_command('create', 'datashare_data_set_mapping_create') - # g.custom_command('delete', 'datashare_data_set_mapping_delete') - - from azext_datashare.generated._client_factory import cf_invitation - datashare_invitation = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._invitation_operations#InvitationOperations.{}', - client_factory=cf_invitation) - with self.command_group('datashare invitation', datashare_invitation, client_factory=cf_invitation) as g: - g.custom_command('list', 'datashare_invitation_list') - g.custom_show_command('show', 'datashare_invitation_show') - g.custom_command('create', 'datashare_invitation_create') - g.custom_command('delete', 'datashare_invitation_delete') - - # from azext_datashare.generated._client_factory import cf_share - # datashare_share = CliCommandType( - # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._share_operations#ShareOperations.{}', - # client_factory=cf_share) - # with self.command_group('datashare share', datashare_share, client_factory=cf_share) as g: - # g.custom_command('list', 'datashare_share_list') - # g.custom_show_command('show', 'datashare_share_show') - # g.custom_command('create', 'datashare_share_create') - # g.custom_command('delete', 'datashare_share_delete', supports_no_wait=True) - # g.custom_command('synchronization list-detail', 'datashare_share_list_synchronization_detail') - # g.custom_command('synchronization list', 'datashare_share_list_synchronization') - # g.wait_command('wait') - - from azext_datashare.generated._client_factory import cf_provider_share_subscription - datashare_provider_share_subscription = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._provider_share_subscription_operations#ProviderShareSubscriptionOperations.{}', - client_factory=cf_provider_share_subscription) - with self.command_group('datashare provider-share-subscription', datashare_provider_share_subscription, client_factory=cf_provider_share_subscription) as g: - g.custom_command('list', 'datashare_provider_share_subscription_list') - g.custom_show_command('show', 'datashare_provider_share_subscription_show') - g.custom_command('revoke', 'datashare_provider_share_subscription_revoke', supports_no_wait=True) - g.custom_command('reinstate', 'datashare_provider_share_subscription_reinstate') - g.wait_command('wait') - - # from azext_datashare.generated._client_factory import cf_consumer_source_data_set - # datashare_consumer_source_data_set = CliCommandType( - # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._consumer_source_data_set_operations#ConsumerSourceDataSetOperations.{}', - # client_factory=cf_consumer_source_data_set) - # with self.command_group('datashare consumer-source-data-set', datashare_consumer_source_data_set, client_factory=cf_consumer_source_data_set) as g: - # g.custom_command('list', 'datashare_consumer_source_data_set_list') - - from azext_datashare.generated._client_factory import cf_synchronization_setting - datashare_synchronization_setting = CliCommandType( - operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._synchronization_setting_operations#SynchronizationSettingOperations.{}', - client_factory=cf_synchronization_setting) - with self.command_group('datashare synchronization-setting', datashare_synchronization_setting, client_factory=cf_synchronization_setting) as g: - g.custom_command('list', 'datashare_synchronization_setting_list') - g.custom_show_command('show', 'datashare_synchronization_setting_show') - g.custom_command('create', 'datashare_synchronization_setting_create') - g.custom_command('delete', 'datashare_synchronization_setting_delete', supports_no_wait=True) - g.wait_command('wait') - - # from azext_datashare.generated._client_factory import cf_trigger - # datashare_trigger = CliCommandType( - # operations_tmpl='azext_datashare.vendored_sdks.datashare.operations._trigger_operations#TriggerOperations.{}', - # client_factory=cf_trigger) - # with self.command_group('datashare trigger', datashare_trigger, client_factory=cf_trigger) as g: - # g.custom_command('list', 'datashare_trigger_list') - # g.custom_show_command('show', 'datashare_trigger_show') - # g.custom_command('create', 'datashare_trigger_create', supports_no_wait=True) - # g.custom_command('delete', 'datashare_trigger_delete', supports_no_wait=True) - # g.wait_command('wait') diff --git a/src/datashare/azext_datashare/generated/custom.py b/src/datashare/azext_datashare/generated/custom.py deleted file mode 100644 index 707943cf33d..00000000000 --- a/src/datashare/azext_datashare/generated/custom.py +++ /dev/null @@ -1,394 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 -# pylint: disable=too-many-lines -# pylint: disable=unused-argument - - -def datashare_account_list(cmd, client, - resource_group_name=None, - skip_token=None): - if resource_group_name is not None: - return client.list_by_resource_group(resource_group_name=resource_group_name, skip_token=skip_token) - return client.list_by_subscription(skip_token=skip_token) - - -def datashare_account_show(cmd, client, - resource_group_name, - account_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name) - - -def datashare_account_create(cmd, client, - resource_group_name, - account_name, - identity, - location=None, - tags=None): - return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, location=location, tags=tags, identity=identity) - - -def datashare_account_update(cmd, client, - resource_group_name, - account_name, - tags=None): - return client.update(resource_group_name=resource_group_name, account_name=account_name, tags=tags) - - -def datashare_account_delete(cmd, client, - resource_group_name, - account_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name) - - -def datashare_consumer_invitation_list(cmd, client, - skip_token=None): - return client.list_invitation(skip_token=skip_token) - - -def datashare_consumer_invitation_show(cmd, client, - location, - invitation_id): - return client.get(location=location, invitation_id=invitation_id) - - -def datashare_consumer_invitation_reject_invitation(cmd, client, - location, - properties_invitation_id): - return client.reject_invitation(location=location, invitation_id=properties_invitation_id) - - -def datashare_data_set_list(cmd, client, - resource_group_name, - account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) - - -def datashare_data_set_show(cmd, client, - resource_group_name, - account_name, - share_name, - data_set_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) - - -def datashare_data_set_create(cmd, client, - resource_group_name, - account_name, - share_name, - data_set_name, - kind): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name, kind=kind) - - -def datashare_data_set_delete(cmd, client, - resource_group_name, - account_name, - share_name, - data_set_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, data_set_name=data_set_name) - - -def datashare_data_set_mapping_list(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - skip_token=None): - return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) - - -def datashare_data_set_mapping_show(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - data_set_mapping_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name) - - -def datashare_data_set_mapping_create(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - data_set_mapping_name, - kind): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name, kind=kind) - - -def datashare_data_set_mapping_delete(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - data_set_mapping_name): - return client.delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, data_set_mapping_name=data_set_mapping_name) - - -def datashare_invitation_list(cmd, client, - resource_group_name, - account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) - - -def datashare_invitation_show(cmd, client, - resource_group_name, - account_name, - share_name, - invitation_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name) - - -def datashare_invitation_create(cmd, client, - resource_group_name, - account_name, - share_name, - invitation_name, - properties_target_active_directory_id=None, - properties_target_email=None, - properties_target_object_id=None): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name, target_active_directory_id=properties_target_active_directory_id, target_email=properties_target_email, target_object_id=properties_target_object_id) - - -def datashare_invitation_delete(cmd, client, - resource_group_name, - account_name, - share_name, - invitation_name): - return client.delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, invitation_name=invitation_name) - - -def datashare_share_list(cmd, client, - resource_group_name, - account_name, - skip_token=None): - return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) - - -def datashare_share_show(cmd, client, - resource_group_name, - account_name, - share_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name) - - -def datashare_share_create(cmd, client, - resource_group_name, - account_name, - share_name, - properties_description=None, - properties_share_kind=None, - properties_terms=None): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, description=properties_description, share_kind=properties_share_kind, terms=properties_terms) - - -def datashare_share_delete(cmd, client, - resource_group_name, - account_name, - share_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name) - - -def datashare_share_list_synchronization_detail(cmd, client, - resource_group_name, - account_name, - share_name, - skip_token=None, - consumer_email=None, - consumer_name=None, - consumer_tenant_name=None, - duration_ms=None, - end_time=None, - message=None, - start_time=None, - status=None, - synchronization_id=None): - return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token, consumer_email=consumer_email, consumer_name=consumer_name, consumer_tenant_name=consumer_tenant_name, duration_ms=duration_ms, end_time=end_time, message=message, start_time=start_time, status=status, synchronization_id=synchronization_id) - - -def datashare_share_list_synchronization(cmd, client, - resource_group_name, - account_name, - share_name, - skip_token=None): - return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) - - -def datashare_provider_share_subscription_list(cmd, client, - resource_group_name, - account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) - - -def datashare_provider_share_subscription_show(cmd, client, - resource_group_name, - account_name, - share_name, - provider_share_subscription_id): - return client.get_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) - - -def datashare_provider_share_subscription_revoke(cmd, client, - resource_group_name, - account_name, - share_name, - provider_share_subscription_id): - return client.begin_revoke(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) - - -def datashare_provider_share_subscription_reinstate(cmd, client, - resource_group_name, - account_name, - share_name, - provider_share_subscription_id): - return client.reinstate(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, provider_share_subscription_id=provider_share_subscription_id) - - -def datashare_share_subscription_list(cmd, client, - resource_group_name, - account_name, - skip_token=None): - return client.list_by_account(resource_group_name=resource_group_name, account_name=account_name, skip_token=skip_token) - - -def datashare_share_subscription_show(cmd, client, - resource_group_name, - account_name, - share_subscription_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) - - -def datashare_share_subscription_create(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - properties_invitation_id, - properties_source_share_location): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, invitation_id=properties_invitation_id, source_share_location=properties_source_share_location) - - -def datashare_share_subscription_delete(cmd, client, - resource_group_name, - account_name, - share_subscription_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name) - - -def datashare_share_subscription_list_synchronization_detail(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - synchronization_id, - skip_token=None): - return client.list_synchronization_detail(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token, synchronization_id=synchronization_id) - - -def datashare_share_subscription_synchronize(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - synchronization_mode=None): - return client.begin_synchronize(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_mode=synchronization_mode) - - -def datashare_share_subscription_cancel_synchronization(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - synchronization_id): - return client.begin_cancel_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, synchronization_id=synchronization_id) - - -def datashare_share_subscription_list_source_share_synchronization_setting(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - skip_token=None): - return client.list_source_share_synchronization_setting(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) - - -def datashare_share_subscription_list_synchronization(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - skip_token=None): - return client.list_synchronization(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) - - -def datashare_consumer_source_data_set_list(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - skip_token=None): - return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) - - -def datashare_synchronization_setting_list(cmd, client, - resource_group_name, - account_name, - share_name, - skip_token=None): - return client.list_by_share(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, skip_token=skip_token) - - -def datashare_synchronization_setting_show(cmd, client, - resource_group_name, - account_name, - share_name, - synchronization_setting_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) - - -def datashare_synchronization_setting_create(cmd, client, - resource_group_name, - account_name, - share_name, - synchronization_setting_name, - kind): - return client.create(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name, kind=kind) - - -def datashare_synchronization_setting_delete(cmd, client, - resource_group_name, - account_name, - share_name, - synchronization_setting_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_name=share_name, synchronization_setting_name=synchronization_setting_name) - - -def datashare_trigger_list(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - skip_token=None): - return client.list_by_share_subscription(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, skip_token=skip_token) - - -def datashare_trigger_show(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - trigger_name): - return client.get(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name) - - -def datashare_trigger_create(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - trigger_name, - kind): - return client.begin_create(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name, kind=kind) - - -def datashare_trigger_delete(cmd, client, - resource_group_name, - account_name, - share_subscription_name, - trigger_name): - return client.begin_delete(resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name) diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 8440c15508a..2fde8aa9b2a 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -16,7 +16,6 @@ get_datetime_type ) from azure.cli.core.commands.validators import get_default_location_from_resource_group, validate_file_or_dict -from azext_datashare.action import AddIdentity from azext_datashare.vendored_sdks.datashare.models._data_share_management_client_enums import ShareKind, Kind, SynchronizationMode, SynchronizationKind, RecurrenceInterval from azext_datashare.manual._validators import invitation_id_validator From 6600ebba697530be349fd9b8dc5696373ef9f6df Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Wed, 22 Apr 2020 13:49:58 +0800 Subject: [PATCH 19/23] removed unused file --- .../azext_datashare/tests/latest/preparers.py | 117 ------------------ 1 file changed, 117 deletions(-) delete mode 100644 src/datashare/azext_datashare/tests/latest/preparers.py diff --git a/src/datashare/azext_datashare/tests/latest/preparers.py b/src/datashare/azext_datashare/tests/latest/preparers.py deleted file mode 100644 index 025bb93a84c..00000000000 --- a/src/datashare/azext_datashare/tests/latest/preparers.py +++ /dev/null @@ -1,117 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# 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 -# pylint: disable=too-many-lines -# pylint: disable=too-many-statements -# pylint: disable=unused-import -# pylint: disable=unused-argument -# pylint: disable=too-many-instance-attributes - -import os -from datetime import datetime -from azure.cli.testsdk.preparers import NoTrafficRecordingPreparer -from azure.cli.testsdk.exceptions import CliTestError -from azure.cli.testsdk.reverse_dependency import get_dummy_cli -from azure_devtools.scenario_tests import SingleValueReplacer - - -KEY_RESOURCE_GROUP = 'rg' -KEY_VIRTUAL_NETWORK = 'vnet' -KEY_VNET_SUBNET = 'subnet' - - -class VirtualNetworkPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): - def __init__(self, name_prefix='clitest.vn', - parameter_name='virtual_network', - resource_group_name=None, - resource_group_key=KEY_RESOURCE_GROUP, - dev_setting_name='AZURE_CLI_TEST_DEV_VIRTUAL_NETWORK_NAME', - random_name_length=24, key=KEY_VIRTUAL_NETWORK): - if ' ' in name_prefix: - raise CliTestError( - 'Error: Space character in name prefix \'%s\'' % name_prefix) - super(VirtualNetworkPreparer, self).__init__( - name_prefix, random_name_length) - self.cli_ctx = get_dummy_cli() - self.parameter_name = parameter_name - self.key = key - self.resource_group_name = resource_group_name - self.resource_group_key = resource_group_key - self.dev_setting_name = os.environ.get(dev_setting_name, None) - - def create_resource(self, name, **kwargs): - if self.dev_setting_name: - return {self.parameter_name: self.dev_setting_name, } - - if not self.resource_group_name: - self.resource_group_name = self.test_class_instance.kwargs.get( - self.resource_group_key) - if not self.resource_group_name: - raise CliTestError("Error: No resource group configured!") - - tags = {'product': 'azurecli', 'cause': 'automation', - 'date': datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')} - if 'ENV_JOB_NAME' in os.environ: - tags['job'] = os.environ['ENV_JOB_NAME'] - tags = ' '.join(['{}={}'.format(key, value) - for key, value in tags.items()]) - template = 'az network vnet create --resource-group {} --name {} --tag ' + tags - self.live_only_execute(self.cli_ctx, template.format( - self.resource_group_name, name)) - - self.test_class_instance.kwargs[self.key] = name - return {self.parameter_name: name} - - def remove_resource(self, name, **kwargs): - # delete vnet if test is being recorded and if the vnet is not a dev rg - if not self.dev_setting_name: - self.live_only_execute( - self.cli_ctx, 'az network vnet delete --name {} --resource-group {}'.format(name, self.resource_group_name)) - - -class VnetSubnetPreparer(NoTrafficRecordingPreparer, SingleValueReplacer): - def __init__(self, name_prefix='clitest.vn', - parameter_name='subnet', - resource_group_name=None, - resource_group_key=KEY_RESOURCE_GROUP, - vnet_name=None, - vnet_key=KEY_VIRTUAL_NETWORK, - address_prefixes="11.0.0.0/24", - dev_setting_name='AZURE_CLI_TEST_DEV_VNET_SUBNET_NAME', - random_name_length=24, key=KEY_VNET_SUBNET): - if ' ' in name_prefix: - raise CliTestError( - 'Error: Space character in name prefix \'%s\'' % name_prefix) - super(VnetSubnetPreparer, self).__init__( - name_prefix, random_name_length) - self.cli_ctx = get_dummy_cli() - self.parameter_name = parameter_name - self.key = key - self.resource_group_name = resource_group_name - self.resource_group_key = resource_group_key - self.vnet_name = vnet_name - self.vnet_key = vnet_key - self.address_prefixes = address_prefixes - self.dev_setting_name = os.environ.get(dev_setting_name, None) - - def create_resource(self, name, **kwargs): - if self.dev_setting_name: - return {self.parameter_name: self.dev_setting_name, } - - if not self.resource_group_name: - self.resource_group_name = self.test_class_instance.kwargs.get( - self.resource_group_key) - if not self.resource_group_name: - raise CliTestError("Error: No resource group configured!") - if not self.vnet_name: - self.vnet_name = self.test_class_instance.kwargs.get(self.vnet_key) - if not self.vnet_name: - raise CliTestError("Error: No vnet configured!") - - self.test_class_instance.kwargs[self.key] = 'default' - return {self.parameter_name: name} - - def remove_resource(self, name, **kwargs): - pass From d82d28d0e189ceb36bd4954474ee41000a0782d9 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Thu, 23 Apr 2020 16:48:05 +0800 Subject: [PATCH 20/23] update readme --- src/datashare/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/datashare/README.md b/src/datashare/README.md index 13999c46e81..5921287e152 100644 --- a/src/datashare/README.md +++ b/src/datashare/README.md @@ -71,11 +71,13 @@ az role assignment create \ ##### Create a Synchronization Setting ``` az datashare synchronization-setting create \ ---account-name "cli_test_account" \ ---resource-group "datashare_provider_rg" \ ---share-name "cli_test_share" \ ---name "cli_test_synchronization_setting" \ ---setting "{\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-05T10:50:00Z\",\"kind\":\"ScheduleBased\"}" +--account-name cli_test_account \ +--resource-group datashare_provider_rg \ +--share-name cli_test_share \ +--name cli_test_synchronization_setting \ +--recurrence-interval Day \ +--synchronization-time "2020-04-05 10:50:00 +00:00" \ +--kind ScheduleBased ``` ##### List Synchronization History From 388e336b02af24bef1840bbb69b777aef85fd04a Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Thu, 23 Apr 2020 21:40:28 +0800 Subject: [PATCH 21/23] modify trigger --- src/datashare/README.md | 5 +++-- src/datashare/azext_datashare/manual/_help.py | 2 +- src/datashare/azext_datashare/manual/_params.py | 5 +++-- src/datashare/azext_datashare/manual/custom.py | 11 +++++++++-- .../tests/latest/test_datashare_scenario.py | 5 ++--- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/datashare/README.md b/src/datashare/README.md index 5921287e152..9b8be0ab667 100644 --- a/src/datashare/README.md +++ b/src/datashare/README.md @@ -186,8 +186,9 @@ az datashare consumer trigger create \ --resource-group "datashare_consumer_rg" \ --share-subscription-name "cli_test_share_subscription" \ --name "cli_test_trigger" \ ---trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\", \ -\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" +--recurrence-interval Day \ +--synchronization-time "2020-04-05 10:50:00 +00:00" \ +--kind ScheduleBased ``` ##### Start a synchronization for the Share Subscription diff --git a/src/datashare/azext_datashare/manual/_help.py b/src/datashare/azext_datashare/manual/_help.py index 2d5e64ef30d..e9d2ba56a72 100644 --- a/src/datashare/azext_datashare/manual/_help.py +++ b/src/datashare/azext_datashare/manual/_help.py @@ -592,7 +592,7 @@ examples: - name: Create a trigger text: |- - az datashare consumer trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --name MyTrigger --trigger "{\"kind\":\"ScheduleBased\",\"recurrenceInterval\":\"Day\",\"synchronizationTime\":\"2020-04-03T08:45:35+00:00\"}" + az datashare consumer trigger create --account-name MyAccount --resource-group MyResourceGroup --share-subscription-name MyShareSubscription --name MyTrigger --recurrence-interval Day --synchronization-time "2020-04-05 10:50:00 +00:00" --kind ScheduleBased """ helps['datashare consumer trigger delete'] = """ diff --git a/src/datashare/azext_datashare/manual/_params.py b/src/datashare/azext_datashare/manual/_params.py index 2fde8aa9b2a..f7dbfbae2ac 100644 --- a/src/datashare/azext_datashare/manual/_params.py +++ b/src/datashare/azext_datashare/manual/_params.py @@ -145,7 +145,6 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_name', help='The name of the share.') c.argument('synchronization_setting_name', options_list=['--name', '-n'], help='The name of the synchronizationSetting.') # modified - # c.argument('synchronization_setting', options_list=['--setting'], type=validate_file_or_dict, help='Synchronization settings in JSON string or path to JSON file.') c.argument('recurrence_interval', arg_type=get_enum_type(RecurrenceInterval), arg_group='Synchronization Setting', help='Synchronization Recurrence Interval.') c.argument('synchronization_time', arg_group='Synchronization Setting', arg_type=get_datetime_type(help='Synchronization time.')) c.argument('kind', arg_type=get_enum_type(SynchronizationKind), arg_group='Synchronization Setting', default='ScheduleBased', help='Kind of synchronization.') @@ -320,7 +319,9 @@ def load_arguments(self, _): c.argument('account_name', help='The name of the share account.') c.argument('share_subscription_name', help='The name of the share subscription.') c.argument('trigger_name', options_list=['--name', '-n'], help='The name of the trigger.') # modified - c.argument('trigger', type=validate_file_or_dict, help='Trigger parameters in JSON string or path to JSON file.') # modified + c.argument('recurrence_interval', arg_type=get_enum_type(RecurrenceInterval), arg_group='Synchronization Setting', help='Synchronization Recurrence Interval.') + c.argument('synchronization_time', arg_group='Synchronization Setting', arg_type=get_datetime_type(help='Synchronization time.')) + c.argument('kind', arg_type=get_enum_type(SynchronizationKind), arg_group='Synchronization Setting', default='ScheduleBased', help='Kind of synchronization.') with self.argument_context('datashare consumer trigger delete') as c: c.argument('resource_group_name', resource_group_name_type) # modified diff --git a/src/datashare/azext_datashare/manual/custom.py b/src/datashare/azext_datashare/manual/custom.py index 7b4de66c004..c75327b1b3f 100644 --- a/src/datashare/azext_datashare/manual/custom.py +++ b/src/datashare/azext_datashare/manual/custom.py @@ -488,15 +488,22 @@ def datashare_trigger_create(cmd, client, account_name, share_subscription_name, trigger_name, - trigger, + recurrence_interval, + synchronization_time, + kind=None, no_wait=False): + synchronization_setting = { + 'synchronizationTime': synchronization_time, + 'recurrenceInterval': recurrence_interval, + 'kind': kind + } return sdk_no_wait(no_wait, client.begin_create, resource_group_name=resource_group_name, account_name=account_name, share_subscription_name=share_subscription_name, trigger_name=trigger_name, - trigger=trigger) + trigger=synchronization_setting) def datashare_trigger_delete(cmd, client, diff --git a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py index c9aeb04c4d5..43245c24f3e 100644 --- a/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py +++ b/src/datashare/azext_datashare/tests/latest/test_datashare_scenario.py @@ -452,14 +452,13 @@ def test_datashare(self, resource_group, storage_account): checks=[self.check('[0].recurrenceInterval', 'Day'), self.check('[0].kind', 'ScheduleBased')]) - triggerContent = {"kind": "ScheduleBased", "recurrenceInterval": "Day", "synchronizationTime": "2020-04-05T10:50:00+00:00"} - self.kwargs.update({'TriggerContent': triggerContent}) self.cmd('az datashare consumer trigger create ' '--account-name "{ConsumerAccount}" ' '--resource-group "{ConsumerResourceGroup}" ' '--share-subscription-name "{ConsumerShareSubscription}" ' '--name "{ConsumerTrigger}" ' - '--trigger "{TriggerContent}" ' + '--recurrence-interval "Day" ' + '--synchronization-time "2020-04-05 10:50:00 +00:00" ' '--subscription "{ConsumerSubscription}"', checks=[self.check('properties.recurrenceInterval', 'Day'), # TODO properties is not removed in the response structure self.check('properties.synchronizationMode', 'Incremental')]) From e77229fe6284ac8fd4cb88b7091391435da29263 Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Thu, 23 Apr 2020 21:59:51 +0800 Subject: [PATCH 22/23] update recordings --- .../latest/recordings/test_datashare.yaml | 720 +++++++++++------- 1 file changed, 457 insertions(+), 263 deletions(-) diff --git a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml index 44c6bfd010e..5896d5f4841 100644 --- a/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml +++ b/src/datashare/azext_datashare/tests/latest/recordings/test_datashare.yaml @@ -11,8 +11,8 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: GET @@ -68,7 +68,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:40:14 GMT + - Thu, 23 Apr 2020 13:42:15 GMT expires: - '-1' pragma: @@ -101,13 +101,13 @@ interactions: ParameterSetName: - --location --tags --name --resource-group User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -117,7 +117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:40:24 GMT + - Thu, 23 Apr 2020 13:42:26 GMT expires: - '-1' location: @@ -131,10 +131,10 @@ interactions: x-content-type-options: - nosniff x-ms-quota: - - '[{"currentUsed":6,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account"}]' + - '[{"currentUsed":4,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datrywkgqr6mfnic2batum7zhzzekrutyfed7ajmopnqmg7bfkqdq2mavcabi7fdxo/providers/Microsoft.DataShare/accounts/cli_test_account"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 201 message: Created @@ -152,13 +152,13 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -168,7 +168,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:40:26 GMT + - Thu, 23 Apr 2020 13:42:27 GMT expires: - '-1' pragma: @@ -200,13 +200,13 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -216,7 +216,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:40:56 GMT + - Thu, 23 Apr 2020 13:42:58 GMT expires: - '-1' pragma: @@ -248,13 +248,13 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -264,7 +264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:41:27 GMT + - Thu, 23 Apr 2020 13:43:29 GMT expires: - '-1' pragma: @@ -296,13 +296,13 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Creating","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Creating","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -312,7 +312,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:41:57 GMT + - Thu, 23 Apr 2020 13:43:59 GMT expires: - '-1' pragma: @@ -344,13 +344,13 @@ interactions: ParameterSetName: - --name --resource-group --created User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -360,7 +360,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:28 GMT + - Thu, 23 Apr 2020 13:44:30 GMT expires: - '-1' pragma: @@ -392,13 +392,13 @@ interactions: ParameterSetName: - -n --resource-group User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -408,7 +408,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:29 GMT + - Thu, 23 Apr 2020 13:44:32 GMT expires: - '-1' pragma: @@ -440,13 +440,13 @@ interactions: ParameterSetName: - --ids User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}' headers: cache-control: @@ -456,7 +456,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:31 GMT + - Thu, 23 Apr 2020 13:44:33 GMT expires: - '-1' pragma: @@ -488,13 +488,13 @@ interactions: ParameterSetName: - --resource-group User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts?api-version=2019-11-01 response: body: - string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng + string: '{"value":[{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Red","tag2":"White"}}]}' headers: cache-control: @@ -504,7 +504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:32 GMT + - Thu, 23 Apr 2020 13:44:35 GMT expires: - '-1' pragma: @@ -540,13 +540,13 @@ interactions: ParameterSetName: - --name --tags --resource-group User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-21T08:40:23.2715618Z","provisioningState":"Succeeded","userName":"Feng + string: '{"identity":{"type":"SystemAssigned","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"createdAt":"2020-04-23T13:42:23.9427652Z","provisioningState":"Succeeded","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account","name":"cli_test_account","type":"Microsoft.DataShare/accounts","location":"westus2","tags":{"tag1":"Green"}}' headers: cache-control: @@ -556,7 +556,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:37 GMT + - Thu, 23 Apr 2020 13:44:40 GMT expires: - '-1' pragma: @@ -595,13 +595,13 @@ interactions: ParameterSetName: - --account-name --resource-group --description --share-kind --terms --name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-23T13:44:43.0008884Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: @@ -611,7 +611,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:40 GMT + - Thu, 23 Apr 2020 13:44:43 GMT expires: - '-1' location: @@ -626,9 +626,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"Share resource quota","value":"Share - resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share"}]' + resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datrywkgqr6mfnic2batum7zhzzekrutyfed7ajmopnqmg7bfkqdq2mavcabi7fdxo/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -646,13 +646,13 @@ interactions: ParameterSetName: - --account-name --resource-group --name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-23T13:44:43.0008884Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: @@ -662,7 +662,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:41 GMT + - Thu, 23 Apr 2020 13:44:44 GMT expires: - '-1' pragma: @@ -694,13 +694,13 @@ interactions: ParameterSetName: - --ids User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng + string: '{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-23T13:44:43.0008884Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}' headers: cache-control: @@ -710,7 +710,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:43 GMT + - Thu, 23 Apr 2020 13:44:46 GMT expires: - '-1' pragma: @@ -742,13 +742,13 @@ interactions: ParameterSetName: - --account-name --resource-group User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-21T08:42:40.1133175Z","userName":"Feng + string: '{"value":[{"properties":{"description":"share description","terms":"Confidential","shareKind":"CopyBased","provisioningState":"Succeeded","createdAt":"2020-04-23T13:44:43.0008884Z","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share","name":"cli_test_share","type":"Microsoft.DataShare/shares"}]}' headers: cache-control: @@ -758,7 +758,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:44 GMT + - Thu, 23 Apr 2020 13:44:48 GMT expires: - '-1' pragma: @@ -790,15 +790,15 @@ interactions: ParameterSetName: - -n -g User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002?api-version=2019-06-01 response: body: - string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-21T08:39:54.1291957Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}}' + string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-23T13:41:53.6606746Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-23T13:41:53.6606746Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-23T13:41:53.5981225Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}}' headers: cache-control: - no-cache @@ -807,7 +807,7 @@ interactions: content-type: - application/json date: - - Tue, 21 Apr 2020 08:42:46 GMT + - Thu, 23 Apr 2020 13:44:49 GMT expires: - '-1' pragma: @@ -827,7 +827,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1", - "principalId": "59322a57-a42c-4c86-a360-e4f789d19413", "principalType": "ServicePrincipal"}}' + "principalId": "b5246a1a-9dff-43b3-bef8-4e1ae69234aa", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -844,15 +844,15 @@ interactions: ParameterSetName: - --role --assignee-object-id --assignee-principal-type --scope User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/0046396c-683d-4d8b-8819-01b8539634d8?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/0276c401-3a81-4eb5-ac21-1d520c24c5e1?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"59322a57-a42c-4c86-a360-e4f789d19413","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","createdOn":"2020-04-21T08:42:48.3930477Z","updatedOn":"2020-04-21T08:42:48.3930477Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/0046396c-683d-4d8b-8819-01b8539634d8","type":"Microsoft.Authorization/roleAssignments","name":"0046396c-683d-4d8b-8819-01b8539634d8"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/2a2b9908-6ea1-4ae2-8e65-a410df84e7d1","principalId":"b5246a1a-9dff-43b3-bef8-4e1ae69234aa","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","createdOn":"2020-04-23T13:44:51.4815862Z","updatedOn":"2020-04-23T13:44:51.4815862Z","createdBy":null,"updatedBy":"31e600e0-d7ce-4e98-a927-19bb30042e44"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002/providers/Microsoft.Authorization/roleAssignments/0276c401-3a81-4eb5-ac21-1d520c24c5e1","type":"Microsoft.Authorization/roleAssignments","name":"0276c401-3a81-4eb5-ac21-1d520c24c5e1"}' headers: cache-control: - no-cache @@ -861,7 +861,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:52 GMT + - Thu, 23 Apr 2020 13:44:58 GMT expires: - '-1' pragma: @@ -873,7 +873,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1180' + - '1198' status: code: 201 message: Created @@ -891,8 +891,8 @@ interactions: ParameterSetName: - --account-name --name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: GET @@ -900,16 +900,16 @@ interactions: response: body: string: '{"value":[{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-core-poc/providers/Microsoft.Storage/storageAccounts/azurecorepoc","name":"azurecorepoc","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-26T02:38:58.8233588Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-26T02:38:58.7452329Z","primaryEndpoints":{"dfs":"https://azurecorepoc.dfs.core.windows.net/","web":"https://azurecorepoc.z13.web.core.windows.net/","blob":"https://azurecorepoc.blob.core.windows.net/","queue":"https://azurecorepoc.queue.core.windows.net/","table":"https://azurecorepoc.table.core.windows.net/","file":"https://azurecorepoc.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://azurecorepoc-secondary.dfs.core.windows.net/","web":"https://azurecorepoc-secondary.z13.web.core.windows.net/","blob":"https://azurecorepoc-secondary.blob.core.windows.net/","queue":"https://azurecorepoc-secondary.queue.core.windows.net/","table":"https://azurecorepoc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.Storage/storageAccounts/fystac","name":"fystac","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-08T03:10:13.4426715Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-08T03:10:13.3645539Z","primaryEndpoints":{"dfs":"https://fystac.dfs.core.windows.net/","web":"https://fystac.z13.web.core.windows.net/","blob":"https://fystac.blob.core.windows.net/","queue":"https://fystac.queue.core.windows.net/","table":"https://fystac.table.core.windows.net/","file":"https://fystac.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fystac-secondary.dfs.core.windows.net/","web":"https://fystac-secondary.z13.web.core.windows.net/","blob":"https://fystac-secondary.blob.core.windows.net/","queue":"https://fystac-secondary.queue.core.windows.net/","table":"https://fystac-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/harold/providers/Microsoft.Storage/storageAccounts/harold","name":"harold","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-29T13:11:16.4123336Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-29T13:11:16.3342268Z","primaryEndpoints":{"dfs":"https://harold.dfs.core.windows.net/","web":"https://harold.z13.web.core.windows.net/","blob":"https://harold.blob.core.windows.net/","queue":"https://harold.queue.core.windows.net/","table":"https://harold.table.core.windows.net/","file":"https://harold.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://harold-secondary.dfs.core.windows.net/","web":"https://harold-secondary.z13.web.core.windows.net/","blob":"https://harold-secondary.blob.core.windows.net/","queue":"https://harold-secondary.queue.core.windows.net/","table":"https://harold-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenadls","name":"qianwenadls","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-01T10:11:06.0357634Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-01T10:11:05.9576622Z","primaryEndpoints":{"dfs":"https://qianwenadls.dfs.core.windows.net/","web":"https://qianwenadls.z13.web.core.windows.net/","blob":"https://qianwenadls.blob.core.windows.net/","queue":"https://qianwenadls.queue.core.windows.net/","table":"https://qianwenadls.table.core.windows.net/","file":"https://qianwenadls.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenadls-secondary.dfs.core.windows.net/","web":"https://qianwenadls-secondary.z13.web.core.windows.net/","blob":"https://qianwenadls-secondary.blob.core.windows.net/","queue":"https://qianwenadls-secondary.queue.core.windows.net/","table":"https://qianwenadls-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwendev","name":"qianwendev","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/QIAN/subnets/default","action":"Allow","state":"Succeeded"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Network/virtualNetworks/qianwendev/subnets/default","action":"Allow","state":"Succeeded"}],"ipRules":[{"value":"23.45.1.0/24","action":"Allow"},{"value":"23.45.1.1/24","action":"Allow"}],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T03:29:28.0084761Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-12T03:29:27.9459854Z","primaryEndpoints":{"dfs":"https://qianwendev.dfs.core.windows.net/","web":"https://qianwendev.z13.web.core.windows.net/","blob":"https://qianwendev.blob.core.windows.net/","queue":"https://qianwendev.queue.core.windows.net/","table":"https://qianwendev.table.core.windows.net/","file":"https://qianwendev.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwendev-secondary.dfs.core.windows.net/","web":"https://qianwendev-secondary.z13.web.core.windows.net/","blob":"https://qianwendev-secondary.blob.core.windows.net/","queue":"https://qianwendev-secondary.queue.core.windows.net/","table":"https://qianwendev-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwenhpctarget","name":"qianwenhpctarget","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T07:09:20.3073299Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-06T07:09:20.2291899Z","primaryEndpoints":{"dfs":"https://qianwenhpctarget.dfs.core.windows.net/","web":"https://qianwenhpctarget.z13.web.core.windows.net/","blob":"https://qianwenhpctarget.blob.core.windows.net/","queue":"https://qianwenhpctarget.queue.core.windows.net/","table":"https://qianwenhpctarget.table.core.windows.net/","file":"https://qianwenhpctarget.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://qianwenhpctarget-secondary.dfs.core.windows.net/","web":"https://qianwenhpctarget-secondary.z13.web.core.windows.net/","blob":"https://qianwenhpctarget-secondary.blob.core.windows.net/","queue":"https://qianwenhpctarget-secondary.queue.core.windows.net/","table":"https://qianwenhpctarget-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxing","name":"zhoxing","type":"Microsoft.Storage/storageAccounts","location":"eastus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-15T08:53:45.4310180Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-15T08:53:45.4310180Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-15T08:53:45.3528671Z","primaryEndpoints":{"dfs":"https://zhoxing.dfs.core.windows.net/","web":"https://zhoxing.z13.web.core.windows.net/","blob":"https://zhoxing.blob.core.windows.net/","queue":"https://zhoxing.queue.core.windows.net/","table":"https://zhoxing.table.core.windows.net/","file":"https://zhoxing.file.core.windows.net/"},"primaryLocation":"eastus","statusOfPrimary":"available","secondaryLocation":"westus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxing-secondary.dfs.core.windows.net/","web":"https://zhoxing-secondary.z13.web.core.windows.net/","blob":"https://zhoxing-secondary.blob.core.windows.net/","queue":"https://zhoxing-secondary.queue.core.windows.net/","table":"https://zhoxing-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlst","name":"jlst","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-14T12:05:01.5230050Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-14T12:05:01.5230050Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-14T12:05:01.4448881Z","primaryEndpoints":{"dfs":"https://jlst.dfs.core.windows.net/","web":"https://jlst.z20.web.core.windows.net/","blob":"https://jlst.blob.core.windows.net/","queue":"https://jlst.queue.core.windows.net/","table":"https://jlst.table.core.windows.net/","file":"https://jlst.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/tsiext","name":"tsiext","type":"Microsoft.Storage/storageAccounts","location":"eastus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-16T04:42:27.8695098Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-16T04:42:27.8695098Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-16T04:42:27.8070104Z","primaryEndpoints":{"dfs":"https://tsiext.dfs.core.windows.net/","web":"https://tsiext.z20.web.core.windows.net/","blob":"https://tsiext.blob.core.windows.net/","queue":"https://tsiext.queue.core.windows.net/","table":"https://tsiext.table.core.windows.net/","file":"https://tsiext.file.core.windows.net/"},"primaryLocation":"eastus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851","name":"azhoxingtest9851","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"hidden-DevTestLabs-LabUId":"6e279161-d008-42b7-90a1-6801fc4bc4ca"},"properties":{"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/azhoxingtest9851/privateEndpointConnections/azhoxingtest9851.6911cd49-cfc1-4bcf-887b-6941ff2b8756","name":"azhoxingtest9851.6911cd49-cfc1-4bcf-887b-6941ff2b8756","type":"Microsoft.Storage/storageAccounts/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Network/privateEndpoints/test"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionRequired":"None"}}}],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-21T05:43:15.2811036Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-21T05:43:15.2029670Z","primaryEndpoints":{"dfs":"https://azhoxingtest9851.dfs.core.windows.net/","web":"https://azhoxingtest9851.z22.web.core.windows.net/","blob":"https://azhoxingtest9851.blob.core.windows.net/","queue":"https://azhoxingtest9851.queue.core.windows.net/","table":"https://azhoxingtest9851.table.core.windows.net/","file":"https://azhoxingtest9851.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitest6yrafi3cntx2cngw3","name":"clitest6yrafi3cntx2cngw3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:00:05.4412024Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:00:05.3786989Z","primaryEndpoints":{"blob":"https://clitest6yrafi3cntx2cngw3.blob.core.windows.net/","queue":"https://clitest6yrafi3cntx2cngw3.queue.core.windows.net/","table":"https://clitest6yrafi3cntx2cngw3.table.core.windows.net/","file":"https://clitest6yrafi3cntx2cngw3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxn5n2vkeyewiwob4e7e6nqiblkvvgc5qorevejhsntblvdlc2t373rrvy45p/providers/Microsoft.Storage/storageAccounts/clitest75g6r5uwkj7ker7wu","name":"clitest75g6r5uwkj7ker7wu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:35:53.9029562Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:35:53.8248647Z","primaryEndpoints":{"blob":"https://clitest75g6r5uwkj7ker7wu.blob.core.windows.net/","queue":"https://clitest75g6r5uwkj7ker7wu.queue.core.windows.net/","table":"https://clitest75g6r5uwkj7ker7wu.table.core.windows.net/","file":"https://clitest75g6r5uwkj7ker7wu.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox5gpbe2knrizxsitmvje3fbdl44tf6cvpfqbpvsyicxmupsbyhmlcrg4wesk/providers/Microsoft.Storage/storageAccounts/clitest7b5n3o4aahl5rafju","name":"clitest7b5n3o4aahl5rafju","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:27:23.1140038Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:27:23.0514944Z","primaryEndpoints":{"blob":"https://clitest7b5n3o4aahl5rafju.blob.core.windows.net/","queue":"https://clitest7b5n3o4aahl5rafju.queue.core.windows.net/","table":"https://clitest7b5n3o4aahl5rafju.table.core.windows.net/","file":"https://clitest7b5n3o4aahl5rafju.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxlekg7y4dtg2pnsaueisdkyqi5mnvmlwxto2cpu3kv7snll4uc37q2rm4wme/providers/Microsoft.Storage/storageAccounts/clitestcu3wv45lektdc3whs","name":"clitestcu3wv45lektdc3whs","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:35:04.7531702Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:35:04.6750427Z","primaryEndpoints":{"blob":"https://clitestcu3wv45lektdc3whs.blob.core.windows.net/","queue":"https://clitestcu3wv45lektdc3whs.queue.core.windows.net/","table":"https://clitestcu3wv45lektdc3whs.table.core.windows.net/","file":"https://clitestcu3wv45lektdc3whs.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxeg3csudujzrh2zcvbjytg6gvlkp6sjfcozveffblaqhrzhsslvpr54lg7n2/providers/Microsoft.Storage/storageAccounts/clitestgdfhjpgc2wgbrddlq","name":"clitestgdfhjpgc2wgbrddlq","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:28:55.9105364Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:28:55.8480330Z","primaryEndpoints":{"blob":"https://clitestgdfhjpgc2wgbrddlq.blob.core.windows.net/","queue":"https://clitestgdfhjpgc2wgbrddlq.queue.core.windows.net/","table":"https://clitestgdfhjpgc2wgbrddlq.table.core.windows.net/","file":"https://clitestgdfhjpgc2wgbrddlq.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxoe2qtcqlnxonqpub522jgmpzgeegwhowl2qo6xqgfwtqcd3jzicz5yraawi/providers/Microsoft.Storage/storageAccounts/clitestl6h6fa53d2gbmohn3","name":"clitestl6h6fa53d2gbmohn3","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T13:59:30.5816034Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T13:59:30.5034613Z","primaryEndpoints":{"blob":"https://clitestl6h6fa53d2gbmohn3.blob.core.windows.net/","queue":"https://clitestl6h6fa53d2gbmohn3.queue.core.windows.net/","table":"https://clitestl6h6fa53d2gbmohn3.table.core.windows.net/","file":"https://clitestl6h6fa53d2gbmohn3.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxfgdxtb5b3moqarfyogd7fcognbrlsihjlj3acnscrixetycujoejzzalyi3/providers/Microsoft.Storage/storageAccounts/clitestldg5uo7ika27utek4","name":"clitestldg5uo7ika27utek4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T08:59:48.7196866Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T08:59:48.6728325Z","primaryEndpoints":{"blob":"https://clitestldg5uo7ika27utek4.blob.core.windows.net/","queue":"https://clitestldg5uo7ika27utek4.queue.core.windows.net/","table":"https://clitestldg5uo7ika27utek4.table.core.windows.net/","file":"https://clitestldg5uo7ika27utek4.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestm7nikx6sld4npo42d","name":"clitestm7nikx6sld4npo42d","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:54.5597796Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:54.4972558Z","primaryEndpoints":{"blob":"https://clitestm7nikx6sld4npo42d.blob.core.windows.net/","queue":"https://clitestm7nikx6sld4npo42d.queue.core.windows.net/","table":"https://clitestm7nikx6sld4npo42d.table.core.windows.net/","file":"https://clitestm7nikx6sld4npo42d.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxrg2slunrj5vx5aydveu66wkj6rh3ildamkumi4zojpcf6f4vastgfp4v3rw/providers/Microsoft.Storage/storageAccounts/clitestmap7c2xyjf3gsd7yg","name":"clitestmap7c2xyjf3gsd7yg","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T09:10:56.7318732Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T09:10:56.6381622Z","primaryEndpoints":{"blob":"https://clitestmap7c2xyjf3gsd7yg.blob.core.windows.net/","queue":"https://clitestmap7c2xyjf3gsd7yg.queue.core.windows.net/","table":"https://clitestmap7c2xyjf3gsd7yg.table.core.windows.net/","file":"https://clitestmap7c2xyjf3gsd7yg.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxu7woflo47pjem4rfw2djuvafywtfnprfpduospdfotkqkudaylsua3ybqpa/providers/Microsoft.Storage/storageAccounts/clitestnxsheqf5s5rcht46h","name":"clitestnxsheqf5s5rcht46h","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T06:40:27.7931436Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T06:40:27.7305929Z","primaryEndpoints":{"blob":"https://clitestnxsheqf5s5rcht46h.blob.core.windows.net/","queue":"https://clitestnxsheqf5s5rcht46h.queue.core.windows.net/","table":"https://clitestnxsheqf5s5rcht46h.table.core.windows.net/","file":"https://clitestnxsheqf5s5rcht46h.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databox52yrfbe7molrqhwdubnr2jcijd22xsz3hgcg3btf3sza5boeklwgzzq5sfn/providers/Microsoft.Storage/storageAccounts/clitestqsel4b35pkfyubvyx","name":"clitestqsel4b35pkfyubvyx","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-06T14:20:08.8041709Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-06T14:20:08.7417121Z","primaryEndpoints":{"blob":"https://clitestqsel4b35pkfyubvyx.blob.core.windows.net/","queue":"https://clitestqsel4b35pkfyubvyx.queue.core.windows.net/","table":"https://clitestqsel4b35pkfyubvyx.table.core.windows.net/","file":"https://clitestqsel4b35pkfyubvyx.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_databoxam64dpcskfsb23dkj6zbvxysimh24e3upfdsdmuxbdl2j25ckz2uz5lht5y/providers/Microsoft.Storage/storageAccounts/clitesty2xsxbbcego73beie","name":"clitesty2xsxbbcego73beie","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T05:23:45.1933083Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T05:23:45.1308322Z","primaryEndpoints":{"blob":"https://clitesty2xsxbbcego73beie.blob.core.windows.net/","queue":"https://clitesty2xsxbbcego73beie.queue.core.windows.net/","table":"https://clitesty2xsxbbcego73beie.table.core.windows.net/","file":"https://clitesty2xsxbbcego73beie.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-test-ws-udvur1v2scpdh/providers/Microsoft.Storage/storageAccounts/dbstorageazqiaxnzp45c4","name":"dbstorageazqiaxnzp45c4","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T03:47:02.5418099Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T03:47:02.5418099Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-13T03:47:02.4793343Z","primaryEndpoints":{"dfs":"https://dbstorageazqiaxnzp45c4.dfs.core.windows.net/","blob":"https://dbstorageazqiaxnzp45c4.blob.core.windows.net/","table":"https://dbstorageazqiaxnzp45c4.table.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-test-ws-1-tkfkantu2y5cn/providers/Microsoft.Storage/storageAccounts/dbstorageucp43z6irid74","name":"dbstorageucp43z6irid74","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T04:56:17.5656641Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T04:56:17.5656641Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-13T04:56:17.4874850Z","primaryEndpoints":{"dfs":"https://dbstorageucp43z6irid74.dfs.core.windows.net/","blob":"https://dbstorageucp43z6irid74.blob.core.windows.net/","table":"https://dbstorageucp43z6irid74.table.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-test-ws-2-eh7zug4x1inzs/providers/Microsoft.Storage/storageAccounts/dbstoragezkqasazvxxgmu","name":"dbstoragezkqasazvxxgmu","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T05:06:37.5070495Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-13T05:06:37.5070495Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-13T05:06:37.4288942Z","primaryEndpoints":{"dfs":"https://dbstoragezkqasazvxxgmu.dfs.core.windows.net/","blob":"https://dbstoragezkqasazvxxgmu.blob.core.windows.net/","table":"https://dbstoragezkqasazvxxgmu.table.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestdbsawestus","name":"yutestdbsawestus","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T11:11:24.7554090Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-25T11:11:24.6772540Z","primaryEndpoints":{"dfs":"https://yutestdbsawestus.dfs.core.windows.net/","web":"https://yutestdbsawestus.z22.web.core.windows.net/","blob":"https://yutestdbsawestus.blob.core.windows.net/","queue":"https://yutestdbsawestus.queue.core.windows.net/","table":"https://yutestdbsawestus.table.core.windows.net/","file":"https://yutestdbsawestus.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yutestdbsawestus-secondary.dfs.core.windows.net/","web":"https://yutestdbsawestus-secondary.z22.web.core.windows.net/","blob":"https://yutestdbsawestus-secondary.blob.core.windows.net/","queue":"https://yutestdbsawestus-secondary.queue.core.windows.net/","table":"https://yutestdbsawestus-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yutestlro","name":"yutestlro","type":"Microsoft.Storage/storageAccounts","location":"westus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-28T07:50:15.1386919Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-28T07:50:15.0762161Z","primaryEndpoints":{"blob":"https://yutestlro.blob.core.windows.net/","queue":"https://yutestlro.queue.core.windows.net/","table":"https://yutestlro.table.core.windows.net/","file":"https://yutestlro.file.core.windows.net/"},"primaryLocation":"westus","statusOfPrimary":"available","secondaryLocation":"eastus","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://yutestlro-secondary.blob.core.windows.net/","queue":"https://yutestlro-secondary.queue.core.windows.net/","table":"https://yutestlro-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_GRS","tier":"Standard"},"kind":"BlobStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/databricks-rg-my-standard-space-fez3hbt1bsvmr/providers/Microsoft.Storage/storageAccounts/dbstoragefez3hbt1bsvmr","name":"dbstoragefez3hbt1bsvmr","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{"application":"databricks","databricks-environment":"true"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T03:14:00.7822307Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-16T03:14:00.7197710Z","primaryEndpoints":{"dfs":"https://dbstoragefez3hbt1bsvmr.dfs.core.windows.net/","blob":"https://dbstoragefez3hbt1bsvmr.blob.core.windows.net/","table":"https://dbstoragefez3hbt1bsvmr.table.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengws1storage296335f3c7","name":"fengws1storage296335f3c7","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-14T14:41:02.2224956Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-14T14:41:02.1600089Z","primaryEndpoints":{"dfs":"https://fengws1storage296335f3c7.dfs.core.windows.net/","web":"https://fengws1storage296335f3c7.z7.web.core.windows.net/","blob":"https://fengws1storage296335f3c7.blob.core.windows.net/","queue":"https://fengws1storage296335f3c7.queue.core.windows.net/","table":"https://fengws1storage296335f3c7.table.core.windows.net/","file":"https://fengws1storage296335f3c7.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjtest1","name":"xxjtest1","type":"Microsoft.Storage/storageAccounts","location":"eastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T08:36:23.6918366Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T08:36:23.6918366Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T08:36:23.6293420Z","primaryEndpoints":{"dfs":"https://xxjtest1.dfs.core.windows.net/","web":"https://xxjtest1.z7.web.core.windows.net/","blob":"https://xxjtest1.blob.core.windows.net/","queue":"https://xxjtest1.queue.core.windows.net/","table":"https://xxjtest1.table.core.windows.net/","file":"https://xxjtest1.file.core.windows.net/"},"primaryLocation":"eastasia","statusOfPrimary":"available","secondaryLocation":"southeastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjtest1-secondary.dfs.core.windows.net/","web":"https://xxjtest1-secondary.z7.web.core.windows.net/","blob":"https://xxjtest1-secondary.blob.core.windows.net/","queue":"https://xxjtest1-secondary.queue.core.windows.net/","table":"https://xxjtest1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg6i4hl6iakg/providers/Microsoft.Storage/storageAccounts/clitestu3p7a7ib4n4y7gt4m","name":"clitestu3p7a7ib4n4y7gt4m","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-30T01:51:53.0814418Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2019-12-30T01:51:53.0189478Z","primaryEndpoints":{"blob":"https://clitestu3p7a7ib4n4y7gt4m.blob.core.windows.net/","queue":"https://clitestu3p7a7ib4n4y7gt4m.queue.core.windows.net/","table":"https://clitestu3p7a7ib4n4y7gt4m.table.core.windows.net/","file":"https://clitestu3p7a7ib4n4y7gt4m.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlrg1/providers/Microsoft.Storage/storageAccounts/jlcsst","name":"jlcsst","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{"ms-resource-usage":"azure-cloud-shell"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T07:15:45.8047726Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T07:15:45.7422455Z","primaryEndpoints":{"dfs":"https://jlcsst.dfs.core.windows.net/","web":"https://jlcsst.z23.web.core.windows.net/","blob":"https://jlcsst.blob.core.windows.net/","queue":"https://jlcsst.queue.core.windows.net/","table":"https://jlcsst.table.core.windows.net/","file":"https://jlcsst.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/jlvm2rg/providers/Microsoft.Storage/storageAccounts/jlvm2rgdiag","name":"jlvm2rgdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T04:41:48.6974827Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-03T04:41:48.6505931Z","primaryEndpoints":{"blob":"https://jlvm2rgdiag.blob.core.windows.net/","queue":"https://jlvm2rgdiag.queue.core.windows.net/","table":"https://jlvm2rgdiag.table.core.windows.net/","file":"https://jlvm2rgdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qianwens/providers/Microsoft.Storage/storageAccounts/qianwensdiag","name":"qianwensdiag","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-04T07:17:09.1138103Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-04T07:17:09.0514178Z","primaryEndpoints":{"blob":"https://qianwensdiag.blob.core.windows.net/","queue":"https://qianwensdiag.queue.core.windows.net/","table":"https://qianwensdiag.table.core.windows.net/","file":"https://qianwensdiag.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.Storage/storageAccounts/yeming","name":"yeming","type":"Microsoft.Storage/storageAccounts","location":"southeastasia","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-12-04T06:41:07.4012554Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-12-04T06:41:07.3699884Z","primaryEndpoints":{"dfs":"https://yeming.dfs.core.windows.net/","web":"https://yeming.z23.web.core.windows.net/","blob":"https://yeming.blob.core.windows.net/","queue":"https://yeming.queue.core.windows.net/","table":"https://yeming.table.core.windows.net/","file":"https://yeming.file.core.windows.net/"},"primaryLocation":"southeastasia","statusOfPrimary":"available","secondaryLocation":"eastasia","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yeming-secondary.dfs.core.windows.net/","web":"https://yeming-secondary.z23.web.core.windows.net/","blob":"https://yeming-secondary.blob.core.windows.net/","queue":"https://yeming-secondary.queue.core.windows.net/","table":"https://yeming-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimrgdiag","name":"bimrgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-12T15:04:32.1018377Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-12T15:04:32.0706109Z","primaryEndpoints":{"blob":"https://bimrgdiag.blob.core.windows.net/","queue":"https://bimrgdiag.queue.core.windows.net/","table":"https://bimrgdiag.table.core.windows.net/","file":"https://bimrgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengclirgdiag","name":"fengclirgdiag","type":"Microsoft.Storage/storageAccounts","location":"japaneast","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-01T07:10:20.0599535Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-01T07:10:19.9974827Z","primaryEndpoints":{"blob":"https://fengclirgdiag.blob.core.windows.net/","queue":"https://fengclirgdiag.queue.core.windows.net/","table":"https://fengclirgdiag.table.core.windows.net/","file":"https://fengclirgdiag.file.core.windows.net/"},"primaryLocation":"japaneast","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/store6472qnxl3vv5o","name":"store6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"southcentralus","tags":{"project":"Digital - Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxing2","name":"zhoxing2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:54:17.8037418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:54:17.8037418Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T06:54:17.7099423Z","primaryEndpoints":{"dfs":"https://zhoxing2.dfs.core.windows.net/","web":"https://zhoxing2.z19.web.core.windows.net/","blob":"https://zhoxing2.blob.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest","name":"zhoxingtest","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T09:01:14.2087269Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T09:01:14.2087269Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T09:01:14.1462280Z","primaryEndpoints":{"dfs":"https://zhoxingtest.dfs.core.windows.net/","web":"https://zhoxingtest.z19.web.core.windows.net/","blob":"https://zhoxingtest.blob.core.windows.net/","queue":"https://zhoxingtest.queue.core.windows.net/","table":"https://zhoxingtest.table.core.windows.net/","file":"https://zhoxingtest.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest-secondary.dfs.core.windows.net/","web":"https://zhoxingtest-secondary.z19.web.core.windows.net/","blob":"https://zhoxingtest-secondary.blob.core.windows.net/","queue":"https://zhoxingtest-secondary.queue.core.windows.net/","table":"https://zhoxingtest-secondary.table.core.windows.net/"}}},{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:52:39.2007383Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:52:39.2007383Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T06:52:39.1039700Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z19.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"key":"val","key2":"val2"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T08:39:54.1916545Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-21T08:39:54.1291957Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storagetest22","name":"storagetest22","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T03:43:07.5284378Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T03:43:07.5284378Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T03:43:07.4503168Z","primaryEndpoints":{"dfs":"https://storagetest22.dfs.core.windows.net/","web":"https://storagetest22.z3.web.core.windows.net/","blob":"https://storagetest22.blob.core.windows.net/","queue":"https://storagetest22.queue.core.windows.net/","table":"https://storagetest22.table.core.windows.net/","file":"https://storagetest22.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagetest22-secondary.dfs.core.windows.net/","web":"https://storagetest22-secondary.z3.web.core.windows.net/","blob":"https://storagetest22-secondary.blob.core.windows.net/","queue":"https://storagetest22-secondary.queue.core.windows.net/","table":"https://storagetest22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"d2e83740-1d90-4aa7-901c-97c510d4f7ec","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/zuhkey/2780bea583714f33b8051ea24f90a246","lastKeyRotationTimestamp":"2020-04-09T06:46:21.5968704Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"zuhkey","keyversion":"2780bea583714f33b8051ea24f90a246"},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Keyvault"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/storagekey/04704263f43241dca0ff99c3794fd8c7","lastKeyRotationTimestamp":"2020-04-15T08:06:44.8059437Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"storagekey","keyversion":""},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Keyvault"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhstoragetest","name":"zuhstoragetest","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T07:16:48.8761196Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T07:16:48.8761196Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T07:16:48.8448300Z","primaryEndpoints":{"dfs":"https://zuhstoragetest.dfs.core.windows.net/","web":"https://zuhstoragetest.z3.web.core.windows.net/","blob":"https://zuhstoragetest.blob.core.windows.net/","queue":"https://zuhstoragetest.queue.core.windows.net/","table":"https://zuhstoragetest.table.core.windows.net/","file":"https://zuhstoragetest.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstoragetest-secondary.dfs.core.windows.net/","web":"https://zuhstoragetest-secondary.z3.web.core.windows.net/","blob":"https://zuhstoragetest-secondary.blob.core.windows.net/","queue":"https://zuhstoragetest-secondary.queue.core.windows.net/","table":"https://zuhstoragetest-secondary.table.core.windows.net/"}}}]}' + Platform","env":"CI"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-27T08:24:34.7235260Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-27T08:24:34.6453999Z","primaryEndpoints":{"blob":"https://store6472qnxl3vv5o.blob.core.windows.net/","queue":"https://store6472qnxl3vv5o.queue.core.windows.net/","table":"https://store6472qnxl3vv5o.table.core.windows.net/","file":"https://store6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"southcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/extmigrate","name":"extmigrate","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-16T08:26:10.6796218Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-16T08:26:10.5858998Z","primaryEndpoints":{"blob":"https://extmigrate.blob.core.windows.net/","queue":"https://extmigrate.queue.core.windows.net/","table":"https://extmigrate.table.core.windows.net/","file":"https://extmigrate.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://extmigrate-secondary.blob.core.windows.net/","queue":"https://extmigrate-secondary.queue.core.windows.net/","table":"https://extmigrate-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengsa","name":"fengsa","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-01-06T04:33:22.9379802Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-01-06T04:33:22.8754625Z","primaryEndpoints":{"dfs":"https://fengsa.dfs.core.windows.net/","web":"https://fengsa.z19.web.core.windows.net/","blob":"https://fengsa.blob.core.windows.net/","queue":"https://fengsa.queue.core.windows.net/","table":"https://fengsa.table.core.windows.net/","file":"https://fengsa.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://fengsa-secondary.dfs.core.windows.net/","web":"https://fengsa-secondary.z19.web.core.windows.net/","blob":"https://fengsa-secondary.blob.core.windows.net/","queue":"https://fengsa-secondary.queue.core.windows.net/","table":"https://fengsa-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/idgdiag6472qnxl3vv5o","name":"idgdiag6472qnxl3vv5o","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-03T08:53:11.2645207Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-03T08:53:11.1707355Z","primaryEndpoints":{"dfs":"https://idgdiag6472qnxl3vv5o.dfs.core.windows.net/","web":"https://idgdiag6472qnxl3vv5o.z19.web.core.windows.net/","blob":"https://idgdiag6472qnxl3vv5o.blob.core.windows.net/","queue":"https://idgdiag6472qnxl3vv5o.queue.core.windows.net/","table":"https://idgdiag6472qnxl3vv5o.table.core.windows.net/","file":"https://idgdiag6472qnxl3vv5o.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/storageaccountzhoxib2a8","name":"storageaccountzhoxib2a8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-25T06:54:03.9825980Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-02-25T06:54:03.9044955Z","primaryEndpoints":{"blob":"https://storageaccountzhoxib2a8.blob.core.windows.net/","queue":"https://storageaccountzhoxib2a8.queue.core.windows.net/","table":"https://storageaccountzhoxib2a8.table.core.windows.net/","file":"https://storageaccountzhoxib2a8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro1","name":"storagesfrepro1","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:07:42.2058942Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:07:42.1277444Z","primaryEndpoints":{"dfs":"https://storagesfrepro1.dfs.core.windows.net/","web":"https://storagesfrepro1.z19.web.core.windows.net/","blob":"https://storagesfrepro1.blob.core.windows.net/","queue":"https://storagesfrepro1.queue.core.windows.net/","table":"https://storagesfrepro1.table.core.windows.net/","file":"https://storagesfrepro1.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro1-secondary.dfs.core.windows.net/","web":"https://storagesfrepro1-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro1-secondary.blob.core.windows.net/","queue":"https://storagesfrepro1-secondary.queue.core.windows.net/","table":"https://storagesfrepro1-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro10","name":"storagesfrepro10","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:00.8753334Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:00.7815921Z","primaryEndpoints":{"dfs":"https://storagesfrepro10.dfs.core.windows.net/","web":"https://storagesfrepro10.z19.web.core.windows.net/","blob":"https://storagesfrepro10.blob.core.windows.net/","queue":"https://storagesfrepro10.queue.core.windows.net/","table":"https://storagesfrepro10.table.core.windows.net/","file":"https://storagesfrepro10.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro10-secondary.dfs.core.windows.net/","web":"https://storagesfrepro10-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro10-secondary.blob.core.windows.net/","queue":"https://storagesfrepro10-secondary.queue.core.windows.net/","table":"https://storagesfrepro10-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro11","name":"storagesfrepro11","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:14:28.9859417Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:14:28.8609347Z","primaryEndpoints":{"dfs":"https://storagesfrepro11.dfs.core.windows.net/","web":"https://storagesfrepro11.z19.web.core.windows.net/","blob":"https://storagesfrepro11.blob.core.windows.net/","queue":"https://storagesfrepro11.queue.core.windows.net/","table":"https://storagesfrepro11.table.core.windows.net/","file":"https://storagesfrepro11.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro11-secondary.dfs.core.windows.net/","web":"https://storagesfrepro11-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro11-secondary.blob.core.windows.net/","queue":"https://storagesfrepro11-secondary.queue.core.windows.net/","table":"https://storagesfrepro11-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro12","name":"storagesfrepro12","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:15:15.6785362Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:15:15.5848345Z","primaryEndpoints":{"dfs":"https://storagesfrepro12.dfs.core.windows.net/","web":"https://storagesfrepro12.z19.web.core.windows.net/","blob":"https://storagesfrepro12.blob.core.windows.net/","queue":"https://storagesfrepro12.queue.core.windows.net/","table":"https://storagesfrepro12.table.core.windows.net/","file":"https://storagesfrepro12.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro12-secondary.dfs.core.windows.net/","web":"https://storagesfrepro12-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro12-secondary.blob.core.windows.net/","queue":"https://storagesfrepro12-secondary.queue.core.windows.net/","table":"https://storagesfrepro12-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro13","name":"storagesfrepro13","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:16:55.7609361Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:16:55.6671828Z","primaryEndpoints":{"dfs":"https://storagesfrepro13.dfs.core.windows.net/","web":"https://storagesfrepro13.z19.web.core.windows.net/","blob":"https://storagesfrepro13.blob.core.windows.net/","queue":"https://storagesfrepro13.queue.core.windows.net/","table":"https://storagesfrepro13.table.core.windows.net/","file":"https://storagesfrepro13.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro13-secondary.dfs.core.windows.net/","web":"https://storagesfrepro13-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro13-secondary.blob.core.windows.net/","queue":"https://storagesfrepro13-secondary.queue.core.windows.net/","table":"https://storagesfrepro13-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro14","name":"storagesfrepro14","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:17:40.7661469Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:17:40.6880204Z","primaryEndpoints":{"dfs":"https://storagesfrepro14.dfs.core.windows.net/","web":"https://storagesfrepro14.z19.web.core.windows.net/","blob":"https://storagesfrepro14.blob.core.windows.net/","queue":"https://storagesfrepro14.queue.core.windows.net/","table":"https://storagesfrepro14.table.core.windows.net/","file":"https://storagesfrepro14.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro14-secondary.dfs.core.windows.net/","web":"https://storagesfrepro14-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro14-secondary.blob.core.windows.net/","queue":"https://storagesfrepro14-secondary.queue.core.windows.net/","table":"https://storagesfrepro14-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro15","name":"storagesfrepro15","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:18:52.1812445Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:18:52.0718543Z","primaryEndpoints":{"dfs":"https://storagesfrepro15.dfs.core.windows.net/","web":"https://storagesfrepro15.z19.web.core.windows.net/","blob":"https://storagesfrepro15.blob.core.windows.net/","queue":"https://storagesfrepro15.queue.core.windows.net/","table":"https://storagesfrepro15.table.core.windows.net/","file":"https://storagesfrepro15.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro15-secondary.dfs.core.windows.net/","web":"https://storagesfrepro15-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro15-secondary.blob.core.windows.net/","queue":"https://storagesfrepro15-secondary.queue.core.windows.net/","table":"https://storagesfrepro15-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro16","name":"storagesfrepro16","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:19:33.1863807Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:19:33.0770034Z","primaryEndpoints":{"dfs":"https://storagesfrepro16.dfs.core.windows.net/","web":"https://storagesfrepro16.z19.web.core.windows.net/","blob":"https://storagesfrepro16.blob.core.windows.net/","queue":"https://storagesfrepro16.queue.core.windows.net/","table":"https://storagesfrepro16.table.core.windows.net/","file":"https://storagesfrepro16.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro16-secondary.dfs.core.windows.net/","web":"https://storagesfrepro16-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro16-secondary.blob.core.windows.net/","queue":"https://storagesfrepro16-secondary.queue.core.windows.net/","table":"https://storagesfrepro16-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro17","name":"storagesfrepro17","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:23.5553513Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:23.4771469Z","primaryEndpoints":{"dfs":"https://storagesfrepro17.dfs.core.windows.net/","web":"https://storagesfrepro17.z19.web.core.windows.net/","blob":"https://storagesfrepro17.blob.core.windows.net/","queue":"https://storagesfrepro17.queue.core.windows.net/","table":"https://storagesfrepro17.table.core.windows.net/","file":"https://storagesfrepro17.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro17-secondary.dfs.core.windows.net/","web":"https://storagesfrepro17-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro17-secondary.blob.core.windows.net/","queue":"https://storagesfrepro17-secondary.queue.core.windows.net/","table":"https://storagesfrepro17-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro18","name":"storagesfrepro18","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:04:53.8320772Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:04:53.7383176Z","primaryEndpoints":{"dfs":"https://storagesfrepro18.dfs.core.windows.net/","web":"https://storagesfrepro18.z19.web.core.windows.net/","blob":"https://storagesfrepro18.blob.core.windows.net/","queue":"https://storagesfrepro18.queue.core.windows.net/","table":"https://storagesfrepro18.table.core.windows.net/","file":"https://storagesfrepro18.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro18-secondary.dfs.core.windows.net/","web":"https://storagesfrepro18-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro18-secondary.blob.core.windows.net/","queue":"https://storagesfrepro18-secondary.queue.core.windows.net/","table":"https://storagesfrepro18-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro19","name":"storagesfrepro19","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:05:26.3650238Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:05:26.2556326Z","primaryEndpoints":{"dfs":"https://storagesfrepro19.dfs.core.windows.net/","web":"https://storagesfrepro19.z19.web.core.windows.net/","blob":"https://storagesfrepro19.blob.core.windows.net/","queue":"https://storagesfrepro19.queue.core.windows.net/","table":"https://storagesfrepro19.table.core.windows.net/","file":"https://storagesfrepro19.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro19-secondary.dfs.core.windows.net/","web":"https://storagesfrepro19-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro19-secondary.blob.core.windows.net/","queue":"https://storagesfrepro19-secondary.queue.core.windows.net/","table":"https://storagesfrepro19-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro2","name":"storagesfrepro2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:08:45.8498203Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:08:45.7717196Z","primaryEndpoints":{"dfs":"https://storagesfrepro2.dfs.core.windows.net/","web":"https://storagesfrepro2.z19.web.core.windows.net/","blob":"https://storagesfrepro2.blob.core.windows.net/","queue":"https://storagesfrepro2.queue.core.windows.net/","table":"https://storagesfrepro2.table.core.windows.net/","file":"https://storagesfrepro2.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro2-secondary.dfs.core.windows.net/","web":"https://storagesfrepro2-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro2-secondary.blob.core.windows.net/","queue":"https://storagesfrepro2-secondary.queue.core.windows.net/","table":"https://storagesfrepro2-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro20","name":"storagesfrepro20","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:07.4295934Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:07.3358422Z","primaryEndpoints":{"dfs":"https://storagesfrepro20.dfs.core.windows.net/","web":"https://storagesfrepro20.z19.web.core.windows.net/","blob":"https://storagesfrepro20.blob.core.windows.net/","queue":"https://storagesfrepro20.queue.core.windows.net/","table":"https://storagesfrepro20.table.core.windows.net/","file":"https://storagesfrepro20.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro20-secondary.dfs.core.windows.net/","web":"https://storagesfrepro20-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro20-secondary.blob.core.windows.net/","queue":"https://storagesfrepro20-secondary.queue.core.windows.net/","table":"https://storagesfrepro20-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro21","name":"storagesfrepro21","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:37.4780251Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:37.3686460Z","primaryEndpoints":{"dfs":"https://storagesfrepro21.dfs.core.windows.net/","web":"https://storagesfrepro21.z19.web.core.windows.net/","blob":"https://storagesfrepro21.blob.core.windows.net/","queue":"https://storagesfrepro21.queue.core.windows.net/","table":"https://storagesfrepro21.table.core.windows.net/","file":"https://storagesfrepro21.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro21-secondary.dfs.core.windows.net/","web":"https://storagesfrepro21-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro21-secondary.blob.core.windows.net/","queue":"https://storagesfrepro21-secondary.queue.core.windows.net/","table":"https://storagesfrepro21-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro22","name":"storagesfrepro22","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:06:59.8295391Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:06:59.7201581Z","primaryEndpoints":{"dfs":"https://storagesfrepro22.dfs.core.windows.net/","web":"https://storagesfrepro22.z19.web.core.windows.net/","blob":"https://storagesfrepro22.blob.core.windows.net/","queue":"https://storagesfrepro22.queue.core.windows.net/","table":"https://storagesfrepro22.table.core.windows.net/","file":"https://storagesfrepro22.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro22-secondary.dfs.core.windows.net/","web":"https://storagesfrepro22-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro22-secondary.blob.core.windows.net/","queue":"https://storagesfrepro22-secondary.queue.core.windows.net/","table":"https://storagesfrepro22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro23","name":"storagesfrepro23","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:29.0846619Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:29.0065050Z","primaryEndpoints":{"dfs":"https://storagesfrepro23.dfs.core.windows.net/","web":"https://storagesfrepro23.z19.web.core.windows.net/","blob":"https://storagesfrepro23.blob.core.windows.net/","queue":"https://storagesfrepro23.queue.core.windows.net/","table":"https://storagesfrepro23.table.core.windows.net/","file":"https://storagesfrepro23.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro23-secondary.dfs.core.windows.net/","web":"https://storagesfrepro23-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro23-secondary.blob.core.windows.net/","queue":"https://storagesfrepro23-secondary.queue.core.windows.net/","table":"https://storagesfrepro23-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro24","name":"storagesfrepro24","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:07:53.2658712Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:07:53.1565651Z","primaryEndpoints":{"dfs":"https://storagesfrepro24.dfs.core.windows.net/","web":"https://storagesfrepro24.z19.web.core.windows.net/","blob":"https://storagesfrepro24.blob.core.windows.net/","queue":"https://storagesfrepro24.queue.core.windows.net/","table":"https://storagesfrepro24.table.core.windows.net/","file":"https://storagesfrepro24.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro24-secondary.dfs.core.windows.net/","web":"https://storagesfrepro24-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro24-secondary.blob.core.windows.net/","queue":"https://storagesfrepro24-secondary.queue.core.windows.net/","table":"https://storagesfrepro24-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro25","name":"storagesfrepro25","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T05:08:18.7432319Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T05:08:18.6338258Z","primaryEndpoints":{"dfs":"https://storagesfrepro25.dfs.core.windows.net/","web":"https://storagesfrepro25.z19.web.core.windows.net/","blob":"https://storagesfrepro25.blob.core.windows.net/","queue":"https://storagesfrepro25.queue.core.windows.net/","table":"https://storagesfrepro25.table.core.windows.net/","file":"https://storagesfrepro25.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro25-secondary.dfs.core.windows.net/","web":"https://storagesfrepro25-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro25-secondary.blob.core.windows.net/","queue":"https://storagesfrepro25-secondary.queue.core.windows.net/","table":"https://storagesfrepro25-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro3","name":"storagesfrepro3","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:19.5698333Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:19.3510997Z","primaryEndpoints":{"dfs":"https://storagesfrepro3.dfs.core.windows.net/","web":"https://storagesfrepro3.z19.web.core.windows.net/","blob":"https://storagesfrepro3.blob.core.windows.net/","queue":"https://storagesfrepro3.queue.core.windows.net/","table":"https://storagesfrepro3.table.core.windows.net/","file":"https://storagesfrepro3.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro3-secondary.dfs.core.windows.net/","web":"https://storagesfrepro3-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro3-secondary.blob.core.windows.net/","queue":"https://storagesfrepro3-secondary.queue.core.windows.net/","table":"https://storagesfrepro3-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro4","name":"storagesfrepro4","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:09:54.9930953Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:09:54.8993063Z","primaryEndpoints":{"dfs":"https://storagesfrepro4.dfs.core.windows.net/","web":"https://storagesfrepro4.z19.web.core.windows.net/","blob":"https://storagesfrepro4.blob.core.windows.net/","queue":"https://storagesfrepro4.queue.core.windows.net/","table":"https://storagesfrepro4.table.core.windows.net/","file":"https://storagesfrepro4.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro4-secondary.dfs.core.windows.net/","web":"https://storagesfrepro4-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro4-secondary.blob.core.windows.net/","queue":"https://storagesfrepro4-secondary.queue.core.windows.net/","table":"https://storagesfrepro4-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro5","name":"storagesfrepro5","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:10:48.1114395Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:10:48.0177273Z","primaryEndpoints":{"dfs":"https://storagesfrepro5.dfs.core.windows.net/","web":"https://storagesfrepro5.z19.web.core.windows.net/","blob":"https://storagesfrepro5.blob.core.windows.net/","queue":"https://storagesfrepro5.queue.core.windows.net/","table":"https://storagesfrepro5.table.core.windows.net/","file":"https://storagesfrepro5.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro5-secondary.dfs.core.windows.net/","web":"https://storagesfrepro5-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro5-secondary.blob.core.windows.net/","queue":"https://storagesfrepro5-secondary.queue.core.windows.net/","table":"https://storagesfrepro5-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro6","name":"storagesfrepro6","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:11:28.0269117Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:11:27.9331594Z","primaryEndpoints":{"dfs":"https://storagesfrepro6.dfs.core.windows.net/","web":"https://storagesfrepro6.z19.web.core.windows.net/","blob":"https://storagesfrepro6.blob.core.windows.net/","queue":"https://storagesfrepro6.queue.core.windows.net/","table":"https://storagesfrepro6.table.core.windows.net/","file":"https://storagesfrepro6.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro6-secondary.dfs.core.windows.net/","web":"https://storagesfrepro6-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro6-secondary.blob.core.windows.net/","queue":"https://storagesfrepro6-secondary.queue.core.windows.net/","table":"https://storagesfrepro6-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro7","name":"storagesfrepro7","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:08.7761892Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:08.6824637Z","primaryEndpoints":{"dfs":"https://storagesfrepro7.dfs.core.windows.net/","web":"https://storagesfrepro7.z19.web.core.windows.net/","blob":"https://storagesfrepro7.blob.core.windows.net/","queue":"https://storagesfrepro7.queue.core.windows.net/","table":"https://storagesfrepro7.table.core.windows.net/","file":"https://storagesfrepro7.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro7-secondary.dfs.core.windows.net/","web":"https://storagesfrepro7-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro7-secondary.blob.core.windows.net/","queue":"https://storagesfrepro7-secondary.queue.core.windows.net/","table":"https://storagesfrepro7-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro8","name":"storagesfrepro8","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:12:39.5221164Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:12:39.4283923Z","primaryEndpoints":{"dfs":"https://storagesfrepro8.dfs.core.windows.net/","web":"https://storagesfrepro8.z19.web.core.windows.net/","blob":"https://storagesfrepro8.blob.core.windows.net/","queue":"https://storagesfrepro8.queue.core.windows.net/","table":"https://storagesfrepro8.table.core.windows.net/","file":"https://storagesfrepro8.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro8-secondary.dfs.core.windows.net/","web":"https://storagesfrepro8-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro8-secondary.blob.core.windows.net/","queue":"https://storagesfrepro8-secondary.queue.core.windows.net/","table":"https://storagesfrepro8-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/storage-v2rt-repro/providers/Microsoft.Storage/storageAccounts/storagesfrepro9","name":"storagesfrepro9","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2019-02-26T04:13:18.1628430Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2019-02-26T04:13:18.0691096Z","primaryEndpoints":{"dfs":"https://storagesfrepro9.dfs.core.windows.net/","web":"https://storagesfrepro9.z19.web.core.windows.net/","blob":"https://storagesfrepro9.blob.core.windows.net/","queue":"https://storagesfrepro9.queue.core.windows.net/","table":"https://storagesfrepro9.table.core.windows.net/","file":"https://storagesfrepro9.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagesfrepro9-secondary.dfs.core.windows.net/","web":"https://storagesfrepro9-secondary.z19.web.core.windows.net/","blob":"https://storagesfrepro9-secondary.blob.core.windows.net/","queue":"https://storagesfrepro9-secondary.queue.core.windows.net/","table":"https://storagesfrepro9-secondary.table.core.windows.net/"}}},{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxing2","name":"zhoxing2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:54:17.8037418Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:54:17.8037418Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T06:54:17.7099423Z","primaryEndpoints":{"dfs":"https://zhoxing2.dfs.core.windows.net/","web":"https://zhoxing2.z19.web.core.windows.net/","blob":"https://zhoxing2.blob.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest","name":"zhoxingtest","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T09:01:14.2087269Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T09:01:14.2087269Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T09:01:14.1462280Z","primaryEndpoints":{"dfs":"https://zhoxingtest.dfs.core.windows.net/","web":"https://zhoxingtest.z19.web.core.windows.net/","blob":"https://zhoxingtest.blob.core.windows.net/","queue":"https://zhoxingtest.queue.core.windows.net/","table":"https://zhoxingtest.table.core.windows.net/","file":"https://zhoxingtest.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zhoxingtest-secondary.dfs.core.windows.net/","web":"https://zhoxingtest-secondary.z19.web.core.windows.net/","blob":"https://zhoxingtest-secondary.blob.core.windows.net/","queue":"https://zhoxingtest-secondary.queue.core.windows.net/","table":"https://zhoxingtest-secondary.table.core.windows.net/"}}},{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zhoxing-test/providers/Microsoft.Storage/storageAccounts/zhoxingtest2","name":"zhoxingtest2","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:52:39.2007383Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T06:52:39.2007383Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T06:52:39.1039700Z","primaryEndpoints":{"dfs":"https://zhoxingtest2.dfs.core.windows.net/","web":"https://zhoxingtest2.z19.web.core.windows.net/","blob":"https://zhoxingtest2.blob.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuhcentral/providers/Microsoft.Storage/storageAccounts/zuhstorage","name":"zuhstorage","type":"Microsoft.Storage/storageAccounts","location":"centralus","tags":{"key":"val","key2":"val2"},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-02T06:04:55.7104787Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-02T06:04:55.6167450Z","primaryEndpoints":{"dfs":"https://zuhstorage.dfs.core.windows.net/","web":"https://zuhstorage.z19.web.core.windows.net/","blob":"https://zuhstorage.blob.core.windows.net/","queue":"https://zuhstorage.queue.core.windows.net/","table":"https://zuhstorage.table.core.windows.net/","file":"https://zuhstorage.file.core.windows.net/"},"primaryLocation":"centralus","statusOfPrimary":"available","secondaryLocation":"eastus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstorage-secondary.dfs.core.windows.net/","web":"https://zuhstorage-secondary.z19.web.core.windows.net/","blob":"https://zuhstorage-secondary.blob.core.windows.net/","queue":"https://zuhstorage-secondary.queue.core.windows.net/","table":"https://zuhstorage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.Storage/storageAccounts/clitestdatas000002","name":"clitestdatas000002","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-23T13:41:53.6606746Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-23T13:41:53.6606746Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-23T13:41:53.5981225Z","primaryEndpoints":{"blob":"https://clitestdatas000002.blob.core.windows.net/","queue":"https://clitestdatas000002.queue.core.windows.net/","table":"https://clitestdatas000002.table.core.windows.net/","file":"https://clitestdatas000002.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_datwup7nhvv2zbeog5cowmt74wcgwnrm6i5z2ss6dyqwfzen4jh3hjpyl2hwz5ynxy/providers/Microsoft.Storage/storageAccounts/clitestdatasmezc7dtd565a","name":"clitestdatasmezc7dtd565a","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":false,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-23T13:14:14.9779346Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-23T13:14:14.9779346Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-04-23T13:14:14.8998336Z","primaryEndpoints":{"blob":"https://clitestdatasmezc7dtd565a.blob.core.windows.net/","queue":"https://clitestdatasmezc7dtd565a.queue.core.windows.net/","table":"https://clitestdatasmezc7dtd565a.table.core.windows.net/","file":"https://clitestdatasmezc7dtd565a.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/feng-cli-rg/providers/Microsoft.Storage/storageAccounts/fengwsstorage28dfde17cb1","name":"fengwsstorage28dfde17cb1","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-07T04:11:42.2482670Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-07T04:11:42.1857797Z","primaryEndpoints":{"dfs":"https://fengwsstorage28dfde17cb1.dfs.core.windows.net/","web":"https://fengwsstorage28dfde17cb1.z5.web.core.windows.net/","blob":"https://fengwsstorage28dfde17cb1.blob.core.windows.net/","queue":"https://fengwsstorage28dfde17cb1.queue.core.windows.net/","table":"https://fengwsstorage28dfde17cb1.table.core.windows.net/","file":"https://fengwsstorage28dfde17cb1.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiaojianxu/providers/Microsoft.Storage/storageAccounts/xxjwetus2storage","name":"xxjwetus2storage","type":"Microsoft.Storage/storageAccounts","location":"westus2","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T06:26:54.2163538Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T06:26:54.1538919Z","primaryEndpoints":{"dfs":"https://xxjwetus2storage.dfs.core.windows.net/","web":"https://xxjwetus2storage.z5.web.core.windows.net/","blob":"https://xxjwetus2storage.blob.core.windows.net/","queue":"https://xxjwetus2storage.queue.core.windows.net/","table":"https://xxjwetus2storage.table.core.windows.net/","file":"https://xxjwetus2storage.file.core.windows.net/"},"primaryLocation":"westus2","statusOfPrimary":"available","secondaryLocation":"westcentralus","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://xxjwetus2storage-secondary.dfs.core.windows.net/","web":"https://xxjwetus2storage-secondary.z5.web.core.windows.net/","blob":"https://xxjwetus2storage-secondary.blob.core.windows.net/","queue":"https://xxjwetus2storage-secondary.queue.core.windows.net/","table":"https://xxjwetus2storage-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.Storage/storageAccounts/bimstorageacc","name":"bimstorageacc","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-03T07:20:55.2327590Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-03T07:20:55.1858389Z","primaryEndpoints":{"dfs":"https://bimstorageacc.dfs.core.windows.net/","web":"https://bimstorageacc.z4.web.core.windows.net/","blob":"https://bimstorageacc.blob.core.windows.net/","queue":"https://bimstorageacc.queue.core.windows.net/","table":"https://bimstorageacc.table.core.windows.net/","file":"https://bimstorageacc.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://bimstorageacc-secondary.dfs.core.windows.net/","web":"https://bimstorageacc-secondary.z4.web.core.windows.net/","blob":"https://bimstorageacc-secondary.blob.core.windows.net/","queue":"https://bimstorageacc-secondary.queue.core.windows.net/","table":"https://bimstorageacc-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/sfsfsfsssf","name":"sfsfsfsssf","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:16:53.7141799Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2020-03-05T07:16:53.6829148Z","primaryEndpoints":{"blob":"https://sfsfsfsssf.blob.core.windows.net/","queue":"https://sfsfsfsssf.queue.core.windows.net/","table":"https://sfsfsfsssf.table.core.windows.net/","file":"https://sfsfsfsssf.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/stststeset","name":"stststeset","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-05T07:13:11.0482184Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-05T07:13:10.9856962Z","primaryEndpoints":{"dfs":"https://stststeset.dfs.core.windows.net/","web":"https://stststeset.z4.web.core.windows.net/","blob":"https://stststeset.blob.core.windows.net/","queue":"https://stststeset.queue.core.windows.net/","table":"https://stststeset.table.core.windows.net/","file":"https://stststeset.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yu-test-rg-westus/providers/Microsoft.Storage/storageAccounts/yusawcu","name":"yusawcu","type":"Microsoft.Storage/storageAccounts","location":"westcentralus","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-02-26T09:39:00.0292799Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-02-26T09:38:59.9667703Z","primaryEndpoints":{"dfs":"https://yusawcu.dfs.core.windows.net/","web":"https://yusawcu.z4.web.core.windows.net/","blob":"https://yusawcu.blob.core.windows.net/","queue":"https://yusawcu.queue.core.windows.net/","table":"https://yusawcu.table.core.windows.net/","file":"https://yusawcu.file.core.windows.net/"},"primaryLocation":"westcentralus","statusOfPrimary":"available","secondaryLocation":"westus2","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://yusawcu-secondary.dfs.core.windows.net/","web":"https://yusawcu-secondary.z4.web.core.windows.net/","blob":"https://yusawcu-secondary.blob.core.windows.net/","queue":"https://yusawcu-secondary.queue.core.windows.net/","table":"https://yusawcu-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storageextension","name":"storageextension","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T08:44:19.2476281Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T08:44:19.2007782Z","primaryEndpoints":{"dfs":"https://storageextension.dfs.core.windows.net/","web":"https://storageextension.z3.web.core.windows.net/","blob":"https://storageextension.blob.core.windows.net/","queue":"https://storageextension.queue.core.windows.net/","table":"https://storageextension.table.core.windows.net/","file":"https://storageextension.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storageextension-secondary.dfs.core.windows.net/","web":"https://storageextension-secondary.z3.web.core.windows.net/","blob":"https://storageextension-secondary.blob.core.windows.net/","queue":"https://storageextension-secondary.queue.core.windows.net/","table":"https://storageextension-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/storagetest22","name":"storagetest22","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T03:43:07.5284378Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-21T03:43:07.5284378Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-21T03:43:07.4503168Z","primaryEndpoints":{"dfs":"https://storagetest22.dfs.core.windows.net/","web":"https://storagetest22.z3.web.core.windows.net/","blob":"https://storagetest22.blob.core.windows.net/","queue":"https://storagetest22.queue.core.windows.net/","table":"https://storagetest22.table.core.windows.net/","file":"https://storagetest22.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://storagetest22-secondary.dfs.core.windows.net/","web":"https://storagetest22-secondary.z3.web.core.windows.net/","blob":"https://storagetest22-secondary.blob.core.windows.net/","queue":"https://storagetest22-secondary.queue.core.windows.net/","table":"https://storagetest22-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhadls","name":"zuhadls","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"isHnsEnabled":true,"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-20T03:10:14.5178215Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-20T03:10:14.4709025Z","primaryEndpoints":{"dfs":"https://zuhadls.dfs.core.windows.net/","web":"https://zuhadls.z3.web.core.windows.net/","blob":"https://zuhadls.blob.core.windows.net/","queue":"https://zuhadls.queue.core.windows.net/","table":"https://zuhadls.table.core.windows.net/","file":"https://zuhadls.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhadls-secondary.dfs.core.windows.net/","web":"https://zuhadls-secondary.z3.web.core.windows.net/","blob":"https://zuhadls-secondary.blob.core.windows.net/","queue":"https://zuhadls-secondary.queue.core.windows.net/","table":"https://zuhadls-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"d2e83740-1d90-4aa7-901c-97c510d4f7ec","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhdefault","name":"zuhdefault","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/zuhkey/2780bea583714f33b8051ea24f90a246","lastKeyRotationTimestamp":"2020-04-09T06:46:21.5968704Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"zuhkey","keyversion":"2780bea583714f33b8051ea24f90a246"},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T03:16:26.4697374Z"}},"keySource":"Microsoft.Keyvault"},"provisioningState":"Succeeded","creationTime":"2020-03-30T03:16:26.4228869Z","primaryEndpoints":{"blob":"https://zuhdefault.blob.core.windows.net/","queue":"https://zuhdefault.queue.core.windows.net/","table":"https://zuhdefault.table.core.windows.net/","file":"https://zuhdefault.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"blob":"https://zuhdefault-secondary.blob.core.windows.net/","queue":"https://zuhdefault-secondary.queue.core.windows.net/","table":"https://zuhdefault-secondary.table.core.windows.net/"}}},{"identity":{"principalId":"1b643393-f35b-408e-b50c-2fbef882d353","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhlrs","name":"zuhlrs","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"keyvaultproperties":{"currentVersionedKeyIdentifier":"https://zuhkeyvault.vault.azure.net/keys/storagekey/04704263f43241dca0ff99c3794fd8c7","lastKeyRotationTimestamp":"2020-04-15T08:06:44.8059437Z","currentVersionedKeyExpirationTimestamp":"1970-01-01T00:00:00.0000000Z","keyvaulturi":"https://zuhkeyvault.vault.azure.net/","keyname":"storagekey","keyversion":""},"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-18T01:57:52.8994530Z"}},"keySource":"Microsoft.Keyvault"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-18T01:57:52.8369202Z","primaryEndpoints":{"dfs":"https://zuhlrs.dfs.core.windows.net/","web":"https://zuhlrs.z3.web.core.windows.net/","blob":"https://zuhlrs.blob.core.windows.net/","queue":"https://zuhlrs.queue.core.windows.net/","table":"https://zuhlrs.table.core.windows.net/","file":"https://zuhlrs.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhors","name":"zuhors","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-03-30T05:15:21.5112485Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-03-30T05:15:21.4800200Z","primaryEndpoints":{"dfs":"https://zuhors.dfs.core.windows.net/","web":"https://zuhors.z3.web.core.windows.net/","blob":"https://zuhors.blob.core.windows.net/","queue":"https://zuhors.queue.core.windows.net/","table":"https://zuhors.table.core.windows.net/","file":"https://zuhors.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhors-secondary.dfs.core.windows.net/","web":"https://zuhors-secondary.z3.web.core.windows.net/","blob":"https://zuhors-secondary.blob.core.windows.net/","queue":"https://zuhors-secondary.queue.core.windows.net/","table":"https://zuhors-secondary.table.core.windows.net/"}}},{"sku":{"name":"Standard_RAGRS","tier":"Standard"},"kind":"StorageV2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zuh/providers/Microsoft.Storage/storageAccounts/zuhstoragetest","name":"zuhstoragetest","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"privateEndpointConnections":[],"networkAcls":{"bypass":"AzureServices","virtualNetworkRules":[],"ipRules":[],"defaultAction":"Allow"},"supportsHttpsTrafficOnly":true,"encryption":{"services":{"file":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T07:16:48.8761196Z"},"blob":{"keyType":"Account","enabled":true,"lastEnabledTime":"2020-04-20T07:16:48.8761196Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2020-04-20T07:16:48.8448300Z","primaryEndpoints":{"dfs":"https://zuhstoragetest.dfs.core.windows.net/","web":"https://zuhstoragetest.z3.web.core.windows.net/","blob":"https://zuhstoragetest.blob.core.windows.net/","queue":"https://zuhstoragetest.queue.core.windows.net/","table":"https://zuhstoragetest.table.core.windows.net/","file":"https://zuhstoragetest.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available","secondaryLocation":"centraluseuap","statusOfSecondary":"available","secondaryEndpoints":{"dfs":"https://zuhstoragetest-secondary.dfs.core.windows.net/","web":"https://zuhstoragetest-secondary.z3.web.core.windows.net/","blob":"https://zuhstoragetest-secondary.blob.core.windows.net/","queue":"https://zuhstoragetest-secondary.queue.core.windows.net/","table":"https://zuhstoragetest-secondary.table.core.windows.net/"}}}]}' headers: cache-control: - no-cache content-length: - - '126631' + - '127895' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:42:59 GMT + - Thu, 23 Apr 2020 13:45:04 GMT expires: - '-1' pragma: @@ -921,17 +921,17 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 1fd0cc5a-83d9-410e-bb50-be523e083d68 - - 5c9edab4-58eb-49aa-bc34-0bdec572f98d - - 6b45106d-300d-49f9-b27f-7d7b8acc4c48 - - 0e5992a6-2caf-42d7-b608-38d59c9d1e0e - - 777f6fa3-c37b-42a8-8d1f-9296d0822adb - - a3419105-3b9c-42c5-99ca-d598c3e5129e - - e3aded35-826f-4a62-83f9-3ef9d90c2687 - - 0e35348e-38cb-4284-a370-0e25df444ecf - - da8b25c6-9eeb-4860-a0d1-19e2d34b5665 - - 30c541d5-6be5-4aa8-9187-25e0d088f4fb - - f20b7c0d-48ea-4035-aa6f-8c82da474f88 + - 1d135e07-2e6e-40be-a2b3-3b916a6e0da2 + - dee3f2c8-4ebe-4540-8407-ca7713724a9a + - c104a4ca-15f7-470c-bacd-faa81e9b4517 + - 2dfc2132-c363-4994-94b4-7a92972f8324 + - 4f634dd3-9a28-4a79-96a4-c226b692416f + - 714ebaf4-62c9-4b87-b9fe-f8f7cd8f4ecf + - c2bc88dc-82f1-4bbb-9066-9e0266f19444 + - 4d9514e9-6d2a-4501-846d-7cbf1bbb9c5b + - cb89a6d6-335f-451a-a1f8-86799ab6f621 + - 62943f3d-91c5-4359-8a8e-f594544946e5 + - 0720666c-126e-42db-80dd-f720caa725e0 status: code: 200 message: OK @@ -951,8 +951,8 @@ interactions: ParameterSetName: - --account-name --name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: POST @@ -968,7 +968,7 @@ interactions: content-type: - application/json date: - - Tue, 21 Apr 2020 08:42:59 GMT + - Thu, 23 Apr 2020 13:45:05 GMT expires: - '-1' pragma: @@ -984,7 +984,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '11999' + - '11998' status: code: 200 message: OK @@ -996,9 +996,10 @@ interactions: Content-Length: - '0' User-Agent: - - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.7.4; Windows 10) AZURECLI/2.4.0 + - Azure-Storage/2.0.0-2.0.1 (Python CPython 3.8.2; Windows 10) AZURECLI/2.4.0 + (MSI) x-ms-date: - - Tue, 21 Apr 2020 08:43:00 GMT + - Thu, 23 Apr 2020 13:45:06 GMT x-ms-version: - '2018-11-09' method: PUT @@ -1010,11 +1011,11 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:43:02 GMT + - Thu, 23 Apr 2020 13:45:07 GMT etag: - - '"0x8D7E5D001067AB6"' + - '"0x8D7E78C89BF1209"' last-modified: - - Tue, 21 Apr 2020 08:43:02 GMT + - Thu, 23 Apr 2020 13:45:08 GMT server: - Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-version: @@ -1042,13 +1043,13 @@ interactions: ParameterSetName: - --account-name --dataset --name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"031a78ef-0cfc-45b0-88a3-a20a58f3a87a"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache @@ -1057,7 +1058,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:05 GMT + - Thu, 23 Apr 2020 13:45:11 GMT expires: - '-1' location: @@ -1072,9 +1073,9 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datrywkgqr6mfnic2batum7zhzzekrutyfed7ajmopnqmg7bfkqdq2mavcabi7fdxo/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -1092,13 +1093,13 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' + string: '{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"031a78ef-0cfc-45b0-88a3-a20a58f3a87a"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}' headers: cache-control: - no-cache @@ -1107,7 +1108,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:07 GMT + - Thu, 23 Apr 2020 13:45:13 GMT expires: - '-1' pragma: @@ -1139,13 +1140,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}]}' + string: '{"value":[{"properties":{"containerName":"clitestcontainer","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"cli_test_dat000001","storageAccountName":"clitestdatas000002","dataSetId":"031a78ef-0cfc-45b0-88a3-a20a58f3a87a"},"kind":"Container","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/DataSets"}]}' headers: cache-control: - no-cache @@ -1154,7 +1155,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:08 GMT + - Thu, 23 Apr 2020 13:45:16 GMT expires: - '-1' pragma: @@ -1192,13 +1193,13 @@ interactions: - --account-name --resource-group --share-name --name --recurrence-interval --synchronization-time User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:43:11.3360896Z","userName":"Feng + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-23T13:45:18.9184873Z","userName":"Feng Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: @@ -1208,7 +1209,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:11 GMT + - Thu, 23 Apr 2020 13:45:18 GMT expires: - '-1' location: @@ -1222,7 +1223,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -1240,13 +1241,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name --name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:43:11.3360896Z","userName":"Feng + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-23T13:45:18.9184873Z","userName":"Feng Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}' headers: cache-control: @@ -1256,7 +1257,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:11 GMT + - Thu, 23 Apr 2020 13:45:19 GMT expires: - '-1' pragma: @@ -1288,13 +1289,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:43:11.3360896Z","userName":"Feng + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-23T13:45:18.9184873Z","userName":"Feng Zhou","provisioningState":"Succeeded"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting","name":"cli_test_synchronization_setting","type":"Microsoft.DataShare/SynchronizationSettings"}]}' headers: cache-control: @@ -1304,7 +1305,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:13 GMT + - Thu, 23 Apr 2020 13:45:22 GMT expires: - '-1' pragma: @@ -1338,7 +1339,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/listSynchronizations?api-version=2019-11-01 @@ -1353,7 +1354,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:14 GMT + - Thu, 23 Apr 2020 13:45:22 GMT expires: - '-1' pragma: @@ -1391,13 +1392,13 @@ interactions: ParameterSetName: - --account-name --target-email --name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-21T08:43:16.7151898Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","userName":"Feng + string: '{"properties":{"sentAt":"2020-04-23T13:45:26.3055269Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: @@ -1407,11 +1408,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:16 GMT + - Thu, 23 Apr 2020 13:45:26 GMT expires: - '-1' location: - - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation/0ed527c3-7872-47f7-9c44-7f166f79935d + - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation/8844a5ff-7016-4c96-9901-1a7d005fc0ec pragma: - no-cache server: @@ -1421,7 +1422,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 201 message: Created @@ -1439,13 +1440,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"sentAt":"2020-04-21T08:43:16.7151898Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","userName":"Feng + string: '{"value":[{"properties":{"sentAt":"2020-04-23T13:45:26.3055269Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}]}' headers: cache-control: @@ -1455,7 +1456,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:18 GMT + - Thu, 23 Apr 2020 13:45:27 GMT expires: - '-1' pragma: @@ -1487,13 +1488,13 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation?api-version=2019-11-01 response: body: - string: '{"properties":{"sentAt":"2020-04-21T08:43:16.7151898Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","userName":"Feng + string: '{"properties":{"sentAt":"2020-04-23T13:45:26.3055269Z","targetEmail":"consumer@microsoft.com","invitationStatus":"Pending","invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","userName":"Feng Zhou","userEmail":"provider@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/invitations/cli_test_invitation","name":"cli_test_invitation","type":"Microsoft.DataShare/Invitations"}' headers: cache-control: @@ -1503,7 +1504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:19 GMT + - Thu, 23 Apr 2020 13:45:29 GMT expires: - '-1' pragma: @@ -1535,8 +1536,8 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-resource/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: GET @@ -1592,7 +1593,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:19 GMT + - Thu, 23 Apr 2020 13:45:30 GMT expires: - '-1' pragma: @@ -1624,42 +1625,43 @@ interactions: ParameterSetName: - --location --name --resource-group --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"35d6735b-ff6f-4b88-8daa-d5481c0035df","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-21T08:37:29.65675Z","provisioningState":"Succeeded","userName":"Allen + string: '{"identity":{"type":"SystemAssigned","principalId":"b6e0a818-ff37-4b75-95bd-1b2526538ea7","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-23T13:45:41.6651537Z","provisioningState":"Creating","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:25 GMT + - Thu, 23 Apr 2020 13:45:42 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 pragma: - no-cache server: - Kestrel strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff + x-ms-quota: + - '[{"currentUsed":1,"limit":50,"name":{"localizedValue":"Account resource quota","value":"Account + resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -1674,14 +1676,14 @@ interactions: ParameterSetName: - --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.DataShare/ListInvitations?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-21T08:43:16.7151898Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/0ed527c3-7872-47f7-9c44-7f166f79935d","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' + string: '{"value":[{"properties":{"description":"share description","dataSetCount":1,"invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-23T13:45:26.3055269Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/8844a5ff-7016-4c96-9901-1a7d005fc0ec","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}]}' headers: cache-control: - no-cache @@ -1690,7 +1692,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:28 GMT + - Thu, 23 Apr 2020 13:45:45 GMT expires: - '-1' pragma: @@ -1725,14 +1727,14 @@ interactions: ParameterSetName: - --invitation-id --subscription --location User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/0ed527c3-7872-47f7-9c44-7f166f79935d?api-version=2019-11-01 + uri: https://management.azure.com/providers/Microsoft.DataShare/locations/westus2/consumerInvitations/8844a5ff-7016-4c96-9901-1a7d005fc0ec?api-version=2019-11-01 response: body: - string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-21T08:43:16.7151898Z","termsOfUse":"Confidential","providerName":"Feng - Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/0ed527c3-7872-47f7-9c44-7f166f79935d","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' + string: '{"properties":{"description":"share description","dataSetCount":1,"invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","invitationStatus":"Pending","location":"westus2","shareName":"cli_test_share","sentAt":"2020-04-23T13:45:26.3055269Z","termsOfUse":"Confidential","providerName":"Feng + Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":null,"userEmail":null},"id":"/providers/Microsoft.DataShare/consumerInvitations/8844a5ff-7016-4c96-9901-1a7d005fc0ec","name":"cli_test_invitation","type":"Microsoft.DataShare/consumerInvitations"}' headers: cache-control: - no-cache @@ -1741,7 +1743,55 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:32 GMT + - Thu, 23 Apr 2020 13:45:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created --subscription + User-Agent: + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"b6e0a818-ff37-4b75-95bd-1b2526538ea7","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-23T13:45:41.6651537Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Apr 2020 13:45:49 GMT expires: - '-1' pragma: @@ -1773,23 +1823,23 @@ interactions: ParameterSetName: - --name --resource-group --created --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 response: body: - string: '{"identity":{"type":"SystemAssigned","principalId":"35d6735b-ff6f-4b88-8daa-d5481c0035df","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-21T08:37:29.65675Z","provisioningState":"Succeeded","userName":"Allen + string: '{"identity":{"type":"SystemAssigned","principalId":"b6e0a818-ff37-4b75-95bd-1b2526538ea7","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-23T13:45:41.6651537Z","provisioningState":"Creating","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' headers: cache-control: - no-cache content-length: - - '542' + - '543' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:33 GMT + - Thu, 23 Apr 2020 13:46:19 GMT expires: - '-1' pragma: @@ -1808,7 +1858,151 @@ interactions: code: 200 message: OK - request: - body: '{"properties": {"invitationId": "0ed527c3-7872-47f7-9c44-7f166f79935d", + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created --subscription + User-Agent: + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"b6e0a818-ff37-4b75-95bd-1b2526538ea7","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-23T13:45:41.6651537Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Apr 2020 13:46:49 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created --subscription + User-Agent: + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"b6e0a818-ff37-4b75-95bd-1b2526538ea7","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-23T13:45:41.6651537Z","provisioningState":"Creating","userName":"Allen + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '543' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Apr 2020 13:47:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: + - datashare account wait + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group --created --subscription + User-Agent: + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 + (Windows-10-10.0.18362-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 + response: + body: + string: '{"identity":{"type":"SystemAssigned","principalId":"b6e0a818-ff37-4b75-95bd-1b2526538ea7","tenantId":"66d4b7e9-35f0-4be4-993b-31770b23fbae"},"properties":{"createdAt":"2020-04-23T13:45:41.6651537Z","provisioningState":"Succeeded","userName":"Allen + Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account","name":"cli_test_consumer_account","type":"Microsoft.DataShare/accounts","location":"westus2"}' + headers: + cache-control: + - no-cache + content-length: + - '544' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Apr 2020 13:47:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + 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: '{"properties": {"invitationId": "8844a5ff-7016-4c96-9901-1a7d005fc0ec", "sourceShareLocation": "westus2"}}' headers: Accept: @@ -1827,13 +2021,13 @@ interactions: - --account-name --resource-group --invitation-id --source-share-location --name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-21T08:43:36.302435Z","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"properties":{"createdAt":"2020-04-23T13:47:55.3598425Z","invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' @@ -1841,11 +2035,11 @@ interactions: cache-control: - no-cache content-length: - - '787' + - '788' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:36 GMT + - Thu, 23 Apr 2020 13:47:55 GMT expires: - '-1' location: @@ -1880,13 +2074,13 @@ interactions: ParameterSetName: - --account-name --resource-group --name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 response: body: - string: '{"properties":{"createdAt":"2020-04-21T08:43:36.302435Z","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"properties":{"createdAt":"2020-04-23T13:47:55.3598425Z","invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' @@ -1894,11 +2088,11 @@ interactions: cache-control: - no-cache content-length: - - '787' + - '788' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:37 GMT + - Thu, 23 Apr 2020 13:47:56 GMT expires: - '-1' pragma: @@ -1930,13 +2124,13 @@ interactions: ParameterSetName: - --account-name --resource-group --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"createdAt":"2020-04-21T08:43:36.302435Z","invitationId":"0ed527c3-7872-47f7-9c44-7f166f79935d","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share + string: '{"value":[{"properties":{"createdAt":"2020-04-23T13:47:55.3598425Z","invitationId":"8844a5ff-7016-4c96-9901-1a7d005fc0ec","sourceShareLocation":"westus2","provisioningState":"Succeeded","shareDescription":"share description","shareKind":"CopyBased","shareName":"cli_test_share","shareSubscriptionStatus":"Active","shareTerms":"Confidential","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","providerTenantName":"AzureSDKTeam","userName":"Allen Zhou","userEmail":"consumer@microsoft.com"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' @@ -1944,11 +2138,11 @@ interactions: cache-control: - no-cache content-length: - - '799' + - '800' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:38 GMT + - Thu, 23 Apr 2020 13:47:59 GMT expires: - '-1' pragma: @@ -1980,13 +2174,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/ConsumerSourceDataSets?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"dataSetName":"cli_test_data_set","dataSetPath":"clitestcontainer","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/consumerSourceDataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' + string: '{"value":[{"properties":{"dataSetName":"cli_test_data_set","dataSetPath":"clitestcontainer","dataSetId":"031a78ef-0cfc-45b0-88a3-a20a58f3a87a","dataSetLocation":null,"dataSetType":"Container"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/consumerSourceDataSets/cli_test_data_set","name":"cli_test_data_set","type":"Microsoft.DataShare/ConsumerSourceDataSet"}]}' headers: cache-control: - no-cache @@ -1995,7 +2189,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:40 GMT + - Thu, 23 Apr 2020 13:48:00 GMT expires: - '-1' pragma: @@ -2027,8 +2221,8 @@ interactions: ParameterSetName: - -n -g --subscription User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-storage/9.0.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: GET @@ -2044,7 +2238,7 @@ interactions: content-type: - application/json date: - - Tue, 21 Apr 2020 08:43:41 GMT + - Thu, 23 Apr 2020 13:48:02 GMT expires: - '-1' pragma: @@ -2064,7 +2258,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe", - "principalId": "35d6735b-ff6f-4b88-8daa-d5481c0035df", "principalType": "ServicePrincipal"}}' + "principalId": "b6e0a818-ff37-4b75-95bd-1b2526538ea7", "principalType": "ServicePrincipal"}}' headers: Accept: - application/json @@ -2081,15 +2275,15 @@ interactions: ParameterSetName: - --role --assignee-object-id --assignee-principal-type --scope --subscription User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 - azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.4.0 + - python/3.8.2 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.4.0 (MSI) accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/e7253fdd-448a-4a36-b449-1a5395ff58ba?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/3a1bf740-28a5-4a0d-bdb5-48fdb2c43922?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"35d6735b-ff6f-4b88-8daa-d5481c0035df","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","createdOn":"2020-04-21T08:43:42.8181350Z","updatedOn":"2020-04-21T08:43:42.8181350Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/e7253fdd-448a-4a36-b449-1a5395ff58ba","type":"Microsoft.Authorization/roleAssignments","name":"e7253fdd-448a-4a36-b449-1a5395ff58ba"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe","principalId":"b6e0a818-ff37-4b75-95bd-1b2526538ea7","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa","createdOn":"2020-04-23T13:48:04.0784140Z","updatedOn":"2020-04-23T13:48:04.0784140Z","createdBy":null,"updatedBy":"97bce510-8fdd-4a59-9f13-f32a6179931e"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.Storage/storageAccounts/datashareconsumersa/providers/Microsoft.Authorization/roleAssignments/3a1bf740-28a5-4a0d-bdb5-48fdb2c43922","type":"Microsoft.Authorization/roleAssignments","name":"3a1bf740-28a5-4a0d-bdb5-48fdb2c43922"}' headers: cache-control: - no-cache @@ -2098,7 +2292,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:46 GMT + - Thu, 23 Apr 2020 13:48:10 GMT expires: - '-1' pragma: @@ -2116,7 +2310,7 @@ interactions: message: Created - request: body: '{"kind": "BlobFolder", "properties": {"containerName": "clitestconsumercontainer", - "dataSetId": "8edff0f9-3b35-450e-b64f-39d9f4b1b08d", "prefix": "cli_test_data_set", + "dataSetId": "031a78ef-0cfc-45b0-88a3-a20a58f3a87a", "prefix": "cli_test_data_set", "resourceGroup": "datashare_consumer_rg", "storageAccountName": "datashareconsumersa", "subscriptionId": "9abff005-2afc-4de1-b39c-344b9de2cc9c"}}' headers: @@ -2136,13 +2330,13 @@ interactions: - --account-name --name --resource-group --share-subscription-name --mapping --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"031a78ef-0cfc-45b0-88a3-a20a58f3a87a","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' headers: cache-control: - no-cache @@ -2151,7 +2345,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:43:57 GMT + - Thu, 23 Apr 2020 13:48:25 GMT expires: - '-1' location: @@ -2168,7 +2362,7 @@ interactions: - '[{"currentUsed":1,"limit":100,"name":{"localizedValue":"DataSetMapping resource quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -2191,16 +2385,16 @@ interactions: - --account-name --resource-group --share-subscription-name --synchronization-mode --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/Synchronize?api-version=2019-11-01 response: body: - string: '{"status":"Queued","synchronizationId":"0dfe90ef-fcf5-436c-9d93-aa92fc13504f","synchronizationMode":"Incremental"}' + string: '{"status":"Queued","synchronizationId":"46da96f7-df55-4472-9d4a-90dabc0dc1c2","synchronizationMode":"Incremental"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/synchronizationOperationResults/0dfe90ef-fcf5-436c-9d93-aa92fc13504f?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/synchronizationOperationResults/46da96f7-df55-4472-9d4a-90dabc0dc1c2?api-version=2019-11-01 cache-control: - no-cache content-length: @@ -2208,11 +2402,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:02 GMT + - Thu, 23 Apr 2020 13:48:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/shareSubscriptionSynchronizations/0dfe90ef-fcf5-436c-9d93-aa92fc13504f?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/shareSubscriptionSynchronizations/46da96f7-df55-4472-9d4a-90dabc0dc1c2?api-version=2019-11-01 pragma: - no-cache server: @@ -2240,13 +2434,13 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 response: body: - string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' + string: '{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"031a78ef-0cfc-45b0-88a3-a20a58f3a87a","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}' headers: cache-control: - no-cache @@ -2255,7 +2449,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:03 GMT + - Thu, 23 Apr 2020 13:48:32 GMT expires: - '-1' pragma: @@ -2287,13 +2481,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"8edff0f9-3b35-450e-b64f-39d9f4b1b08d","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}]}' + string: '{"value":[{"properties":{"containerName":"clitestconsumercontainer","prefix":"cli_test_data_set","subscriptionId":"9abff005-2afc-4de1-b39c-344b9de2cc9c","resourceGroup":"datashare_consumer_rg","storageAccountName":"datashareconsumersa","dataSetId":"031a78ef-0cfc-45b0-88a3-a20a58f3a87a","dataSetMappingStatus":"Ok","provisioningState":"Succeeded"},"kind":"BlobFolder","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping","name":"cli_test_data_set_mapping","type":"Microsoft.DataShare/DataSetMappings"}]}' headers: cache-control: - no-cache @@ -2302,7 +2496,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:05 GMT + - Thu, 23 Apr 2020 13:48:35 GMT expires: - '-1' pragma: @@ -2336,22 +2530,22 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/listSynchronizations?api-version=2019-11-01 response: body: - string: '{"value":[{"status":"Queued","synchronizationId":"0dfe90ef-fcf5-436c-9d93-aa92fc13504f","synchronizationMode":"Incremental"}]}' + string: '{"value":[{"startTime":"2020-04-23T13:48:32.353028Z","status":"Queued","synchronizationId":"46da96f7-df55-4472-9d4a-90dabc0dc1c2","synchronizationMode":"Incremental"}]}' headers: cache-control: - no-cache content-length: - - '126' + - '168' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:07 GMT + - Thu, 23 Apr 2020 13:48:37 GMT expires: - '-1' pragma: @@ -2387,7 +2581,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/listSourceShareSynchronizationSettings?api-version=2019-11-01 @@ -2402,7 +2596,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:08 GMT + - Thu, 23 Apr 2020 13:48:39 GMT expires: - '-1' pragma: @@ -2439,16 +2633,16 @@ interactions: Content-Type: - application/json ParameterSetName: - - --account-name --resource-group --share-subscription-name --name --trigger - --subscription + - --account-name --resource-group --share-subscription-name --name --recurrence-interval + --synchronization-time --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:44:10.8245659Z","userName":"Allen + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-23T13:48:42.2978189Z","userName":"Allen Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' headers: cache-control: @@ -2458,7 +2652,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:10 GMT + - Thu, 23 Apr 2020 13:48:42 GMT expires: - '-1' location: @@ -2490,13 +2684,13 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 response: body: - string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:44:10.8245659Z","userName":"Allen + string: '{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-23T13:48:42.2978189Z","userName":"Allen Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}' headers: cache-control: @@ -2506,7 +2700,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:12 GMT + - Thu, 23 Apr 2020 13:48:43 GMT expires: - '-1' pragma: @@ -2538,23 +2732,23 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-21T08:44:10.8245659Z","userName":"Allen - Zhou","provisioningState":"Succeeded","triggerStatus":"Active","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}]}' + string: '{"value":[{"properties":{"recurrenceInterval":"Day","synchronizationTime":"2020-04-05T10:50:00Z","createdAt":"2020-04-23T13:48:42.2978189Z","userName":"Allen + Zhou","provisioningState":"Creating","triggerStatus":"Inactive","synchronizationMode":"Incremental"},"kind":"ScheduleBased","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger","name":"cli_test_trigger","type":"Microsoft.DataShare/Triggers"}]}' headers: cache-control: - no-cache content-length: - - '581' + - '582' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:14 GMT + - Thu, 23 Apr 2020 13:48:45 GMT expires: - '-1' pragma: @@ -2586,24 +2780,24 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions?api-version=2019-11-01 response: body: - string: '{"value":[{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen - Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' + string: '{"value":[{"properties":{"shareSubscriptionObjectId":"cea4ae94-0b80-4306-9124-29e0f97e6604","consumerName":"Allen + Zhou","createdAt":"2020-04-23T13:47:55.3598425Z","sharedAt":"2020-04-23T13:45:26.3055269Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}]}' headers: cache-control: - no-cache content-length: - - '759' + - '760' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:15 GMT + - Thu, 23 Apr 2020 13:48:47 GMT expires: - '-1' pragma: @@ -2635,24 +2829,24 @@ interactions: ParameterSetName: - --account-name --share-subscription --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen - Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"cea4ae94-0b80-4306-9124-29e0f97e6604","consumerName":"Allen + Zhou","createdAt":"2020-04-23T13:47:55.3598425Z","sharedAt":"2020-04-23T13:45:26.3055269Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '747' + - '748' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:17 GMT + - Thu, 23 Apr 2020 13:48:49 GMT expires: - '-1' pragma: @@ -2686,30 +2880,30 @@ interactions: ParameterSetName: - --account-name --share-subscription --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b/revoke?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604/revoke?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen - Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"cea4ae94-0b80-4306-9124-29e0f97e6604","consumerName":"Allen + Zhou","createdAt":"2020-04-23T13:47:55.3598425Z","sharedAt":"2020-04-23T13:45:26.3055269Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Revoking"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/3b656d75-1027-422b-bf5c-798bc57939c3?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/operationResults/f9efc1e9-34af-4f77-87eb-5de189b8fe89?api-version=2019-11-01 cache-control: - no-cache content-length: - - '749' + - '750' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:19 GMT + - Thu, 23 Apr 2020 13:48:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604?api-version=2019-11-01 pragma: - no-cache server: @@ -2739,24 +2933,24 @@ interactions: ParameterSetName: - --account-name --share-subscription --resource-group --share-name User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b/reinstate?api-version=2019-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/providerShareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604/reinstate?api-version=2019-11-01 response: body: - string: '{"properties":{"shareSubscriptionObjectId":"6b9d35c6-533d-4334-a27a-28ab3fc3396b","consumerName":"Allen - Zhou","createdAt":"2020-04-21T08:43:36.302435Z","sharedAt":"2020-04-21T08:43:16.7151898Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default - Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/6b9d35c6-533d-4334-a27a-28ab3fc3396b","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' + string: '{"properties":{"shareSubscriptionObjectId":"cea4ae94-0b80-4306-9124-29e0f97e6604","consumerName":"Allen + Zhou","createdAt":"2020-04-23T13:47:55.3598425Z","sharedAt":"2020-04-23T13:45:26.3055269Z","consumerEmail":"consumer@microsoft.com","consumerTenantName":"Default + Directory","providerName":"Feng Zhou","providerEmail":"provider@microsoft.com","shareSubscriptionStatus":"Active"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/shareSubscriptions/cea4ae94-0b80-4306-9124-29e0f97e6604","name":"cli_test_share_subscription","type":"Microsoft.DataShare/ShareSubscriptions"}' headers: cache-control: - no-cache content-length: - - '747' + - '748' content-type: - application/json; charset=utf-8 date: - - Tue, 21 Apr 2020 08:44:26 GMT + - Thu, 23 Apr 2020 13:48:59 GMT expires: - '-1' pragma: @@ -2792,7 +2986,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-name --name --yes User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/synchronizationSettings/cli_test_synchronization_setting?api-version=2019-11-01 @@ -2805,11 +2999,11 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:28 GMT + - Thu, 23 Apr 2020 13:49:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/fe1ce1c1-61ff-41f2-9cd8-4401b19f3ef9?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/d7892df8-eccd-42a3-8de4-be8600d80a4d?api-version=2019-11-01 pragma: - no-cache server: @@ -2839,7 +3033,7 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-name --yes User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set?api-version=2019-11-01 @@ -2852,7 +3046,7 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:30 GMT + - Thu, 23 Apr 2020 13:49:03 GMT expires: - '-1' pragma: @@ -2865,7 +3059,7 @@ interactions: - nosniff x-ms-quota: - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSet resource - quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datqjruhcgacltkkhk5rwmbndexhu3mfryx4otwc722zlbkikb46663yjcfozlcb2f/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' + quota","value":"DataSet resource quota"},"target":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_datrywkgqr6mfnic2batum7zhzzekrutyfed7ajmopnqmg7bfkqdq2mavcabi7fdxo/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share/dataSets/cli_test_data_set"}]' x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: @@ -2887,7 +3081,7 @@ interactions: ParameterSetName: - --account-name --resource-group --name --yes User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account/shares/cli_test_share?api-version=2019-11-01 @@ -2900,11 +3094,11 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:31 GMT + - Thu, 23 Apr 2020 13:49:04 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/4f407dde-1975-468e-93b6-0bb579a7dd8a?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/80548841-441e-4061-93b9-b6d0ce4c0249?api-version=2019-11-01 pragma: - no-cache server: @@ -2934,7 +3128,7 @@ interactions: ParameterSetName: - --name --resource-group --no-wait --yes User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dat000001/providers/Microsoft.DataShare/accounts/cli_test_account?api-version=2019-11-01 @@ -2947,11 +3141,11 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:33 GMT + - Thu, 23 Apr 2020 13:49:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/bed2c3d2-4990-4926-88d1-4469d0ce0db4?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/e331712b-17b0-48ba-8e62-592b4f5f284d?api-version=2019-11-01 pragma: - no-cache server: @@ -2961,7 +3155,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14995' + - '14998' status: code: 202 message: Accepted @@ -2981,7 +3175,7 @@ interactions: ParameterSetName: - --account-name --resource-group --share-subscription-name --name --yes --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/triggers/cli_test_trigger?api-version=2019-11-01 @@ -2994,11 +3188,11 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:35 GMT + - Thu, 23 Apr 2020 13:49:08 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/8969068d-d56b-4f0b-978e-2f933d94281c?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/e89ae980-17f5-4a9b-9e65-db922d490a7c?api-version=2019-11-01 pragma: - no-cache server: @@ -3008,7 +3202,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' status: code: 202 message: Accepted @@ -3028,7 +3222,7 @@ interactions: ParameterSetName: - --account-name --name --resource-group --share-subscription-name --yes --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping?api-version=2019-11-01 @@ -3041,7 +3235,7 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:36 GMT + - Thu, 23 Apr 2020 13:49:09 GMT expires: - '-1' pragma: @@ -3056,7 +3250,7 @@ interactions: - '[{"currentUsed":0,"limit":100,"name":{"localizedValue":"DataSetMapping resource quota","value":"DataSetMapping resource quota"},"target":"/subscriptions/9abff005-2afc-4de1-b39c-344b9de2cc9c/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription/dataSetMappings/cli_test_data_set_mapping"}]' x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14997' status: code: 200 message: OK @@ -3076,7 +3270,7 @@ interactions: ParameterSetName: - --account-name --resource-group --name --yes --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account/shareSubscriptions/cli_test_share_subscription?api-version=2019-11-01 @@ -3089,11 +3283,11 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:38 GMT + - Thu, 23 Apr 2020 13:49:11 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/5f12d918-536e-4151-8a8e-3addec4c10a6?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/bd7196da-c8a9-4b96-927e-000510684928?api-version=2019-11-01 pragma: - no-cache server: @@ -3123,7 +3317,7 @@ interactions: ParameterSetName: - --name --resource-group --no-wait --yes --subscription User-Agent: - - AZURECLI/2.4.0 azsdk-python-datasharemanagementclient/unknown Python/3.7.4 + - AZURECLI/2.4.0 (MSI) azsdk-python-datasharemanagementclient/unknown Python/3.8.2 (Windows-10-10.0.18362-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/datashare_consumer_rg/providers/Microsoft.DataShare/accounts/cli_test_consumer_account?api-version=2019-11-01 @@ -3136,11 +3330,11 @@ interactions: content-length: - '0' date: - - Tue, 21 Apr 2020 08:44:40 GMT + - Thu, 23 Apr 2020 13:49:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/b738d498-7482-4caf-a97d-d41d8be5dfa9?api-version=2019-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DataShare/locations/westus2/operationResults/44b598b3-6268-4028-9d1f-3cdb8adb30c6?api-version=2019-11-01 pragma: - no-cache server: @@ -3150,7 +3344,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted From 8ad724e46665c23b0f94c7b8cab64d25b65a1b7d Mon Sep 17 00:00:00 2001 From: Feng Zhou Date: Thu, 23 Apr 2020 22:54:09 +0800 Subject: [PATCH 23/23] remove unsed files --- src/datashare/azext_datashare/commands.py | 16 ---------------- src/datashare/azext_datashare/custom.py | 12 ------------ 2 files changed, 28 deletions(-) delete mode 100644 src/datashare/azext_datashare/commands.py delete mode 100644 src/datashare/azext_datashare/custom.py diff --git a/src/datashare/azext_datashare/commands.py b/src/datashare/azext_datashare/commands.py deleted file mode 100644 index 46016e824a3..00000000000 --- a/src/datashare/azext_datashare/commands.py +++ /dev/null @@ -1,16 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -# pylint: disable=wildcard-import -# pylint: disable=unused-wildcard-import - -try: - from .generated.commands import * # noqa: F403 -except ImportError: - pass - -try: - from .generated.commands import * # noqa: F403 -except ImportError: - pass diff --git a/src/datashare/azext_datashare/custom.py b/src/datashare/azext_datashare/custom.py deleted file mode 100644 index 67310ca3277..00000000000 --- a/src/datashare/azext_datashare/custom.py +++ /dev/null @@ -1,12 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -# pylint: disable=wildcard-import -# pylint: disable=unused-wildcard-import - -try: - from .generated.custom import * # noqa: F403 - from .manual.custom import * # noqa: F403 -except ImportError: - pass