From 055282ca2f51374301a0ed90944b945656da1149 Mon Sep 17 00:00:00 2001 From: Qiaoqiao Zhang <55688292+qiaozha@users.noreply.github.com> Date: Fri, 25 Dec 2020 16:28:22 +0800 Subject: [PATCH] kusto-e2e-test-for-cli-codegen (#14) --- src/kusto/HISTORY.rst | 16 +- src/kusto/azext_kusto/__init__.py | 100 +- src/kusto/azext_kusto/action.py | 34 +- src/kusto/azext_kusto/azext_metadata.json | 6 +- src/kusto/azext_kusto/custom.py | 34 +- src/kusto/azext_kusto/generated/__init__.py | 24 +- .../azext_kusto/generated/_client_factory.py | 80 +- src/kusto/azext_kusto/generated/_help.py | 1649 +++-- src/kusto/azext_kusto/generated/_params.py | 1341 ++-- .../azext_kusto/generated/_validators.py | 18 +- src/kusto/azext_kusto/generated/action.py | 524 +- src/kusto/azext_kusto/generated/commands.py | 252 +- src/kusto/azext_kusto/generated/custom.py | 1777 +++--- src/kusto/azext_kusto/manual/__init__.py | 24 +- src/kusto/azext_kusto/manual/_help.py | 758 --- src/kusto/azext_kusto/manual/_params.py | 573 -- src/kusto/azext_kusto/manual/custom.py | 881 --- .../manual/tests/latest/example_steps.py | 50 +- .../recordings/test_kusto_Scenario.yaml | 5549 ++++++++++++++--- .../tests/latest/test_kusto_scenario.py | 15 +- src/kusto/azext_kusto/tests/__init__.py | 230 +- .../azext_kusto/tests/latest/__init__.py | 24 +- .../azext_kusto/tests/latest/example_steps.py | 26 +- .../recordings/test_kusto_Scenario.yaml | 320 - .../tests/latest/test_kusto_scenario.py | 254 +- .../azext_kusto/vendored_sdks/__init__.py | 24 +- .../kusto/_kusto_management_client.py | 56 +- .../vendored_sdks/kusto/_version.py | 9 - .../kusto/aio/_configuration_async.py | 65 - .../kusto/aio/_kusto_management_client.py | 56 +- .../aio/_kusto_management_client_async.py | 93 - .../kusto/aio/operations/__init__.py | 28 +- ...hed_database_configurations_operations.py} | 33 +- ...uster_principal_assignments_operations.py} | 44 +- ..._operations.py => _clusters_operations.py} | 279 +- ...ons.py => _data_connections_operations.py} | 32 +- ...abase_principal_assignments_operations.py} | 43 +- ...operations.py => _databases_operations.py} | 51 +- ...operation_operations.py => _operations.py} | 4 +- .../kusto/aio/operations_async/__init__.py | 25 - ...database_configuration_operations_async.py | 408 -- .../_cluster_operations_async.py | 1607 ----- ...r_principal_assignment_operations_async.py | 474 -- .../_data_connection_operations_async.py | 730 --- .../_database_operations_async.py | 796 --- ...e_principal_assignment_operations_async.py | 498 -- .../_operation_operations_async.py | 101 - .../vendored_sdks/kusto/models/__init__.py | 3 + .../vendored_sdks/kusto/models/_models.py | 96 +- .../vendored_sdks/kusto/models/_models_py3.py | 105 +- .../kusto/operations/__init__.py | 28 +- ...hed_database_configurations_operations.py} | 33 +- ...uster_principal_assignments_operations.py} | 44 +- ..._operations.py => _clusters_operations.py} | 279 +- ...ons.py => _data_connections_operations.py} | 32 +- ...abase_principal_assignments_operations.py} | 43 +- ...operations.py => _databases_operations.py} | 51 +- ...operation_operations.py => _operations.py} | 4 +- .../azext_kusto/vendored_sdks/kusto/setup.py | 37 - src/kusto/kusto.egg-info/PKG-INFO | 68 +- src/kusto/kusto.egg-info/SOURCES.txt | 40 +- src/kusto/report.md | 1802 +++--- src/kusto/setup.py | 116 +- 63 files changed, 9246 insertions(+), 13550 deletions(-) delete mode 100644 src/kusto/azext_kusto/manual/_help.py delete mode 100644 src/kusto/azext_kusto/manual/_params.py delete mode 100644 src/kusto/azext_kusto/manual/custom.py delete mode 100644 src/kusto/azext_kusto/tests/latest/recordings/test_kusto_Scenario.yaml delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/_version.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/_configuration_async.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client_async.py rename src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/{_attached_database_configuration_operations.py => _attached_database_configurations_operations.py} (92%) rename src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/{_cluster_principal_assignment_operations.py => _cluster_principal_assignments_operations.py} (93%) rename src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/{_cluster_operations.py => _clusters_operations.py} (83%) rename src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/{_data_connection_operations.py => _data_connections_operations.py} (97%) rename src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/{_database_principal_assignment_operations.py => _database_principal_assignments_operations.py} (93%) rename src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/{_database_operations.py => _databases_operations.py} (95%) rename src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/{_operation_operations.py => _operations.py} (98%) delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/__init__.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_attached_database_configuration_operations_async.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_operations_async.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_principal_assignment_operations_async.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_data_connection_operations_async.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_operations_async.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_principal_assignment_operations_async.py delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_operation_operations_async.py rename src/kusto/azext_kusto/vendored_sdks/kusto/operations/{_attached_database_configuration_operations.py => _attached_database_configurations_operations.py} (92%) rename src/kusto/azext_kusto/vendored_sdks/kusto/operations/{_cluster_principal_assignment_operations.py => _cluster_principal_assignments_operations.py} (93%) rename src/kusto/azext_kusto/vendored_sdks/kusto/operations/{_cluster_operations.py => _clusters_operations.py} (82%) rename src/kusto/azext_kusto/vendored_sdks/kusto/operations/{_data_connection_operations.py => _data_connections_operations.py} (97%) rename src/kusto/azext_kusto/vendored_sdks/kusto/operations/{_database_principal_assignment_operations.py => _database_principal_assignments_operations.py} (93%) rename src/kusto/azext_kusto/vendored_sdks/kusto/operations/{_database_operations.py => _databases_operations.py} (95%) rename src/kusto/azext_kusto/vendored_sdks/kusto/operations/{_operation_operations.py => _operations.py} (98%) delete mode 100644 src/kusto/azext_kusto/vendored_sdks/kusto/setup.py diff --git a/src/kusto/HISTORY.rst b/src/kusto/HISTORY.rst index 27f152061e8..1c139576ba0 100644 --- a/src/kusto/HISTORY.rst +++ b/src/kusto/HISTORY.rst @@ -1,8 +1,8 @@ -.. :changelog: - -Release History -=============== - -0.1.0 -++++++ -* Initial release. +.. :changelog: + +Release History +=============== + +0.1.0 +++++++ +* Initial release. diff --git a/src/kusto/azext_kusto/__init__.py b/src/kusto/azext_kusto/__init__.py index 194950effde..ef7aec28329 100644 --- a/src/kusto/azext_kusto/__init__.py +++ b/src/kusto/azext_kusto/__init__.py @@ -1,50 +1,50 @@ -# -------------------------------------------------------------------------- -# 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.cli.core import AzCommandsLoader -from azext_kusto.generated._help import helps # pylint: disable=unused-import -try: - from azext_kusto.manual._help import helps # pylint: disable=reimported -except ImportError: - pass - - -class KustoManagementClientCommandsLoader(AzCommandsLoader): - - def __init__(self, cli_ctx=None): - from azure.cli.core.commands import CliCommandType - from azext_kusto.generated._client_factory import cf_kusto_cl - kusto_custom = CliCommandType( - operations_tmpl='azext_kusto.custom#{}', - client_factory=cf_kusto_cl) - parent = super(KustoManagementClientCommandsLoader, self) - parent.__init__(cli_ctx=cli_ctx, custom_command_type=kusto_custom) - - def load_command_table(self, args): - from azext_kusto.generated.commands import load_command_table - load_command_table(self, args) - try: - from azext_kusto.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 azext_kusto.generated._params import load_arguments - load_arguments(self, command) - try: - from azext_kusto.manual._params import load_arguments as load_arguments_manual - load_arguments_manual(self, command) - except ImportError: - pass - - -COMMAND_LOADER_CLS = KustoManagementClientCommandsLoader +# -------------------------------------------------------------------------- +# 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.cli.core import AzCommandsLoader +from azext_kusto.generated._help import helps # pylint: disable=unused-import +try: + from azext_kusto.manual._help import helps # pylint: disable=reimported +except ImportError: + pass + + +class KustoManagementClientCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + from azext_kusto.generated._client_factory import cf_kusto_cl + kusto_custom = CliCommandType( + operations_tmpl='azext_kusto.custom#{}', + client_factory=cf_kusto_cl) + parent = super(KustoManagementClientCommandsLoader, self) + parent.__init__(cli_ctx=cli_ctx, custom_command_type=kusto_custom) + + def load_command_table(self, args): + from azext_kusto.generated.commands import load_command_table + load_command_table(self, args) + try: + from azext_kusto.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 azext_kusto.generated._params import load_arguments + load_arguments(self, command) + try: + from azext_kusto.manual._params import load_arguments as load_arguments_manual + load_arguments_manual(self, command) + except ImportError: + pass + + +COMMAND_LOADER_CLS = KustoManagementClientCommandsLoader diff --git a/src/kusto/azext_kusto/action.py b/src/kusto/azext_kusto/action.py index a846b2766c4..d95d53bf711 100644 --- a/src/kusto/azext_kusto/action.py +++ b/src/kusto/azext_kusto/action.py @@ -1,17 +1,17 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# 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 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +# 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/kusto/azext_kusto/azext_metadata.json b/src/kusto/azext_kusto/azext_metadata.json index c45cb5b1707..cfc30c747c7 100644 --- a/src/kusto/azext_kusto/azext_metadata.json +++ b/src/kusto/azext_kusto/azext_metadata.json @@ -1,4 +1,4 @@ -{ - "azext.isExperimental": true, - "azext.minCliCoreVersion": "2.15.0" +{ + "azext.isExperimental": true, + "azext.minCliCoreVersion": "2.15.0" } \ No newline at end of file diff --git a/src/kusto/azext_kusto/custom.py b/src/kusto/azext_kusto/custom.py index 7f31674ce96..dbe9d5f9742 100644 --- a/src/kusto/azext_kusto/custom.py +++ b/src/kusto/azext_kusto/custom.py @@ -1,17 +1,17 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# 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 +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +# 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/kusto/azext_kusto/generated/__init__.py b/src/kusto/azext_kusto/generated/__init__.py index ee0c4f36bd0..c9cfdc73e77 100644 --- a/src/kusto/azext_kusto/generated/__init__.py +++ b/src/kusto/azext_kusto/generated/__init__.py @@ -1,12 +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__) +# 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__) diff --git a/src/kusto/azext_kusto/generated/_client_factory.py b/src/kusto/azext_kusto/generated/_client_factory.py index dad25d40c53..8f733109dcf 100644 --- a/src/kusto/azext_kusto/generated/_client_factory.py +++ b/src/kusto/azext_kusto/generated/_client_factory.py @@ -1,40 +1,40 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- - - -def cf_kusto_cl(cli_ctx, *_): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from azext_kusto.vendored_sdks.kusto import KustoManagementClient - return get_mgmt_service_client(cli_ctx, - KustoManagementClient) - - -def cf_cluster(cli_ctx, *_): - return cf_kusto_cl(cli_ctx).cluster - - -def cf_cluster_principal_assignment(cli_ctx, *_): - return cf_kusto_cl(cli_ctx).cluster_principal_assignment - - -def cf_database(cli_ctx, *_): - return cf_kusto_cl(cli_ctx).database - - -def cf_database_principal_assignment(cli_ctx, *_): - return cf_kusto_cl(cli_ctx).database_principal_assignment - - -def cf_attached_database_configuration(cli_ctx, *_): - return cf_kusto_cl(cli_ctx).attached_database_configuration - - -def cf_data_connection(cli_ctx, *_): - return cf_kusto_cl(cli_ctx).data_connection +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- + + +def cf_kusto_cl(cli_ctx, *_): + from azure.cli.core.commands.client_factory import get_mgmt_service_client + from azext_kusto.vendored_sdks.kusto import KustoManagementClient + return get_mgmt_service_client(cli_ctx, + KustoManagementClient) + + +def cf_cluster(cli_ctx, *_): + return cf_kusto_cl(cli_ctx).clusters + + +def cf_cluster_principal_assignment(cli_ctx, *_): + return cf_kusto_cl(cli_ctx).cluster_principal_assignments + + +def cf_database(cli_ctx, *_): + return cf_kusto_cl(cli_ctx).databases + + +def cf_database_principal_assignment(cli_ctx, *_): + return cf_kusto_cl(cli_ctx).database_principal_assignments + + +def cf_attached_database_configuration(cli_ctx, *_): + return cf_kusto_cl(cli_ctx).attached_database_configurations + + +def cf_data_connection(cli_ctx, *_): + return cf_kusto_cl(cli_ctx).data_connections diff --git a/src/kusto/azext_kusto/generated/_help.py b/src/kusto/azext_kusto/generated/_help.py index 21e6838100e..a1ca379d52e 100644 --- a/src/kusto/azext_kusto/generated/_help.py +++ b/src/kusto/azext_kusto/generated/_help.py @@ -1,846 +1,803 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines - -from knack.help_files import helps - - -helps['kusto cluster'] = """ - type: group - short-summary: Manage cluster with kusto. Command group swagger name=Clusters -""" - -helps['kusto cluster list'] = """ - type: command - short-summary: "Lists all Kusto clusters within a resource group. Command group swagger name=Clusters, Command \ -swagger name=ListByResourceGroup And Lists all Kusto clusters within a subscription. Command group swagger \ -name=Clusters, Command swagger name=List." - examples: - - name: KustoClustersListByResourceGroup - text: |- - az kusto cluster list --resource-group "kustorptest" - - name: KustoClustersList - text: |- - az kusto cluster list -""" - -helps['kusto cluster show'] = """ - type: command - short-summary: "Gets a Kusto cluster. Command group swagger name=Clusters, Command swagger name=Get." - examples: - - name: KustoClustersGet - text: |- - az kusto cluster show --name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster create'] = """ - type: command - short-summary: "Create a Kusto cluster. Command group swagger name=Clusters, Command swagger \ -name=CreateOrUpdate#Create." - parameters: - - name: --sku - short-summary: "The SKU of the cluster. Swagger name=sku" - long-summary: | - Usage: --sku name=XX capacity=XX tier=XX - - name: Required. SKU name. - capacity: The number of instances of the cluster. - tier: Required. SKU tier. - - name: --trusted-external-tenants - short-summary: "The cluster's external tenants. Swagger name=trustedExternalTenants" - long-summary: | - Usage: --trusted-external-tenants value=XX - - value: GUID representing an external tenant. - - Multiple actions can be specified by using more than one --trusted-external-tenants argument. - - name: --optimized-autoscale - short-summary: "Optimized auto scale definition. Swagger name=optimizedAutoscale" - long-summary: | - Usage: --optimized-autoscale version=XX is-enabled=XX minimum=XX maximum=XX - - version: Required. The version of the template defined, for instance 1. - is-enabled: Required. A boolean value that indicate if the optimized autoscale feature is enabled or not. - minimum: Required. Minimum allowed instances count. - maximum: Required. Maximum allowed instances count. - - name: --virtual-network-configuration - short-summary: "Virtual network definition. Swagger name=virtualNetworkConfiguration" - long-summary: | - Usage: --virtual-network-configuration subnet-id=XX engine-public-ip-id=XX data-management-public-ip-id=XX - - subnet-id: Required. The subnet resource id. - engine-public-ip-id: Required. Engine service's public IP address resource id. - data-management-public-ip-id: Required. Data management's service public IP address resource id. - - name: --key-vault-properties - short-summary: "KeyVault properties for the cluster encryption. Swagger name=keyVaultProperties" - long-summary: | - Usage: --key-vault-properties key-name=XX key-version=XX key-vault-uri=XX - - key-name: Required. The name of the key vault key. - key-version: Required. The version of the key vault key. - key-vault-uri: Required. The Uri of the key vault. - examples: - - name: KustoClustersCreateOrUpdate - text: |- - az kusto cluster create --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location \ -"westus" --enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_L8s" \ -capacity=2 tier="Standard" --resource-group "kustorptest" -""" - -helps['kusto cluster update'] = """ - type: command - short-summary: "Update a Kusto cluster. Command group swagger name=Clusters, Command swagger name=Update." - parameters: - - name: --sku - short-summary: "The SKU of the cluster. Swagger name=sku" - long-summary: | - Usage: --sku name=XX capacity=XX tier=XX - - name: Required. SKU name. - capacity: The number of instances of the cluster. - tier: Required. SKU tier. - - name: --trusted-external-tenants - short-summary: "The cluster's external tenants. Swagger name=trustedExternalTenants" - long-summary: | - Usage: --trusted-external-tenants value=XX - - value: GUID representing an external tenant. - - Multiple actions can be specified by using more than one --trusted-external-tenants argument. - - name: --optimized-autoscale - short-summary: "Optimized auto scale definition. Swagger name=optimizedAutoscale" - long-summary: | - Usage: --optimized-autoscale version=XX is-enabled=XX minimum=XX maximum=XX - - version: Required. The version of the template defined, for instance 1. - is-enabled: Required. A boolean value that indicate if the optimized autoscale feature is enabled or not. - minimum: Required. Minimum allowed instances count. - maximum: Required. Maximum allowed instances count. - - name: --virtual-network-configuration - short-summary: "Virtual network definition. Swagger name=virtualNetworkConfiguration" - long-summary: | - Usage: --virtual-network-configuration subnet-id=XX engine-public-ip-id=XX data-management-public-ip-id=XX - - subnet-id: Required. The subnet resource id. - engine-public-ip-id: Required. Engine service's public IP address resource id. - data-management-public-ip-id: Required. Data management's service public IP address resource id. - - name: --key-vault-properties - short-summary: "KeyVault properties for the cluster encryption. Swagger name=keyVaultProperties" - long-summary: | - Usage: --key-vault-properties key-name=XX key-version=XX key-vault-uri=XX - - key-name: Required. The name of the key vault key. - key-version: Required. The version of the key vault key. - key-vault-uri: Required. The Uri of the key vault. - examples: - - name: KustoClustersUpdate - text: |- - az kusto cluster update --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location \ -"westus" --enable-purge true --enable-streaming-ingest true --key-vault-properties key-name="keyName" \ -key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest" -""" - -helps['kusto cluster delete'] = """ - type: command - short-summary: "Deletes a Kusto cluster. Command group swagger name=Clusters, Command swagger name=Delete." - examples: - - name: KustoClustersDelete - text: |- - az kusto cluster delete --name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster add-language-extension'] = """ - type: command - short-summary: "Add a list of language extensions that can run within KQL queries. Command group swagger \ -name=Clusters, Command swagger name=AddLanguageExtensions." - parameters: - - name: --value - short-summary: "The list of language extensions. Swagger name=value" - long-summary: | - Usage: --value language-extension-name=XX - - language-extension-name: The language extension name. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoClusterAddLanguageExtensions - text: |- - az kusto cluster add-language-extension --name "kustoclusterrptest4" --value \ -language-extension-name="PYTHON" --value language-extension-name="R" --resource-group "kustorptest" -""" - -helps['kusto cluster detach-follower-database'] = """ - type: command - short-summary: "Detaches all followers of a database owned by this cluster. Command group swagger name=Clusters, \ -Command swagger name=DetachFollowerDatabases." - examples: - - name: KustoClusterDetachFollowerDatabases - text: |- - az kusto cluster detach-follower-database --name "kustoclusterrptest4" --attached-database-configuration\ --name "myAttachedDatabaseConfiguration" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/reso\ -urceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader4" --resource-group "kustorptest" -""" - -helps['kusto cluster diagnose-virtual-network'] = """ - type: command - short-summary: "Diagnoses network connectivity status for external resources on which the service is dependent on. \ -Command group swagger name=Clusters, Command swagger name=DiagnoseVirtualNetwork." - examples: - - name: KustoClusterDiagnoseVirtualNetwork - text: |- - az kusto cluster diagnose-virtual-network --name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster list-follower-database'] = """ - type: command - short-summary: "Returns a list of databases that are owned by this cluster and were followed by another cluster. \ -Command group swagger name=Clusters, Command swagger name=ListFollowerDatabases." - examples: - - name: KustoClusterListFollowerDatabases - text: |- - az kusto cluster list-follower-database --name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster list-language-extension'] = """ - type: command - short-summary: "Returns a list of language extensions that can run within KQL queries. Command group swagger \ -name=Clusters, Command swagger name=ListLanguageExtensions." - examples: - - name: KustoClusterListLanguageExtensions - text: |- - az kusto cluster list-language-extension --name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster list-sku'] = """ - type: command - short-summary: "Returns the SKUs available for the provided resource. Command group swagger name=Clusters, Command \ -swagger name=ListSkusByResource And Lists eligible SKUs for Kusto resource provider. Command group swagger \ -name=Clusters, Command swagger name=ListSkus." - examples: - - name: KustoClustersListResourceSkus - text: |- - az kusto cluster list-sku --name "kustoclusterrptest4" --resource-group "kustorptest" - - name: KustoClustersListSkus - text: |- - az kusto cluster list-sku -""" - -helps['kusto cluster remove-language-extension'] = """ - type: command - short-summary: "Remove a list of language extensions that can run within KQL queries. Command group swagger \ -name=Clusters, Command swagger name=RemoveLanguageExtensions." - parameters: - - name: --value - short-summary: "The list of language extensions. Swagger name=value" - long-summary: | - Usage: --value language-extension-name=XX - - language-extension-name: The language extension name. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoClusterRemoveLanguageExtensions - text: |- - az kusto cluster remove-language-extension --name "kustoclusterrptest4" --value \ -language-extension-name="PYTHON" --value language-extension-name="R" --resource-group "kustorptest" -""" - -helps['kusto cluster start'] = """ - type: command - short-summary: "Starts a Kusto cluster. Command group swagger name=Clusters, Command swagger name=Start." - examples: - - name: KustoClustersStart - text: |- - az kusto cluster start --name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster stop'] = """ - type: command - short-summary: "Stops a Kusto cluster. Command group swagger name=Clusters, Command swagger name=Stop." - examples: - - name: KustoClustersStop - text: |- - az kusto cluster stop --name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto cluster is met. - examples: - - name: Pause executing next line of CLI script until the kusto cluster is successfully created. - text: |- - az kusto cluster wait --name "kustoclusterrptest4" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto cluster is successfully updated. - text: |- - az kusto cluster wait --name "kustoclusterrptest4" --resource-group "kustorptest" --updated - - name: Pause executing next line of CLI script until the kusto cluster is successfully deleted. - text: |- - az kusto cluster wait --name "kustoclusterrptest4" --resource-group "kustorptest" --deleted -""" - -helps['kusto cluster-principal-assignment'] = """ - type: group - short-summary: Manage cluster principal assignment with kusto. Command group swagger \ -name=ClusterPrincipalAssignments -""" - -helps['kusto cluster-principal-assignment list'] = """ - type: command - short-summary: "Lists all Kusto cluster principalAssignments. Command group swagger name=ClusterPrincipalAssignment\ -s, Command swagger name=List." - examples: - - name: KustoPrincipalAssignmentsList - text: |- - az kusto cluster-principal-assignment list --cluster-name "kustoclusterrptest4" --resource-group \ -"kustorptest" -""" - -helps['kusto cluster-principal-assignment show'] = """ - type: command - short-summary: "Gets a Kusto cluster principalAssignment. Command group swagger name=ClusterPrincipalAssignments, \ -Command swagger name=Get." - examples: - - name: KustoClusterPrincipalAssignmentsGet - text: |- - az kusto cluster-principal-assignment show --cluster-name "kustoclusterrptest4" \ ---principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto cluster-principal-assignment create'] = """ - type: command - short-summary: "Create a Kusto cluster principalAssignment. Command group swagger name=ClusterPrincipalAssignments,\ - Command swagger name=CreateOrUpdate#Create." - examples: - - name: KustoClusterPrincipalAssignmentsCreateOrUpdate - text: |- - az kusto cluster-principal-assignment create --cluster-name "kustoclusterrptest4" --principal-id \ -"87654321-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id \ -"12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto cluster-principal-assignment update'] = """ - type: command - short-summary: "Update a Kusto cluster principalAssignment. Command group swagger name=ClusterPrincipalAssignments,\ - Command swagger name=CreateOrUpdate#Update." -""" - -helps['kusto cluster-principal-assignment delete'] = """ - type: command - short-summary: "Deletes a Kusto cluster principalAssignment. Command group swagger name=ClusterPrincipalAssignments\ -, Command swagger name=Delete." - examples: - - name: KustoClusterPrincipalAssignmentsDelete - text: |- - az kusto cluster-principal-assignment delete --cluster-name "kustoclusterrptest4" \ ---principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto cluster-principal-assignment wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto cluster-principal-assignment is \ -met. - examples: - - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully \ -created. - text: |- - az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" \ ---principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully \ -updated. - text: |- - az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" \ ---principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --updated - - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully \ -deleted. - text: |- - az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" \ ---principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --deleted -""" - -helps['kusto database'] = """ - type: group - short-summary: Manage database with kusto. Command group swagger name=Databases -""" - -helps['kusto database list'] = """ - type: command - short-summary: "Returns the list of databases of the given Kusto cluster. Command group swagger name=Databases, \ -Command swagger name=ListByCluster." - examples: - - name: KustoDatabasesListByCluster - text: |- - az kusto database list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto database show'] = """ - type: command - short-summary: "Returns a database. Command group swagger name=Databases, Command swagger name=Get." - examples: - - name: KustoDatabasesGet - text: |- - az kusto database show --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" -""" - -helps['kusto database create'] = """ - type: command - short-summary: "Create a database. Command group swagger name=Databases, Command swagger \ -name=CreateOrUpdate#Create." - parameters: - - name: --read-write-database - short-summary: "Class representing a read write database. Swagger name=ReadWriteDatabase" - long-summary: | - Usage: --read-write-database soft-delete-period=XX hot-cache-period=XX location=XX kind=XX - - soft-delete-period: The time the data should be kept before it stops being accessible to queries in \ -TimeSpan. - hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. - location: Resource location. - kind: Required. Kind of the database - - name: --read-only-following-database - short-summary: "Class representing a read only following database. Swagger name=ReadOnlyFollowingDatabase" - long-summary: | - Usage: --read-only-following-database hot-cache-period=XX location=XX kind=XX - - hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. - location: Resource location. - kind: Required. Kind of the database - examples: - - name: KustoDatabasesCreateOrUpdate - text: |- - az kusto database create --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---read-write-database location="westus" soft-delete-period="P1D" --resource-group "kustorptest" -""" - -helps['kusto database update'] = """ - type: command - short-summary: "Updates a database. Command group swagger name=Databases, Command swagger name=Update." - parameters: - - name: --read-write-database - short-summary: "Class representing a read write database. Swagger name=ReadWriteDatabase" - long-summary: | - Usage: --read-write-database soft-delete-period=XX hot-cache-period=XX location=XX kind=XX - - soft-delete-period: The time the data should be kept before it stops being accessible to queries in \ -TimeSpan. - hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. - location: Resource location. - kind: Required. Kind of the database - - name: --read-only-following-database - short-summary: "Class representing a read only following database. Swagger name=ReadOnlyFollowingDatabase" - long-summary: | - Usage: --read-only-following-database hot-cache-period=XX location=XX kind=XX - - hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. - location: Resource location. - kind: Required. Kind of the database - examples: - - name: KustoDatabasesUpdate - text: |- - az kusto database update --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---read-write-database soft-delete-period="P1D" --resource-group "kustorptest" -""" - -helps['kusto database delete'] = """ - type: command - short-summary: "Deletes the database with the given name. Command group swagger name=Databases, Command swagger \ -name=Delete." - examples: - - name: KustoDatabasesDelete - text: |- - az kusto database delete --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" -""" - -helps['kusto database add-principal'] = """ - type: command - short-summary: "Add Database principals permissions. Command group swagger name=Databases, Command swagger \ -name=AddPrincipals." - parameters: - - name: --value - short-summary: "The list of Kusto database principals. Swagger name=value" - long-summary: | - Usage: --value role=XX name=XX type=XX fqn=XX email=XX app-id=XX - - role: Required. Database principal role. - name: Required. Database principal name. - type: Required. Database principal type. - fqn: Database principal fully qualified name. - email: Database principal email if exists. - app-id: Application id - relevant only for application principal type. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoDatabaseAddPrincipals - text: |- - az kusto database add-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value \ -name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value \ -name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" \ ---resource-group "kustorptest" -""" - -helps['kusto database list-principal'] = """ - type: command - short-summary: "Returns a list of database principals of the given Kusto cluster and database. Command group \ -swagger name=Databases, Command swagger name=ListPrincipals." - examples: - - name: KustoDatabaseListPrincipals - text: |- - az kusto database list-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" -""" - -helps['kusto database remove-principal'] = """ - type: command - short-summary: "Remove Database principals permissions. Command group swagger name=Databases, Command swagger \ -name=RemovePrincipals." - parameters: - - name: --value - short-summary: "The list of Kusto database principals. Swagger name=value" - long-summary: | - Usage: --value role=XX name=XX type=XX fqn=XX email=XX app-id=XX - - role: Required. Database principal role. - name: Required. Database principal name. - type: Required. Database principal type. - fqn: Database principal fully qualified name. - email: Database principal email if exists. - app-id: Application id - relevant only for application principal type. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoDatabaseRemovePrincipals - text: |- - az kusto database remove-principal --cluster-name "kustoclusterrptest4" --database-name \ -"KustoDatabase8" --value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" \ -role="Admin" --value name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" \ -role="Viewer" --value name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" \ -role="Admin" --resource-group "kustorptest" -""" - -helps['kusto database wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto database is met. - examples: - - name: Pause executing next line of CLI script until the kusto database is successfully created. - text: |- - az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto database is successfully updated. - text: |- - az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" --updated - - name: Pause executing next line of CLI script until the kusto database is successfully deleted. - text: |- - az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" --deleted -""" - -helps['kusto database-principal-assignment'] = """ - type: group - short-summary: Manage database principal assignment with kusto. Command group swagger \ -name=DatabasePrincipalAssignments -""" - -helps['kusto database-principal-assignment list'] = """ - type: command - short-summary: "Lists all Kusto cluster database principalAssignments. Command group swagger \ -name=DatabasePrincipalAssignments, Command swagger name=List." - examples: - - name: KustoPrincipalAssignmentsList - text: |- - az kusto database-principal-assignment list --cluster-name "kustoclusterrptest4" --database-name \ -"Kustodatabase8" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment show'] = """ - type: command - short-summary: "Gets a Kusto cluster database principalAssignment. Command group swagger \ -name=DatabasePrincipalAssignments, Command swagger name=Get." - examples: - - name: KustoDatabasePrincipalAssignmentsGet - text: |- - az kusto database-principal-assignment show --cluster-name "kustoclusterrptest4" --database-name \ -"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment create'] = """ - type: command - short-summary: "Creates a Kusto cluster database principalAssignment. Command group swagger \ -name=DatabasePrincipalAssignments, Command swagger name=CreateOrUpdate#Create." - examples: - - name: KustoDatabasePrincipalAssignmentsCreateOrUpdate - text: |- - az kusto database-principal-assignment create --cluster-name "kustoclusterrptest4" --database-name \ -"Kustodatabase8" --principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" \ ---tenant-id "12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group \ -"kustorptest" -""" - -helps['kusto database-principal-assignment update'] = """ - type: command - short-summary: "Update a Kusto cluster database principalAssignment. Command group swagger \ -name=DatabasePrincipalAssignments, Command swagger name=CreateOrUpdate#Update." -""" - -helps['kusto database-principal-assignment delete'] = """ - type: command - short-summary: "Deletes a Kusto principalAssignment. Command group swagger name=DatabasePrincipalAssignments, \ -Command swagger name=Delete." - examples: - - name: KustoDatabasePrincipalAssignmentsDelete - text: |- - az kusto database-principal-assignment delete --cluster-name "kustoclusterrptest4" --database-name \ -"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto database-principal-assignment is \ -met. - examples: - - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully \ -created. - text: |- - az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name \ -"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully \ -updated. - text: |- - az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name \ -"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --updated - - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully \ -deleted. - text: |- - az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name \ -"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --deleted -""" - -helps['kusto attached-database-configuration'] = """ - type: group - short-summary: Manage attached database configuration with kusto. Command group swagger \ -name=AttachedDatabaseConfigurations -""" - -helps['kusto attached-database-configuration list'] = """ - type: command - short-summary: "Returns the list of attached database configurations of the given Kusto cluster. Command group \ -swagger name=AttachedDatabaseConfigurations, Command swagger name=ListByCluster." - examples: - - name: KustoAttachedDatabaseConfigurationsListByCluster - text: |- - az kusto attached-database-configuration list --cluster-name "kustoclusterrptest4" --resource-group \ -"kustorptest" -""" - -helps['kusto attached-database-configuration show'] = """ - type: command - short-summary: "Returns an attached database configuration. Command group swagger name=AttachedDatabaseConfiguratio\ -ns, Command swagger name=Get." - examples: - - name: AttachedDatabaseConfigurationsGet - text: |- - az kusto attached-database-configuration show --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto attached-database-configuration create'] = """ - type: command - short-summary: "Create an attached database configuration. Command group swagger name=AttachedDatabaseConfiguration\ -s, Command swagger name=CreateOrUpdate#Create." - examples: - - name: AttachedDatabaseConfigurationsCreateOrUpdate - text: |- - az kusto attached-database-configuration create --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --location "westus" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/re\ -sourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --database-name "kustodatabase" \ ---default-principals-modification-kind "Union" --resource-group "kustorptest" -""" - -helps['kusto attached-database-configuration update'] = """ - type: command - short-summary: "Update an attached database configuration. Command group swagger name=AttachedDatabaseConfiguration\ -s, Command swagger name=CreateOrUpdate#Update." -""" - -helps['kusto attached-database-configuration delete'] = """ - type: command - short-summary: "Deletes the attached database configuration with the given name. Command group swagger \ -name=AttachedDatabaseConfigurations, Command swagger name=Delete." - examples: - - name: AttachedDatabaseConfigurationsDelete - text: |- - az kusto attached-database-configuration delete --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto attached-database-configuration wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto attached-database-configuration is \ -met. - examples: - - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully \ -created. - text: |- - az kusto attached-database-configuration wait --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully \ -updated. - text: |- - az kusto attached-database-configuration wait --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" --updated - - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully \ -deleted. - text: |- - az kusto attached-database-configuration wait --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" --deleted -""" - -helps['kusto data-connection'] = """ - type: group - short-summary: Manage data connection with kusto. Command group swagger name=DataConnections -""" - -helps['kusto data-connection list'] = """ - type: command - short-summary: "Returns the list of data connections of the given Kusto database. Command group swagger \ -name=DataConnections, Command swagger name=ListByDatabase." - examples: - - name: KustoDatabasesListByCluster - text: |- - az kusto data-connection list --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" -""" - -helps['kusto data-connection show'] = """ - type: command - short-summary: "Returns a data connection. Command group swagger name=DataConnections, Command swagger name=Get." - examples: - - name: KustoDataConnectionsGet - text: |- - az kusto data-connection show --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ ---database-name "KustoDatabase8" --resource-group "kustorptest" -""" - -helps['kusto data-connection event-grid'] = """ - type: group - short-summary: Manage data connection with kusto sub group event-grid. Command group swagger name=DataConnections -""" - -helps['kusto data-connection event-grid create'] = """ - type: command - short-summary: "Create a data connection. Command group swagger name=DataConnections, Command swagger \ -name=CreateOrUpdate#Create#EventGrid." -""" - -helps['kusto data-connection event-hub'] = """ - type: group - short-summary: Manage data connection with kusto sub group event-hub. Command group swagger name=DataConnections -""" - -helps['kusto data-connection event-hub create'] = """ - type: command - short-summary: "Create a data connection. Command group swagger name=DataConnections, Command swagger \ -name=CreateOrUpdate#Create#EventHub." - examples: - - name: KustoDataConnectionsCreateOrUpdate - text: |- - az kusto data-connection event-hub create --cluster-name "kustoclusterrptest4" --name \ -"DataConnections8" --database-name "KustoDatabase8" --location "westus" --consumer-group "testConsumerGroup1" \ ---event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ -soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -""" - -helps['kusto data-connection iot-hub'] = """ - type: group - short-summary: Manage data connection with kusto sub group iot-hub. Command group swagger name=DataConnections -""" - -helps['kusto data-connection iot-hub create'] = """ - type: command - short-summary: "Create a data connection. Command group swagger name=DataConnections, Command swagger \ -name=CreateOrUpdate#Create#IotHub." -""" - -helps['kusto data-connection event-grid update'] = """ - type: command - short-summary: "Updates a data connection. Command group swagger name=DataConnections, Command swagger \ -name=Update#EventGrid." -""" - -helps['kusto data-connection event-hub update'] = """ - type: command - short-summary: "Updates a data connection. Command group swagger name=DataConnections, Command swagger \ -name=Update#EventHub." - examples: - - name: KustoDataConnectionsUpdate - text: |- - az kusto data-connection event-hub update --cluster-name "kustoclusterrptest4" --name \ -"DataConnections8" --database-name "KustoDatabase8" --location "westus" --consumer-group "testConsumerGroup1" \ ---event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ -soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -""" - -helps['kusto data-connection iot-hub update'] = """ - type: command - short-summary: "Updates a data connection. Command group swagger name=DataConnections, Command swagger \ -name=Update#IotHub." -""" - -helps['kusto data-connection delete'] = """ - type: command - short-summary: "Deletes the data connection with the given name. Command group swagger name=DataConnections, \ -Command swagger name=Delete." - examples: - - name: KustoDataConnectionsDelete - text: |- - az kusto data-connection delete --cluster-name "kustoclusterrptest4" --name "kustoeventhubconnection1" \ ---database-name "KustoDatabase8" --resource-group "kustorptest" -""" - -helps['kusto data-connection event-grid data-connection-validation'] = """ - type: command - short-summary: "Checks that the data connection parameters are valid. Command group swagger name=DataConnections, \ -Command swagger name=dataConnectionValidation#EventGrid." -""" - -helps['kusto data-connection event-hub data-connection-validation'] = """ - type: command - short-summary: "Checks that the data connection parameters are valid. Command group swagger name=DataConnections, \ -Command swagger name=dataConnectionValidation#EventHub." - examples: - - name: KustoDataConnectionValidation - text: |- - az kusto data-connection event-hub data-connection-validation --cluster-name "kustoclusterrptest4" \ ---database-name "KustoDatabase8" --name "DataConnections8" --consumer-group "testConsumerGroup1" \ ---event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ -soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -""" - -helps['kusto data-connection iot-hub data-connection-validation'] = """ - type: command - short-summary: "Checks that the data connection parameters are valid. Command group swagger name=DataConnections, \ -Command swagger name=dataConnectionValidation#IotHub." -""" - -helps['kusto data-connection wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto data-connection is met. - examples: - - name: Pause executing next line of CLI script until the kusto data-connection is successfully created. - text: |- - az kusto data-connection wait --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ ---database-name "KustoDatabase8" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto data-connection is successfully deleted. - text: |- - az kusto data-connection wait --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ ---database-name "KustoDatabase8" --resource-group "kustorptest" --deleted -""" +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +# pylint: disable=too-many-lines + +from knack.help_files import helps + + +helps['kusto cluster'] = """ + type: group + short-summary: Manage cluster with kusto +""" + +helps['kusto cluster list'] = """ + type: command + short-summary: "Lists all Kusto clusters within a resource group. And Lists all Kusto clusters within a \ +subscription." + examples: + - name: KustoClustersListByResourceGroup + text: |- + az kusto cluster list --resource-group "kustorptest" + - name: KustoClustersList + text: |- + az kusto cluster list +""" + +helps['kusto cluster show'] = """ + type: command + short-summary: "Gets a Kusto cluster." + examples: + - name: KustoClustersGet + text: |- + az kusto cluster show --name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto cluster create'] = """ + type: command + short-summary: "Create a Kusto cluster." + parameters: + - name: --sku + short-summary: "The SKU of the cluster." + long-summary: | + Usage: --sku name=XX capacity=XX tier=XX + + name: Required. SKU name. + capacity: The number of instances of the cluster. + tier: Required. SKU tier. + - name: --trusted-external-tenants + short-summary: "The cluster's external tenants." + long-summary: | + Usage: --trusted-external-tenants value=XX + + value: GUID representing an external tenant. + + Multiple actions can be specified by using more than one --trusted-external-tenants argument. + - name: --optimized-autoscale + short-summary: "Optimized auto scale definition." + long-summary: | + Usage: --optimized-autoscale version=XX is-enabled=XX minimum=XX maximum=XX + + version: Required. The version of the template defined, for instance 1. + is-enabled: Required. A boolean value that indicate if the optimized autoscale feature is enabled or not. + minimum: Required. Minimum allowed instances count. + maximum: Required. Maximum allowed instances count. + - name: --virtual-network-configuration + short-summary: "Virtual network definition." + long-summary: | + Usage: --virtual-network-configuration subnet-id=XX engine-public-ip-id=XX data-management-public-ip-id=XX + + subnet-id: Required. The subnet resource id. + engine-public-ip-id: Required. Engine service's public IP address resource id. + data-management-public-ip-id: Required. Data management's service public IP address resource id. + - name: --key-vault-properties + short-summary: "KeyVault properties for the cluster encryption." + long-summary: | + Usage: --key-vault-properties key-name=XX key-version=XX key-vault-uri=XX + + key-name: Required. The name of the key vault key. + key-version: Required. The version of the key vault key. + key-vault-uri: Required. The Uri of the key vault. + examples: + - name: KustoClustersCreateOrUpdate + text: |- + az kusto cluster create --name "kustoclusterrptest4" --type "SystemAssigned" --location \ +"southcentralus" --enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku \ +name="Standard_D11_v2" capacity=2 tier="Standard" --resource-group "kustorptest" +""" + +helps['kusto cluster update'] = """ + type: command + short-summary: "Update a Kusto cluster." + parameters: + - name: --sku + short-summary: "The SKU of the cluster." + long-summary: | + Usage: --sku name=XX capacity=XX tier=XX + + name: Required. SKU name. + capacity: The number of instances of the cluster. + tier: Required. SKU tier. + - name: --trusted-external-tenants + short-summary: "The cluster's external tenants." + long-summary: | + Usage: --trusted-external-tenants value=XX + + value: GUID representing an external tenant. + + Multiple actions can be specified by using more than one --trusted-external-tenants argument. + - name: --optimized-autoscale + short-summary: "Optimized auto scale definition." + long-summary: | + Usage: --optimized-autoscale version=XX is-enabled=XX minimum=XX maximum=XX + + version: Required. The version of the template defined, for instance 1. + is-enabled: Required. A boolean value that indicate if the optimized autoscale feature is enabled or not. + minimum: Required. Minimum allowed instances count. + maximum: Required. Maximum allowed instances count. + - name: --virtual-network-configuration + short-summary: "Virtual network definition." + long-summary: | + Usage: --virtual-network-configuration subnet-id=XX engine-public-ip-id=XX data-management-public-ip-id=XX + + subnet-id: Required. The subnet resource id. + engine-public-ip-id: Required. Engine service's public IP address resource id. + data-management-public-ip-id: Required. Data management's service public IP address resource id. + - name: --key-vault-properties + short-summary: "KeyVault properties for the cluster encryption." + long-summary: | + Usage: --key-vault-properties key-name=XX key-version=XX key-vault-uri=XX + + key-name: Required. The name of the key vault key. + key-version: Required. The version of the key vault key. + key-vault-uri: Required. The Uri of the key vault. + examples: + - name: KustoClustersUpdate + text: |- + az kusto cluster update --name "kustoclusterrptest4" --type "SystemAssigned" --location \ +"southcentralus" --enable-purge true --enable-streaming-ingest true --key-vault-properties key-name="keyName" \ +key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest" +""" + +helps['kusto cluster delete'] = """ + type: command + short-summary: "Deletes a Kusto cluster." + examples: + - name: KustoClustersDelete + text: |- + az kusto cluster delete --name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto cluster add-language-extension'] = """ + type: command + short-summary: "Add a list of language extensions that can run within KQL queries." + parameters: + - name: --value + short-summary: "The list of language extensions." + long-summary: | + Usage: --value language-extension-name=XX + + language-extension-name: The language extension name. + + Multiple actions can be specified by using more than one --value argument. + examples: + - name: KustoClusterAddLanguageExtensions + text: |- + az kusto cluster add-language-extension --name "kustoclusterrptest4" --value \ +language-extension-name="PYTHON" --value language-extension-name="R" --resource-group "kustorptest" +""" + +helps['kusto cluster detach-follower-database'] = """ + type: command + short-summary: "Detaches all followers of a database owned by this cluster." + examples: + - name: KustoClusterDetachFollowerDatabases + text: |- + az kusto cluster detach-follower-database --name "kustoclusterrptest4" --attached-database-configuration\ +-name "myAttachedDatabaseConfiguration" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/reso\ +urceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader4" --resource-group "kustorptest" +""" + +helps['kusto cluster diagnose-virtual-network'] = """ + type: command + short-summary: "Diagnoses network connectivity status for external resources on which the service is dependent \ +on." + examples: + - name: KustoClusterDiagnoseVirtualNetwork + text: |- + az kusto cluster diagnose-virtual-network --name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto cluster list-follower-database'] = """ + type: command + short-summary: "Returns a list of databases that are owned by this cluster and were followed by another cluster." + examples: + - name: KustoClusterListFollowerDatabases + text: |- + az kusto cluster list-follower-database --name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto cluster list-language-extension'] = """ + type: command + short-summary: "Returns a list of language extensions that can run within KQL queries." + examples: + - name: KustoClusterListLanguageExtensions + text: |- + az kusto cluster list-language-extension --name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto cluster list-sku'] = """ + type: command + short-summary: "Returns the SKUs available for the provided resource. And Lists eligible SKUs for Kusto resource \ +provider." + examples: + - name: KustoClustersListResourceSkus + text: |- + az kusto cluster list-sku --name "kustoclusterrptest4" --resource-group "kustorptest" + - name: KustoClustersListSkus + text: |- + az kusto cluster list-sku +""" + +helps['kusto cluster remove-language-extension'] = """ + type: command + short-summary: "Remove a list of language extensions that can run within KQL queries." + parameters: + - name: --value + short-summary: "The list of language extensions." + long-summary: | + Usage: --value language-extension-name=XX + + language-extension-name: The language extension name. + + Multiple actions can be specified by using more than one --value argument. + examples: + - name: KustoClusterRemoveLanguageExtensions + text: |- + az kusto cluster remove-language-extension --name "kustoclusterrptest4" --value \ +language-extension-name="PYTHON" --value language-extension-name="R" --resource-group "kustorptest" +""" + +helps['kusto cluster start'] = """ + type: command + short-summary: "Starts a Kusto cluster." + examples: + - name: KustoClustersStart + text: |- + az kusto cluster start --name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto cluster stop'] = """ + type: command + short-summary: "Stops a Kusto cluster." + examples: + - name: KustoClustersStop + text: |- + az kusto cluster stop --name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto cluster wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the kusto cluster is met. + examples: + - name: Pause executing next line of CLI script until the kusto cluster is successfully created. + text: |- + az kusto cluster wait --name "kustoclusterrptest4" --resource-group "kustorptest" --created + - name: Pause executing next line of CLI script until the kusto cluster is successfully updated. + text: |- + az kusto cluster wait --name "kustoclusterrptest4" --resource-group "kustorptest" --updated + - name: Pause executing next line of CLI script until the kusto cluster is successfully deleted. + text: |- + az kusto cluster wait --name "kustoclusterrptest4" --resource-group "kustorptest" --deleted +""" + +helps['kusto cluster-principal-assignment'] = """ + type: group + short-summary: Manage cluster principal assignment with kusto +""" + +helps['kusto cluster-principal-assignment list'] = """ + type: command + short-summary: "Lists all Kusto cluster principalAssignments." + examples: + - name: KustoPrincipalAssignmentsList + text: |- + az kusto cluster-principal-assignment list --cluster-name "kustoclusterrptest4" --resource-group \ +"kustorptest" +""" + +helps['kusto cluster-principal-assignment show'] = """ + type: command + short-summary: "Gets a Kusto cluster principalAssignment." + examples: + - name: KustoClusterPrincipalAssignmentsGet + text: |- + az kusto cluster-principal-assignment show --cluster-name "kustoclusterrptest4" \ +--principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +""" + +helps['kusto cluster-principal-assignment create'] = """ + type: command + short-summary: "Create a Kusto cluster principalAssignment." + examples: + - name: KustoClusterPrincipalAssignmentsCreateOrUpdate + text: |- + az kusto cluster-principal-assignment create --cluster-name "kustoclusterrptest4" --principal-id \ +"87654321-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id \ +"12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +""" + +helps['kusto cluster-principal-assignment update'] = """ + type: command + short-summary: "Update a Kusto cluster principalAssignment." +""" + +helps['kusto cluster-principal-assignment delete'] = """ + type: command + short-summary: "Deletes a Kusto cluster principalAssignment." + examples: + - name: KustoClusterPrincipalAssignmentsDelete + text: |- + az kusto cluster-principal-assignment delete --cluster-name "kustoclusterrptest4" \ +--principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +""" + +helps['kusto cluster-principal-assignment wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the kusto cluster-principal-assignment is \ +met. + examples: + - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully \ +created. + text: |- + az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" \ +--principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --created + - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully \ +updated. + text: |- + az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" \ +--principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --updated + - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully \ +deleted. + text: |- + az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" \ +--principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --deleted +""" + +helps['kusto database'] = """ + type: group + short-summary: Manage database with kusto +""" + +helps['kusto database list'] = """ + type: command + short-summary: "Returns the list of databases of the given Kusto cluster." + examples: + - name: KustoDatabasesListByCluster + text: |- + az kusto database list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto database show'] = """ + type: command + short-summary: "Returns a database." + examples: + - name: KustoDatabasesGet + text: |- + az kusto database show --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" +""" + +helps['kusto database create'] = """ + type: command + short-summary: "Create a database." + parameters: + - name: --read-write-database + short-summary: "Class representing a read write database." + long-summary: | + Usage: --read-write-database soft-delete-period=XX hot-cache-period=XX location=XX kind=XX + + soft-delete-period: The time the data should be kept before it stops being accessible to queries in \ +TimeSpan. + hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. + location: Resource location. + kind: Required. Kind of the database + - name: --read-only-following-database + short-summary: "Class representing a read only following database." + long-summary: | + Usage: --read-only-following-database hot-cache-period=XX location=XX kind=XX + + hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. + location: Resource location. + kind: Required. Kind of the database + examples: + - name: KustoDatabasesCreateOrUpdate + text: |- + az kusto database create --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--read-write-database location="southcentralus" soft-delete-period="P1D" --resource-group "kustorptest" +""" + +helps['kusto database update'] = """ + type: command + short-summary: "Updates a database." + parameters: + - name: --read-write-database + short-summary: "Class representing a read write database." + long-summary: | + Usage: --read-write-database soft-delete-period=XX hot-cache-period=XX location=XX kind=XX + + soft-delete-period: The time the data should be kept before it stops being accessible to queries in \ +TimeSpan. + hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. + location: Resource location. + kind: Required. Kind of the database + - name: --read-only-following-database + short-summary: "Class representing a read only following database." + long-summary: | + Usage: --read-only-following-database hot-cache-period=XX location=XX kind=XX + + hot-cache-period: The time the data should be kept in cache for fast queries in TimeSpan. + location: Resource location. + kind: Required. Kind of the database + examples: + - name: KustoDatabasesUpdate + text: |- + az kusto database update --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--read-write-database soft-delete-period="P1D" --resource-group "kustorptest" +""" + +helps['kusto database delete'] = """ + type: command + short-summary: "Deletes the database with the given name." + examples: + - name: KustoDatabasesDelete + text: |- + az kusto database delete --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" +""" + +helps['kusto database add-principal'] = """ + type: command + short-summary: "Add Database principals permissions." + parameters: + - name: --value + short-summary: "The list of Kusto database principals." + long-summary: | + Usage: --value role=XX name=XX type=XX fqn=XX email=XX app-id=XX + + role: Required. Database principal role. + name: Required. Database principal name. + type: Required. Database principal type. + fqn: Database principal fully qualified name. + email: Database principal email if exists. + app-id: Application id - relevant only for application principal type. + + Multiple actions can be specified by using more than one --value argument. + examples: + - name: KustoDatabaseAddPrincipals + text: |- + az kusto database add-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value \ +name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value \ +name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" \ +--resource-group "kustorptest" +""" + +helps['kusto database list-principal'] = """ + type: command + short-summary: "Returns a list of database principals of the given Kusto cluster and database." + examples: + - name: KustoDatabaseListPrincipals + text: |- + az kusto database list-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" +""" + +helps['kusto database remove-principal'] = """ + type: command + short-summary: "Remove Database principals permissions." + parameters: + - name: --value + short-summary: "The list of Kusto database principals." + long-summary: | + Usage: --value role=XX name=XX type=XX fqn=XX email=XX app-id=XX + + role: Required. Database principal role. + name: Required. Database principal name. + type: Required. Database principal type. + fqn: Database principal fully qualified name. + email: Database principal email if exists. + app-id: Application id - relevant only for application principal type. + + Multiple actions can be specified by using more than one --value argument. + examples: + - name: KustoDatabaseRemovePrincipals + text: |- + az kusto database remove-principal --cluster-name "kustoclusterrptest4" --database-name \ +"KustoDatabase8" --value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" \ +role="Admin" --value name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" \ +role="Viewer" --value name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" \ +role="Admin" --resource-group "kustorptest" +""" + +helps['kusto database wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the kusto database is met. + examples: + - name: Pause executing next line of CLI script until the kusto database is successfully created. + text: |- + az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" --created + - name: Pause executing next line of CLI script until the kusto database is successfully updated. + text: |- + az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" --updated + - name: Pause executing next line of CLI script until the kusto database is successfully deleted. + text: |- + az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" --deleted +""" + +helps['kusto database-principal-assignment'] = """ + type: group + short-summary: Manage database principal assignment with kusto +""" + +helps['kusto database-principal-assignment list'] = """ + type: command + short-summary: "Lists all Kusto cluster database principalAssignments." + examples: + - name: KustoPrincipalAssignmentsList + text: |- + az kusto database-principal-assignment list --cluster-name "kustoclusterrptest4" --database-name \ +"Kustodatabase8" --resource-group "kustorptest" +""" + +helps['kusto database-principal-assignment show'] = """ + type: command + short-summary: "Gets a Kusto cluster database principalAssignment." + examples: + - name: KustoDatabasePrincipalAssignmentsGet + text: |- + az kusto database-principal-assignment show --cluster-name "kustoclusterrptest4" --database-name \ +"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +""" + +helps['kusto database-principal-assignment create'] = """ + type: command + short-summary: "Creates a Kusto cluster database principalAssignment." + examples: + - name: KustoDatabasePrincipalAssignmentsCreateOrUpdate + text: |- + az kusto database-principal-assignment create --cluster-name "kustoclusterrptest4" --database-name \ +"Kustodatabase8" --principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" \ +--tenant-id "12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group \ +"kustorptest" +""" + +helps['kusto database-principal-assignment update'] = """ + type: command + short-summary: "Update a Kusto cluster database principalAssignment." +""" + +helps['kusto database-principal-assignment delete'] = """ + type: command + short-summary: "Deletes a Kusto principalAssignment." + examples: + - name: KustoDatabasePrincipalAssignmentsDelete + text: |- + az kusto database-principal-assignment delete --cluster-name "kustoclusterrptest4" --database-name \ +"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +""" + +helps['kusto database-principal-assignment wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the kusto database-principal-assignment is \ +met. + examples: + - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully \ +created. + text: |- + az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name \ +"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --created + - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully \ +updated. + text: |- + az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name \ +"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --updated + - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully \ +deleted. + text: |- + az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name \ +"Kustodatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --deleted +""" + +helps['kusto attached-database-configuration'] = """ + type: group + short-summary: Manage attached database configuration with kusto +""" + +helps['kusto attached-database-configuration list'] = """ + type: command + short-summary: "Returns the list of attached database configurations of the given Kusto cluster." + examples: + - name: KustoAttachedDatabaseConfigurationsListByCluster + text: |- + az kusto attached-database-configuration list --cluster-name "kustoclusterrptest4" --resource-group \ +"kustorptest" +""" + +helps['kusto attached-database-configuration show'] = """ + type: command + short-summary: "Returns an attached database configuration." + examples: + - name: AttachedDatabaseConfigurationsGet + text: |- + az kusto attached-database-configuration show --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto attached-database-configuration create'] = """ + type: command + short-summary: "Create an attached database configuration." + examples: + - name: AttachedDatabaseConfigurationsCreateOrUpdate + text: |- + az kusto attached-database-configuration create --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --location "southcentralus" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-1234567\ +89098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --database-name \ +"kustodatabase" --default-principals-modification-kind "Union" --resource-group "kustorptest" +""" + +helps['kusto attached-database-configuration update'] = """ + type: command + short-summary: "Update an attached database configuration." +""" + +helps['kusto attached-database-configuration delete'] = """ + type: command + short-summary: "Deletes the attached database configuration with the given name." + examples: + - name: AttachedDatabaseConfigurationsDelete + text: |- + az kusto attached-database-configuration delete --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --resource-group "kustorptest" +""" + +helps['kusto attached-database-configuration wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the kusto attached-database-configuration is \ +met. + examples: + - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully \ +created. + text: |- + az kusto attached-database-configuration wait --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --resource-group "kustorptest" --created + - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully \ +updated. + text: |- + az kusto attached-database-configuration wait --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --resource-group "kustorptest" --updated + - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully \ +deleted. + text: |- + az kusto attached-database-configuration wait --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --resource-group "kustorptest" --deleted +""" + +helps['kusto data-connection'] = """ + type: group + short-summary: Manage data connection with kusto +""" + +helps['kusto data-connection list'] = """ + type: command + short-summary: "Returns the list of data connections of the given Kusto database." + examples: + - name: KustoDatabasesListByCluster + text: |- + az kusto data-connection list --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" +""" + +helps['kusto data-connection show'] = """ + type: command + short-summary: "Returns a data connection." + examples: + - name: KustoDataConnectionsGet + text: |- + az kusto data-connection show --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ +--database-name "KustoDatabase8" --resource-group "kustorptest" +""" + +helps['kusto data-connection event-grid'] = """ + type: group + short-summary: Manage data connection with kusto sub group event-grid +""" + +helps['kusto data-connection event-grid create'] = """ + type: command + short-summary: "Create a data connection." +""" + +helps['kusto data-connection event-hub'] = """ + type: group + short-summary: Manage data connection with kusto sub group event-hub +""" + +helps['kusto data-connection event-hub create'] = """ + type: command + short-summary: "Create a data connection." + examples: + - name: KustoDataConnectionsCreateOrUpdate + text: |- + az kusto data-connection event-hub create --cluster-name "kustoclusterrptest4" --name \ +"DataConnections8" --database-name "KustoDatabase8" --location "southcentralus" --consumer-group "testConsumerGroup1" \ +--event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ +soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" +""" + +helps['kusto data-connection iot-hub'] = """ + type: group + short-summary: Manage data connection with kusto sub group iot-hub +""" + +helps['kusto data-connection iot-hub create'] = """ + type: command + short-summary: "Create a data connection." +""" + +helps['kusto data-connection event-grid update'] = """ + type: command + short-summary: "Updates a data connection." +""" + +helps['kusto data-connection event-hub update'] = """ + type: command + short-summary: "Updates a data connection." + examples: + - name: KustoDataConnectionsUpdate + text: |- + az kusto data-connection event-hub update --cluster-name "kustoclusterrptest4" --name \ +"DataConnections8" --database-name "KustoDatabase8" --location "southcentralus" --consumer-group "testConsumerGroup1" \ +--event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ +soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" +""" + +helps['kusto data-connection iot-hub update'] = """ + type: command + short-summary: "Updates a data connection." +""" + +helps['kusto data-connection delete'] = """ + type: command + short-summary: "Deletes the data connection with the given name." + examples: + - name: KustoDataConnectionsDelete + text: |- + az kusto data-connection delete --cluster-name "kustoclusterrptest4" --name "kustoeventhubconnection1" \ +--database-name "KustoDatabase8" --resource-group "kustorptest" +""" + +helps['kusto data-connection event-grid data-connection-validation'] = """ + type: command + short-summary: "Checks that the data connection parameters are valid." +""" + +helps['kusto data-connection event-hub data-connection-validation'] = """ + type: command + short-summary: "Checks that the data connection parameters are valid." + examples: + - name: KustoDataConnectionValidation + text: |- + az kusto data-connection event-hub data-connection-validation --cluster-name "kustoclusterrptest4" \ +--database-name "KustoDatabase8" --name "DataConnections8" --consumer-group "testConsumerGroup1" \ +--event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ +soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" +""" + +helps['kusto data-connection iot-hub data-connection-validation'] = """ + type: command + short-summary: "Checks that the data connection parameters are valid." +""" + +helps['kusto data-connection wait'] = """ + type: command + short-summary: Place the CLI in a waiting state until a condition of the kusto data-connection is met. + examples: + - name: Pause executing next line of CLI script until the kusto data-connection is successfully created. + text: |- + az kusto data-connection wait --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ +--database-name "KustoDatabase8" --resource-group "kustorptest" --created + - name: Pause executing next line of CLI script until the kusto data-connection is successfully deleted. + text: |- + az kusto data-connection wait --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ +--database-name "KustoDatabase8" --resource-group "kustorptest" --deleted +""" diff --git a/src/kusto/azext_kusto/generated/_params.py b/src/kusto/azext_kusto/generated/_params.py index ab44fd0fccf..b8344d04c0b 100644 --- a/src/kusto/azext_kusto/generated/_params.py +++ b/src/kusto/azext_kusto/generated/_params.py @@ -1,701 +1,640 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines -# pylint: disable=too-many-statements - -from azure.cli.core.commands.parameters import ( - tags_type, - get_three_state_flag, - get_enum_type, - resource_group_name_type, - get_location_type -) -from azure.cli.core.commands.validators import ( - get_default_location_from_resource_group, - validate_file_or_dict -) -from azext_kusto.action import ( - AddSku, - AddTrustedExternalTenants, - AddOptimizedAutoscale, - AddVirtualNetworkConfiguration, - AddKeyVaultProperties, - AddClustersValue, - AddReadWriteDatabase, - AddReadOnlyFollowingDatabase, - AddDatabasesValue -) - - -def load_arguments(self, _): - - with self.argument_context('kusto cluster list') as c: - c.argument('resource_group_name', resource_group_name_type) - - with self.argument_context('kusto cluster show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - - with self.argument_context('kusto cluster create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName') - c.argument('tags', tags_type) - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('sku', action=AddSku, nargs='+', help='The SKU of the cluster. Swagger name=sku') - c.argument('zones', nargs='+', help='The availability zones of the cluster. Swagger name=zones') - c.argument('trusted_external_tenants', action=AddTrustedExternalTenants, nargs='+', help='The cluster\'s ' - 'external tenants. Swagger name=trustedExternalTenants') - c.argument('optimized_autoscale', action=AddOptimizedAutoscale, nargs='+', help='Optimized auto scale ' - 'definition. Swagger name=optimizedAutoscale') - c.argument('enable_disk_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' - 'the cluster\'s disks are encrypted. Swagger name=enableDiskEncryption') - c.argument('enable_streaming_ingest', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' - 'the streaming ingest is enabled. Swagger name=enableStreamingIngest') - c.argument('virtual_network_configuration', action=AddVirtualNetworkConfiguration, nargs='+', help='Virtual ' - 'network definition. Swagger name=virtualNetworkConfiguration') - c.argument('key_vault_properties', action=AddKeyVaultProperties, nargs='+', help='KeyVault properties for the ' - 'cluster encryption. Swagger name=keyVaultProperties') - c.argument('enable_purge', arg_type=get_three_state_flag(), help='A boolean value that indicates if the purge ' - 'operations are enabled. Swagger name=enablePurge') - c.argument('enable_double_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates ' - 'if double encryption is enabled. Swagger name=enableDoubleEncryption') - c.argument('identity_type', arg_type=get_enum_type(['None', 'SystemAssigned']), help='The identity type. ' - 'Swagger name=type') - c.argument('identity_user_assigned_identities', type=validate_file_or_dict, help='The list of user identities ' - 'associated with the Kusto cluster. The user identity dictionary key references will be ARM ' - 'resource ids in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/prov' - 'iders/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}\'. Expected value: ' - 'json-string/@json-file. Swagger name=userAssignedIdentities') - - with self.argument_context('kusto cluster update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - c.argument('tags', tags_type) - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('sku', action=AddSku, nargs='+', help='The SKU of the cluster. Swagger name=sku') - c.argument('trusted_external_tenants', action=AddTrustedExternalTenants, nargs='+', help='The cluster\'s ' - 'external tenants. Swagger name=trustedExternalTenants') - c.argument('optimized_autoscale', action=AddOptimizedAutoscale, nargs='+', help='Optimized auto scale ' - 'definition. Swagger name=optimizedAutoscale') - c.argument('enable_disk_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' - 'the cluster\'s disks are encrypted. Swagger name=enableDiskEncryption') - c.argument('enable_streaming_ingest', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' - 'the streaming ingest is enabled. Swagger name=enableStreamingIngest') - c.argument('virtual_network_configuration', action=AddVirtualNetworkConfiguration, nargs='+', help='Virtual ' - 'network definition. Swagger name=virtualNetworkConfiguration') - c.argument('key_vault_properties', action=AddKeyVaultProperties, nargs='+', help='KeyVault properties for the ' - 'cluster encryption. Swagger name=keyVaultProperties') - c.argument('enable_purge', arg_type=get_three_state_flag(), help='A boolean value that indicates if the purge ' - 'operations are enabled. Swagger name=enablePurge') - c.argument('enable_double_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates ' - 'if double encryption is enabled. Swagger name=enableDoubleEncryption') - c.argument('identity_type', arg_type=get_enum_type(['None', 'SystemAssigned']), help='The identity type. ' - 'Swagger name=type') - c.argument('identity_user_assigned_identities', type=validate_file_or_dict, help='The list of user identities ' - 'associated with the Kusto cluster. The user identity dictionary key references will be ARM ' - 'resource ids in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/prov' - 'iders/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}\'. Expected value: ' - 'json-string/@json-file. Swagger name=userAssignedIdentities') - - with self.argument_context('kusto cluster delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - - with self.argument_context('kusto cluster add-language-extension') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - c.argument('value', action=AddClustersValue, nargs='+', help='The list of language extensions. Swagger ' - 'name=value') - - with self.argument_context('kusto cluster detach-follower-database') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - c.argument('cluster_resource_id', type=str, help='Resource id of the cluster that follows a database owned by ' - 'this cluster. Swagger name=clusterResourceId') - c.argument('attached_database_configuration_name', type=str, help='Resource name of the attached database ' - 'configuration in the follower cluster. Swagger name=attachedDatabaseConfigurationName') - - with self.argument_context('kusto cluster diagnose-virtual-network') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - - with self.argument_context('kusto cluster list-follower-database') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName') - - with self.argument_context('kusto cluster list-language-extension') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName') - - with self.argument_context('kusto cluster list-sku') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName') - - with self.argument_context('kusto cluster remove-language-extension') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - c.argument('value', action=AddClustersValue, nargs='+', help='The list of language extensions. Swagger ' - 'name=value') - - with self.argument_context('kusto cluster start') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - - with self.argument_context('kusto cluster stop') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - - with self.argument_context('kusto cluster wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' - 'Kusto cluster. Swagger name=clusterName', id_part='name') - - with self.argument_context('kusto cluster-principal-assignment list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - - with self.argument_context('kusto cluster-principal-assignment show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_1') - - with self.argument_context('kusto cluster-principal-assignment create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName') - c.argument('principal_id', type=str, help='The principal ID assigned to the cluster principal. It can be a ' - 'user email, application ID, or security group name. Swagger name=principalId') - c.argument('role', arg_type=get_enum_type(['AllDatabasesAdmin', 'AllDatabasesViewer']), help='Cluster ' - 'principal role. Swagger name=role') - c.argument('tenant_id', type=str, help='The tenant id of the principal. Swagger name=tenantId') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type. Swagger ' - 'name=principalType') - - with self.argument_context('kusto cluster-principal-assignment update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_1') - c.argument('principal_id', type=str, help='The principal ID assigned to the cluster principal. It can be a ' - 'user email, application ID, or security group name. Swagger name=principalId') - c.argument('role', arg_type=get_enum_type(['AllDatabasesAdmin', 'AllDatabasesViewer']), help='Cluster ' - 'principal role. Swagger name=role') - c.argument('tenant_id', type=str, help='The tenant id of the principal. Swagger name=tenantId') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type. Swagger ' - 'name=principalType') - - with self.argument_context('kusto cluster-principal-assignment delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_1') - - with self.argument_context('kusto cluster-principal-assignment wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_1') - - with self.argument_context('kusto database list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - - with self.argument_context('kusto database show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - - with self.argument_context('kusto database create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - c.argument('read_write_database', action=AddReadWriteDatabase, nargs='+', help='Class representing a read ' - 'write database. Swagger name=ReadWriteDatabase', arg_group='Parameters') - c.argument('read_only_following_database', action=AddReadOnlyFollowingDatabase, nargs='+', help='Class ' - 'representing a read only following database. Swagger name=ReadOnlyFollowingDatabase', - arg_group='Parameters') - - with self.argument_context('kusto database update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('read_write_database', action=AddReadWriteDatabase, nargs='+', help='Class representing a read ' - 'write database. Swagger name=ReadWriteDatabase', arg_group='Parameters') - c.argument('read_only_following_database', action=AddReadOnlyFollowingDatabase, nargs='+', help='Class ' - 'representing a read only following database. Swagger name=ReadOnlyFollowingDatabase', - arg_group='Parameters') - - with self.argument_context('kusto database delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - - with self.argument_context('kusto database add-principal') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('value', action=AddDatabasesValue, nargs='+', help='The list of Kusto database principals. Swagger ' - 'name=value') - - with self.argument_context('kusto database list-principal') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - - with self.argument_context('kusto database remove-principal') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('value', action=AddDatabasesValue, nargs='+', help='The list of Kusto database principals. Swagger ' - 'name=value') - - with self.argument_context('kusto database wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - - with self.argument_context('kusto database-principal-assignment list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - - with self.argument_context('kusto database-principal-assignment show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_2') - - with self.argument_context('kusto database-principal-assignment create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName') - c.argument('principal_id', type=str, help='The principal ID assigned to the database principal. It can be a ' - 'user email, application ID, or security group name. Swagger name=principalId') - c.argument('role', arg_type=get_enum_type(['Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewers', - 'Viewer']), help='Database principal role. Swagger name=role') - c.argument('tenant_id', type=str, help='The tenant id of the principal. Swagger name=tenantId') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type. Swagger ' - 'name=principalType') - - with self.argument_context('kusto database-principal-assignment update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_2') - c.argument('principal_id', type=str, help='The principal ID assigned to the database principal. It can be a ' - 'user email, application ID, or security group name. Swagger name=principalId') - c.argument('role', arg_type=get_enum_type(['Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewers', - 'Viewer']), help='Database principal role. Swagger name=role') - c.argument('tenant_id', type=str, help='The tenant id of the principal. Swagger name=tenantId') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type. Swagger ' - 'name=principalType') - - with self.argument_context('kusto database-principal-assignment delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_2') - - with self.argument_context('kusto database-principal-assignment wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment. Swagger ' - 'name=principalAssignmentName', id_part='child_name_2') - - with self.argument_context('kusto attached-database-configuration list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - - with self.argument_context('kusto attached-database-configuration show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('attached_database_configuration_name', options_list=['--name', '-n', - '--attached-database-configuration-name'], - type=str, help='The name of the attached database configuration. Swagger ' - 'name=attachedDatabaseConfigurationName', id_part='child_name_1') - - with self.argument_context('kusto attached-database-configuration create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('attached_database_configuration_name', options_list=['--name', '-n', - '--attached-database-configuration-name'], - type=str, help='The name of the attached database configuration. Swagger ' - 'name=attachedDatabaseConfigurationName') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('database_name', type=str, help='The name of the database which you would like to attach, use * if ' - 'you want to follow all current and future databases. Swagger name=databaseName') - c.argument('cluster_resource_id', type=str, help='The resource id of the cluster where the databases you would ' - 'like to attach reside. Swagger name=clusterResourceId') - c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), - help='The default principals modification kind. Swagger name=defaultPrincipalsModificationKind') - - with self.argument_context('kusto attached-database-configuration update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('attached_database_configuration_name', options_list=['--name', '-n', - '--attached-database-configuration-name'], - type=str, help='The name of the attached database configuration. Swagger ' - 'name=attachedDatabaseConfigurationName', id_part='child_name_1') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('database_name', type=str, help='The name of the database which you would like to attach, use * if ' - 'you want to follow all current and future databases. Swagger name=databaseName') - c.argument('cluster_resource_id', type=str, help='The resource id of the cluster where the databases you would ' - 'like to attach reside. Swagger name=clusterResourceId') - c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), - help='The default principals modification kind. Swagger name=defaultPrincipalsModificationKind') - - with self.argument_context('kusto attached-database-configuration delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('attached_database_configuration_name', options_list=['--name', '-n', - '--attached-database-configuration-name'], - type=str, help='The name of the attached database configuration. Swagger ' - 'name=attachedDatabaseConfigurationName', id_part='child_name_1') - - with self.argument_context('kusto attached-database-configuration wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('attached_database_configuration_name', options_list=['--name', '-n', - '--attached-database-configuration-name'], - type=str, help='The name of the attached database configuration. Swagger ' - 'name=attachedDatabaseConfigurationName', id_part='child_name_1') - - with self.argument_context('kusto data-connection list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - - with self.argument_context('kusto data-connection show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName', id_part='child_name_2') - - with self.argument_context('kusto data-connection event-grid create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('storage_account_resource_id', type=str, help='The resource ID of the storage account where the ' - 'data resides. Swagger name=storageAccountResourceId') - c.argument('event_hub_resource_id', type=str, help='The resource ID where the event grid is configured to send ' - 'events. Swagger name=eventHubResourceId') - c.argument('consumer_group', type=str, help='The event hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' - 'indicates that ingestion should ignore the first record of every file. Swagger ' - 'name=ignoreFirstRecord') - c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', - 'Microsoft.Storage.BlobRenamed']), help='The ' - 'name of blob storage event type to process. Swagger name=blobStorageEventType') - - with self.argument_context('kusto data-connection event-hub create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('event_hub_resource_id', type=str, help='The resource ID of the event hub to be used to create a ' - 'data connection. Swagger name=eventHubResourceId') - c.argument('consumer_group', type=str, help='The event hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('event_system_properties', nargs='+', help='System properties of the event hub. Swagger ' - 'name=eventSystemProperties') - c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ' - 'type. Swagger name=compression') - - with self.argument_context('kusto data-connection iot-hub create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('iot_hub_resource_id', type=str, help='The resource ID of the Iot hub to be used to create a data ' - 'connection. Swagger name=iotHubResourceId') - c.argument('consumer_group', type=str, help='The iot hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('event_system_properties', nargs='+', help='System properties of the iot hub. Swagger ' - 'name=eventSystemProperties') - c.argument('shared_access_policy_name', type=str, help='The name of the share access policy. Swagger ' - 'name=sharedAccessPolicyName') - - with self.argument_context('kusto data-connection event-grid update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName', id_part='child_name_2') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('storage_account_resource_id', type=str, help='The resource ID of the storage account where the ' - 'data resides. Swagger name=storageAccountResourceId') - c.argument('event_hub_resource_id', type=str, help='The resource ID where the event grid is configured to send ' - 'events. Swagger name=eventHubResourceId') - c.argument('consumer_group', type=str, help='The event hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' - 'indicates that ingestion should ignore the first record of every file. Swagger ' - 'name=ignoreFirstRecord') - c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', - 'Microsoft.Storage.BlobRenamed']), help='The ' - 'name of blob storage event type to process. Swagger name=blobStorageEventType') - - with self.argument_context('kusto data-connection event-hub update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName', id_part='child_name_2') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('event_hub_resource_id', type=str, help='The resource ID of the event hub to be used to create a ' - 'data connection. Swagger name=eventHubResourceId') - c.argument('consumer_group', type=str, help='The event hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('event_system_properties', nargs='+', help='System properties of the event hub. Swagger ' - 'name=eventSystemProperties') - c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ' - 'type. Swagger name=compression') - - with self.argument_context('kusto data-connection iot-hub update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName', id_part='child_name_2') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('iot_hub_resource_id', type=str, help='The resource ID of the Iot hub to be used to create a data ' - 'connection. Swagger name=iotHubResourceId') - c.argument('consumer_group', type=str, help='The iot hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('event_system_properties', nargs='+', help='System properties of the iot hub. Swagger ' - 'name=eventSystemProperties') - c.argument('shared_access_policy_name', type=str, help='The name of the share access policy. Swagger ' - 'name=sharedAccessPolicyName') - - with self.argument_context('kusto data-connection delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName', id_part='child_name_2') - - with self.argument_context('kusto data-connection event-grid data-connection-validation') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('storage_account_resource_id', type=str, help='The resource ID of the storage account where the ' - 'data resides. Swagger name=storageAccountResourceId') - c.argument('event_hub_resource_id', type=str, help='The resource ID where the event grid is configured to send ' - 'events. Swagger name=eventHubResourceId') - c.argument('consumer_group', type=str, help='The event hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' - 'indicates that ingestion should ignore the first record of every file. Swagger ' - 'name=ignoreFirstRecord') - c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', - 'Microsoft.Storage.BlobRenamed']), help='The ' - 'name of blob storage event type to process. Swagger name=blobStorageEventType') - - with self.argument_context('kusto data-connection event-hub data-connection-validation') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('event_hub_resource_id', type=str, help='The resource ID of the event hub to be used to create a ' - 'data connection. Swagger name=eventHubResourceId') - c.argument('consumer_group', type=str, help='The event hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('event_system_properties', nargs='+', help='System properties of the event hub. Swagger ' - 'name=eventSystemProperties') - c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ' - 'type. Swagger name=compression') - - with self.argument_context('kusto data-connection iot-hub data-connection-validation') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName') - c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, - validator=get_default_location_from_resource_group) - c.argument('iot_hub_resource_id', type=str, help='The resource ID of the Iot hub to be used to create a data ' - 'connection. Swagger name=iotHubResourceId') - c.argument('consumer_group', type=str, help='The iot hub consumer group. Swagger name=consumerGroup') - c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' - 'information can be added to each message. Swagger name=tableName') - c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' - 'mapping information can be added to each message. Swagger name=mappingRuleName') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', - 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', - 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' - 'message. Optionally the data format can be added to each message. Swagger name=dataFormat') - c.argument('event_system_properties', nargs='+', help='System properties of the iot hub. Swagger ' - 'name=eventSystemProperties') - c.argument('shared_access_policy_name', type=str, help='The name of the share access policy. Swagger ' - 'name=sharedAccessPolicyName') - - with self.argument_context('kusto data-connection wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', type=str, help='The name of the Kusto cluster. Swagger name=clusterName', - id_part='name') - c.argument('database_name', type=str, help='The name of the database in the Kusto cluster. Swagger ' - 'name=databaseName', id_part='child_name_1') - c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, - help='The name of the data connection. Swagger name=dataConnectionName', id_part='child_name_2') +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +from azure.cli.core.commands.parameters import ( + tags_type, + get_three_state_flag, + get_enum_type, + resource_group_name_type, + get_location_type +) +from azure.cli.core.commands.validators import ( + get_default_location_from_resource_group, + validate_file_or_dict +) +from azext_kusto.action import ( + AddSku, + AddTrustedExternalTenants, + AddOptimizedAutoscale, + AddVirtualNetworkConfiguration, + AddKeyVaultProperties, + AddClustersValue, + AddReadWriteDatabase, + AddReadOnlyFollowingDatabase, + AddDatabasesValue +) + + +def load_arguments(self, _): + + with self.argument_context('kusto cluster list') as c: + c.argument('resource_group_name', resource_group_name_type) + + with self.argument_context('kusto cluster show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + + with self.argument_context('kusto cluster create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.') + c.argument('tags', tags_type) + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('sku', action=AddSku, nargs='+', help='The SKU of the cluster.') + c.argument('zones', nargs='+', help='The availability zones of the cluster.') + c.argument('trusted_external_tenants', action=AddTrustedExternalTenants, nargs='+', help='The cluster\'s ' + 'external tenants.') + c.argument('optimized_autoscale', action=AddOptimizedAutoscale, nargs='+', help='Optimized auto scale ' + 'definition.') + c.argument('enable_disk_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' + 'the cluster\'s disks are encrypted.') + c.argument('enable_streaming_ingest', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' + 'the streaming ingest is enabled.') + c.argument('virtual_network_configuration', action=AddVirtualNetworkConfiguration, nargs='+', help='Virtual ' + 'network definition.') + c.argument('key_vault_properties', action=AddKeyVaultProperties, nargs='+', help='KeyVault properties for the ' + 'cluster encryption.') + c.argument('enable_purge', arg_type=get_three_state_flag(), help='A boolean value that indicates if the purge ' + 'operations are enabled.') + c.argument('enable_double_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates ' + 'if double encryption is enabled.') + c.argument('type_', options_list=['--type'], arg_type=get_enum_type(['None', 'SystemAssigned']), help='The ' + 'identity type.', arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned'], type=validate_file_or_dict, help='The ' + 'list of user identities associated with the Kusto cluster. The user identity dictionary key ' + 'references will be ARM resource ids in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{' + 'resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}\'. ' + 'Expected value: json-string/@json-file.', arg_group='Identity') + + with self.argument_context('kusto cluster update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + c.argument('tags', tags_type) + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('sku', action=AddSku, nargs='+', help='The SKU of the cluster.') + c.argument('trusted_external_tenants', action=AddTrustedExternalTenants, nargs='+', help='The cluster\'s ' + 'external tenants.') + c.argument('optimized_autoscale', action=AddOptimizedAutoscale, nargs='+', help='Optimized auto scale ' + 'definition.') + c.argument('enable_disk_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' + 'the cluster\'s disks are encrypted.') + c.argument('enable_streaming_ingest', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' + 'the streaming ingest is enabled.') + c.argument('virtual_network_configuration', action=AddVirtualNetworkConfiguration, nargs='+', help='Virtual ' + 'network definition.') + c.argument('key_vault_properties', action=AddKeyVaultProperties, nargs='+', help='KeyVault properties for the ' + 'cluster encryption.') + c.argument('enable_purge', arg_type=get_three_state_flag(), help='A boolean value that indicates if the purge ' + 'operations are enabled.') + c.argument('enable_double_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates ' + 'if double encryption is enabled.') + c.argument('type_', options_list=['--type'], arg_type=get_enum_type(['None', 'SystemAssigned']), help='The ' + 'identity type.', arg_group='Identity') + c.argument('user_assigned_identities', options_list=['--user-assigned'], type=validate_file_or_dict, help='The ' + 'list of user identities associated with the Kusto cluster. The user identity dictionary key ' + 'references will be ARM resource ids in the form: \'/subscriptions/{subscriptionId}/resourceGroups/{' + 'resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}\'. ' + 'Expected value: json-string/@json-file.', arg_group='Identity') + + with self.argument_context('kusto cluster delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + + with self.argument_context('kusto cluster add-language-extension') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + c.argument('value', action=AddClustersValue, nargs='+', help='The list of language extensions.') + + with self.argument_context('kusto cluster detach-follower-database') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + c.argument('cluster_resource_id', type=str, help='Resource id of the cluster that follows a database owned by ' + 'this cluster.') + c.argument('attached_database_configuration_name', type=str, help='Resource name of the attached database ' + 'configuration in the follower cluster.') + + with self.argument_context('kusto cluster diagnose-virtual-network') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + + with self.argument_context('kusto cluster list-follower-database') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.') + + with self.argument_context('kusto cluster list-language-extension') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.') + + with self.argument_context('kusto cluster list-sku') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.') + + with self.argument_context('kusto cluster remove-language-extension') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + c.argument('value', action=AddClustersValue, nargs='+', help='The list of language extensions.') + + with self.argument_context('kusto cluster start') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + + with self.argument_context('kusto cluster stop') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + + with self.argument_context('kusto cluster wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', options_list=['--name', '-n', '--cluster-name'], type=str, help='The name of the ' + 'Kusto cluster.', id_part='name') + + with self.argument_context('kusto cluster-principal-assignment list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + + with self.argument_context('kusto cluster-principal-assignment show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_1') + + with self.argument_context('kusto cluster-principal-assignment create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.') + c.argument('principal_id', type=str, help='The principal ID assigned to the cluster principal. It can be a ' + 'user email, application ID, or security group name.') + c.argument('role', arg_type=get_enum_type(['AllDatabasesAdmin', 'AllDatabasesViewer']), help='Cluster ' + 'principal role.') + c.argument('tenant_id', type=str, help='The tenant id of the principal') + c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') + + with self.argument_context('kusto cluster-principal-assignment update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_1') + c.argument('principal_id', type=str, help='The principal ID assigned to the cluster principal. It can be a ' + 'user email, application ID, or security group name.') + c.argument('role', arg_type=get_enum_type(['AllDatabasesAdmin', 'AllDatabasesViewer']), help='Cluster ' + 'principal role.') + c.argument('tenant_id', type=str, help='The tenant id of the principal') + c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') + c.ignore('parameters') + + with self.argument_context('kusto cluster-principal-assignment delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_1') + + with self.argument_context('kusto cluster-principal-assignment wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_1') + + with self.argument_context('kusto database list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + + with self.argument_context('kusto database show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + + with self.argument_context('kusto database create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + c.argument('read_write_database', action=AddReadWriteDatabase, nargs='+', help='Class representing a read ' + 'write database.', arg_group='Parameters') + c.argument('read_only_following_database', action=AddReadOnlyFollowingDatabase, nargs='+', help='Class ' + 'representing a read only following database.', arg_group='Parameters') + + with self.argument_context('kusto database update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('read_write_database', action=AddReadWriteDatabase, nargs='+', help='Class representing a read ' + 'write database.', arg_group='Parameters') + c.argument('read_only_following_database', action=AddReadOnlyFollowingDatabase, nargs='+', help='Class ' + 'representing a read only following database.', arg_group='Parameters') + + with self.argument_context('kusto database delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + + with self.argument_context('kusto database add-principal') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('value', action=AddDatabasesValue, nargs='+', help='The list of Kusto database principals.') + + with self.argument_context('kusto database list-principal') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + + with self.argument_context('kusto database remove-principal') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('value', action=AddDatabasesValue, nargs='+', help='The list of Kusto database principals.') + + with self.argument_context('kusto database wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + + with self.argument_context('kusto database-principal-assignment list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + + with self.argument_context('kusto database-principal-assignment show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_2') + + with self.argument_context('kusto database-principal-assignment create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.') + c.argument('principal_id', type=str, help='The principal ID assigned to the database principal. It can be a ' + 'user email, application ID, or security group name.') + c.argument('role', arg_type=get_enum_type(['Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewers', + 'Viewer']), help='Database principal role.') + c.argument('tenant_id', type=str, help='The tenant id of the principal') + c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') + + with self.argument_context('kusto database-principal-assignment update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_2') + c.argument('principal_id', type=str, help='The principal ID assigned to the database principal. It can be a ' + 'user email, application ID, or security group name.') + c.argument('role', arg_type=get_enum_type(['Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewers', + 'Viewer']), help='Database principal role.') + c.argument('tenant_id', type=str, help='The tenant id of the principal') + c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') + c.ignore('parameters') + + with self.argument_context('kusto database-principal-assignment delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_2') + + with self.argument_context('kusto database-principal-assignment wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('principal_assignment_name', type=str, help='The name of the Kusto principalAssignment.', + id_part='child_name_2') + + with self.argument_context('kusto attached-database-configuration list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + + with self.argument_context('kusto attached-database-configuration show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('attached_database_configuration_name', options_list=['--name', '-n', + '--attached-database-configuration-name'], + type=str, help='The name of the attached database configuration.', id_part='child_name_1') + + with self.argument_context('kusto attached-database-configuration create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('attached_database_configuration_name', options_list=['--name', '-n', + '--attached-database-configuration-name'], + type=str, help='The name of the attached database configuration.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('database_name', type=str, help='The name of the database which you would like to attach, use * if ' + 'you want to follow all current and future databases.') + c.argument('cluster_resource_id', type=str, help='The resource id of the cluster where the databases you would ' + 'like to attach reside.') + c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), + help='The default principals modification kind') + + with self.argument_context('kusto attached-database-configuration update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('attached_database_configuration_name', options_list=['--name', '-n', + '--attached-database-configuration-name'], + type=str, help='The name of the attached database configuration.', id_part='child_name_1') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('database_name', type=str, help='The name of the database which you would like to attach, use * if ' + 'you want to follow all current and future databases.') + c.argument('cluster_resource_id', type=str, help='The resource id of the cluster where the databases you would ' + 'like to attach reside.') + c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), + help='The default principals modification kind') + c.ignore('parameters') + + with self.argument_context('kusto attached-database-configuration delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('attached_database_configuration_name', options_list=['--name', '-n', + '--attached-database-configuration-name'], + type=str, help='The name of the attached database configuration.', id_part='child_name_1') + + with self.argument_context('kusto attached-database-configuration wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('attached_database_configuration_name', options_list=['--name', '-n', + '--attached-database-configuration-name'], + type=str, help='The name of the attached database configuration.', id_part='child_name_1') + + with self.argument_context('kusto data-connection list') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + + with self.argument_context('kusto data-connection show') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.', id_part='child_name_2') + + with self.argument_context('kusto data-connection event-grid create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('storage_account_resource_id', type=str, help='The resource ID of the storage account where the ' + 'data resides.') + c.argument('event_hub_resource_id', type=str, help='The resource ID where the event grid is configured to send ' + 'events.') + c.argument('consumer_group', type=str, help='The event hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' + 'indicates that ingestion should ignore the first record of every file') + c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', + 'Microsoft.Storage.BlobRenamed']), help='The ' + 'name of blob storage event type to process.') + + with self.argument_context('kusto data-connection event-hub create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('event_hub_resource_id', type=str, help='The resource ID of the event hub to be used to create a ' + 'data connection.') + c.argument('consumer_group', type=str, help='The event hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('event_system_properties', nargs='+', help='System properties of the event hub') + c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ' + 'type') + + with self.argument_context('kusto data-connection iot-hub create') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('iot_hub_resource_id', type=str, help='The resource ID of the Iot hub to be used to create a data ' + 'connection.') + c.argument('consumer_group', type=str, help='The iot hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('event_system_properties', nargs='+', help='System properties of the iot hub') + c.argument('shared_access_policy_name', type=str, help='The name of the share access policy') + + with self.argument_context('kusto data-connection event-grid update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.', id_part='child_name_2') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('storage_account_resource_id', type=str, help='The resource ID of the storage account where the ' + 'data resides.') + c.argument('event_hub_resource_id', type=str, help='The resource ID where the event grid is configured to send ' + 'events.') + c.argument('consumer_group', type=str, help='The event hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' + 'indicates that ingestion should ignore the first record of every file') + c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', + 'Microsoft.Storage.BlobRenamed']), help='The ' + 'name of blob storage event type to process.') + + with self.argument_context('kusto data-connection event-hub update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.', id_part='child_name_2') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('event_hub_resource_id', type=str, help='The resource ID of the event hub to be used to create a ' + 'data connection.') + c.argument('consumer_group', type=str, help='The event hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('event_system_properties', nargs='+', help='System properties of the event hub') + c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ' + 'type') + + with self.argument_context('kusto data-connection iot-hub update') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.', id_part='child_name_2') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('iot_hub_resource_id', type=str, help='The resource ID of the Iot hub to be used to create a data ' + 'connection.') + c.argument('consumer_group', type=str, help='The iot hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('event_system_properties', nargs='+', help='System properties of the iot hub') + c.argument('shared_access_policy_name', type=str, help='The name of the share access policy') + + with self.argument_context('kusto data-connection delete') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.', id_part='child_name_2') + + with self.argument_context('kusto data-connection event-grid data-connection-validation') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('storage_account_resource_id', type=str, help='The resource ID of the storage account where the ' + 'data resides.') + c.argument('event_hub_resource_id', type=str, help='The resource ID where the event grid is configured to send ' + 'events.') + c.argument('consumer_group', type=str, help='The event hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' + 'indicates that ingestion should ignore the first record of every file') + c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', + 'Microsoft.Storage.BlobRenamed']), help='The ' + 'name of blob storage event type to process.') + + with self.argument_context('kusto data-connection event-hub data-connection-validation') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('event_hub_resource_id', type=str, help='The resource ID of the event hub to be used to create a ' + 'data connection.') + c.argument('consumer_group', type=str, help='The event hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('event_system_properties', nargs='+', help='System properties of the event hub') + c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ' + 'type') + + with self.argument_context('kusto data-connection iot-hub data-connection-validation') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.') + c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False, + validator=get_default_location_from_resource_group) + c.argument('iot_hub_resource_id', type=str, help='The resource ID of the Iot hub to be used to create a data ' + 'connection.') + c.argument('consumer_group', type=str, help='The iot hub consumer group.') + c.argument('table_name', type=str, help='The table where the data should be ingested. Optionally the table ' + 'information can be added to each message.') + c.argument('mapping_rule_name', type=str, help='The mapping rule to be used to ingest the data. Optionally the ' + 'mapping information can be added to each message.') + c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', + 'TXT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', + 'APACHEAVRO', 'W3CLOGFILE']), help='The data format of the ' + 'message. Optionally the data format can be added to each message.') + c.argument('event_system_properties', nargs='+', help='System properties of the iot hub') + c.argument('shared_access_policy_name', type=str, help='The name of the share access policy') + + with self.argument_context('kusto data-connection wait') as c: + c.argument('resource_group_name', resource_group_name_type) + c.argument('cluster_name', type=str, help='The name of the Kusto cluster.', id_part='name') + c.argument('database_name', type=str, help='The name of the database in the Kusto cluster.', + id_part='child_name_1') + c.argument('data_connection_name', options_list=['--name', '-n', '--data-connection-name'], type=str, + help='The name of the data connection.', id_part='child_name_2') diff --git a/src/kusto/azext_kusto/generated/_validators.py b/src/kusto/azext_kusto/generated/_validators.py index e5ac7838677..b33a44c1ebf 100644 --- a/src/kusto/azext_kusto/generated/_validators.py +++ b/src/kusto/azext_kusto/generated/_validators.py @@ -1,9 +1,9 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- diff --git a/src/kusto/azext_kusto/generated/action.py b/src/kusto/azext_kusto/generated/action.py index 56ee35b3c50..3762c102a68 100644 --- a/src/kusto/azext_kusto/generated/action.py +++ b/src/kusto/azext_kusto/generated/action.py @@ -1,248 +1,276 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=protected-access - -import argparse -from collections import defaultdict -from knack.util import CLIError - - -class AddSku(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.sku = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'name': - d['name'] = v[0] - elif kl == 'capacity': - d['capacity'] = v[0] - elif kl == 'tier': - d['tier'] = v[0] - return d - - -class AddTrustedExternalTenants(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddTrustedExternalTenants, self).__call__(parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'value': - d['value'] = v[0] - return d - - -class AddOptimizedAutoscale(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.optimized_autoscale = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'version': - d['version'] = v[0] - elif kl == 'is-enabled': - d['is_enabled'] = v[0] - elif kl == 'minimum': - d['minimum'] = v[0] - elif kl == 'maximum': - d['maximum'] = v[0] - return d - - -class AddVirtualNetworkConfiguration(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.virtual_network_configuration = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'subnet-id': - d['subnet_id'] = v[0] - elif kl == 'engine-public-ip-id': - d['engine_public_ip_id'] = v[0] - elif kl == 'data-management-public-ip-id': - d['data_management_public_ip_id'] = v[0] - return d - - -class AddKeyVaultProperties(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.key_vault_properties = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'key-name': - d['key_name'] = v[0] - elif kl == 'key-version': - d['key_version'] = v[0] - elif kl == 'key-vault-uri': - d['key_vault_uri'] = v[0] - return d - - -class AddClustersValue(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddClustersValue, self).__call__(parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'language-extension-name': - d['language_extension_name'] = v[0] - return d - - -class AddReadWriteDatabase(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.read_write_database = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'soft-delete-period': - d['soft_delete_period'] = v[0] - elif kl == 'hot-cache-period': - d['hot_cache_period'] = v[0] - elif kl == 'location': - d['location'] = v[0] - d['kind'] = 'ReadWrite' - return d - - -class AddReadOnlyFollowingDatabase(argparse.Action): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - namespace.read_only_following_database = action - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'hot-cache-period': - d['hot_cache_period'] = v[0] - elif kl == 'location': - d['location'] = v[0] - d['kind'] = 'ReadOnlyFollowing' - return d - - -class AddDatabasesValue(argparse._AppendAction): - def __call__(self, parser, namespace, values, option_string=None): - action = self.get_action(values, option_string) - super(AddDatabasesValue, self).__call__(parser, namespace, action, option_string) - - def get_action(self, values, option_string): # pylint: disable=no-self-use - try: - properties = defaultdict(list) - for (k, v) in (x.split('=', 1) for x in values): - properties[k].append(v) - properties = dict(properties) - except ValueError: - raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) - d = {} - for k in properties: - kl = k.lower() - v = properties[k] - if kl == 'role': - d['role'] = v[0] - elif kl == 'name': - d['name'] = v[0] - elif kl == 'type': - d['type'] = v[0] - elif kl == 'fqn': - d['fqn'] = v[0] - elif kl == 'email': - d['email'] = v[0] - elif kl == 'app-id': - d['app_id'] = v[0] - return d +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +# pylint: disable=protected-access + +import argparse +from collections import defaultdict +from knack.util import CLIError + + +class AddSku(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.sku = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'name': + d['name'] = v[0] + elif kl == 'capacity': + d['capacity'] = v[0] + elif kl == 'tier': + d['tier'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter sku. All possible keys are: name, ' + 'capacity, tier'.format(k)) + return d + + +class AddTrustedExternalTenants(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + super(AddTrustedExternalTenants, self).__call__(parser, namespace, action, option_string) + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'value': + d['value'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter trusted_external_tenants. All possible ' + 'keys are: value'.format(k)) + return d + + +class AddOptimizedAutoscale(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.optimized_autoscale = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'version': + d['version'] = v[0] + elif kl == 'is-enabled': + d['is_enabled'] = v[0] + elif kl == 'minimum': + d['minimum'] = v[0] + elif kl == 'maximum': + d['maximum'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter optimized_autoscale. All possible keys ' + 'are: version, is-enabled, minimum, maximum'.format(k)) + return d + + +class AddVirtualNetworkConfiguration(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.virtual_network_configuration = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'subnet-id': + d['subnet_id'] = v[0] + elif kl == 'engine-public-ip-id': + d['engine_public_ip_id'] = v[0] + elif kl == 'data-management-public-ip-id': + d['data_management_public_ip_id'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter virtual_network_configuration. All ' + 'possible keys are: subnet-id, engine-public-ip-id, data-management-public-ip-id'. + format(k)) + return d + + +class AddKeyVaultProperties(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.key_vault_properties = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'key-name': + d['key_name'] = v[0] + elif kl == 'key-version': + d['key_version'] = v[0] + elif kl == 'key-vault-uri': + d['key_vault_uri'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter key_vault_properties. All possible keys ' + 'are: key-name, key-version, key-vault-uri'.format(k)) + return d + + +class AddClustersValue(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + super(AddClustersValue, self).__call__(parser, namespace, action, option_string) + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'language-extension-name': + d['language_extension_name'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter value. All possible keys are: ' + 'language-extension-name'.format(k)) + return d + + +class AddReadWriteDatabase(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.read_write_database = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'soft-delete-period': + d['soft_delete_period'] = v[0] + elif kl == 'hot-cache-period': + d['hot_cache_period'] = v[0] + elif kl == 'location': + d['location'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter read_write_database. All possible keys ' + 'are: soft-delete-period, hot-cache-period, location'.format(k)) + d['kind'] = 'ReadWrite' + return d + + +class AddReadOnlyFollowingDatabase(argparse.Action): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + namespace.read_only_following_database = action + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'hot-cache-period': + d['hot_cache_period'] = v[0] + elif kl == 'location': + d['location'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter read_only_following_database. All ' + 'possible keys are: hot-cache-period, location'.format(k)) + d['kind'] = 'ReadOnlyFollowing' + return d + + +class AddDatabasesValue(argparse._AppendAction): + def __call__(self, parser, namespace, values, option_string=None): + action = self.get_action(values, option_string) + super(AddDatabasesValue, self).__call__(parser, namespace, action, option_string) + + def get_action(self, values, option_string): # pylint: disable=no-self-use + try: + properties = defaultdict(list) + for (k, v) in (x.split('=', 1) for x in values): + properties[k].append(v) + properties = dict(properties) + except ValueError: + raise CLIError('usage error: {} [KEY=VALUE ...]'.format(option_string)) + d = {} + for k in properties: + kl = k.lower() + v = properties[k] + if kl == 'role': + d['role'] = v[0] + elif kl == 'name': + d['name'] = v[0] + elif kl == 'type': + d['type'] = v[0] + elif kl == 'fqn': + d['fqn'] = v[0] + elif kl == 'email': + d['email'] = v[0] + elif kl == 'app-id': + d['app_id'] = v[0] + else: + raise CLIError('Unsupported Key {} is provided for parameter value. All possible keys are: role, name, ' + 'type, fqn, email, app-id'.format(k)) + return d diff --git a/src/kusto/azext_kusto/generated/commands.py b/src/kusto/azext_kusto/generated/commands.py index d00c1be4c35..f8c6e7341c8 100644 --- a/src/kusto/azext_kusto/generated/commands.py +++ b/src/kusto/azext_kusto/generated/commands.py @@ -1,124 +1,128 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-statements -# pylint: disable=too-many-locals - -from azure.cli.core.commands import CliCommandType - - -def load_command_table(self, _): - - from azext_kusto.generated._client_factory import cf_cluster - kusto_cluster = CliCommandType( - operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._cluster_operations#ClusterOperations.{}', - client_factory=cf_cluster) - with self.command_group('kusto cluster', kusto_cluster, client_factory=cf_cluster) as g: - g.custom_command('list', 'kusto_cluster_list') - g.custom_show_command('show', 'kusto_cluster_show') - g.custom_command('create', 'kusto_cluster_create', supports_no_wait=True) - g.custom_command('update', 'kusto_cluster_update', supports_no_wait=True) - g.custom_command('delete', 'kusto_cluster_delete', supports_no_wait=True, confirmation=True) - g.custom_command('add-language-extension', 'kusto_cluster_add_language_extension', supports_no_wait=True) - g.custom_command('detach-follower-database', 'kusto_cluster_detach_follower_database', supports_no_wait=True) - g.custom_command('diagnose-virtual-network', 'kusto_cluster_diagnose_virtual_network', supports_no_wait=True) - g.custom_command('list-follower-database', 'kusto_cluster_list_follower_database') - g.custom_command('list-language-extension', 'kusto_cluster_list_language_extension') - g.custom_command('list-sku', 'kusto_cluster_list_sku') - g.custom_command('remove-language-extension', 'kusto_cluster_remove_language_extension', - supports_no_wait=True) - g.custom_command('start', 'kusto_cluster_start', supports_no_wait=True) - g.custom_command('stop', 'kusto_cluster_stop', supports_no_wait=True) - g.custom_wait_command('wait', 'kusto_cluster_show') - - from azext_kusto.generated._client_factory import cf_cluster_principal_assignment - kusto_cluster_principal_assignment = CliCommandType( - operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._cluster_principal_assignment_operations#ClusterPri' - 'ncipalAssignmentOperations.{}', - client_factory=cf_cluster_principal_assignment) - with self.command_group('kusto cluster-principal-assignment', kusto_cluster_principal_assignment, - client_factory=cf_cluster_principal_assignment) as g: - g.custom_command('list', 'kusto_cluster_principal_assignment_list') - g.custom_show_command('show', 'kusto_cluster_principal_assignment_show') - g.custom_command('create', 'kusto_cluster_principal_assignment_create', supports_no_wait=True) - g.custom_command('update', 'kusto_cluster_principal_assignment_update', supports_no_wait=True) - g.custom_command('delete', 'kusto_cluster_principal_assignment_delete', supports_no_wait=True, - confirmation=True) - g.custom_wait_command('wait', 'kusto_cluster_principal_assignment_show') - - from azext_kusto.generated._client_factory import cf_database - kusto_database = CliCommandType( - operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._database_operations#DatabaseOperations.{}', - client_factory=cf_database) - with self.command_group('kusto database', kusto_database, client_factory=cf_database) as g: - g.custom_command('list', 'kusto_database_list') - g.custom_show_command('show', 'kusto_database_show') - g.custom_command('create', 'kusto_database_create', supports_no_wait=True) - g.custom_command('update', 'kusto_database_update', supports_no_wait=True) - g.custom_command('delete', 'kusto_database_delete', supports_no_wait=True, confirmation=True) - g.custom_command('add-principal', 'kusto_database_add_principal') - g.custom_command('list-principal', 'kusto_database_list_principal') - g.custom_command('remove-principal', 'kusto_database_remove_principal') - g.custom_wait_command('wait', 'kusto_database_show') - - from azext_kusto.generated._client_factory import cf_database_principal_assignment - kusto_database_principal_assignment = CliCommandType( - operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._database_principal_assignment_operations#DatabaseP' - 'rincipalAssignmentOperations.{}', - client_factory=cf_database_principal_assignment) - with self.command_group('kusto database-principal-assignment', kusto_database_principal_assignment, - client_factory=cf_database_principal_assignment) as g: - g.custom_command('list', 'kusto_database_principal_assignment_list') - g.custom_show_command('show', 'kusto_database_principal_assignment_show') - g.custom_command('create', 'kusto_database_principal_assignment_create', supports_no_wait=True) - g.custom_command('update', 'kusto_database_principal_assignment_update', supports_no_wait=True) - g.custom_command('delete', 'kusto_database_principal_assignment_delete', supports_no_wait=True, - confirmation=True) - g.custom_wait_command('wait', 'kusto_database_principal_assignment_show') - - from azext_kusto.generated._client_factory import cf_attached_database_configuration - kusto_attached_database_configuration = CliCommandType( - operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._attached_database_configuration_operations#Attache' - 'dDatabaseConfigurationOperations.{}', - client_factory=cf_attached_database_configuration) - with self.command_group('kusto attached-database-configuration', kusto_attached_database_configuration, - client_factory=cf_attached_database_configuration) as g: - g.custom_command('list', 'kusto_attached_database_configuration_list') - g.custom_show_command('show', 'kusto_attached_database_configuration_show') - g.custom_command('create', 'kusto_attached_database_configuration_create', supports_no_wait=True) - g.custom_command('update', 'kusto_attached_database_configuration_update', supports_no_wait=True) - g.custom_command('delete', 'kusto_attached_database_configuration_delete', supports_no_wait=True, - confirmation=True) - g.custom_wait_command('wait', 'kusto_attached_database_configuration_show') - - from azext_kusto.generated._client_factory import cf_data_connection - kusto_data_connection = CliCommandType( - operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._data_connection_operations#DataConnectionOperation' - 's.{}', - client_factory=cf_data_connection) - with self.command_group('kusto data-connection', kusto_data_connection, client_factory=cf_data_connection) as g: - g.custom_command('list', 'kusto_data_connection_list') - g.custom_show_command('show', 'kusto_data_connection_show') - g.custom_command('event-grid create', 'kusto_data_connection_event_grid_create', supports_no_wait=True) - g.custom_command('event-hub create', 'kusto_data_connection_event_hub_create', supports_no_wait=True) - g.custom_command('iot-hub create', 'kusto_data_connection_iot_hub_create', supports_no_wait=True) - g.custom_command('event-grid update', 'kusto_data_connection_event_grid_update', supports_no_wait=True) - g.custom_command('event-hub update', 'kusto_data_connection_event_hub_update', supports_no_wait=True) - g.custom_command('iot-hub update', 'kusto_data_connection_iot_hub_update', supports_no_wait=True) - g.custom_command('delete', 'kusto_data_connection_delete', supports_no_wait=True, confirmation=True) - g.custom_command('event-grid data-connection-validation', 'kusto_data_connection_event_grid_data_connection_val' - 'idation', supports_no_wait=True) - g.custom_command('event-hub data-connection-validation', 'kusto_data_connection_event_hub_data_connection_valid' - 'ation', supports_no_wait=True) - g.custom_command('iot-hub data-connection-validation', 'kusto_data_connection_iot_hub_data_connection_validatio' - 'n', supports_no_wait=True) - g.custom_wait_command('wait', 'kusto_data_connection_show') - - with self.command_group('kusto', is_experimental=True): - pass +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +# pylint: disable=too-many-statements +# pylint: disable=too-many-locals + +from azure.cli.core.commands import CliCommandType + + +def load_command_table(self, _): + + from azext_kusto.generated._client_factory import cf_cluster + kusto_cluster = CliCommandType( + operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._clusters_operations#ClustersOperations.{}', + client_factory=cf_cluster) + with self.command_group('kusto cluster', kusto_cluster, client_factory=cf_cluster) as g: + g.custom_command('list', 'kusto_cluster_list') + g.custom_show_command('show', 'kusto_cluster_show') + g.custom_command('create', 'kusto_cluster_create', supports_no_wait=True) + g.custom_command('update', 'kusto_cluster_update', supports_no_wait=True) + g.custom_command('delete', 'kusto_cluster_delete', supports_no_wait=True, confirmation=True) + g.custom_command('add-language-extension', 'kusto_cluster_add_language_extension', supports_no_wait=True) + g.custom_command('detach-follower-database', 'kusto_cluster_detach_follower_database', supports_no_wait=True) + g.custom_command('diagnose-virtual-network', 'kusto_cluster_diagnose_virtual_network', supports_no_wait=True) + g.custom_command('list-follower-database', 'kusto_cluster_list_follower_database') + g.custom_command('list-language-extension', 'kusto_cluster_list_language_extension') + g.custom_command('list-sku', 'kusto_cluster_list_sku') + g.custom_command('remove-language-extension', 'kusto_cluster_remove_language_extension', + supports_no_wait=True) + g.custom_command('start', 'kusto_cluster_start', supports_no_wait=True) + g.custom_command('stop', 'kusto_cluster_stop', supports_no_wait=True) + g.custom_wait_command('wait', 'kusto_cluster_show') + + from azext_kusto.generated._client_factory import cf_cluster_principal_assignment + kusto_cluster_principal_assignment = CliCommandType( + operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._cluster_principal_assignments_operations#ClusterPr' + 'incipalAssignmentsOperations.{}', + client_factory=cf_cluster_principal_assignment) + with self.command_group('kusto cluster-principal-assignment', kusto_cluster_principal_assignment, + client_factory=cf_cluster_principal_assignment) as g: + g.custom_command('list', 'kusto_cluster_principal_assignment_list') + g.custom_show_command('show', 'kusto_cluster_principal_assignment_show') + g.custom_command('create', 'kusto_cluster_principal_assignment_create', supports_no_wait=True) + g.generic_update_command('update', setter_name='begin_create_or_update', + custom_func_name='kusto_cluster_principal_assignment_update', supports_no_wait=True) + g.custom_command('delete', 'kusto_cluster_principal_assignment_delete', supports_no_wait=True, + confirmation=True) + g.custom_wait_command('wait', 'kusto_cluster_principal_assignment_show') + + from azext_kusto.generated._client_factory import cf_database + kusto_database = CliCommandType( + operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._databases_operations#DatabasesOperations.{}', + client_factory=cf_database) + with self.command_group('kusto database', kusto_database, client_factory=cf_database) as g: + g.custom_command('list', 'kusto_database_list') + g.custom_show_command('show', 'kusto_database_show') + g.custom_command('create', 'kusto_database_create', supports_no_wait=True) + g.custom_command('update', 'kusto_database_update', supports_no_wait=True) + g.custom_command('delete', 'kusto_database_delete', supports_no_wait=True, confirmation=True) + g.custom_command('add-principal', 'kusto_database_add_principal') + g.custom_command('list-principal', 'kusto_database_list_principal') + g.custom_command('remove-principal', 'kusto_database_remove_principal') + g.custom_wait_command('wait', 'kusto_database_show') + + from azext_kusto.generated._client_factory import cf_database_principal_assignment + kusto_database_principal_assignment = CliCommandType( + operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._database_principal_assignments_operations#Database' + 'PrincipalAssignmentsOperations.{}', + client_factory=cf_database_principal_assignment) + with self.command_group('kusto database-principal-assignment', kusto_database_principal_assignment, + client_factory=cf_database_principal_assignment) as g: + g.custom_command('list', 'kusto_database_principal_assignment_list') + g.custom_show_command('show', 'kusto_database_principal_assignment_show') + g.custom_command('create', 'kusto_database_principal_assignment_create', supports_no_wait=True) + g.generic_update_command('update', setter_name='begin_create_or_update', + custom_func_name='kusto_database_principal_assignment_update', supports_no_wait=True) + g.custom_command('delete', 'kusto_database_principal_assignment_delete', supports_no_wait=True, + confirmation=True) + g.custom_wait_command('wait', 'kusto_database_principal_assignment_show') + + from azext_kusto.generated._client_factory import cf_attached_database_configuration + kusto_attached_database_configuration = CliCommandType( + operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._attached_database_configurations_operations#Attach' + 'edDatabaseConfigurationsOperations.{}', + client_factory=cf_attached_database_configuration) + with self.command_group('kusto attached-database-configuration', kusto_attached_database_configuration, + client_factory=cf_attached_database_configuration) as g: + g.custom_command('list', 'kusto_attached_database_configuration_list') + g.custom_show_command('show', 'kusto_attached_database_configuration_show') + g.custom_command('create', 'kusto_attached_database_configuration_create', supports_no_wait=True) + g.generic_update_command('update', setter_name='begin_create_or_update', + custom_func_name='kusto_attached_database_configuration_update', + supports_no_wait=True) + g.custom_command('delete', 'kusto_attached_database_configuration_delete', supports_no_wait=True, + confirmation=True) + g.custom_wait_command('wait', 'kusto_attached_database_configuration_show') + + from azext_kusto.generated._client_factory import cf_data_connection + kusto_data_connection = CliCommandType( + operations_tmpl='azext_kusto.vendored_sdks.kusto.operations._data_connections_operations#DataConnectionsOperati' + 'ons.{}', + client_factory=cf_data_connection) + with self.command_group('kusto data-connection', kusto_data_connection, client_factory=cf_data_connection) as g: + g.custom_command('list', 'kusto_data_connection_list') + g.custom_show_command('show', 'kusto_data_connection_show') + g.custom_command('event-grid create', 'kusto_data_connection_event_grid_create', supports_no_wait=True) + g.custom_command('event-hub create', 'kusto_data_connection_event_hub_create', supports_no_wait=True) + g.custom_command('iot-hub create', 'kusto_data_connection_iot_hub_create', supports_no_wait=True) + g.custom_command('event-grid update', 'kusto_data_connection_event_grid_update', supports_no_wait=True) + g.custom_command('event-hub update', 'kusto_data_connection_event_hub_update', supports_no_wait=True) + g.custom_command('iot-hub update', 'kusto_data_connection_iot_hub_update', supports_no_wait=True) + g.custom_command('delete', 'kusto_data_connection_delete', supports_no_wait=True, confirmation=True) + g.custom_command('event-grid data-connection-validation', 'kusto_data_connection_event_grid_data_connection_val' + 'idation', supports_no_wait=True) + g.custom_command('event-hub data-connection-validation', 'kusto_data_connection_event_hub_data_connection_valid' + 'ation', supports_no_wait=True) + g.custom_command('iot-hub data-connection-validation', 'kusto_data_connection_iot_hub_data_connection_validatio' + 'n', supports_no_wait=True) + g.custom_wait_command('wait', 'kusto_data_connection_show') + + with self.command_group('kusto', is_experimental=True): + pass diff --git a/src/kusto/azext_kusto/generated/custom.py b/src/kusto/azext_kusto/generated/custom.py index 06abcb3c98f..77babe8821f 100644 --- a/src/kusto/azext_kusto/generated/custom.py +++ b/src/kusto/azext_kusto/generated/custom.py @@ -1,876 +1,901 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines - -from knack.util import CLIError -from azure.cli.core.util import sdk_no_wait - - -def kusto_cluster_list(client, - resource_group_name=None): - if resource_group_name: - return client.list_by_resource_group(resource_group_name=resource_group_name) - return client.list() - - -def kusto_cluster_show(client, - resource_group_name, - cluster_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_create(client, - resource_group_name, - cluster_name, - location, - sku, - tags=None, - zones=None, - trusted_external_tenants=None, - optimized_autoscale=None, - enable_disk_encryption=None, - enable_streaming_ingest=None, - virtual_network_configuration=None, - key_vault_properties=None, - enable_purge=None, - enable_double_encryption=None, - identity_type=None, - identity_user_assigned_identities=None, - no_wait=False): - if enable_streaming_ingest is None: - enable_streaming_ingest = False - if enable_purge is None: - enable_purge = False - if enable_double_encryption is None: - enable_double_encryption = False - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - tags=tags, - location=location, - sku=sku, - zones=zones, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=identity_type, - user_assigned_identities=identity_user_assigned_identities) - - -def kusto_cluster_update(client, - resource_group_name, - cluster_name, - tags=None, - location=None, - sku=None, - trusted_external_tenants=None, - optimized_autoscale=None, - enable_disk_encryption=None, - enable_streaming_ingest=None, - virtual_network_configuration=None, - key_vault_properties=None, - enable_purge=None, - enable_double_encryption=None, - identity_type=None, - identity_user_assigned_identities=None, - no_wait=False): - if enable_streaming_ingest is None: - enable_streaming_ingest = False - if enable_purge is None: - enable_purge = False - if enable_double_encryption is None: - enable_double_encryption = False - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - tags=tags, - location=location, - sku=sku, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=identity_type, - user_assigned_identities=identity_user_assigned_identities) - - -def kusto_cluster_delete(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_add_language_extension(client, - resource_group_name, - cluster_name, - value=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_add_language_extension, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - value=value) - - -def kusto_cluster_detach_follower_database(client, - resource_group_name, - cluster_name, - cluster_resource_id, - attached_database_configuration_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_detach_follower_database, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - cluster_resource_id=cluster_resource_id, - attached_database_configuration_name=attached_database_configuration_name) - - -def kusto_cluster_diagnose_virtual_network(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_diagnose_virtual_network, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_list_follower_database(client, - resource_group_name, - cluster_name): - return client.list_follower_database(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_list_language_extension(client, - resource_group_name, - cluster_name): - return client.list_language_extension(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_list_sku(client, - resource_group_name=None, - cluster_name=None): - if resource_group_name and cluster_name is not None: - return client.list_sku_by_resource(resource_group_name=resource_group_name, - cluster_name=cluster_name) - return client.list_sku() - - -def kusto_cluster_remove_language_extension(client, - resource_group_name, - cluster_name, - value=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_remove_language_extension, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - value=value) - - -def kusto_cluster_start(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_start, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_stop(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_stop, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_principal_assignment_list(client, - resource_group_name, - cluster_name): - return client.list(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_principal_assignment_show(client, - resource_group_name, - cluster_name, - principal_assignment_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_cluster_principal_assignment_create(client, - resource_group_name, - cluster_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_cluster_principal_assignment_update(client, - resource_group_name, - cluster_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_cluster_principal_assignment_delete(client, - resource_group_name, - cluster_name, - principal_assignment_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_database_list(client, - resource_group_name, - cluster_name): - return client.list_by_cluster(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_database_show(client, - resource_group_name, - cluster_name, - database_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_create(client, - resource_group_name, - cluster_name, - database_name, - read_write_database=None, - read_only_following_database=None, - no_wait=False): - all_parameters = [] - if read_write_database is not None: - all_parameters.append(read_write_database) - if read_only_following_database is not None: - all_parameters.append(read_only_following_database) - if len(all_parameters) > 1: - raise CLIError('at most one of read_write_database, read_only_following_database is needed for parameters!') - if len(all_parameters) != 1: - raise CLIError('parameters is required. but none of read_write_database, read_only_following_database is ' - 'provided!') - parameters = all_parameters[0] if len(all_parameters) == 1 else None - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - parameters=parameters) - - -def kusto_database_update(client, - resource_group_name, - cluster_name, - database_name, - read_write_database=None, - read_only_following_database=None, - no_wait=False): - all_parameters = [] - if read_write_database is not None: - all_parameters.append(read_write_database) - if read_only_following_database is not None: - all_parameters.append(read_only_following_database) - if len(all_parameters) > 1: - raise CLIError('at most one of read_write_database, read_only_following_database is needed for parameters!') - if len(all_parameters) != 1: - raise CLIError('parameters is required. but none of read_write_database, read_only_following_database is ' - 'provided!') - parameters = all_parameters[0] if len(all_parameters) == 1 else None - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - parameters=parameters) - - -def kusto_database_delete(client, - resource_group_name, - cluster_name, - database_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_add_principal(client, - resource_group_name, - cluster_name, - database_name, - value=None): - return client.add_principal(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - value=value) - - -def kusto_database_list_principal(client, - resource_group_name, - cluster_name, - database_name): - return client.list_principal(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_remove_principal(client, - resource_group_name, - cluster_name, - database_name, - value=None): - return client.remove_principal(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - value=value) - - -def kusto_database_principal_assignment_list(client, - resource_group_name, - cluster_name, - database_name): - return client.list(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_principal_assignment_show(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_database_principal_assignment_create(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_database_principal_assignment_update(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_database_principal_assignment_delete(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_attached_database_configuration_list(client, - resource_group_name, - cluster_name): - return client.list_by_cluster(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_attached_database_configuration_show(client, - resource_group_name, - cluster_name, - attached_database_configuration_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name) - - -def kusto_attached_database_configuration_create(client, - resource_group_name, - cluster_name, - attached_database_configuration_name, - location=None, - database_name=None, - cluster_resource_id=None, - default_principals_modification_kind=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name, - location=location, - database_name=database_name, - cluster_resource_id=cluster_resource_id, - default_principals_modification_kind=default_principals_modification_kind) - - -def kusto_attached_database_configuration_update(client, - resource_group_name, - cluster_name, - attached_database_configuration_name, - location=None, - database_name=None, - cluster_resource_id=None, - default_principals_modification_kind=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name, - location=location, - database_name=database_name, - cluster_resource_id=cluster_resource_id, - default_principals_modification_kind=default_principals_modification_kind) - - -def kusto_attached_database_configuration_delete(client, - resource_group_name, - cluster_name, - attached_database_configuration_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name) - - -def kusto_data_connection_list(client, - resource_group_name, - cluster_name, - database_name): - return client.list_by_database(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_data_connection_show(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name) - - -def kusto_data_connection_event_grid_create(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - storage_account_resource_id=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - ignore_first_record=None, - blob_storage_event_type=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventGrid' - parameters['storage_account_resource_id'] = storage_account_resource_id - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['ignore_first_record'] = ignore_first_record - parameters['blob_storage_event_type'] = blob_storage_event_type - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_event_hub_create(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - compression=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventHub' - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['compression'] = compression - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_iot_hub_create(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - iot_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - shared_access_policy_name=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'IotHub' - parameters['iot_hub_resource_id'] = iot_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['shared_access_policy_name'] = shared_access_policy_name - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_event_grid_update(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - storage_account_resource_id=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - ignore_first_record=None, - blob_storage_event_type=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventGrid' - parameters['storage_account_resource_id'] = storage_account_resource_id - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['ignore_first_record'] = ignore_first_record - parameters['blob_storage_event_type'] = blob_storage_event_type - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_event_hub_update(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - compression=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventHub' - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['compression'] = compression - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_iot_hub_update(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - iot_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - shared_access_policy_name=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'IotHub' - parameters['iot_hub_resource_id'] = iot_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['shared_access_policy_name'] = shared_access_policy_name - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_delete(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name) - - -def kusto_data_connection_event_grid_data_connection_validation(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name=None, - location=None, - storage_account_resource_id=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - ignore_first_record=None, - blob_storage_event_type=None, - no_wait=False): - properties = {} - properties['location'] = location - properties['kind'] = 'EventGrid' - properties['storage_account_resource_id'] = storage_account_resource_id - properties['event_hub_resource_id'] = event_hub_resource_id - properties['consumer_group'] = consumer_group - properties['table_name'] = table_name - properties['mapping_rule_name'] = mapping_rule_name - properties['data_format'] = data_format - properties['ignore_first_record'] = ignore_first_record - properties['blob_storage_event_type'] = blob_storage_event_type - return sdk_no_wait(no_wait, - client.begin_data_connection_validation, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - properties=properties) - - -def kusto_data_connection_event_hub_data_connection_validation(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name=None, - location=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - compression=None, - no_wait=False): - properties = {} - properties['location'] = location - properties['kind'] = 'EventHub' - properties['event_hub_resource_id'] = event_hub_resource_id - properties['consumer_group'] = consumer_group - properties['table_name'] = table_name - properties['mapping_rule_name'] = mapping_rule_name - properties['data_format'] = data_format - properties['event_system_properties'] = event_system_properties - properties['compression'] = compression - return sdk_no_wait(no_wait, - client.begin_data_connection_validation, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - properties=properties) - - -def kusto_data_connection_iot_hub_data_connection_validation(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name=None, - location=None, - iot_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - shared_access_policy_name=None, - no_wait=False): - properties = {} - properties['location'] = location - properties['kind'] = 'IotHub' - properties['iot_hub_resource_id'] = iot_hub_resource_id - properties['consumer_group'] = consumer_group - properties['table_name'] = table_name - properties['mapping_rule_name'] = mapping_rule_name - properties['data_format'] = data_format - properties['event_system_properties'] = event_system_properties - properties['shared_access_policy_name'] = shared_access_policy_name - return sdk_no_wait(no_wait, - client.begin_data_connection_validation, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - properties=properties) +# -------------------------------------------------------------------------- +# 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. +# -------------------------------------------------------------------------- +# pylint: disable=too-many-lines +# pylint: disable=unused-argument + +from knack.util import CLIError +from azure.cli.core.util import sdk_no_wait + + +def kusto_cluster_list(client, + resource_group_name=None): + if resource_group_name: + return client.list_by_resource_group(resource_group_name=resource_group_name) + return client.list() + + +def kusto_cluster_show(client, + resource_group_name, + cluster_name): + return client.get(resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_create(client, + resource_group_name, + cluster_name, + location, + sku, + tags=None, + zones=None, + trusted_external_tenants=None, + optimized_autoscale=None, + enable_disk_encryption=None, + enable_streaming_ingest=None, + virtual_network_configuration=None, + key_vault_properties=None, + enable_purge=None, + enable_double_encryption=None, + type_=None, + user_assigned_identities=None, + no_wait=False): + if enable_streaming_ingest is None: + enable_streaming_ingest = False + if enable_purge is None: + enable_purge = False + if enable_double_encryption is None: + enable_double_encryption = False + parameters = {} + parameters['tags'] = tags + parameters['location'] = location + parameters['sku'] = sku + parameters['zones'] = zones + parameters['trusted_external_tenants'] = trusted_external_tenants + parameters['optimized_autoscale'] = optimized_autoscale + parameters['enable_disk_encryption'] = enable_disk_encryption + parameters['enable_streaming_ingest'] = False if enable_streaming_ingest is None else enable_streaming_ingest + parameters['virtual_network_configuration'] = virtual_network_configuration + parameters['key_vault_properties'] = key_vault_properties + parameters['enable_purge'] = False if enable_purge is None else enable_purge + parameters['enable_double_encryption'] = False if enable_double_encryption is None else enable_double_encryption + parameters['identity'] = {} + parameters['identity']['type'] = type_ + parameters['identity']['user_assigned_identities'] = user_assigned_identities + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + parameters=parameters) + + +def kusto_cluster_update(client, + resource_group_name, + cluster_name, + tags=None, + location=None, + sku=None, + trusted_external_tenants=None, + optimized_autoscale=None, + enable_disk_encryption=None, + enable_streaming_ingest=None, + virtual_network_configuration=None, + key_vault_properties=None, + enable_purge=None, + enable_double_encryption=None, + type_=None, + user_assigned_identities=None, + no_wait=False): + if enable_streaming_ingest is None: + enable_streaming_ingest = False + if enable_purge is None: + enable_purge = False + if enable_double_encryption is None: + enable_double_encryption = False + parameters = {} + parameters['tags'] = tags + parameters['location'] = location + parameters['sku'] = sku + parameters['trusted_external_tenants'] = trusted_external_tenants + parameters['optimized_autoscale'] = optimized_autoscale + parameters['enable_disk_encryption'] = enable_disk_encryption + parameters['enable_streaming_ingest'] = False if enable_streaming_ingest is None else enable_streaming_ingest + parameters['virtual_network_configuration'] = virtual_network_configuration + parameters['key_vault_properties'] = key_vault_properties + parameters['enable_purge'] = False if enable_purge is None else enable_purge + parameters['enable_double_encryption'] = False if enable_double_encryption is None else enable_double_encryption + parameters['identity'] = {} + parameters['identity']['type'] = type_ + parameters['identity']['user_assigned_identities'] = user_assigned_identities + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + parameters=parameters) + + +def kusto_cluster_delete(client, + resource_group_name, + cluster_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_add_language_extension(client, + resource_group_name, + cluster_name, + value=None, + no_wait=False): + language_extensions_to_add = {} + language_extensions_to_add['value'] = value + return sdk_no_wait(no_wait, + client.begin_add_language_extensions, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + language_extensions_to_add=language_extensions_to_add) + + +def kusto_cluster_detach_follower_database(client, + resource_group_name, + cluster_name, + cluster_resource_id, + attached_database_configuration_name, + no_wait=False): + follower_database_to_remove = {} + follower_database_to_remove['cluster_resource_id'] = cluster_resource_id + follower_database_to_remove['attached_database_configuration_name'] = attached_database_configuration_name + return sdk_no_wait(no_wait, + client.begin_detach_follower_databases, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + follower_database_to_remove=follower_database_to_remove) + + +def kusto_cluster_diagnose_virtual_network(client, + resource_group_name, + cluster_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_diagnose_virtual_network, + resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_list_follower_database(client, + resource_group_name, + cluster_name): + return client.list_follower_databases(resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_list_language_extension(client, + resource_group_name, + cluster_name): + return client.list_language_extensions(resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_list_sku(client, + resource_group_name=None, + cluster_name=None): + if resource_group_name and cluster_name is not None: + return client.list_skus_by_resource(resource_group_name=resource_group_name, + cluster_name=cluster_name) + return client.list_skus() + + +def kusto_cluster_remove_language_extension(client, + resource_group_name, + cluster_name, + value=None, + no_wait=False): + language_extensions_to_remove = {} + language_extensions_to_remove['value'] = value + return sdk_no_wait(no_wait, + client.begin_remove_language_extensions, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + language_extensions_to_remove=language_extensions_to_remove) + + +def kusto_cluster_start(client, + resource_group_name, + cluster_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_start, + resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_stop(client, + resource_group_name, + cluster_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_stop, + resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_principal_assignment_list(client, + resource_group_name, + cluster_name): + return client.list(resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_cluster_principal_assignment_show(client, + resource_group_name, + cluster_name, + principal_assignment_name): + return client.get(resource_group_name=resource_group_name, + cluster_name=cluster_name, + principal_assignment_name=principal_assignment_name) + + +def kusto_cluster_principal_assignment_create(client, + resource_group_name, + cluster_name, + principal_assignment_name, + principal_id=None, + role=None, + tenant_id=None, + principal_type=None, + no_wait=False): + parameters = {} + parameters['principal_id'] = principal_id + parameters['role'] = role + parameters['tenant_id'] = tenant_id + parameters['principal_type'] = principal_type + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + principal_assignment_name=principal_assignment_name, + parameters=parameters) + + +def kusto_cluster_principal_assignment_update(instance, + resource_group_name, + cluster_name, + principal_assignment_name, + principal_id=None, + role=None, + tenant_id=None, + principal_type=None, + no_wait=False): + if principal_id is not None: + instance.principal_id = principal_id + if role is not None: + instance.role = role + if tenant_id is not None: + instance.tenant_id = tenant_id + if principal_type is not None: + instance.principal_type = principal_type + return instance + + +def kusto_cluster_principal_assignment_delete(client, + resource_group_name, + cluster_name, + principal_assignment_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + principal_assignment_name=principal_assignment_name) + + +def kusto_database_list(client, + resource_group_name, + cluster_name): + return client.list_by_cluster(resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_database_show(client, + resource_group_name, + cluster_name, + database_name): + return client.get(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name) + + +def kusto_database_create(client, + resource_group_name, + cluster_name, + database_name, + read_write_database=None, + read_only_following_database=None, + no_wait=False): + all_parameters = [] + if read_write_database is not None: + all_parameters.append(read_write_database) + if read_only_following_database is not None: + all_parameters.append(read_only_following_database) + if len(all_parameters) > 1: + raise CLIError('at most one of read_write_database, read_only_following_database is needed for parameters!') + if len(all_parameters) != 1: + raise CLIError('parameters is required. but none of read_write_database, read_only_following_database is ' + 'provided!') + parameters = all_parameters[0] if len(all_parameters) == 1 else None + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + parameters=parameters) + + +def kusto_database_update(client, + resource_group_name, + cluster_name, + database_name, + read_write_database=None, + read_only_following_database=None, + no_wait=False): + all_parameters = [] + if read_write_database is not None: + all_parameters.append(read_write_database) + if read_only_following_database is not None: + all_parameters.append(read_only_following_database) + if len(all_parameters) > 1: + raise CLIError('at most one of read_write_database, read_only_following_database is needed for parameters!') + if len(all_parameters) != 1: + raise CLIError('parameters is required. but none of read_write_database, read_only_following_database is ' + 'provided!') + parameters = all_parameters[0] if len(all_parameters) == 1 else None + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + parameters=parameters) + + +def kusto_database_delete(client, + resource_group_name, + cluster_name, + database_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name) + + +def kusto_database_add_principal(client, + resource_group_name, + cluster_name, + database_name, + value=None): + database_principals_to_add = {} + database_principals_to_add['value'] = value + return client.add_principals(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + database_principals_to_add=database_principals_to_add) + + +def kusto_database_list_principal(client, + resource_group_name, + cluster_name, + database_name): + return client.list_principals(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name) + + +def kusto_database_remove_principal(client, + resource_group_name, + cluster_name, + database_name, + value=None): + database_principals_to_remove = {} + database_principals_to_remove['value'] = value + return client.remove_principals(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + database_principals_to_remove=database_principals_to_remove) + + +def kusto_database_principal_assignment_list(client, + resource_group_name, + cluster_name, + database_name): + return client.list(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name) + + +def kusto_database_principal_assignment_show(client, + resource_group_name, + cluster_name, + database_name, + principal_assignment_name): + return client.get(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + principal_assignment_name=principal_assignment_name) + + +def kusto_database_principal_assignment_create(client, + resource_group_name, + cluster_name, + database_name, + principal_assignment_name, + principal_id=None, + role=None, + tenant_id=None, + principal_type=None, + no_wait=False): + parameters = {} + parameters['principal_id'] = principal_id + parameters['role'] = role + parameters['tenant_id'] = tenant_id + parameters['principal_type'] = principal_type + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + principal_assignment_name=principal_assignment_name, + parameters=parameters) + + +def kusto_database_principal_assignment_update(instance, + resource_group_name, + cluster_name, + database_name, + principal_assignment_name, + principal_id=None, + role=None, + tenant_id=None, + principal_type=None, + no_wait=False): + if principal_id is not None: + instance.principal_id = principal_id + if role is not None: + instance.role = role + if tenant_id is not None: + instance.tenant_id = tenant_id + if principal_type is not None: + instance.principal_type = principal_type + return instance + + +def kusto_database_principal_assignment_delete(client, + resource_group_name, + cluster_name, + database_name, + principal_assignment_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + principal_assignment_name=principal_assignment_name) + + +def kusto_attached_database_configuration_list(client, + resource_group_name, + cluster_name): + return client.list_by_cluster(resource_group_name=resource_group_name, + cluster_name=cluster_name) + + +def kusto_attached_database_configuration_show(client, + resource_group_name, + cluster_name, + attached_database_configuration_name): + return client.get(resource_group_name=resource_group_name, + cluster_name=cluster_name, + attached_database_configuration_name=attached_database_configuration_name) + + +def kusto_attached_database_configuration_create(client, + resource_group_name, + cluster_name, + attached_database_configuration_name, + location=None, + database_name=None, + cluster_resource_id=None, + default_principals_modification_kind=None, + no_wait=False): + parameters = {} + parameters['location'] = location + parameters['database_name'] = database_name + parameters['cluster_resource_id'] = cluster_resource_id + parameters['default_principals_modification_kind'] = default_principals_modification_kind + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + attached_database_configuration_name=attached_database_configuration_name, + parameters=parameters) + + +def kusto_attached_database_configuration_update(instance, + resource_group_name, + cluster_name, + attached_database_configuration_name, + location=None, + database_name=None, + cluster_resource_id=None, + default_principals_modification_kind=None, + no_wait=False): + if location is not None: + instance.location = location + if database_name is not None: + instance.database_name = database_name + if cluster_resource_id is not None: + instance.cluster_resource_id = cluster_resource_id + if default_principals_modification_kind is not None: + instance.default_principals_modification_kind = default_principals_modification_kind + return instance + + +def kusto_attached_database_configuration_delete(client, + resource_group_name, + cluster_name, + attached_database_configuration_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + attached_database_configuration_name=attached_database_configuration_name) + + +def kusto_data_connection_list(client, + resource_group_name, + cluster_name, + database_name): + return client.list_by_database(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name) + + +def kusto_data_connection_show(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name): + return client.get(resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name) + + +def kusto_data_connection_event_grid_create(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name, + location=None, + storage_account_resource_id=None, + event_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + ignore_first_record=None, + blob_storage_event_type=None, + no_wait=False): + parameters = {} + parameters['location'] = location + parameters['kind'] = 'EventGrid' + parameters['storage_account_resource_id'] = storage_account_resource_id + parameters['event_hub_resource_id'] = event_hub_resource_id + parameters['consumer_group'] = consumer_group + parameters['table_name'] = table_name + parameters['mapping_rule_name'] = mapping_rule_name + parameters['data_format'] = data_format + parameters['ignore_first_record'] = ignore_first_record + parameters['blob_storage_event_type'] = blob_storage_event_type + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name, + parameters=parameters) + + +def kusto_data_connection_event_hub_create(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name, + location=None, + event_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + event_system_properties=None, + compression=None, + no_wait=False): + parameters = {} + parameters['location'] = location + parameters['kind'] = 'EventHub' + parameters['event_hub_resource_id'] = event_hub_resource_id + parameters['consumer_group'] = consumer_group + parameters['table_name'] = table_name + parameters['mapping_rule_name'] = mapping_rule_name + parameters['data_format'] = data_format + parameters['event_system_properties'] = event_system_properties + parameters['compression'] = compression + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name, + parameters=parameters) + + +def kusto_data_connection_iot_hub_create(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name, + location=None, + iot_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + event_system_properties=None, + shared_access_policy_name=None, + no_wait=False): + parameters = {} + parameters['location'] = location + parameters['kind'] = 'IotHub' + parameters['iot_hub_resource_id'] = iot_hub_resource_id + parameters['consumer_group'] = consumer_group + parameters['table_name'] = table_name + parameters['mapping_rule_name'] = mapping_rule_name + parameters['data_format'] = data_format + parameters['event_system_properties'] = event_system_properties + parameters['shared_access_policy_name'] = shared_access_policy_name + return sdk_no_wait(no_wait, + client.begin_create_or_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name, + parameters=parameters) + + +def kusto_data_connection_event_grid_update(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name, + location=None, + storage_account_resource_id=None, + event_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + ignore_first_record=None, + blob_storage_event_type=None, + no_wait=False): + parameters = {} + parameters['location'] = location + parameters['kind'] = 'EventGrid' + parameters['storage_account_resource_id'] = storage_account_resource_id + parameters['event_hub_resource_id'] = event_hub_resource_id + parameters['consumer_group'] = consumer_group + parameters['table_name'] = table_name + parameters['mapping_rule_name'] = mapping_rule_name + parameters['data_format'] = data_format + parameters['ignore_first_record'] = ignore_first_record + parameters['blob_storage_event_type'] = blob_storage_event_type + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name, + parameters=parameters) + + +def kusto_data_connection_event_hub_update(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name, + location=None, + event_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + event_system_properties=None, + compression=None, + no_wait=False): + parameters = {} + parameters['location'] = location + parameters['kind'] = 'EventHub' + parameters['event_hub_resource_id'] = event_hub_resource_id + parameters['consumer_group'] = consumer_group + parameters['table_name'] = table_name + parameters['mapping_rule_name'] = mapping_rule_name + parameters['data_format'] = data_format + parameters['event_system_properties'] = event_system_properties + parameters['compression'] = compression + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name, + parameters=parameters) + + +def kusto_data_connection_iot_hub_update(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name, + location=None, + iot_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + event_system_properties=None, + shared_access_policy_name=None, + no_wait=False): + parameters = {} + parameters['location'] = location + parameters['kind'] = 'IotHub' + parameters['iot_hub_resource_id'] = iot_hub_resource_id + parameters['consumer_group'] = consumer_group + parameters['table_name'] = table_name + parameters['mapping_rule_name'] = mapping_rule_name + parameters['data_format'] = data_format + parameters['event_system_properties'] = event_system_properties + parameters['shared_access_policy_name'] = shared_access_policy_name + return sdk_no_wait(no_wait, + client.begin_update, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name, + parameters=parameters) + + +def kusto_data_connection_delete(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name, + no_wait=False): + return sdk_no_wait(no_wait, + client.begin_delete, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + data_connection_name=data_connection_name) + + +def kusto_data_connection_event_grid_data_connection_validation(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name=None, + location=None, + storage_account_resource_id=None, + event_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + ignore_first_record=None, + blob_storage_event_type=None, + no_wait=False): + parameters = {} + parameters['data_connection_name'] = data_connection_name + parameters['properties'] = {} + parameters['properties']['location'] = location + parameters['properties']['kind'] = 'EventGrid' + parameters['properties']['storage_account_resource_id'] = storage_account_resource_id + parameters['properties']['event_hub_resource_id'] = event_hub_resource_id + parameters['properties']['consumer_group'] = consumer_group + parameters['properties']['table_name'] = table_name + parameters['properties']['mapping_rule_name'] = mapping_rule_name + parameters['properties']['data_format'] = data_format + parameters['properties']['ignore_first_record'] = ignore_first_record + parameters['properties']['blob_storage_event_type'] = blob_storage_event_type + return sdk_no_wait(no_wait, + client.begin_data_connection_validation, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + parameters=parameters) + + +def kusto_data_connection_event_hub_data_connection_validation(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name=None, + location=None, + event_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + event_system_properties=None, + compression=None, + no_wait=False): + parameters = {} + parameters['data_connection_name'] = data_connection_name + parameters['properties'] = {} + parameters['properties']['location'] = location + parameters['properties']['kind'] = 'EventHub' + parameters['properties']['event_hub_resource_id'] = event_hub_resource_id + parameters['properties']['consumer_group'] = consumer_group + parameters['properties']['table_name'] = table_name + parameters['properties']['mapping_rule_name'] = mapping_rule_name + parameters['properties']['data_format'] = data_format + parameters['properties']['event_system_properties'] = event_system_properties + parameters['properties']['compression'] = compression + return sdk_no_wait(no_wait, + client.begin_data_connection_validation, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + parameters=parameters) + + +def kusto_data_connection_iot_hub_data_connection_validation(client, + resource_group_name, + cluster_name, + database_name, + data_connection_name=None, + location=None, + iot_hub_resource_id=None, + consumer_group=None, + table_name=None, + mapping_rule_name=None, + data_format=None, + event_system_properties=None, + shared_access_policy_name=None, + no_wait=False): + parameters = {} + parameters['data_connection_name'] = data_connection_name + parameters['properties'] = {} + parameters['properties']['location'] = location + parameters['properties']['kind'] = 'IotHub' + parameters['properties']['iot_hub_resource_id'] = iot_hub_resource_id + parameters['properties']['consumer_group'] = consumer_group + parameters['properties']['table_name'] = table_name + parameters['properties']['mapping_rule_name'] = mapping_rule_name + parameters['properties']['data_format'] = data_format + parameters['properties']['event_system_properties'] = event_system_properties + parameters['properties']['shared_access_policy_name'] = shared_access_policy_name + return sdk_no_wait(no_wait, + client.begin_data_connection_validation, + resource_group_name=resource_group_name, + cluster_name=cluster_name, + database_name=database_name, + parameters=parameters) diff --git a/src/kusto/azext_kusto/manual/__init__.py b/src/kusto/azext_kusto/manual/__init__.py index ee0c4f36bd0..c9cfdc73e77 100644 --- a/src/kusto/azext_kusto/manual/__init__.py +++ b/src/kusto/azext_kusto/manual/__init__.py @@ -1,12 +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__) +# 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__) diff --git a/src/kusto/azext_kusto/manual/_help.py b/src/kusto/azext_kusto/manual/_help.py deleted file mode 100644 index d1e784f9643..00000000000 --- a/src/kusto/azext_kusto/manual/_help.py +++ /dev/null @@ -1,758 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines - -from knack.help_files import helps - - -helps['kusto cluster'] = """ - type: group - short-summary: kusto cluster -""" - -helps['kusto cluster list'] = """ - type: command - short-summary: Lists all Kusto clusters within a subscription. - examples: - - name: KustoClustersListByResourceGroup - text: |- - az kusto cluster list --resource-group "kustorptest" -""" - -helps['kusto cluster show'] = """ - type: command - short-summary: Gets a Kusto cluster. - examples: - - name: KustoClustersGet - text: |- - az kusto cluster show --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster create'] = """ - type: command - short-summary: Create or update a Kusto cluster. - parameters: - - name: --sku - short-summary: The SKU of the cluster. - long-summary: | - Usage: --sku name=XX capacity=XX tier=XX - - name: Required. SKU name. - capacity: The number of instances of the cluster. - tier: Required. SKU tier. - - name: --trusted-external-tenants - short-summary: The cluster's external tenants. - long-summary: | - Usage: --trusted-external-tenants value=XX - - value: GUID representing an external tenant. - - Multiple actions can be specified by using more than one --trusted-external-tenants argument. - - name: --optimized-autoscale - short-summary: Optimized auto scale definition. - long-summary: | - Usage: --optimized-autoscale version=XX is-enabled=XX minimum=XX maximum=XX - - version: Required. The version of the template defined, for instance 1. - is-enabled: Required. A boolean value that indicate if the optimized autoscale feature is enabled or not. - minimum: Required. Minimum allowed instances count. - maximum: Required. Maximum allowed instances count. - - name: --virtual-network-configuration - short-summary: Virtual network definition. - long-summary: | - Usage: --virtual-network-configuration subnet-id=XX engine-public-ip-id=XX data-management-public-ip-id=XX - - subnet-id: Required. The subnet resource id. - engine-public-ip-id: Required. Engine service's public IP address resource id. - data-management-public-ip-id: Required. Data management's service public IP address resource id. - - name: --key-vault-properties - short-summary: KeyVault properties for the cluster encryption. - long-summary: | - Usage: --key-vault-properties key-name=XX key-version=XX key-vault-uri=XX - - key-name: Required. The name of the key vault key. - key-version: Required. The version of the key vault key. - key-vault-uri: Required. The Uri of the key vault. - examples: - - name: KustoClustersCreateOrUpdate - text: |- - az kusto cluster create --cluster-name "kustoclusterrptest4" --identity-type "SystemAssigned" --location "westus\ -" --enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_L8s" capacit\ -y=2 tier="Standard" --resource-group "kustorptest" -""" - -helps['kusto cluster update'] = """ - type: command - short-summary: Update a Kusto cluster. - parameters: - - name: --sku - short-summary: The SKU of the cluster. - long-summary: | - Usage: --sku name=XX capacity=XX tier=XX - - name: Required. SKU name. - capacity: The number of instances of the cluster. - tier: Required. SKU tier. - - name: --trusted-external-tenants - short-summary: The cluster's external tenants. - long-summary: | - Usage: --trusted-external-tenants value=XX - - value: GUID representing an external tenant. - - Multiple actions can be specified by using more than one --trusted-external-tenants argument. - - name: --optimized-autoscale - short-summary: Optimized auto scale definition. - long-summary: | - Usage: --optimized-autoscale version=XX is-enabled=XX minimum=XX maximum=XX - - version: Required. The version of the template defined, for instance 1. - is-enabled: Required. A boolean value that indicate if the optimized autoscale feature is enabled or not. - minimum: Required. Minimum allowed instances count. - maximum: Required. Maximum allowed instances count. - - name: --virtual-network-configuration - short-summary: Virtual network definition. - long-summary: | - Usage: --virtual-network-configuration subnet-id=XX engine-public-ip-id=XX data-management-public-ip-id=XX - - subnet-id: Required. The subnet resource id. - engine-public-ip-id: Required. Engine service's public IP address resource id. - data-management-public-ip-id: Required. Data management's service public IP address resource id. - - name: --key-vault-properties - short-summary: KeyVault properties for the cluster encryption. - long-summary: | - Usage: --key-vault-properties key-name=XX key-version=XX key-vault-uri=XX - - key-name: Required. The name of the key vault key. - key-version: Required. The version of the key vault key. - key-vault-uri: Required. The Uri of the key vault. - examples: - - name: KustoClustersUpdate - text: |- - az kusto cluster update --cluster-name "kustoclusterrptest4" --identity-type "SystemAssigned" --location "westus\ -" --enable-purge true --enable-streaming-ingest true --key-vault-properties key-name="keyName" key-vault-uri="https://d\ -ummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest" -""" - -helps['kusto cluster delete'] = """ - type: command - short-summary: Deletes a Kusto cluster. - examples: - - name: KustoClustersDelete - text: |- - az kusto cluster delete --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster add-language-extension'] = """ - type: command - short-summary: Add a list of language extensions that can run within KQL queries. - parameters: - - name: --value - short-summary: The list of language extensions. - long-summary: | - Usage: --value language-extension-name=XX - - language-extension-name: The language extension name. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoClusterAddLanguageExtensions - text: |- - az kusto cluster add-language-extension --cluster-name "kustoclusterrptest4" --value language-extension-name="PY\ -THON" --value language-extension-name="R" --resource-group "kustorptest" -""" - -helps['kusto cluster detach-follower-database'] = """ - type: command - short-summary: Detaches all followers of a database owned by this cluster. - examples: - - name: KustoClusterDetachFollowerDatabases - text: |- - az kusto cluster detach-follower-database --cluster-name "kustoclusterrptest4" --attached-database-configuration\ --name "myAttachedDatabaseConfiguration" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/reso\ -urceGroups/kustorptest/providers/Microsoft.Kusto/clusters/leader4" --resource-group "kustorptest" -""" - -helps['kusto cluster diagnose-virtual-network'] = """ - type: command - short-summary: Diagnoses network connectivity status for external resources on which the service is dependent on. - examples: - - name: KustoClusterDiagnoseVirtualNetwork - text: |- - az kusto cluster diagnose-virtual-network --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster list-follower-database'] = """ - type: command - short-summary: Returns a list of databases that are owned by this cluster and were followed by another cluster. - examples: - - name: KustoClusterListFollowerDatabases - text: |- - az kusto cluster list-follower-database --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster list-language-extension'] = """ - type: command - short-summary: Returns a list of language extensions that can run within KQL queries. - examples: - - name: KustoClusterListLanguageExtensions - text: |- - az kusto cluster list-language-extension --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster list-sku'] = """ - type: command - short-summary: Lists eligible SKUs for Kusto resource provider. - examples: - - name: KustoClustersListResourceSkus - text: |- - az kusto cluster list-sku --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster remove-language-extension'] = """ - type: command - short-summary: Remove a list of language extensions that can run within KQL queries. - parameters: - - name: --value - short-summary: The list of language extensions. - long-summary: | - Usage: --value language-extension-name=XX - - language-extension-name: The language extension name. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoClusterRemoveLanguageExtensions - text: |- - az kusto cluster remove-language-extension --cluster-name "kustoclusterrptest4" --value language-extension-name=\ -"PYTHON" --value language-extension-name="R" --resource-group "kustorptest" -""" - -helps['kusto cluster start'] = """ - type: command - short-summary: Starts a Kusto cluster. - examples: - - name: KustoClustersStart - text: |- - az kusto cluster start --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster stop'] = """ - type: command - short-summary: Stops a Kusto cluster. - examples: - - name: KustoClustersStop - text: |- - az kusto cluster stop --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto cluster wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto cluster is met. - examples: - - name: Pause executing next line of CLI script until the kusto cluster is successfully created. - text: |- - az kusto cluster wait --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto cluster is successfully updated. - text: |- - az kusto cluster wait --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" --updated - - name: Pause executing next line of CLI script until the kusto cluster is successfully deleted. - text: |- - az kusto cluster wait --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" --deleted -""" - -helps['kusto cluster-principal-assignment'] = """ - type: group - short-summary: kusto cluster-principal-assignment -""" - -helps['kusto cluster-principal-assignment list'] = """ - type: command - short-summary: Lists all Kusto cluster principalAssignments. - examples: - - name: KustoPrincipalAssignmentsList - text: |- - az kusto cluster-principal-assignment list --cluster-name "kustoclusterrptest4" --resource-group "kustor\ -ptest" -""" - -helps['kusto cluster-principal-assignment show'] = """ - type: command - short-summary: Gets a Kusto cluster principalAssignment. - examples: - - name: KustoClusterPrincipalAssignmentsGet - text: |- - az kusto cluster-principal-assignment show --cluster-name "kustoclusterrptest4" --principal-assignment-n\ -ame "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto cluster-principal-assignment create'] = """ - type: command - short-summary: Create a Kusto cluster principalAssignment. - examples: - - name: KustoClusterPrincipalAssignmentsCreateOrUpdate - text: |- - az kusto cluster-principal-assignment create --cluster-name "kustoclusterrptest4" --principal-id "876543\ -21-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id "12345678-1234-1234-1234-\ -123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto cluster-principal-assignment update'] = """ - type: command - short-summary: Create a Kusto cluster principalAssignment. - examples: - - name: KustoClusterPrincipalAssignmentsCreateOrUpdate - text: |- - az kusto cluster-principal-assignment update --cluster-name "kustoclusterrptest4" --principal-id "876543\ -21-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id "12345678-1234-1234-1234-\ -123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto cluster-principal-assignment delete'] = """ - type: command - short-summary: Deletes a Kusto cluster principalAssignment. - examples: - - name: KustoClusterPrincipalAssignmentsDelete - text: |- - az kusto cluster-principal-assignment delete --cluster-name "kustoclusterrptest4" --principal-assignment\ --name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto cluster-principal-assignment wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto cluster-principal-assignment is met. - examples: - - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully crea\ -ted. - text: |- - az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" --principal-assignment-n\ -ame "kustoprincipal1" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto cluster-principal-assignment is successfully dele\ -ted. - text: |- - az kusto cluster-principal-assignment wait --cluster-name "kustoclusterrptest4" --principal-assignment-n\ -ame "kustoprincipal1" --resource-group "kustorptest" --deleted -""" - -helps['kusto database'] = """ - type: group - short-summary: kusto database -""" - -helps['kusto database list'] = """ - type: command - short-summary: Returns the list of databases of the given Kusto cluster. - examples: - - name: KustoDatabasesListByCluster - text: |- - az kusto database list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto database show'] = """ - type: command - short-summary: Returns a database. - examples: - - name: KustoDatabasesGet - text: |- - az kusto database show --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-\ -group "kustorptest" -""" - -helps['kusto database create'] = """ - type: command - short-summary: Creates or updates a database. - examples: - - name: KustoDatabasesCreateOrUpdate - text: |- - az kusto database create --cluster-name "KustoClusterRPTest4" --database-name "KustoDatabase8" --read-wr\ -ite-database location="westus" soft-delete-period="P1D" --resource-group "kustorptest" -""" - -helps['kusto database update'] = """ - type: command - short-summary: Updates a database. - examples: - - name: KustoDatabasesUpdate - text: |- - az kusto database update --cluster-name "KustoClusterRPTest4" --database-name "KustoDatabase8" --read-wr\ -ite-database soft-delete-period="P1D" --resource-group "kustorptest" -""" - -helps['kusto database delete'] = """ - type: command - short-summary: Deletes the database with the given name. - examples: - - name: KustoDatabasesDelete - text: |- - az kusto database delete --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resourc\ -e-group "kustorptest" -""" - -helps['kusto database add-principal'] = """ - type: command - short-summary: Add Database principals permissions. - parameters: - - name: --value - short-summary: The list of Kusto database principals. - long-summary: | - Usage: --value role=XX name=XX type=XX fqn=XX email=XX app-id=XX - - role: Required. Database principal role. - name: Required. Database principal name. - type: Required. Database principal type. - fqn: Database principal fully qualified name. - email: Database principal email if exists. - app-id: Application id - relevant only for application principal type. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoDatabaseAddPrincipals - text: |- - az kusto database add-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --\ -value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value na\ -me="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value name="Some\ -App" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" --resource-group "kustorp\ -test" -""" - -helps['kusto database list-principal'] = """ - type: command - short-summary: Returns a list of database principals of the given Kusto cluster and database. - examples: - - name: KustoDatabaseListPrincipals - text: |- - az kusto database list-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" -\ --resource-group "kustorptest" -""" - -helps['kusto database remove-principal'] = """ - type: command - short-summary: Remove Database principals permissions. - parameters: - - name: --value - short-summary: The list of Kusto database principals. - long-summary: | - Usage: --value role=XX name=XX type=XX fqn=XX email=XX app-id=XX - - role: Required. Database principal role. - name: Required. Database principal name. - type: Required. Database principal type. - fqn: Database principal fully qualified name. - email: Database principal email if exists. - app-id: Application id - relevant only for application principal type. - - Multiple actions can be specified by using more than one --value argument. - examples: - - name: KustoDatabaseRemovePrincipals - text: |- - az kusto database remove-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8"\ - --value name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value\ - name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value name="S\ -omeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" --resource-group "kust\ -orptest" -""" - -helps['kusto database wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto database is met. - examples: - - name: Pause executing next line of CLI script until the kusto database is successfully created. - text: |- - az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-\ -group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto database is successfully updated. - text: |- - az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-\ -group "kustorptest" --updated - - name: Pause executing next line of CLI script until the kusto database is successfully deleted. - text: |- - az kusto database wait --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-\ -group "kustorptest" --deleted -""" - -helps['kusto database-principal-assignment'] = """ - type: group - short-summary: kusto database-principal-assignment -""" - -helps['kusto database-principal-assignment list'] = """ - type: command - short-summary: Lists all Kusto cluster database principalAssignments. - examples: - - name: KustoPrincipalAssignmentsList - text: |- - az kusto database-principal-assignment list --cluster-name "kustoclusterrptest4" --database-name "Kustod\ -atabase8" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment show'] = """ - type: command - short-summary: Gets a Kusto cluster database principalAssignment. - examples: - - name: KustoDatabasePrincipalAssignmentsGet - text: |- - az kusto database-principal-assignment show --cluster-name "kustoclusterrptest4" --database-name "Kustod\ -atabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment create'] = """ - type: command - short-summary: Creates a Kusto cluster database principalAssignment. - examples: - - name: KustoDatabasePrincipalAssignmentsCreateOrUpdate - text: |- - az kusto database-principal-assignment create --cluster-name "kustoclusterrptest4" --database-name "Kust\ -odatabase8" --principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id "12\ -345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment update'] = """ - type: command - short-summary: Creates a Kusto cluster database principalAssignment. - examples: - - name: KustoDatabasePrincipalAssignmentsCreateOrUpdate - text: |- - az kusto database-principal-assignment update --cluster-name "kustoclusterrptest4" --database-name "Kust\ -odatabase8" --principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id "12\ -345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment delete'] = """ - type: command - short-summary: Deletes a Kusto principalAssignment. - examples: - - name: KustoDatabasePrincipalAssignmentsDelete - text: |- - az kusto database-principal-assignment delete --cluster-name "kustoclusterrptest4" --database-name "Kust\ -odatabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -""" - -helps['kusto database-principal-assignment wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto database-principal-assignment is met\ -. - examples: - - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully cre\ -ated. - text: |- - az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name "Kustod\ -atabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto database-principal-assignment is successfully del\ -eted. - text: |- - az kusto database-principal-assignment wait --cluster-name "kustoclusterrptest4" --database-name "Kustod\ -atabase8" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" --deleted -""" - -helps['kusto attached-database-configuration'] = """ - type: group - short-summary: kusto attached-database-configuration -""" - -helps['kusto attached-database-configuration list'] = """ - type: command - short-summary: Returns the list of attached database configurations of the given Kusto cluster. - examples: - - name: KustoAttachedDatabaseConfigurationsListByCluster - text: |- - az kusto attached-database-configuration list --cluster-name "kustoclusterrptest4" --resource-group "kus\ -torptest" -""" - -helps['kusto attached-database-configuration show'] = """ - type: command - short-summary: Returns an attached database configuration. - examples: - - name: AttachedDatabaseConfigurationsGet - text: |- - az kusto attached-database-configuration show --attached-database-configuration-name "attachedDatabaseConfigurations1" --cluster-name "k\ -ustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto attached-database-configuration create'] = """ - type: command - short-summary: Creates or updates an attached database configuration. - examples: - - name: AttachedDatabaseConfigurationsCreateOrUpdate - text: |- - az kusto attached-database-configuration create --attached-database-configuration-name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --location "westus" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/re\ -sourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --database-name "kustodatabase" --defau\ -lt-principals-modification-kind "Union" --resource-group "kustorptest" -""" - -helps['kusto attached-database-configuration update'] = """ - type: command - short-summary: Creates or updates an attached database configuration. - examples: - - name: AttachedDatabaseConfigurationsCreateOrUpdate - text: |- - az kusto attached-database-configuration update --attached-database-configuration-name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --location "westus" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/re\ -sourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --database-name "kustodatabase" --defau\ -lt-principals-modification-kind "Union" --resource-group "kustorptest" -""" - -helps['kusto attached-database-configuration delete'] = """ - type: command - short-summary: Deletes the attached database configuration with the given name. - examples: - - name: AttachedDatabaseConfigurationsDelete - text: |- - az kusto attached-database-configuration delete --attached-database-configuration-name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" -""" - -helps['kusto attached-database-configuration wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto attached-database-configuration is m\ -et. - examples: - - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully c\ -reated. - text: |- - az kusto attached-database-configuration wait --attached-database-configuration-name "attachedDatabaseConfigurations1" --cluster-name "k\ -ustoclusterrptest4" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto attached-database-configuration is successfully d\ -eleted. - text: |- - az kusto attached-database-configuration wait --attached-database-configuration-name "attachedDatabaseConfigurations1" --cluster-name "k\ -ustoclusterrptest4" --resource-group "kustorptest" --deleted -""" - -helps['kusto data-connection'] = """ - type: group - short-summary: kusto data-connection -""" - -helps['kusto data-connection list'] = """ - type: command - short-summary: Returns the list of data connections of the given Kusto database. - examples: - - name: KustoDatabasesListByCluster - text: |- - az kusto data-connection list --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --re\ -source-group "kustorptest" -""" - -helps['kusto data-connection show'] = """ - type: command - short-summary: Returns a data connection. - examples: - - name: KustoDataConnectionsGet - text: |- - az kusto data-connection show --cluster-name "kustoclusterrptest4" --data-connection-name "DataConnections8" --database-\ -name "KustoDatabase8" --resource-group "kustorptest" -""" - -helps['kusto data-connection event-grid'] = """ - type: group - short-summary: kusto data-connection sub group event-grid -""" - -helps['kusto data-connection event-grid create'] = """ - type: command - short-summary: Creates or updates a data connection. -""" - -helps['kusto data-connection event-hub'] = """ - type: group - short-summary: kusto data-connection sub group event-hub -""" - -helps['kusto data-connection event-hub create'] = """ - type: command - short-summary: Creates or updates a data connection. - examples: - - name: KustoDataConnectionsCreateOrUpdate - text: |- - az kusto data-connection event-hub create --cluster-name "kustoclusterrptest4" --data-connection-name "DataConnections8"\ - --database-name "KustoDatabase8" --location "westus" --consumer-group "testConsumerGroup1" --event-hub-resource-id "/s\ -ubscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/ev\ -enthubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -""" - -helps['kusto data-connection iot-hub'] = """ - type: group - short-summary: kusto data-connection sub group iot-hub -""" - -helps['kusto data-connection iot-hub create'] = """ - type: command - short-summary: Creates or updates a data connection. -""" - -helps['kusto data-connection event-grid update'] = """ - type: command - short-summary: Updates a data connection. -""" - -helps['kusto data-connection event-hub update'] = """ - type: command - short-summary: Updates a data connection. - examples: - - name: KustoDataConnectionsUpdate - text: |- - az kusto data-connection event-hub update --cluster-name "kustoclusterrptest4" --data-connection-name "DataConnections8"\ - --database-name "KustoDatabase8" --location "westus" --consumer-group "testConsumerGroup1" --event-hub-resource-id "/s\ -ubscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/ev\ -enthubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -""" - -helps['kusto data-connection iot-hub update'] = """ - type: command - short-summary: Updates a data connection. -""" - -helps['kusto data-connection delete'] = """ - type: command - short-summary: Deletes the data connection with the given name. - examples: - - name: KustoDataConnectionsDelete - text: |- - az kusto data-connection delete --cluster-name "kustoclusterrptest4" --data-connection-name "kustoeventhubconnection1" -\ --database-name "KustoDatabase8" --resource-group "kustorptest" -""" - -helps['kusto data-connection event-grid data-connection-validation'] = """ - type: command - short-summary: Checks that the data connection parameters are valid. -""" - -helps['kusto data-connection event-hub data-connection-validation'] = """ - type: command - short-summary: Checks that the data connection parameters are valid. - examples: - - name: KustoDataConnectionValidation - text: |- - az kusto data-connection event-hub data-connection-validation --cluster-name "kustoclusterrptest4" --dat\ -abase-name "KustoDatabase8" --data-connection-name "DataConnections8" --consumer-group "testConsumerGroup1" --event-hub-resource-id "/s\ -ubscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/ev\ -enthubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -""" - -helps['kusto data-connection iot-hub data-connection-validation'] = """ - type: command - short-summary: Checks that the data connection parameters are valid. -""" - -helps['kusto data-connection wait'] = """ - type: command - short-summary: Place the CLI in a waiting state until a condition of the kusto data-connection is met. - examples: - - name: Pause executing next line of CLI script until the kusto data-connection is successfully created. - text: |- - az kusto data-connection wait --cluster-name "kustoclusterrptest4" --data-connection-name "DataConnections8" --database-\ -name "KustoDatabase8" --resource-group "kustorptest" --created - - name: Pause executing next line of CLI script until the kusto data-connection is successfully deleted. - text: |- - az kusto data-connection wait --cluster-name "kustoclusterrptest4" --data-connection-name "DataConnections8" --database-\ -name "KustoDatabase8" --resource-group "kustorptest" --deleted -""" diff --git a/src/kusto/azext_kusto/manual/_params.py b/src/kusto/azext_kusto/manual/_params.py deleted file mode 100644 index 65e75894b8a..00000000000 --- a/src/kusto/azext_kusto/manual/_params.py +++ /dev/null @@ -1,573 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# 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_three_state_flag, - get_enum_type, - resource_group_name_type, - get_location_type -) -from azure.cli.core.commands.validators import get_default_location_from_resource_group -from azext_kusto.action import ( - AddSku, - AddTrustedExternalTenants, - AddOptimizedAutoscale, - AddVirtualNetworkConfiguration, - AddKeyVaultProperties, - AddClustersValue, - AddReadWriteDatabase, - AddReadOnlyFollowingDatabase, - AddDatabasesValue -) - - -def load_arguments(self, _): - - with self.argument_context('kusto cluster list') as c: - c.argument('resource_group_name', resource_group_name_type) - - with self.argument_context('kusto cluster show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - - with self.argument_context('kusto cluster create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('tags', tags_type) - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('sku', action=AddSku, nargs='+', help='The SKU of the cluster.') - c.argument('zones', nargs='+', help='The availability zones of the cluster.') - c.argument('trusted_external_tenants', action=AddTrustedExternalTenants, nargs='+', help='The cluster\'s extern' - 'al tenants.') - c.argument('optimized_autoscale', action=AddOptimizedAutoscale, nargs='+', help='Optimized auto scale definitio' - 'n.') - c.argument('enable_disk_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if t' - 'he cluster\'s disks are encrypted.') - c.argument('enable_streaming_ingest', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' - 'the streaming ingest is enabled.') - c.argument('virtual_network_configuration', action=AddVirtualNetworkConfiguration, nargs='+', help='Virtual net' - 'work definition.') - c.argument('key_vault_properties', action=AddKeyVaultProperties, nargs='+', help='KeyVault properties for the c' - 'luster encryption.') - c.argument('enable_purge', arg_type=get_three_state_flag(), help='A boolean value that indicates if the purge o' - 'perations are enabled.') - c.argument('enable_double_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if' - ' double encryption is enabled.') - c.argument('identity_type', arg_type=get_enum_type(['None', 'SystemAssigned']), help='The identity type.') - c.argument('identity_user_assigned_identities', arg_type=CLIArgumentType(options_list=['--identity-user-assigned-identities'], help='The list of user identities associated with the Kusto cluster. The user ident''ity dictionary key references will be ARM resource ids in the form: \'/subscriptions/{subscriptionI''d}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{i''dentityName}\'. Expected value: json-string/@json-file.')) - - with self.argument_context('kusto cluster update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - c.argument('tags', tags_type) - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('sku', action=AddSku, nargs='+', help='The SKU of the cluster.') - c.argument('trusted_external_tenants', action=AddTrustedExternalTenants, nargs='+', help='The cluster\'s extern' - 'al tenants.') - c.argument('optimized_autoscale', action=AddOptimizedAutoscale, nargs='+', help='Optimized auto scale definitio' - 'n.') - c.argument('enable_disk_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if t' - 'he cluster\'s disks are encrypted.') - c.argument('enable_streaming_ingest', arg_type=get_three_state_flag(), help='A boolean value that indicates if ' - 'the streaming ingest is enabled.') - c.argument('virtual_network_configuration', action=AddVirtualNetworkConfiguration, nargs='+', help='Virtual net' - 'work definition.') - c.argument('key_vault_properties', action=AddKeyVaultProperties, nargs='+', help='KeyVault properties for the c' - 'luster encryption.') - c.argument('enable_purge', arg_type=get_three_state_flag(), help='A boolean value that indicates if the purge o' - 'perations are enabled.') - c.argument('enable_double_encryption', arg_type=get_three_state_flag(), help='A boolean value that indicates if' - ' double encryption is enabled.') - c.argument('identity_type', arg_type=get_enum_type(['None', 'SystemAssigned']), help='The identity type.') - c.argument('identity_user_assigned_identities', arg_type=CLIArgumentType(options_list=['--identity-user-assigne''d-identities'], help='The list of user identities associated with the Kusto cluster. The user ident''ity dictionary key references will be ARM resource ids in the form: \'/subscriptions/{subscriptionI''d}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{i''dentityName}\'. Expected value: json-string/@json-file.')) - - with self.argument_context('kusto cluster delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - - with self.argument_context('kusto cluster add-language-extension') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - c.argument('value', action=AddClustersValue, nargs='+', help='The list of language extensions.') - - with self.argument_context('kusto cluster detach-follower-database') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - c.argument('cluster_resource_id', help='Resource id of the cluster that follows a database owned by this cluste' - 'r.') - c.argument('attached_database_configuration_name', help='Resource name of the attached database configuration i' - 'n the follower cluster.') - - with self.argument_context('kusto cluster diagnose-virtual-network') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - - with self.argument_context('kusto cluster list-follower-database') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - - with self.argument_context('kusto cluster list-language-extension') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - - with self.argument_context('kusto cluster list-sku') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - - with self.argument_context('kusto cluster remove-language-extension') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - c.argument('value', action=AddClustersValue, nargs='+', help='The list of language extensions.') - - with self.argument_context('kusto cluster start') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - - with self.argument_context('kusto cluster stop') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - - with self.argument_context('kusto cluster wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', - id_part='name') - - with self.argument_context('kusto cluster-principal-assignment list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - - with self.argument_context('kusto cluster-principal-assignment show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '1') - - with self.argument_context('kusto cluster-principal-assignment create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.') - c.argument('principal_id', help='The principal ID assigned to the cluster principal. It can be a user email, ap' - 'plication ID, or security group name.') - c.argument('role', arg_type=get_enum_type(['AllDatabasesAdmin', 'AllDatabasesViewer']), help='Cluster principal' - ' role.') - c.argument('tenant_id', help='The tenant id of the principal') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') - - with self.argument_context('kusto cluster-principal-assignment update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '1') - c.argument('principal_id', help='The principal ID assigned to the cluster principal. It can be a user email, ap' - 'plication ID, or security group name.') - c.argument('role', arg_type=get_enum_type(['AllDatabasesAdmin', 'AllDatabasesViewer']), help='Cluster principal' - ' role.') - c.argument('tenant_id', help='The tenant id of the principal') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') - - with self.argument_context('kusto cluster-principal-assignment delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '1') - - with self.argument_context('kusto cluster-principal-assignment wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '1') - - with self.argument_context('kusto database list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - - with self.argument_context('kusto database show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - - with self.argument_context('kusto database create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - c.argument('read_write_database', action=AddReadWriteDatabase, nargs='+', help='Class representing a read write' - ' database.', arg_group='Parameters') - c.argument('read_only_following_database', action=AddReadOnlyFollowingDatabase, nargs='+', help='Class represen' - 'ting a read only following database.', arg_group='Parameters') - - with self.argument_context('kusto database update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('read_write_database', action=AddReadWriteDatabase, nargs='+', help='Class representing a read write' - ' database.', arg_group='Parameters') - c.argument('read_only_following_database', action=AddReadOnlyFollowingDatabase, nargs='+', help='Class represen' - 'ting a read only following database.', arg_group='Parameters') - - with self.argument_context('kusto database delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - - with self.argument_context('kusto database add-principal') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('value', action=AddDatabasesValue, nargs='+', help='The list of Kusto database principals.') - - with self.argument_context('kusto database list-principal') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - - with self.argument_context('kusto database remove-principal') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('value', action=AddDatabasesValue, nargs='+', help='The list of Kusto database principals.') - - with self.argument_context('kusto database wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - - with self.argument_context('kusto database-principal-assignment list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - - with self.argument_context('kusto database-principal-assignment show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '2') - - with self.argument_context('kusto database-principal-assignment create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.') - c.argument('principal_id', help='The principal ID assigned to the database principal. It can be a user email, a' - 'pplication ID, or security group name.') - c.argument('role', arg_type=get_enum_type(['Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewers', 'View' - 'er']), help='Database principal role.') - c.argument('tenant_id', help='The tenant id of the principal') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') - - with self.argument_context('kusto database-principal-assignment update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '2') - c.argument('principal_id', help='The principal ID assigned to the database principal. It can be a user email, a' - 'pplication ID, or security group name.') - c.argument('role', arg_type=get_enum_type(['Admin', 'Ingestor', 'Monitor', 'User', 'UnrestrictedViewers', 'View' - 'er']), help='Database principal role.') - c.argument('tenant_id', help='The tenant id of the principal') - c.argument('principal_type', arg_type=get_enum_type(['App', 'Group', 'User']), help='Principal type.') - - with self.argument_context('kusto database-principal-assignment delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '2') - - with self.argument_context('kusto database-principal-assignment wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('principal_assignment_name', help='The name of the Kusto principalAssignment.', id_part='child_name_' - '2') - - with self.argument_context('kusto attached-database-configuration list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - - with self.argument_context('kusto attached-database-configuration show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('attached_database_configuration_name', help='The name of the attache' - 'd database configuration.', id_part='child_name_1') - - with self.argument_context('kusto attached-database-configuration create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('attached_database_configuration_name', help='The name of the attache' - 'd database configuration.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('database_name', help='The name of the database which you would like to attach, use * if you want to' - ' follow all current and future databases.') - c.argument('cluster_resource_id', help='The resource id of the cluster where the databases you would like to at' - 'tach reside.') - c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), help='The default principals modification kind') - - with self.argument_context('kusto attached-database-configuration update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('attached_database_configuration_name', help='The name of the attached database configuration.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('database_name', help='The name of the database which you would like to attach, use * if you want to' - ' follow all current and future databases.') - c.argument('cluster_resource_id', help='The resource id of the cluster where the databases you would like to at' - 'tach reside.') - c.argument('default_principals_modification_kind', arg_type=get_enum_type(['Union', 'Replace', 'None']), help='The default principals modification kind') - - with self.argument_context('kusto attached-database-configuration delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('attached_database_configuration_name', help='The name of the attache' - 'd database configuration.', id_part='child_name_1') - - with self.argument_context('kusto attached-database-configuration wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('attached_database_configuration_name', help='The name of the attache' - 'd database configuration.', id_part='child_name_1') - - with self.argument_context('kusto data-connection list') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - - with self.argument_context('kusto data-connection show') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.', - id_part='child_name_2') - - with self.argument_context('kusto data-connection event-grid create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - c.argument('data_connection_name', help='The name of the data connection.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('storage_account_resource_id', - help='The resource ID of the storage account where the data resides.') - c.argument('event_hub_resource_id', help='The resource ID where the event grid is configured to send events.') - c.argument('consumer_group', help='The event hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' - 'indicates that ingestion should ignore the first record of every file') - c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', 'Microsoft.Stora' - 'ge.BlobRenamed']), help='The name of blob storage event type to process.') - - with self.argument_context('kusto data-connection event-hub create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - c.argument('data_connection_name', help='The name of the data connection.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('event_hub_resource_id', help='The resource ID of the event hub to be used to create a data connecti' - 'on.') - c.argument('consumer_group', help='The event hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('event_system_properties', nargs='+', help='System properties of the event hub') - c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ty' - 'pe') - - with self.argument_context('kusto data-connection iot-hub create') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.') - c.argument('database_name', help='The name of the database in the Kusto cluster.') - c.argument('data_connection_name', help='The name of the data connection.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('iot_hub_resource_id', - help='The resource ID of the Iot hub to be used to create a data connection.') - c.argument('consumer_group', help='The iot hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('event_system_properties', nargs='+', help='System properties of the iot hub') - c.argument('shared_access_policy_name', help='The name of the share access policy') - - with self.argument_context('kusto data-connection event-grid update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.', - id_part='child_name_2') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('storage_account_resource_id', - help='The resource ID of the storage account where the data resides.') - c.argument('event_hub_resource_id', help='The resource ID where the event grid is configured to send events.') - c.argument('consumer_group', help='The event hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' - 'indicates that ingestion should ignore the first record of every file') - c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', 'Microsoft.Stora' - 'ge.BlobRenamed']), help='The name of blob storage event type to process.') - - with self.argument_context('kusto data-connection event-hub update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.', - id_part='child_name_2') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('event_hub_resource_id', help='The resource ID of the event hub to be used to create a data connecti' - 'on.') - c.argument('consumer_group', help='The event hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('event_system_properties', nargs='+', help='System properties of the event hub') - c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ty' - 'pe') - - with self.argument_context('kusto data-connection iot-hub update') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.', - id_part='child_name_2') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('iot_hub_resource_id', - help='The resource ID of the Iot hub to be used to create a data connection.') - c.argument('consumer_group', help='The iot hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('event_system_properties', nargs='+', help='System properties of the iot hub') - c.argument('shared_access_policy_name', help='The name of the share access policy') - - with self.argument_context('kusto data-connection delete') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.', - id_part='child_name_2') - - with self.argument_context('kusto data-connection event-grid data-connection-validation') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('storage_account_resource_id', - help='The resource ID of the storage account where the data resides.') - c.argument('event_hub_resource_id', help='The resource ID where the event grid is configured to send events.') - c.argument('consumer_group', help='The event hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('ignore_first_record', arg_type=get_three_state_flag(), help='A Boolean value that, if set to true, ' - 'indicates that ingestion should ignore the first record of every file') - c.argument('blob_storage_event_type', arg_type=get_enum_type(['Microsoft.Storage.BlobCreated', 'Microsoft.Stora' - 'ge.BlobRenamed']), help='The name of blob storage event type to process.') - - with self.argument_context('kusto data-connection event-hub data-connection-validation') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('event_hub_resource_id', help='The resource ID of the event hub to be used to create a data connecti' - 'on.') - c.argument('consumer_group', help='The event hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('event_system_properties', nargs='+', help='System properties of the event hub') - c.argument('compression', arg_type=get_enum_type(['None', 'GZip']), help='The event hub messages compression ty' - 'pe') - - with self.argument_context('kusto data-connection iot-hub data-connection-validation') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.') - c.argument('location', arg_type=get_location_type(self.cli_ctx), - validator=get_default_location_from_resource_group) - c.argument('iot_hub_resource_id', - help='The resource ID of the Iot hub to be used to create a data connection.') - c.argument('consumer_group', help='The iot hub consumer group.') - c.argument('table_name', help='The table where the data should be ingested. Optionally the table information ca' - 'n be added to each message.') - c.argument('mapping_rule_name', help='The mapping rule to be used to ingest the data. Optionally the mapping in' - 'formation can be added to each message.') - c.argument('data_format', arg_type=get_enum_type(['MULTIJSON', 'JSON', 'CSV', 'TSV', 'SCSV', 'SOHSV', 'PSV', 'T' - 'XT', 'RAW', 'SINGLEJSON', 'AVRO', 'TSVE', 'PARQUET', 'ORC', 'APACHEAVRO', 'W3CLOGFILE']), help='The' - ' data format of the message. Optionally the data format can be added to each message.') - c.argument('event_system_properties', nargs='+', help='System properties of the iot hub') - c.argument('shared_access_policy_name', help='The name of the share access policy') - - with self.argument_context('kusto data-connection wait') as c: - c.argument('resource_group_name', resource_group_name_type) - c.argument('cluster_name', help='The name of the Kusto cluster.', id_part='name') - c.argument('database_name', help='The name of the database in the Kusto cluster.', id_part='child_name_1') - c.argument('data_connection_name', help='The name of the data connection.', - id_part='child_name_2') diff --git a/src/kusto/azext_kusto/manual/custom.py b/src/kusto/azext_kusto/manual/custom.py deleted file mode 100644 index 0ed65217ee7..00000000000 --- a/src/kusto/azext_kusto/manual/custom.py +++ /dev/null @@ -1,881 +0,0 @@ -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -# pylint: disable=too-many-lines - -import json -from knack.util import CLIError -from azure.cli.core.util import sdk_no_wait - - -def kusto_cluster_list(client, - resource_group_name=None): - if resource_group_name: - return client.list_by_resource_group(resource_group_name=resource_group_name) - return client.list() - - -def kusto_cluster_show(client, - resource_group_name, - cluster_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_create(client, - resource_group_name, - cluster_name, - location, - sku, - tags=None, - zones=None, - trusted_external_tenants=None, - optimized_autoscale=None, - enable_disk_encryption=None, - enable_streaming_ingest=None, - virtual_network_configuration=None, - key_vault_properties=None, - enable_purge=None, - enable_double_encryption=None, - identity_type=None, - identity_user_assigned_identities=None, - no_wait=False): - if enable_streaming_ingest is None: - enable_streaming_ingest = False - if enable_purge is None: - enable_purge = False - if enable_double_encryption is None: - enable_double_encryption = False - if isinstance(identity_user_assigned_identities, str): - identity_user_assigned_identities = json.loads(identity_user_assigned_identities) - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - tags=tags, - location=location, - sku=sku, - zones=zones, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=identity_type, - user_assigned_identities=identity_user_assigned_identities) - - -def kusto_cluster_update(client, - resource_group_name, - cluster_name, - tags=None, - location=None, - sku=None, - trusted_external_tenants=None, - optimized_autoscale=None, - enable_disk_encryption=None, - enable_streaming_ingest=None, - virtual_network_configuration=None, - key_vault_properties=None, - enable_purge=None, - enable_double_encryption=None, - identity_type=None, - identity_user_assigned_identities=None, - no_wait=False): - if enable_streaming_ingest is None: - enable_streaming_ingest = False - if enable_purge is None: - enable_purge = False - if enable_double_encryption is None: - enable_double_encryption = False - if isinstance(identity_user_assigned_identities, str): - identity_user_assigned_identities = json.loads(identity_user_assigned_identities) - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - tags=tags, - location=location, - sku=sku, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=identity_type, - user_assigned_identities=identity_user_assigned_identities) - - -def kusto_cluster_delete(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_add_language_extension(client, - resource_group_name, - cluster_name, - value=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_add_language_extension, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - value=value) - - -def kusto_cluster_detach_follower_database(client, - resource_group_name, - cluster_name, - cluster_resource_id, - attached_database_configuration_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_detach_follower_database, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - cluster_resource_id=cluster_resource_id, - attached_database_configuration_name=attached_database_configuration_name) - - -def kusto_cluster_diagnose_virtual_network(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_diagnose_virtual_network, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_list_follower_database(client, - resource_group_name, - cluster_name): - return client.list_follower_database(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_list_language_extension(client, - resource_group_name, - cluster_name): - return client.list_language_extension(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_list_sku(client, - resource_group_name=None, - cluster_name=None): - if resource_group_name and cluster_name is not None: - return client.list_sku_by_resource(resource_group_name=resource_group_name, - cluster_name=cluster_name) - return client.list_sku() - - -def kusto_cluster_remove_language_extension(client, - resource_group_name, - cluster_name, - value=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_remove_language_extension, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - value=value) - - -def kusto_cluster_start(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_start, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_stop(client, - resource_group_name, - cluster_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_stop, - resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_principal_assignment_list(client, - resource_group_name, - cluster_name): - return client.list(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_cluster_principal_assignment_show(client, - resource_group_name, - cluster_name, - principal_assignment_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_cluster_principal_assignment_create(client, - resource_group_name, - cluster_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_cluster_principal_assignment_update(client, - resource_group_name, - cluster_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_cluster_principal_assignment_delete(client, - resource_group_name, - cluster_name, - principal_assignment_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_database_list(client, - resource_group_name, - cluster_name): - return client.list_by_cluster(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_database_show(client, - resource_group_name, - cluster_name, - database_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_create(client, - resource_group_name, - cluster_name, - database_name, - read_write_database=None, - read_only_following_database=None, - no_wait=False): - all_parameters = [] - if read_write_database is not None: - all_parameters.append(read_write_database) - if read_only_following_database is not None: - all_parameters.append(read_only_following_database) - if len(all_parameters) > 1: - raise CLIError('at most one of read_write_database, read_only_following_database is needed for parameters!') - if len(all_parameters) != 1: - raise CLIError('parameters is required. but none of read_write_database, read_only_following_database is provid' - 'ed!') - parameters = all_parameters[0] if len(all_parameters) == 1 else None - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - parameters=parameters) - - -def kusto_database_update(client, - resource_group_name, - cluster_name, - database_name, - read_write_database=None, - read_only_following_database=None, - no_wait=False): - all_parameters = [] - if read_write_database is not None: - all_parameters.append(read_write_database) - if read_only_following_database is not None: - all_parameters.append(read_only_following_database) - if len(all_parameters) > 1: - raise CLIError('at most one of read_write_database, read_only_following_database is needed for parameters!') - if len(all_parameters) != 1: - raise CLIError('parameters is required. but none of read_write_database, read_only_following_database is provid' - 'ed!') - parameters = all_parameters[0] if len(all_parameters) == 1 else None - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - parameters=parameters) - - -def kusto_database_delete(client, - resource_group_name, - cluster_name, - database_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_add_principal(client, - resource_group_name, - cluster_name, - database_name, - value=None): - return client.add_principal(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - value=value) - - -def kusto_database_list_principal(client, - resource_group_name, - cluster_name, - database_name): - return client.list_principal(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_remove_principal(client, - resource_group_name, - cluster_name, - database_name, - value=None): - return client.remove_principal(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - value=value) - - -def kusto_database_principal_assignment_list(client, - resource_group_name, - cluster_name, - database_name): - return client.list(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_database_principal_assignment_show(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_database_principal_assignment_create(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_database_principal_assignment_update(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name, - principal_id=None, - role=None, - tenant_id=None, - principal_type=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type) - - -def kusto_database_principal_assignment_delete(client, - resource_group_name, - cluster_name, - database_name, - principal_assignment_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name) - - -def kusto_attached_database_configuration_list(client, - resource_group_name, - cluster_name): - return client.list_by_cluster(resource_group_name=resource_group_name, - cluster_name=cluster_name) - - -def kusto_attached_database_configuration_show(client, - resource_group_name, - cluster_name, - attached_database_configuration_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name) - - -def kusto_attached_database_configuration_create(client, - resource_group_name, - cluster_name, - attached_database_configuration_name, - location=None, - database_name=None, - cluster_resource_id=None, - default_principals_modification_kind=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name, - location=location, - database_name=database_name, - cluster_resource_id=cluster_resource_id, - default_principals_modification_kind=default_principals_modification_kind) - - -def kusto_attached_database_configuration_update(client, - resource_group_name, - cluster_name, - attached_database_configuration_name, - location=None, - database_name=None, - cluster_resource_id=None, - default_principals_modification_kind=None, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name, - location=location, - database_name=database_name, - cluster_resource_id=cluster_resource_id, - default_principals_modification_kind=default_principals_modification_kind) - - -def kusto_attached_database_configuration_delete(client, - resource_group_name, - cluster_name, - attached_database_configuration_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name) - - -def kusto_data_connection_list(client, - resource_group_name, - cluster_name, - database_name): - return client.list_by_database(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name) - - -def kusto_data_connection_show(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name): - return client.get(resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name) - - -def kusto_data_connection_event_grid_create(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - storage_account_resource_id=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - ignore_first_record=None, - blob_storage_event_type=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventGrid' - parameters['storage_account_resource_id'] = storage_account_resource_id - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['ignore_first_record'] = ignore_first_record - parameters['blob_storage_event_type'] = blob_storage_event_type - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_event_hub_create(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - compression=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventHub' - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['compression'] = compression - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_iot_hub_create(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - iot_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - shared_access_policy_name=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'IotHub' - parameters['iot_hub_resource_id'] = iot_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['shared_access_policy_name'] = shared_access_policy_name - return sdk_no_wait(no_wait, - client.begin_create_or_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_event_grid_update(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - storage_account_resource_id=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - ignore_first_record=None, - blob_storage_event_type=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventGrid' - parameters['storage_account_resource_id'] = storage_account_resource_id - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['ignore_first_record'] = ignore_first_record - parameters['blob_storage_event_type'] = blob_storage_event_type - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_event_hub_update(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - compression=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'EventHub' - parameters['event_hub_resource_id'] = event_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['compression'] = compression - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_iot_hub_update(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - location=None, - iot_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - shared_access_policy_name=None, - no_wait=False): - parameters = {} - parameters['location'] = location - parameters['kind'] = 'IotHub' - parameters['iot_hub_resource_id'] = iot_hub_resource_id - parameters['consumer_group'] = consumer_group - parameters['table_name'] = table_name - parameters['mapping_rule_name'] = mapping_rule_name - parameters['data_format'] = data_format - parameters['event_system_properties'] = event_system_properties - parameters['shared_access_policy_name'] = shared_access_policy_name - return sdk_no_wait(no_wait, - client.begin_update, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters) - - -def kusto_data_connection_delete(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name, - no_wait=False): - return sdk_no_wait(no_wait, - client.begin_delete, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name) - - -def kusto_data_connection_event_grid_data_connection_validation(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name=None, - location=None, - storage_account_resource_id=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - ignore_first_record=None, - blob_storage_event_type=None, - no_wait=False): - properties = {} - properties['location'] = location - properties['kind'] = 'EventGrid' - properties['storage_account_resource_id'] = storage_account_resource_id - properties['event_hub_resource_id'] = event_hub_resource_id - properties['consumer_group'] = consumer_group - properties['table_name'] = table_name - properties['mapping_rule_name'] = mapping_rule_name - properties['data_format'] = data_format - properties['ignore_first_record'] = ignore_first_record - properties['blob_storage_event_type'] = blob_storage_event_type - return sdk_no_wait(no_wait, - client.begin_data_connection_validation, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - properties=properties) - - -def kusto_data_connection_event_hub_data_connection_validation(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name=None, - location=None, - event_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - compression=None, - no_wait=False): - properties = {} - properties['location'] = location - properties['kind'] = 'EventHub' - properties['event_hub_resource_id'] = event_hub_resource_id - properties['consumer_group'] = consumer_group - properties['table_name'] = table_name - properties['mapping_rule_name'] = mapping_rule_name - properties['data_format'] = data_format - properties['event_system_properties'] = event_system_properties - properties['compression'] = compression - return sdk_no_wait(no_wait, - client.begin_data_connection_validation, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - properties=properties) - - -def kusto_data_connection_iot_hub_data_connection_validation(client, - resource_group_name, - cluster_name, - database_name, - data_connection_name=None, - location=None, - iot_hub_resource_id=None, - consumer_group=None, - table_name=None, - mapping_rule_name=None, - data_format=None, - event_system_properties=None, - shared_access_policy_name=None, - no_wait=False): - properties = {} - properties['location'] = location - properties['kind'] = 'IotHub' - properties['iot_hub_resource_id'] = iot_hub_resource_id - properties['consumer_group'] = consumer_group - properties['table_name'] = table_name - properties['mapping_rule_name'] = mapping_rule_name - properties['data_format'] = data_format - properties['event_system_properties'] = event_system_properties - properties['shared_access_policy_name'] = shared_access_policy_name - return sdk_no_wait(no_wait, - client.begin_data_connection_validation, - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - properties=properties) diff --git a/src/kusto/azext_kusto/manual/tests/latest/example_steps.py b/src/kusto/azext_kusto/manual/tests/latest/example_steps.py index d6c21483c3b..2f3dfb23579 100644 --- a/src/kusto/azext_kusto/manual/tests/latest/example_steps.py +++ b/src/kusto/azext_kusto/manual/tests/latest/example_steps.py @@ -26,7 +26,7 @@ def step_cluster_create(test, rg, checks=None): checks = [] test.cmd('az kusto cluster create ' '--cluster-name "{myCluster}" ' - '--identity-type "SystemAssigned" ' + '--type "SystemAssigned" ' '--location "southcentralus" ' '--enable-purge true ' '--enable-streaming-ingest true ' @@ -45,7 +45,7 @@ def step_cluster_create(test, rg, checks=None): def step_cluster_create2(test, rg, checks=None): test.cmd('az kusto cluster create ' '--cluster-name "{myCluster}" ' - '--identity-type "SystemAssigned" ' + '--type "SystemAssigned" ' '--location "southcentralus" ' '--enable-purge true ' '--enable-streaming-ingest true ' @@ -354,6 +354,19 @@ def step_data_connection_event_hub_create(test, rg, checks=None): '--resource-group "{rg}"', checks=[]) +# EXAMPLE: /DataConnections/post/KustoDataConnectionValidation +@try_manual +def step_data_connection_event(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto data-connection event-hub data-connection-validation ' + '--cluster-name "{myCluster}" ' + '--database-name "KustoDatabase8" ' + '--name "{myDataConnection}" ' + '--consumer-group "$Default" ' + '--event-hub-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.EventHub/namespaces/{eventhub_namespace}/eventhubs/{eventhub_name}" ' + '--resource-group "{rg}"', + checks=checks) # EXAMPLE: KustoDataConnectionsGet @try_manual @@ -378,3 +391,36 @@ def step_data_connection_event_hub_update(test, rg, checks=None): '--event-hub-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.EventHub/namespaces/{eventhub_namespace}/eventhubs/{eventhub_name}" ' '--resource-group "{rg}"', checks=[]) + + +# EXAMPLE: /DatabasePrincipalAssignments/put/KustoDatabasePrincipalAssignmentsCreateOrUpdate +@try_manual +def step_database_principal_assignment_create(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto database-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--database-name "Kustodatabase8" ' + '--principal-id "{myPrincipalId}" ' + '--principal-type "App" ' + '--role "Admin" ' + '--tenant-id "{myTenantId}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) + + +# EXAMPLE: /ClusterPrincipalAssignments/put/KustoClusterPrincipalAssignmentsCreateOrUpdate +@try_manual +def step_cluster_principal_assignment_create(test, rg, checks=None): + if checks is None: + checks = [] + test.cmd('az kusto cluster-principal-assignment create ' + '--cluster-name "{myCluster}" ' + '--principal-id "{myPrincipalId}" ' + '--principal-type "App" ' + '--role "AllDatabasesAdmin" ' + '--tenant-id "{myTenantId}" ' + '--principal-assignment-name "kustoprincipal1" ' + '--resource-group "{rg}"', + checks=checks) \ No newline at end of file diff --git a/src/kusto/azext_kusto/manual/tests/latest/recordings/test_kusto_Scenario.yaml b/src/kusto/azext_kusto/manual/tests/latest/recordings/test_kusto_Scenario.yaml index 52e0ef25f85..6ece896c643 100644 --- a/src/kusto/azext_kusto/manual/tests/latest/recordings/test_kusto_Scenario.yaml +++ b/src/kusto/azext_kusto/manual/tests/latest/recordings/test_kusto_Scenario.yaml @@ -13,15 +13,16 @@ interactions: ParameterSetName: - --name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-resource/10.3.0 Azure-SDK-For-Python + AZURECLI/2.16.0 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-11-26T03:23:28Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-12-25T07:37:29Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +31,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:23:30 GMT + - Fri, 25 Dec 2020 07:37:32 GMT expires: - '-1' pragma: @@ -62,8 +63,9 @@ interactions: ParameterSetName: - --name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 accept-language: - en-US method: PUT @@ -71,7 +73,7 @@ interactions: response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-26T03:23:37.44Z","updatedAt":"2020-11-26T03:23:37.44Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590:codegenlivetest000002","createdAt":"2020-12-25T07:37:38.32Z","updatedAt":"2020-12-25T07:37:38.32Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache @@ -80,16 +82,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:23:39 GMT + - Fri, 25 Dec 2020 07:37:38 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -117,14 +119,15 @@ interactions: ParameterSetName: - --name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002?api-version=2018-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-26T03:23:37.44Z","updatedAt":"2020-11-26T03:23:37.44Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590:codegenlivetest000002","createdAt":"2020-12-25T07:37:38.32Z","updatedAt":"2020-12-25T07:37:38.32Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache @@ -133,16 +136,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:24:10 GMT + - Fri, 25 Dec 2020 07:38:09 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -168,32 +171,33 @@ interactions: ParameterSetName: - --name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002?api-version=2018-01-01-preview response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-26T03:23:37.44Z","updatedAt":"2020-11-26T03:24:26.9Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590:codegenlivetest000002","createdAt":"2020-12-25T07:37:38.32Z","updatedAt":"2020-12-25T07:38:24.107Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '758' + - '760' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:24:40 GMT + - Fri, 25 Dec 2020 07:38:40 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -219,8 +223,9 @@ interactions: ParameterSetName: - --name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 accept-language: - en-US method: GET @@ -228,25 +233,25 @@ interactions: response: body: string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-26T03:23:37.44Z","updatedAt":"2020-11-26T03:24:26.9Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590:codegenlivetest000002","createdAt":"2020-12-25T07:37:38.32Z","updatedAt":"2020-12-25T07:38:24.107Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '758' + - '760' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:24:40 GMT + - Fri, 25 Dec 2020 07:38:40 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -276,8 +281,9 @@ interactions: ParameterSetName: - --name --namespace-name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 accept-language: - en-US method: PUT @@ -285,16 +291,16 @@ interactions: response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","name":"livetest000003","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2020-11-26T03:24:43.803Z","updatedAt":"2020-11-26T03:24:44.07Z","partitionIds":["0","1","2","3"]}}' + US","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2020-12-25T07:38:43.167Z","updatedAt":"2020-12-25T07:38:43.347Z","partitionIds":["0","1","2","3"]}}' headers: cache-control: - no-cache content-length: - - '522' + - '523' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:24:44 GMT + - Fri, 25 Dec 2020 07:38:43 GMT expires: - '-1' pragma: @@ -313,15 +319,15 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK - request: body: '{"location": "southcentralus", "sku": {"name": "Standard_D11_v2", "capacity": - 2, "tier": "Standard"}, "properties": {"enableStreamingIngest": true, "keyVaultProperties": - {"keyName": "", "keyVersion": "", "keyVaultUri": ""}, "enablePurge": true, "enableDoubleEncryption": - false}, "identity": {"type": "SystemAssigned"}}' + 2, "tier": "Standard"}, "identity": {"type": "SystemAssigned"}, "properties": + {"enableStreamingIngest": true, "keyVaultProperties": {"keyName": "", "keyVersion": + "", "keyVaultUri": ""}, "enablePurge": true, "enableDoubleEncryption": false}}' headers: Accept: - application/json @@ -336,10 +342,10 @@ interactions: Content-Type: - application/json ParameterSetName: - - --cluster-name --identity-type --location --enable-purge --enable-streaming-ingest + - --cluster-name --type --location --enable-purge --enable-streaming-ingest --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103?api-version=2020-06-14 response: @@ -347,7 +353,7 @@ interactions: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103","name":"followercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"southcentralus","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"properties":{"state":"Creating","enableStreamingIngest":true,"keyVaultProperties":{"keyName":"","keyVersion":"","keyVaultUri":""},"enablePurge":true,"enableDoubleEncryption":false,"provisioningState":"Creating"},"identity":{"type":"SystemAssigned"}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/3b3804ff-ba8d-4bd5-a100-328455c580e4?api-version=2020-06-14 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 cache-control: - no-cache content-length: @@ -355,7 +361,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:24:56 GMT + - Fri, 25 Dec 2020 07:38:56 GMT etag: - '""' expires: @@ -363,117 +369,56 @@ interactions: pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '199' + - '198' x-powered-by: - ASP.NET status: code: 201 message: Created - request: - body: '{"location": "southcentralus", "sku": {"name": "Standard_D11_v2", "capacity": - 2, "tier": "Standard"}, "properties": {"enableStreamingIngest": true, "keyVaultProperties": - {"keyName": "", "keyVersion": "", "keyVaultUri": ""}, "enablePurge": true, "enableDoubleEncryption": - false}, "identity": {"type": "SystemAssigned"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - kusto cluster create Connection: - keep-alive - Content-Length: - - '318' - Content-Type: - - application/json ParameterSetName: - - --cluster-name --identity-type --location --enable-purge --enable-streaming-ingest + - --cluster-name --type --location --enable-purge --enable-streaming-ingest --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"southcentralus","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"properties":{"state":"Creating","enableStreamingIngest":true,"keyVaultProperties":{"keyName":"","keyVersion":"","keyVaultUri":""},"enablePurge":true,"enableDoubleEncryption":false,"provisioningState":"Creating"},"identity":{"type":"SystemAssigned"}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/daa75963-80c6-46a7-94fd-106bb9bd0599?api-version=2020-06-14 - cache-control: - - no-cache - content-length: - - '619' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 26 Nov 2020 03:25:37 GMT - etag: - - '""' - expires: - - '-1' - pragma: - - no-cache - set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '199' - x-powered-by: - - ASP.NET - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - kusto cluster wait - Connection: - - keep-alive - ParameterSetName: - - --created --cluster-name --resource-group - User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:26:09 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:39:26 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -493,34 +438,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:26:40 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:39:56 GMT expires: - '-1' pragma: @@ -547,41 +490,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:27:10 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:40:27 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -601,34 +542,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:27:41 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:40:58 GMT expires: - '-1' pragma: @@ -655,41 +594,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:28:11 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:41:28 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -709,34 +646,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:28:41 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:41:58 GMT expires: - '-1' pragma: @@ -763,41 +698,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:29:11 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:42:29 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -817,41 +750,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:38:55.3649336Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:29:44 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:42:59 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -871,34 +802,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:30:14 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:43:29 GMT expires: - '-1' pragma: @@ -925,41 +854,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:30:44 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:44:00 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -979,34 +906,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:31:16 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:44:30 GMT expires: - '-1' pragma: @@ -1033,41 +958,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:31:46 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:45:01 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1077,7 +1000,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '288' + - '290' x-powered-by: - ASP.NET status: @@ -1087,41 +1010,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:32:16 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:45:31 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1131,7 +1052,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '287' + - '289' x-powered-by: - ASP.NET status: @@ -1141,41 +1062,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:32:47 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:46:02 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1185,7 +1104,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '286' + - '288' x-powered-by: - ASP.NET status: @@ -1195,41 +1114,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:33:18 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:46:32 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1239,7 +1156,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '285' + - '287' x-powered-by: - ASP.NET status: @@ -1249,34 +1166,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:33:48 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:47:02 GMT expires: - '-1' pragma: @@ -1293,7 +1208,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '284' + - '286' x-powered-by: - ASP.NET status: @@ -1303,41 +1218,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:34:18 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:47:33 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1347,7 +1260,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '283' + - '285' x-powered-by: - ASP.NET status: @@ -1357,34 +1270,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:34:49 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:48:03 GMT expires: - '-1' pragma: @@ -1401,7 +1312,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '282' + - '284' x-powered-by: - ASP.NET status: @@ -1411,41 +1322,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:35:19 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:48:33 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1455,7 +1364,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '289' + - '283' x-powered-by: - ASP.NET status: @@ -1465,41 +1374,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:35:50 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:49:03 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1509,7 +1416,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '288' + - '282' x-powered-by: - ASP.NET status: @@ -1519,41 +1426,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:36:22 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:49:35 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1563,7 +1468,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '287' + - '281' x-powered-by: - ASP.NET status: @@ -1573,34 +1478,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:36:52 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:50:05 GMT expires: - '-1' pragma: @@ -1617,7 +1520,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '286' + - '289' x-powered-by: - ASP.NET status: @@ -1627,41 +1530,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:37:22 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:50:35 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1671,7 +1572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '285' + - '288' x-powered-by: - ASP.NET status: @@ -1681,41 +1582,39 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:37:52 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:51:05 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -1725,7 +1624,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '284' + - '287' x-powered-by: - ASP.NET status: @@ -1735,34 +1634,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:38:23 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:51:37 GMT expires: - '-1' pragma: @@ -1779,7 +1676,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '283' + - '286' x-powered-by: - ASP.NET status: @@ -1789,34 +1686,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Creating","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Creating"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:38:53 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:52:07 GMT expires: - '-1' pragma: @@ -1833,7 +1728,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '282' + - '285' x-powered-by: - ASP.NET status: @@ -1843,34 +1738,32 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '1032' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:39:24 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:52:37 GMT expires: - '-1' pragma: @@ -1887,50 +1780,42 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '281' + - '284' x-powered-by: - ASP.NET status: code: 200 message: OK - request: - body: '{"location": "southcentralus", "kind": "ReadWrite", "properties": {"softDeletePeriod": - "P1D"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto database create + - kusto cluster create Connection: - keep-alive - Content-Length: - - '94' - Content-Type: - - application/json ParameterSetName: - - --cluster-name --database-name --read-write-database --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"southcentralus","kind":"ReadWrite","properties":{"softDeletePeriod":"P1D","provisioningState":"Creating"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/f75ff003-7fdd-4e24-82bd-a8c39316b6a0?api-version=2020-06-14 cache-control: - no-cache content-length: - - '445' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:39:27 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:53:08 GMT expires: - '-1' pragma: @@ -1940,113 +1825,101 @@ interactions: - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '199' + - '283' x-powered-by: - ASP.NET status: - code: 201 - message: Created + code: 200 + message: OK - request: - body: '{"location": "southcentralus", "kind": "EventHub", "properties": {"eventHubResourceId": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003", - "consumerGroup": "$Default"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto data-connection event-hub create + - kusto cluster create Connection: - keep-alive - Content-Length: - - '350' - Content-Type: - - application/json ParameterSetName: - - --cluster-name --data-connection-name --database-name --location --consumer-group - --event-hub-resource-id --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"southcentralus","kind":"EventHub","properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","provisioningState":"Creating"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Running","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:42:59.6843204Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Running","OperationState":"InProgress"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/7cd42659-3252-4c92-a870-fc6f3b4c8267?api-version=2020-06-14 cache-control: - no-cache content-length: - - '765' + - '507' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:40:01 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:53:38 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '198' + - '282' x-powered-by: - ASP.NET status: - code: 201 - message: Created + code: 200 + message: OK - request: - body: '{"location": "southcentralus", "properties": {"databaseName": "Kustodatabase8", - "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103", - "defaultPrincipalsModificationKind": "Union"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto attached-database-configuration create + - kusto cluster create Connection: - keep-alive - Content-Length: - - '345' - Content-Type: - - application/json ParameterSetName: - - --attached-database-configuration-name --cluster-name --location --cluster-resource-id - --database-name --default-principals-modification-kind --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/fbd287d9-215c-4ee7-a75a-e8be21407d6e?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103/AttachedDatabaseConfigurations/attachedDatabaseConfigurations2","name":"followercluster103/attachedDatabaseConfigurations2","type":"Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations","etag":"\"\"","location":"southcentralus","properties":{"databaseName":"Kustodatabase8","clusterResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","defaultPrincipalsModificationKind":"Union","provisioningState":"Creating"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/fbd287d9-215c-4ee7-a75a-e8be21407d6e","name":"fbd287d9-215c-4ee7-a75a-e8be21407d6e","status":"Succeeded","startTime":"2020-12-25T07:38:55.3649336Z","endTime":"2020-12-25T07:53:42.9803967Z","percentComplete":1.0,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"aca2da45-3702-4664-a172-cecaa3dd09b5","provisioningState":"Succeeded","OperationState":"Completed"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/4ddb4bb6-97f4-48ad-876b-92b6ebaa9796?api-version=2020-06-14 cache-control: - no-cache content-length: - - '774' + - '510' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:40:34 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:54:08 GMT expires: - '-1' pragma: @@ -2056,54 +1929,59 @@ interactions: - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '199' + - '281' x-powered-by: - ASP.NET status: - code: 201 - message: Created + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto attached-database-configuration wait + - kusto cluster create Connection: - keep-alive ParameterSetName: - - --created --cluster-name --attached-database-configuration-name --resource-group + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103/AttachedDatabaseConfigurations/attachedDatabaseConfigurations2","name":"followercluster103/attachedDatabaseConfigurations2","type":"Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations","etag":"\"\"","location":"South - Central US","tags":{},"properties":{"clusterResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","databaseName":"Kustodatabase8","attachedDatabaseNames":["Kustodatabase8"],"defaultPrincipalsModificationKind":"Union","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103","name":"followercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"2020-12-25T07:52:30.1955988Z\"","location":"South + Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://followercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-followercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[{"value":"*"}],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"bde4d38a-7bdb-434d-8eca-9713224c0844","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' headers: cache-control: - no-cache content-length: - - '830' + - '1081' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:41:06 GMT + - Fri, 25 Dec 2020 07:54:08 GMT etag: - - '""' + - '"2020-12-25T07:52:30.1955988Z"' expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -2127,47 +2005,59 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - kusto attached-database-configuration show + - ad app create Connection: - keep-alive ParameterSetName: - - --attached-database-configuration-name --cluster-name --resource-group + - --display-name User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=startswith%28displayName%2C%27clicodegenkustotest%27%29&api-version=1.6 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103/AttachedDatabaseConfigurations/attachedDatabaseConfigurations2","name":"followercluster103/attachedDatabaseConfigurations2","type":"Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations","etag":"\"\"","location":"South - Central US","tags":{},"properties":{"clusterResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","databaseName":"Kustodatabase8","attachedDatabaseNames":["Kustodatabase8"],"defaultPrincipalsModificationKind":"Union","provisioningState":"Succeeded"}}' - headers: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f6f1c752-4616-4dc3-a8c4-dbcf1278f065","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"532997a9-e004-4b10-9d20-f5c5c5d42c43","applicationTemplateId":null,"appRoles":[],"availableToOtherTenants":false,"displayName":"clicodegenkustotest","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":[],"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"isDeviceOnlyAuthSupported":null,"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"logo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/logo","logoUrl":null,"mainLogo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/mainLogo","oauth2AllowIdTokenImplicitFlow":true,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow + the application to access clicodegenkustotest on behalf of the signed-in user.","adminConsentDisplayName":"Access + clicodegenkustotest","id":"cac68856-9104-480b-b4e4-0256a76dabce","isEnabled":true,"type":"User","userConsentDescription":"Allow + the application to access clicodegenkustotest on your behalf.","userConsentDisplayName":"Access + clicodegenkustotest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"orgRestrictions":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"signInAudience":"AzureADMyOrg","tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' cache-control: - no-cache content-length: - - '830' + - '1990' content-type: - - application/json; charset=utf-8 + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; date: - - Thu, 26 Nov 2020 03:41:08 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:54:12 GMT + duration: + - '2751288' expires: - '-1' + ocp-aad-diagnostics-server-name: + - ijVFWnS8toDqcJGeDqJSmj3LjdONdHtTHNwmrTuuHnk= + ocp-aad-session-key: + - Aab4172ElkVM3ZFUDZHEDMUAeZBZj-LRWFN1iZNFJhQ6gULVwceWKKu__NgO8uZTQ3qcmYtzzdnQxU1Lz2o0ClLSasJcdrnIbE4IlJ-Cl-S2MnJvHYD2cip_o2hFeFoj.3rT-Omzf7TMAUPpZrZHzI2Rr3XBAYOm-S2b8tH06Sho pragma: - no-cache - set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + request-id: + - 0e661e50-699c-4975-a1a2-ae63837f055a strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' x-powered-by: - ASP.NET status: @@ -2181,47 +2071,55 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - kusto data-connection show + - ad app create Connection: - keep-alive ParameterSetName: - - --cluster-name --data-connection-name --database-name --resource-group + - --display-name User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27532997a9-e004-4b10-9d20-f5c5c5d42c43%27%29&api-version=1.6 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"South - Central US","kind":"EventHub","tags":{},"properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","tableName":"","mappingRuleName":"","dataFormat":"","eventSystemProperties":[],"compression":"None","provisioningState":"Succeeded"}}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' headers: + access-control-allow-origin: + - '*' cache-control: - no-cache content-length: - - '878' + - '121' content-type: - - application/json; charset=utf-8 + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; date: - - Thu, 26 Nov 2020 03:41:11 GMT - etag: - - '""' + - Fri, 25 Dec 2020 07:54:12 GMT + duration: + - '2308859' expires: - '-1' + ocp-aad-diagnostics-server-name: + - dTCMauzYuQyKUQoyzj/uErFFFT4rpw4bn1xQVAfZTwo= + ocp-aad-session-key: + - 7350PQxc25_jsPcW29b_2sAchvhCh3BCE4IlEKCsuy66100LCT6zOzmPEutPYUuVTO2xAajaDgmTOScY8skkHStQX90dUm2wbdgJLozydtrNEwXNjZSeu3Uu65HDed33.JJkOGH0y4d8Nk9AvQK14vOeW78I32loGSQkyCM6mmKE pragma: - no-cache - set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + request-id: + - 6417bd4d-43cf-4632-a8f2-c1b901ba5f16 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' x-powered-by: - ASP.NET status: @@ -2235,70 +2133,3392 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - kusto database list + - ad app create Connection: - keep-alive ParameterSetName: - - --cluster-name --resource-group + - --display-name User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases?api-version=2020-06-14 + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=appId%20eq%20%27532997a9-e004-4b10-9d20-f5c5c5d42c43%27&api-version=1.6 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South - Central US","kind":"ReadWrite","properties":{"isFollowed":true,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}]}' - headers: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f6f1c752-4616-4dc3-a8c4-dbcf1278f065","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"532997a9-e004-4b10-9d20-f5c5c5d42c43","applicationTemplateId":null,"appRoles":[],"availableToOtherTenants":false,"displayName":"clicodegenkustotest","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":[],"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"isDeviceOnlyAuthSupported":null,"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"logo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/logo","logoUrl":null,"mainLogo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/mainLogo","oauth2AllowIdTokenImplicitFlow":true,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow + the application to access clicodegenkustotest on behalf of the signed-in user.","adminConsentDisplayName":"Access + clicodegenkustotest","id":"cac68856-9104-480b-b4e4-0256a76dabce","isEnabled":true,"type":"User","userConsentDescription":"Allow + the application to access clicodegenkustotest on your behalf.","userConsentDisplayName":"Access + clicodegenkustotest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"orgRestrictions":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"signInAudience":"AzureADMyOrg","tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' cache-control: - no-cache content-length: - - '556' + - '1990' content-type: - - application/json; charset=utf-8 + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; date: - - Thu, 26 Nov 2020 03:41:13 GMT + - Fri, 25 Dec 2020 07:54:13 GMT + duration: + - '2386519' expires: - '-1' + ocp-aad-diagnostics-server-name: + - smoHNtS+2mT2UQ4ztNQf8/DWpe5xAihwU/+gEXU+KGA= + ocp-aad-session-key: + - MhoOd5WcMZEAgC3oawCvhKXYndUi81RDuBq9yVHxCaVKbPlv8j7cH9MGmTdUE9v8OxjMp-ODRfTl5yLwwet0rJCwfZP14PBH8Sk-k-D6HnXkyANJqtBkye1DV-IkFavU.VtRiFPNHP95oC8Q4Jzl3kUq_zW6QM-JVoUwbOiAMFoo pragma: - no-cache - set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + request-id: + - 83d1c553-1618-42c2-ad5b-a94423f26c2b strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' x-powered-by: - ASP.NET status: code: 200 message: OK - request: - body: null + body: '{"appRoles": [], "availableToOtherTenants": false, "informationalUrls": + {}, "knownClientApplications": [], "oauth2AllowImplicitFlow": false, "oauth2AllowUrlPathMatching": + false, "oauth2Permissions": [{"adminConsentDescription": "Allow the application + to access clicodegenkustotest on behalf of the signed-in user.", "adminConsentDisplayName": + "Access clicodegenkustotest", "id": "cac68856-9104-480b-b4e4-0256a76dabce", + "isEnabled": true, "type": "User", "userConsentDescription": "Allow the application + to access clicodegenkustotest on your behalf.", "userConsentDisplayName": "Access + clicodegenkustotest", "value": "user_impersonation"}], "oauth2RequirePostResponse": + false, "orgRestrictions": [], "publisherDomain": "AzureSDKTeam.onmicrosoft.com", + "replyUrls": [], "requiredResourceAccess": [], "signInAudience": "AzureADMyOrg", + "displayName": "clicodegenkustotest", "identifierUris": []}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - kusto attached-database-configuration list + - ad app create Connection: - keep-alive + Content-Length: + - '890' + Content-Type: + - application/json; charset=utf-8 ParameterSetName: - - --cluster-name --resource-group + - --display-name User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/attachedDatabaseConfigurations?api-version=2020-06-14 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US + method: PATCH + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/f6f1c752-4616-4dc3-a8c4-dbcf1278f065?api-version=1.6 response: body: - string: '{"value":[]}' + string: '' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + date: + - Fri, 25 Dec 2020 07:54:14 GMT + duration: + - '2697780' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - k61m+CoHiYiBoNhKi4zqwZv6ZvBOiGqcsI685uGGgKE= + ocp-aad-session-key: + - Wqw3h8CU55BV82hoG8ETnPvvIvRwi6WcYbgWjDuzMRGrmHfpQmGmXuc2vzoMQMv8r3BXGQQmX_asf1ERyElYFq38DxhgpR1UmZRrkQCig9MHXpi07o4IpXPQ7nJeOM-q.WB4G0xm2Ev82ljfS-DgprDvFc1GNx2TOOHQZ_yiXsvg + pragma: + - no-cache + request-id: + - 3581ac64-bec1-45ab-b2f3-1b3dd08d2c7c + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + ParameterSetName: + - --display-name + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=identifierUris%2Fany%28s%3As%20eq%20%27532997a9-e004-4b10-9d20-f5c5c5d42c43%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Fri, 25 Dec 2020 07:54:14 GMT + duration: + - '2253203' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - f5UfqJnank+74tApCdOiY3tJLB9CaCNOSffMO11PAVw= + ocp-aad-session-key: + - YdK3w2wKCQwjeZVl68E45EOJ817zNtnz7l_KThB7wdZAllTzyoA0TN47fyXtI9AFvDagsLqC93PR6ChB0xwGc00nPEoGIvR5wfHPGGRoBlcEqDPjoMCa7Dw-o5oeCevJ.m0r4jQLfsrBnbXvqs-wBwpXNTJjw86HEdmvqoiixdHs + pragma: + - no-cache + request-id: + - d7d27ed1-86e3-4b7a-bf17-9318d902e99a + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + ParameterSetName: + - --display-name + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications?$filter=appId%20eq%20%27532997a9-e004-4b10-9d20-f5c5c5d42c43%27&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f6f1c752-4616-4dc3-a8c4-dbcf1278f065","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"532997a9-e004-4b10-9d20-f5c5c5d42c43","applicationTemplateId":null,"appRoles":[],"availableToOtherTenants":false,"displayName":"clicodegenkustotest","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":[],"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"isDeviceOnlyAuthSupported":null,"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"logo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/logo","logoUrl":null,"mainLogo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/mainLogo","oauth2AllowIdTokenImplicitFlow":true,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow + the application to access clicodegenkustotest on behalf of the signed-in user.","adminConsentDisplayName":"Access + clicodegenkustotest","id":"cac68856-9104-480b-b4e4-0256a76dabce","isEnabled":true,"type":"User","userConsentDescription":"Allow + the application to access clicodegenkustotest on your behalf.","userConsentDisplayName":"Access + clicodegenkustotest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"orgRestrictions":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"signInAudience":"AzureADMyOrg","tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1990' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Fri, 25 Dec 2020 07:54:15 GMT + duration: + - '2549177' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - D9qX3xhgVpGG/rbiIW9mZYKzCiRqH69i5/7VTxN/cV4= + ocp-aad-session-key: + - 0bfns-NfnUjYp-suHe7MCF28IfciCw2rgo2OJ01eFhqji8ySSZYa2CgNhstRtac8pc3O6uj3E81JOaVKutc2DQWL7R9wkDWHpuEQNAqrNVdPizi_-SMBtL-uXKJrV9oX.H2P9FGiUcSz8eH9aTsduRElg2OJaoWiEcyBJbHMbYz0 + pragma: + - no-cache + request-id: + - 2d0c1fa8-1a18-4c88-8a88-bf4afa9823e4 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '2' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + ParameterSetName: + - --display-name + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-graphrbac/0.60.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/applications/f6f1c752-4616-4dc3-a8c4-dbcf1278f065?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.Application","objectType":"Application","objectId":"f6f1c752-4616-4dc3-a8c4-dbcf1278f065","deletionTimestamp":null,"acceptMappedClaims":null,"addIns":[],"appId":"532997a9-e004-4b10-9d20-f5c5c5d42c43","applicationTemplateId":null,"appRoles":[],"availableToOtherTenants":false,"displayName":"clicodegenkustotest","errorUrl":null,"groupMembershipClaims":null,"homepage":null,"identifierUris":[],"informationalUrls":{"termsOfService":null,"support":null,"privacy":null,"marketing":null},"isDeviceOnlyAuthSupported":null,"keyCredentials":[],"knownClientApplications":[],"logoutUrl":null,"logo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/logo","logoUrl":null,"mainLogo@odata.mediaEditLink":"directoryObjects/f6f1c752-4616-4dc3-a8c4-dbcf1278f065/Microsoft.DirectoryServices.Application/mainLogo","oauth2AllowIdTokenImplicitFlow":true,"oauth2AllowImplicitFlow":false,"oauth2AllowUrlPathMatching":false,"oauth2Permissions":[{"adminConsentDescription":"Allow + the application to access clicodegenkustotest on behalf of the signed-in user.","adminConsentDisplayName":"Access + clicodegenkustotest","id":"cac68856-9104-480b-b4e4-0256a76dabce","isEnabled":true,"type":"User","userConsentDescription":"Allow + the application to access clicodegenkustotest on your behalf.","userConsentDisplayName":"Access + clicodegenkustotest","value":"user_impersonation"}],"oauth2RequirePostResponse":false,"optionalClaims":null,"orgRestrictions":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","recordConsentConditions":null,"replyUrls":[],"requiredResourceAccess":[],"samlMetadataUrl":null,"signInAudience":"AzureADMyOrg","tokenEncryptionKeyId":null}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1987' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Fri, 25 Dec 2020 07:54:15 GMT + duration: + - '2278405' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - WFpbqBe9VBYZJ4prsE8/XtQF42hFH+gf5apqopVoOHE= + ocp-aad-session-key: + - VMuk9snhT69lPIJgedrrqDBnNPu4D8b-sMpm8VyLtfLOEY8licq1_DLfDDBxySfrjg_CXMbBjmzCZZH-GSADKo_UTFKhXQQUAGtHpkLXBDabHDnYNLy9rBeHIUVkv08-.hu3j39WOCZMI1J-4NsX12Br31QkDmflUVMPhMjwg6_0 + pragma: + - no-cache + request-id: + - 8ee434e1-7be2-40dd-aea0-5fed91e3ea07 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-ms-resource-unit: + - '1' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "sku": {"name": "Standard_D11_v2", "capacity": + 2, "tier": "Standard"}, "identity": {"type": "SystemAssigned"}, "properties": + {"enableStreamingIngest": true, "keyVaultProperties": {"keyName": "", "keyVersion": + "", "keyVaultUri": ""}, "enablePurge": true, "enableDoubleEncryption": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + Content-Length: + - '318' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"southcentralus","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"properties":{"state":"Creating","enableStreamingIngest":true,"keyVaultProperties":{"keyName":"","keyVersion":"","keyVaultUri":""},"enablePurge":true,"enableDoubleEncryption":false,"provisioningState":"Creating"},"identity":{"type":"SystemAssigned"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '619' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:54:28 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:54:27.2240609Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:54:58 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:54:27.2240609Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:55:28 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '298' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:54:27.2240609Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:55:58 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '297' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:54:27.2240609Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:56:29 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '296' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:54:27.2240609Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:56:59 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '295' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:54:27.2240609Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:57:29 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '294' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:54:27.2240609Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:57:59 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '293' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:58:30 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '292' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:59:01 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '291' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 07:59:31 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '290' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:00:01 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '290' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:00:33 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '289' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:01:03 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '288' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:01:33 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '287' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:02:03 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '286' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:02:34 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '285' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:03:05 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '284' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:03:35 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '283' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:04:05 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '282' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:04:35 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '281' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:05:06 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '289' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:05:37 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '288' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:06:07 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '287' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:06:38 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '286' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:07:08 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '285' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:07:38 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '284' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:08:09 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '283' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Running","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T07:58:29.8654218Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '507' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:08:40 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '282' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/51f90861-2b98-4e5e-a86c-ffc43df675cd?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/51f90861-2b98-4e5e-a86c-ffc43df675cd","name":"51f90861-2b98-4e5e-a86c-ffc43df675cd","status":"Succeeded","startTime":"2020-12-25T07:54:27.2240609Z","endTime":"2020-12-25T08:08:49.1594333Z","percentComplete":1.0,"properties":{"OperationKind":"ClusterCreateExternal","RootActivityId":"2b6a60f4-ccba-4c35-b542-8093bd9c0761","provisioningState":"Succeeded","OperationState":"Completed"}}' + headers: + cache-control: + - no-cache + content-length: + - '510' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:09:10 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '281' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --type --location --enable-purge --enable-streaming-ingest + --key-vault-properties --sku --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"2020-12-25T08:08:27.4014500Z\"","location":"South + Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[{"value":"*"}],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"4da6c7d7-5ab9-4dad-8bf3-7f614a8b9492","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1073' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:09:10 GMT + etag: + - '"2020-12-25T08:08:27.4014500Z"' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster wait + Connection: + - keep-alive + ParameterSetName: + - --created --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"2020-12-25T08:08:27.4014500Z\"","location":"South + Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[{"value":"*"}],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"4da6c7d7-5ab9-4dad-8bf3-7f614a8b9492","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1073' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:09:13 GMT + etag: + - '"2020-12-25T08:08:27.4014500Z"' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "kind": "ReadWrite", "properties": {"softDeletePeriod": + "P1D"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database create + Connection: + - keep-alive + Content-Length: + - '94' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name --database-name --read-write-database --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"southcentralus","kind":"ReadWrite","properties":{"softDeletePeriod":"P1D","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/e7efb2a8-6e6c-442d-b07a-0d79d2a7c7f4?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '445' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:09:15 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --database-name --read-write-database --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/e7efb2a8-6e6c-442d-b07a-0d79d2a7c7f4?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/e7efb2a8-6e6c-442d-b07a-0d79d2a7c7f4","name":"e7efb2a8-6e6c-442d-b07a-0d79d2a7c7f4","status":"Succeeded","startTime":"2020-12-25T08:09:15.8242268Z","endTime":"2020-12-25T08:09:17.7168821Z","percentComplete":1.0,"properties":{"OperationKind":"DatabaseCreate","RootActivityId":"a6243f67-2a22-4389-a75d-fd4377ab9e35","provisioningState":"Succeeded","OperationState":"Completed"}}' + headers: + cache-control: + - no-cache + content-length: + - '503' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:09:45 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --database-name --read-write-database --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South + Central US","kind":"ReadWrite","tags":{},"properties":{"isFollowed":false,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '555' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:09:45 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "kind": "EventHub", "properties": {"eventHubResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003", + "consumerGroup": "$Default"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub create + Connection: + - keep-alive + Content-Length: + - '350' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name --data-connection-name --database-name --location --consumer-group + --event-hub-resource-id --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"southcentralus","kind":"EventHub","properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/20304fe5-ea90-4f7a-9e6a-8dce271d849e?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '765' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:09:48 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --data-connection-name --database-name --location --consumer-group + --event-hub-resource-id --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/20304fe5-ea90-4f7a-9e6a-8dce271d849e?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/20304fe5-ea90-4f7a-9e6a-8dce271d849e","name":"20304fe5-ea90-4f7a-9e6a-8dce271d849e","status":"Succeeded","startTime":"2020-12-25T08:09:49.1136281Z","endTime":"2020-12-25T08:10:16.2647139Z","percentComplete":1.0,"properties":{}}' + headers: + cache-control: + - no-cache + content-length: + - '354' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:19 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '298' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub create + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --data-connection-name --database-name --location --consumer-group + --event-hub-resource-id --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"South + Central US","kind":"EventHub","tags":{},"properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","tableName":"","mappingRuleName":"","dataFormat":"","eventSystemProperties":[],"compression":"None","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '878' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:19 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "properties": {"databaseName": "Kustodatabase8", + "clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103", + "defaultPrincipalsModificationKind": "Union"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto attached-database-configuration create + Connection: + - keep-alive + Content-Length: + - '345' + Content-Type: + - application/json + ParameterSetName: + - --attached-database-configuration-name --cluster-name --location --cluster-resource-id + --database-name --default-principals-modification-kind --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103/AttachedDatabaseConfigurations/attachedDatabaseConfigurations2","name":"followercluster103/attachedDatabaseConfigurations2","type":"Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations","etag":"\"\"","location":"southcentralus","properties":{"databaseName":"Kustodatabase8","clusterResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","defaultPrincipalsModificationKind":"Union","provisioningState":"Creating"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/f9ce360a-9844-4007-8732-3de9b8c6670c?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '774' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:21 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto attached-database-configuration create + Connection: + - keep-alive + ParameterSetName: + - --attached-database-configuration-name --cluster-name --location --cluster-resource-id + --database-name --default-principals-modification-kind --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationResults/f9ce360a-9844-4007-8732-3de9b8c6670c?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/southcentralus/operationresults/f9ce360a-9844-4007-8732-3de9b8c6670c","name":"f9ce360a-9844-4007-8732-3de9b8c6670c","status":"Succeeded","startTime":"2020-12-25T08:10:22.2599138Z","endTime":"2020-12-25T08:10:24.4424761Z","percentComplete":1.0,"properties":{"OperationKind":"FollowerDatabaseCreate","RootActivityId":"2c2e0bc2-6f7e-464c-b0f2-66007ab96446","provisioningState":"Succeeded","OperationState":"Completed"}}' + headers: + cache-control: + - no-cache + content-length: + - '511' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:51 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto attached-database-configuration create + Connection: + - keep-alive + ParameterSetName: + - --attached-database-configuration-name --cluster-name --location --cluster-resource-id + --database-name --default-principals-modification-kind --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103/AttachedDatabaseConfigurations/attachedDatabaseConfigurations2","name":"followercluster103/attachedDatabaseConfigurations2","type":"Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations","etag":"\"\"","location":"South + Central US","tags":{},"properties":{"clusterResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","databaseName":"Kustodatabase8","attachedDatabaseNames":["Kustodatabase8"],"defaultPrincipalsModificationKind":"Union","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '830' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:52 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto attached-database-configuration wait + Connection: + - keep-alive + ParameterSetName: + - --created --cluster-name --attached-database-configuration-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103/AttachedDatabaseConfigurations/attachedDatabaseConfigurations2","name":"followercluster103/attachedDatabaseConfigurations2","type":"Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations","etag":"\"\"","location":"South + Central US","tags":{},"properties":{"clusterResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","databaseName":"Kustodatabase8","attachedDatabaseNames":["Kustodatabase8"],"defaultPrincipalsModificationKind":"Union","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '830' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:54 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto attached-database-configuration show + Connection: + - keep-alive + ParameterSetName: + - --attached-database-configuration-name --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103/AttachedDatabaseConfigurations/attachedDatabaseConfigurations2","name":"followercluster103/attachedDatabaseConfigurations2","type":"Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations","etag":"\"\"","location":"South + Central US","tags":{},"properties":{"clusterResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","databaseName":"Kustodatabase8","attachedDatabaseNames":["Kustodatabase8"],"defaultPrincipalsModificationKind":"Union","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '830' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:56 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection show + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --data-connection-name --database-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"South + Central US","kind":"EventHub","tags":{},"properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","tableName":"","mappingRuleName":"","dataFormat":"","eventSystemProperties":[],"compression":"None","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '878' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:58 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database list + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases?api-version=2020-06-14 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South + Central US","kind":"ReadWrite","properties":{"isFollowed":true,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '556' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:10:59 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto attached-database-configuration list + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/attachedDatabaseConfigurations?api-version=2020-06-14 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:00 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database show + Connection: + - keep-alive + ParameterSetName: + - --database-name --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South + Central US","kind":"ReadWrite","tags":{},"properties":{"isFollowed":true,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:01 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '298' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database list + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases?api-version=2020-06-14 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South + Central US","kind":"ReadWrite","properties":{"isFollowed":true,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '556' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:02 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster list-sku + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/skus?api-version=2020-06-14 + response: + body: + string: '{"value":[{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D11_v2","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":8,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D12_v2","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":16,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D13_v2","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D14_v2","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS13_v2+1TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS13_v2+2TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS14_v2+3TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS14_v2+4TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L4s","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":16,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L8s","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L16s","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L8s_v2","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L16s_v2","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E64i_v3","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E80ids_v4","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E2a_v4","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E4a_v4","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E8a_v4","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E16a_v4","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E8as_v4+1TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E8as_v4+2TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E16as_v4+3TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E16as_v4+4TB_PS","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D32d_v4","tier":"Standard","locationInfo":[{"location":"South + Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '5613' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:04 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster show + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"2020-12-25T08:10:24.1275062Z\"","location":"South + Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[{"value":"*"}],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"4da6c7d7-5ab9-4dad-8bf3-7f614a8b9492","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}' + headers: + cache-control: + - no-cache + content-length: + - '1073' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:06 GMT + etag: + - '"2020-12-25T08:10:24.1275062Z"' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster list + Connection: + - keep-alive + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/clusters?api-version=2020-06-14 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103","name":"followercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"2020-12-25T08:10:24.1275062Z\"","location":"South + Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://followercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-followercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[{"value":"*"}],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"bde4d38a-7bdb-434d-8eca-9713224c0844","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"2020-12-25T08:10:24.1275062Z\"","location":"South + Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[{"value":"*"}],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"4da6c7d7-5ab9-4dad-8bf3-7f614a8b9492","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2167' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:08 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "kind": "EventHub", "properties": {"eventHubResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003", + "consumerGroup": "$Default"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub update + Connection: + - keep-alive + Content-Length: + - '350' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name --data-connection-name --database-name --location --consumer-group + --event-hub-resource-id --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"South + Central US","kind":"EventHub","tags":{},"properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationResults/bbd05618-7179-4ef6-9d95-6089cdf65d54?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '777' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:08 GMT + etag: + - '""' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/bbd05618-7179-4ef6-9d95-6089cdf65d54?api-version=2020-06-14&operationResultResponseType=Location + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub update + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --data-connection-name --database-name --location --consumer-group + --event-hub-resource-id --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/bbd05618-7179-4ef6-9d95-6089cdf65d54?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/bbd05618-7179-4ef6-9d95-6089cdf65d54","name":"bbd05618-7179-4ef6-9d95-6089cdf65d54","status":"Succeeded","startTime":"2020-12-25T08:11:09.7213521Z","endTime":"2020-12-25T08:11:11.5396463Z","percentComplete":1.0,"properties":{}}' + headers: + cache-control: + - no-cache + content-length: + - '356' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:40 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub update + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --data-connection-name --database-name --location --consumer-group + --event-hub-resource-id --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"South + Central US","kind":"EventHub","tags":{},"properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","tableName":null,"mappingRuleName":null,"dataFormat":null,"eventSystemProperties":[],"compression":"None","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '884' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:40 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub data-connection-validation + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --database-name --name --consumer-group --event-hub-resource-id + --resource-group + User-Agent: + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-resource/10.3.0 Azure-SDK-For-Python + AZURECLI/2.16.0 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-12-25T07:37:29Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '428' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:11:40 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: '{"dataConnectionName": "DataConnections8", "properties": {"location": "westus", + "kind": "EventHub", "properties": {"eventHubResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003", + "consumerGroup": "$Default"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub data-connection-validation + Connection: + - keep-alive + Content-Length: + - '400' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name --database-name --name --consumer-group --event-hub-resource-id + --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnectionValidation?api-version=2020-06-14 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationResults/d3045c53-fd04-4f73-9560-d6478f238ba3?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 25 Dec 2020 08:11:42 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/d3045c53-fd04-4f73-9560-d6478f238ba3?api-version=2020-06-14&operationResultResponseType=Location + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub data-connection-validation + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --database-name --name --consumer-group --event-hub-resource-id + --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/d3045c53-fd04-4f73-9560-d6478f238ba3?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/d3045c53-fd04-4f73-9560-d6478f238ba3","name":"d3045c53-fd04-4f73-9560-d6478f238ba3","status":"Succeeded","startTime":"2020-12-25T08:11:42.9438528Z","endTime":"2020-12-25T08:11:46.710678Z","percentComplete":1.0,"properties":{"Value":[]}}' + headers: + cache-control: + - no-cache + content-length: + - '365' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:12:12 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection event-hub data-connection-validation + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --database-name --name --consumer-group --event-hub-resource-id + --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/d3045c53-fd04-4f73-9560-d6478f238ba3?api-version=2020-06-14&operationResultResponseType=Location + response: + body: + string: '{"Value":[]}' headers: cache-control: - no-cache @@ -2307,7 +5527,281 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:41:15 GMT + - Fri, 25 Dec 2020 08:12:12 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '298' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"kind": "ReadWrite", "properties": {"softDeletePeriod": "P1D"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database update + Connection: + - keep-alive + Content-Length: + - '64' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name --database-name --read-write-database --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South + Central US","kind":"ReadWrite","tags":{},"properties":{"softDeletePeriod":"P1D","provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationResults/6bbecaf3-fbf5-4786-aff6-0825b2519588?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '457' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:12:14 GMT + etag: + - '""' + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/6bbecaf3-fbf5-4786-aff6-0825b2519588?api-version=2020-06-14&operationResultResponseType=Location + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database update + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --database-name --read-write-database --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/6bbecaf3-fbf5-4786-aff6-0825b2519588?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/6bbecaf3-fbf5-4786-aff6-0825b2519588","name":"6bbecaf3-fbf5-4786-aff6-0825b2519588","status":"Succeeded","startTime":"2020-12-25T08:12:15.6691632Z","endTime":"2020-12-25T08:12:17.9243696Z","percentComplete":1.0,"properties":{"OperationKind":"DatabaseCreate","RootActivityId":"c1dafe3e-0b99-43e9-a616-5b5ecfda66c5","provisioningState":"Succeeded","OperationState":"Completed"}}' + headers: + cache-control: + - no-cache + content-length: + - '505' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:12:46 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto database update + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --database-name --read-write-database --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South + Central US","kind":"ReadWrite","tags":{},"properties":{"isFollowed":true,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:12:46 GMT + etag: + - '""' + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103", + "attachedDatabaseConfigurationName": "attachedDatabaseConfigurations2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster detach-follower-database + Connection: + - keep-alive + Content-Length: + - '293' + Content-Type: + - application/json + ParameterSetName: + - --cluster-name --attached-database-configuration-name --cluster-resource-id + --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/detachFollowerDatabases?api-version=2020-06-14 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationResults/ca9ad7f2-ce83-40c6-818e-e6e2bfdf87a6?api-version=2020-06-14 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 25 Dec 2020 08:12:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/ca9ad7f2-ce83-40c6-818e-e6e2bfdf87a6?api-version=2020-06-14&operationResultResponseType=Location + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster detach-follower-database + Connection: + - keep-alive + ParameterSetName: + - --cluster-name --attached-database-configuration-name --cluster-resource-id + --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/ca9ad7f2-ce83-40c6-818e-e6e2bfdf87a6?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/ca9ad7f2-ce83-40c6-818e-e6e2bfdf87a6","name":"ca9ad7f2-ce83-40c6-818e-e6e2bfdf87a6","status":"Succeeded","startTime":"2020-12-25T08:12:48.6479332Z","endTime":"2020-12-25T08:12:51.4433817Z","percentComplete":1.0,"properties":{"OperationKind":"FollowerDatabaseDetach","RootActivityId":"d1208c62-76f0-4b6e-af29-ff92f48a8c91","provisioningState":"Succeeded","OperationState":"Completed"}}' + headers: + cache-control: + - no-cache + content-length: + - '513' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:13:19 GMT expires: - '-1' pragma: @@ -2334,51 +5828,43 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto database show + - kusto cluster detach-follower-database Connection: - keep-alive ParameterSetName: - - --database-name --cluster-name --resource-group + - --cluster-name --attached-database-configuration-name --cluster-resource-id + --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/ca9ad7f2-ce83-40c6-818e-e6e2bfdf87a6?api-version=2020-06-14&operationResultResponseType=Location response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South - Central US","kind":"ReadWrite","tags":{},"properties":{"isFollowed":true,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}' + string: '' headers: cache-control: - no-cache content-length: - - '554' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Thu, 26 Nov 2020 03:41:16 GMT - etag: - - '""' + - Fri, 25 Dec 2020 08:13:19 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + - '298' x-powered-by: - ASP.NET status: @@ -2392,35 +5878,36 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - kusto database list + - kusto cluster list-follower-database Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/listFollowerDatabases?api-version=2020-06-14 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South - Central US","kind":"ReadWrite","properties":{"isFollowed":true,"softDeletePeriodInDays":1,"softDeletePeriod":"P1D","hotCachePeriodInDays":0,"statistics":{"size":0.0},"provisioningState":"Succeeded"}}]}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '556' + - '12' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:41:16 GMT + - Fri, 25 Dec 2020 08:13:20 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -2429,8 +5916,8 @@ interactions: - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' x-powered-by: - ASP.NET status: @@ -2444,51 +5931,70 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster list-sku + - kusto attached-database-configuration delete Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - --cluster-name --resource-group + - -y --name --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/skus?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/attachedDatabaseConfigurations/attachedDatabaseConfigurations2?api-version=2020-06-14 response: body: - string: '{"value":[{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D11_v2","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":8,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D12_v2","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":16,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D13_v2","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D14_v2","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS13_v2+1TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS13_v2+2TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS14_v2+3TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_DS14_v2+4TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L4s","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":16,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L8s","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L16s","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L8s_v2","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_L16s_v2","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E64i_v3","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E80ids_v4","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E2a_v4","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E4a_v4","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E8a_v4","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E16a_v4","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E8as_v4+1TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E8as_v4+2TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E16as_v4+3TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_E16as_v4+4TB_PS","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}},{"resourceType":"Microsoft.Kusto/clusters","sku":{"name":"Standard_D32d_v4","tier":"Standard","locationInfo":[{"location":"South - Central US","zones":[]}]},"capacity":{"minimum":2,"maximum":1000,"default":2,"scaleType":"Automatic"}}]}' + string: '' + headers: + cache-control: + - no-cache + date: + - Fri, 25 Dec 2020 08:13:22 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-powered-by: + - ASP.NET + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto data-connection delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -y --cluster-name --name --database-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/kustoeventhubconnection1?api-version=2020-06-14 + response: + body: + string: '' headers: cache-control: - no-cache - content-length: - - '5613' - content-type: - - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:41:17 GMT + - Fri, 25 Dec 2020 08:13:23 GMT expires: - '-1' pragma: @@ -2498,17 +6004,15 @@ interactions: - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' x-powered-by: - ASP.NET status: - code: 200 - message: OK + code: 204 + message: No Content - request: body: null headers: @@ -2517,32 +6021,34 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster show + - kusto database delete Connection: - keep-alive + Content-Length: + - '0' ParameterSetName: - - --cluster-name --resource-group + - -y --cluster-name --database-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}' + string: '' headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationResults/6898ffee-91e5-474d-b0c0-8e6fd84916d1?api-version=2020-06-14 cache-control: - no-cache content-length: - - '1032' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Thu, 26 Nov 2020 03:41:19 GMT - etag: - - '""' + - Fri, 25 Dec 2020 08:13:24 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/6898ffee-91e5-474d-b0c0-8e6fd84916d1?api-version=2020-06-14&operationResultResponseType=Location pragma: - no-cache set-cookie: @@ -2550,56 +6056,52 @@ interactions: - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' x-powered-by: - ASP.NET status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster list + - kusto database delete Connection: - keep-alive + ParameterSetName: + - -y --cluster-name --database-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/clusters?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/6898ffee-91e5-474d-b0c0-8e6fd84916d1?api-version=2020-06-14 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest2b6ojbfozsgdmwyzoo3y7vl6hylxl3p6vbxf6jl3zodehiu5rg5zcutjjnejvakmhxk5/providers/Microsoft.Kusto/Clusters/followercluster100","name":"followercluster100","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://followercluster100.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-followercluster100.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"96125bbe-b311-4589-9d15-6b61b2233cf8","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/followercluster103","name":"followercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://followercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-followercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"ab5fdc92-768b-4d1b-9913-5fdd5fddfad3","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103","name":"leadercluster103","type":"Microsoft.Kusto/Clusters","etag":"\"\"","location":"South - Central US","sku":{"name":"Standard_D11_v2","tier":"Standard","capacity":2},"tags":{},"properties":{"state":"Running","stateReason":null,"uri":"https://leadercluster103.southcentralus.kusto.windows.net","dataIngestionUri":"https://ingest-leadercluster103.southcentralus.kusto.windows.net","trustedExternalTenants":[],"virtualNetworkConfiguration":null,"optimizedAutoscale":null,"enableDiskEncryption":false,"enableStreamingIngest":true,"keyVaultProperties":null,"languageExtensions":{"value":[]},"enablePurge":true,"enableDoubleEncryption":false,"engineType":"V2","provisioningState":"Succeeded"},"identity":{"principalId":"667dcf7d-96d1-47cf-87a9-ed8e77b0fe1f","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"}}]}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/6898ffee-91e5-474d-b0c0-8e6fd84916d1","name":"6898ffee-91e5-474d-b0c0-8e6fd84916d1","status":"Succeeded","startTime":"2020-12-25T08:13:25.1057519Z","endTime":"2020-12-25T08:13:28.3738012Z","percentComplete":1.0,"properties":{"OperationKind":"DatabaseDelete","RootActivityId":"c0652eaa-d385-4372-a3da-96bad2544451","provisioningState":"Succeeded","OperationState":"Completed"}}' headers: cache-control: - no-cache content-length: - - '3126' + - '505' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:41:20 GMT + - Fri, 25 Dec 2020 08:13:54 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -2616,51 +6118,41 @@ interactions: code: 200 message: OK - request: - body: '{"location": "southcentralus", "kind": "EventHub", "properties": {"eventHubResourceId": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003", - "consumerGroup": "$Default"}}' + body: null headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - kusto data-connection event-hub update + - kusto cluster delete Connection: - keep-alive Content-Length: - - '350' - Content-Type: - - application/json + - '0' ParameterSetName: - - --cluster-name --data-connection-name --database-name --location --consumer-group - --event-hub-resource-id --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8/dataConnections/DataConnections8?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8/DataConnections/DataConnections8","name":"leadercluster103/KustoDatabase8/DataConnections8","type":"Microsoft.Kusto/Clusters/Databases/DataConnections","etag":"\"\"","location":"South - Central US","kind":"EventHub","tags":{},"properties":{"eventHubResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","consumerGroup":"$Default","provisioningState":"Accepted"}}' + string: '' headers: azure-asyncoperation: - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South - Central US/operationResults/6cd8b8ec-cdb6-4f0c-a29d-4674541623e1?api-version=2020-06-14 + Central US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 cache-control: - no-cache content-length: - - '777' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Thu, 26 Nov 2020 03:41:23 GMT - etag: - - '""' + - Fri, 25 Dec 2020 08:13:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/6cd8b8ec-cdb6-4f0c-a29d-4674541623e1?api-version=2020-06-14&operationResultResponseType=Location + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14&operationResultResponseType=Location pragma: - no-cache set-cookie: @@ -2670,166 +6162,206 @@ interactions: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-resource-requests: - - '197' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' x-powered-by: - ASP.NET status: code: 202 message: Accepted - request: - body: '{"kind": "ReadWrite", "properties": {"softDeletePeriod": "P1D"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto database update + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json ParameterSetName: - - --cluster-name --database-name --read-write-database --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103/Databases/KustoDatabase8","name":"leadercluster103/KustoDatabase8","type":"Microsoft.Kusto/Clusters/Databases","etag":"\"\"","location":"South - Central US","kind":"ReadWrite","tags":{},"properties":{"softDeletePeriod":"P1D","provisioningState":"Accepted"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South - Central US/operationResults/83b86b9c-30a9-41b7-8cb8-6360b4a3f452?api-version=2020-06-14 cache-control: - no-cache content-length: - - '457' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:41:54 GMT - etag: - - '""' + - Fri, 25 Dec 2020 08:14:27 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '299' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - kusto cluster delete + Connection: + - keep-alive + ParameterSetName: + - -y --cluster-name --resource-group + User-Agent: + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' + headers: + cache-control: + - no-cache + content-length: + - '501' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 25 Dec 2020 08:14:59 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/83b86b9c-30a9-41b7-8cb8-6360b4a3f452?api-version=2020-06-14&operationResultResponseType=Location pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '198' + - '298' x-powered-by: - ASP.NET status: - code: 202 - message: Accepted + code: 200 + message: OK - request: - body: '{"clusterResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/followercluster103", - "attachedDatabaseConfigurationName": "attachedDatabaseConfigurations2"}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster detach-follower-database + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '293' - Content-Type: - - application/json ParameterSetName: - - --cluster-name --attached-database-configuration-name --cluster-resource-id - --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/detachFollowerDatabases?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South - Central US/operationResults/072a7097-6365-416f-b4cf-1a937643ede2?api-version=2020-06-14 cache-control: - no-cache content-length: - - '0' + - '501' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:42:27 GMT + - Fri, 25 Dec 2020 08:15:29 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/072a7097-6365-416f-b4cf-1a937643ede2?api-version=2020-06-14&operationResultResponseType=Location pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '297' x-powered-by: - ASP.NET status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster list-follower-database + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - --cluster-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/listFollowerDatabases?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"value":[]}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '12' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:42:59 GMT + - Fri, 25 Dec 2020 08:15:59 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -2838,8 +6370,8 @@ interactions: - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '296' x-powered-by: - ASP.NET status: @@ -2849,38 +6381,34 @@ interactions: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster start + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - --cluster-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/start?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South - Central US/operationResults/e8548e26-9e5c-40ac-bd00-af9dca25a2d4?api-version=2020-06-14 cache-control: - no-cache content-length: - - '0' + - '501' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:43:01 GMT + - Fri, 25 Dec 2020 08:16:29 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/e8548e26-9e5c-40ac-bd00-af9dca25a2d4?api-version=2020-06-14&operationResultResponseType=Location pragma: - no-cache set-cookie: @@ -2888,254 +6416,257 @@ interactions: - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '295' x-powered-by: - ASP.NET status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster stop + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - --cluster-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/stop?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South - Central US/operationResults/193dea45-da08-4525-b38d-8532ce378171?api-version=2020-06-14 cache-control: - no-cache content-length: - - '0' + - '501' + content-type: + - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:43:34 GMT + - Fri, 25 Dec 2020 08:17:00 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/193dea45-da08-4525-b38d-8532ce378171?api-version=2020-06-14&operationResultResponseType=Location pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '294' x-powered-by: - ASP.NET status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto database delete + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -y --cluster-name --database-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/KustoDatabase8?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"BadRequest","message":"You are requesting an operation - that is not permitted in the cluster''s current state."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '129' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:06 GMT + - Fri, 25 Dec 2020 08:17:30 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '293' x-powered-by: - ASP.NET status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - kusto cluster delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"RequestConflict","message":"Cannot modify resource - with id ''/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/Clusters/leadercluster103'' - because the resource entity provisioning state is not terminal. Please wait - for the provisioning state to become terminal and then retry the request."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '426' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:09 GMT + - Fri, 25 Dec 2020 08:18:00 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '292' x-powered-by: - ASP.NET status: - code: 409 - message: Conflict + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto database-principal-assignment show + - kusto cluster delete Connection: - keep-alive ParameterSetName: - - --cluster-name --database-name --principal-assignment-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/Kustodatabase8/principalAssignments/kustoprincipal1?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"BadRequest","message":"You are requesting an operation - that is not permitted in the cluster''s current state."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '129' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:10 GMT + - Fri, 25 Dec 2020 08:18:30 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + - '291' x-powered-by: - ASP.NET status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: - body: '{"properties": {"principalId": "d9a1f322-1293-4595-91e3-f54f8bb34725", - "role": "Admin", "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", "principalType": - "App"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto database-principal-assignment create + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '164' - Content-Type: - - application/json ParameterSetName: - - --cluster-name --database-name --principal-id --principal-type --role --tenant-id - --principal-assignment-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/Kustodatabase8/principalAssignments/kustoprincipal1?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"BadRequest","message":"You are requesting an operation - that is not permitted in the cluster''s current state."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '129' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:13 GMT + - Fri, 25 Dec 2020 08:19:01 GMT expires: - '-1' pragma: @@ -3145,218 +6676,227 @@ interactions: - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '199' + - '290' x-powered-by: - ASP.NET status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto database-principal-assignment delete + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -y --cluster-name --database-name --principal-assignment-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/databases/Kustodatabase8/principalAssignments/kustoprincipal1?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"BadRequest","message":"You are requesting an operation - that is not permitted in the cluster''s current state."}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '129' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:15 GMT + - Fri, 25 Dec 2020 08:19:31 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '289' x-powered-by: - ASP.NET status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster-principal-assignment show + - kusto cluster delete Connection: - keep-alive ParameterSetName: - - --cluster-name --principal-assignment-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/principalAssignments/kustoprincipal1?api-version=2020-06-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"ClusterNotValidForPrincipals","message":"[BadRequest] - Cluster is in state ''Stopping'', cannot retrieve list of principals"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '141' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:15 GMT + - Fri, 25 Dec 2020 08:20:02 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=0ae556891a90acc8679c889b07dda3bbe88c7f0787602304c159f63d4e13032a;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + - '290' x-powered-by: - ASP.NET status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: - body: '{"properties": {"principalId": "d9a1f322-1293-4595-91e3-f54f8bb34725", - "role": "AllDatabasesViewer", "tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", - "principalType": "App"}}' + body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster-principal-assignment create + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '177' - Content-Type: - - application/json ParameterSetName: - - --cluster-name --principal-id --principal-type --role --tenant-id --principal-assignment-name - --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/principalAssignments/kustoprincipal1?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"ClusterNotValidForPrincipals","message":"[BadRequest] - Cluster is in state ''Stopping'', cannot retrieve list of principals"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Running","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:13:58.6483962Z","percentComplete":0.5,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Running","OperationState":"InProgress"}}' headers: cache-control: - no-cache content-length: - - '141' + - '501' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:18 GMT + - Fri, 25 Dec 2020 08:20:33 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-resource-requests: - - '199' + - '289' x-powered-by: - ASP.NET status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: body: null headers: Accept: - - application/json + - '*/*' Accept-Encoding: - gzip, deflate CommandName: - - kusto cluster-principal-assignment delete + - kusto cluster delete Connection: - keep-alive - Content-Length: - - '0' ParameterSetName: - - -y --cluster-name --principal-assignment-name --resource-group + - -y --cluster-name --resource-group User-Agent: - - AZURECLI/2.15.1 azsdk-python-kustomanagementclient/unknown Python/3.8.1 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Kusto/clusters/leadercluster103/principalAssignments/kustoprincipal1?api-version=2020-06-14 + - AZURECLI/2.16.0 azsdk-python-kustomanagementclient/unknown Python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South%20Central%20US/operationResults/5f1df057-2cb7-42d5-8fdb-647763f9537a?api-version=2020-06-14 response: body: - string: '{"error":{"code":"ClusterNotValidForPrincipals","message":"[BadRequest] - Cluster is in state ''Stopping'', cannot retrieve list of principals"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Kusto/locations/South + Central US/operationresults/5f1df057-2cb7-42d5-8fdb-647763f9537a","name":"5f1df057-2cb7-42d5-8fdb-647763f9537a","status":"Succeeded","startTime":"2020-12-25T08:13:58.3483983Z","endTime":"2020-12-25T08:21:01.9449795Z","percentComplete":1.0,"properties":{"OperationKind":"ClusterDelete","RootActivityId":"260005d6-0fab-4288-8833-83205923efbb","provisioningState":"Succeeded","OperationState":"Completed"}}' headers: cache-control: - no-cache content-length: - - '141' + - '504' content-type: - application/json; charset=utf-8 date: - - Thu, 26 Nov 2020 03:44:19 GMT + - Fri, 25 Dec 2020 08:21:04 GMT expires: - '-1' pragma: - no-cache set-cookie: - - ARRAffinity=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net - - ARRAffinitySameSite=d9eb9d0cfb267db2331cfc50bb3ad86d1f6c9f548fd5246b4374e2a622a744dc;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinity=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;Secure;Domain=armrp-kustorpscus.kusto.windows.net + - ARRAffinitySameSite=69e773f2a9c1f64efde6a16e27e80702b636e76f3187c575565bb2b8f8a626ab;Path=/;HttpOnly;SameSite=None;Secure;Domain=armrp-kustorpscus.kusto.windows.net strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding x-content-type-options: - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '288' x-powered-by: - ASP.NET status: - code: 400 - message: Bad Request + code: 200 + message: OK - request: body: null headers: @@ -3373,8 +6913,9 @@ interactions: ParameterSetName: - --name --namespace-name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 accept-language: - en-US method: DELETE @@ -3388,16 +6929,16 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 03:44:21 GMT + - Fri, 25 Dec 2020 08:21:06 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -3423,8 +6964,9 @@ interactions: ParameterSetName: - --name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 accept-language: - en-US method: DELETE @@ -3438,7 +6980,7 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 03:44:23 GMT + - Fri, 25 Dec 2020 08:21:07 GMT expires: - '-1' location: @@ -3473,8 +7015,9 @@ interactions: ParameterSetName: - --name -g User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 + - python/3.8.0 (Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.27) + msrest/0.6.18 msrest_azure/0.6.3 azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python + AZURECLI/2.16.0 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/operationresults/codegenlivetest000002?api-version=2018-01-01-preview response: @@ -3486,7 +7029,7 @@ interactions: content-length: - '0' date: - - Thu, 26 Nov 2020 03:44:54 GMT + - Fri, 25 Dec 2020 08:21:38 GMT expires: - '-1' pragma: diff --git a/src/kusto/azext_kusto/manual/tests/latest/test_kusto_scenario.py b/src/kusto/azext_kusto/manual/tests/latest/test_kusto_scenario.py index 7d38ce39262..c10c71196cb 100644 --- a/src/kusto/azext_kusto/manual/tests/latest/test_kusto_scenario.py +++ b/src/kusto/azext_kusto/manual/tests/latest/test_kusto_scenario.py @@ -28,7 +28,13 @@ def setup_scenario(test, rg): test.cmd('az eventhubs namespace create --name {eventhub_namespace} -g {rg}') test.cmd('az eventhubs eventhub create --name {eventhub_name} --namespace-name {eventhub_namespace} -g {rg}') step_kustoclusterscreateorupdate2(test,rg) - + try: + output = test.cmd('az ad app create --display-name {mySpName} ').get_output_in_json() + test.kwargs.update({'myPrincipalId': output.get('appId')}) + # "odata.metadata": "https://graph.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/$metadata#directoryObjects/@Element", + test.kwargs.update({'myTenantId': output.get('odata.metadata').split('/')[3]}) + except: + pass def cleanup_scenario(test, rg): try: @@ -40,7 +46,7 @@ def cleanup_scenario(test, rg): def step_kustoclusterscreateorupdate2(test, rg): test.cmd('az kusto cluster create ' '--cluster-name "{myCluster2}" ' - '--identity-type "SystemAssigned" ' + '--type "SystemAssigned" ' '--location "southcentralus" ' '--enable-purge true ' '--enable-streaming-ingest true ' @@ -66,7 +72,10 @@ def test_kusto_Scenario(self, rg): 'myAttachedDatabaseConfiguration2': 'attachedDatabaseConfigurations2', 'myDataConnection': 'DataConnections8', 'myDataConnection2': 'kustoeventhubconnection1', + 'mySpName': 'clicodegenkustotest', + 'myPrincipalId': '532997a9-e004-4b10-9d20-f5c5c5d42c43', + 'myTenantId': '54826b22-38d6-4fb2-bad9-b7b93a3e9c5a' }) from ....tests.latest import test_kusto_scenario as g - g.call_scenario(self, rg) + g.call_scenario(self, rg) \ No newline at end of file diff --git a/src/kusto/azext_kusto/tests/__init__.py b/src/kusto/azext_kusto/tests/__init__.py index 1a0ad476ea8..70488e93851 100644 --- a/src/kusto/azext_kusto/tests/__init__.py +++ b/src/kusto/azext_kusto/tests/__init__.py @@ -1,114 +1,116 @@ -# 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 inspect -import logging -import os -import sys -import traceback -import datetime as dt - -from azure.core.exceptions import AzureError -from azure.cli.testsdk.exceptions import CliTestError, CliExecutionError, JMESPathCheckAssertionError - - -logger = logging.getLogger('azure.cli.testsdk') -logger.addHandler(logging.StreamHandler()) -__path__ = __import__('pkgutil').extend_path(__path__, __name__) -exceptions = [] -test_map = dict() -SUCCESSED = "successed" -FAILED = "failed" - - -def try_manual(func): - def import_manual_function(origin_func): - from importlib import import_module - decorated_path = inspect.getfile(origin_func) - module_path = __path__[0] - if not decorated_path.startswith(module_path): - raise Exception("Decorator can only be used in submodules!") - manual_path = os.path.join( - decorated_path[module_path.rfind(os.path.sep) + 1:]) - manual_file_path, manual_file_name = os.path.split(manual_path) - module_name, _ = os.path.splitext(manual_file_name) - manual_module = "..manual." + \ - ".".join(manual_file_path.split(os.path.sep) + [module_name, ]) - return getattr(import_module(manual_module, package=__name__), origin_func.__name__) - - def get_func_to_call(): - func_to_call = func - try: - func_to_call = import_manual_function(func) - func_to_call = import_manual_function(func) - logger.info("Found manual override for %s(...)", func.__name__) - except (ImportError, AttributeError): - pass - return func_to_call - - def wrapper(*args, **kwargs): - func_to_call = get_func_to_call() - logger.info("running %s()...", func.__name__) - try: - test_map[func.__name__] = dict() - test_map[func.__name__]["result"] = SUCCESSED - test_map[func.__name__]["error_message"] = "" - test_map[func.__name__]["error_stack"] = "" - test_map[func.__name__]["error_normalized"] = "" - test_map[func.__name__]["start_dt"] = dt.datetime.utcnow() - ret = func_to_call(*args, **kwargs) - except (AssertionError, AzureError, CliTestError, CliExecutionError, SystemExit, - JMESPathCheckAssertionError) as e: - test_map[func.__name__]["end_dt"] = dt.datetime.utcnow() - test_map[func.__name__]["result"] = FAILED - test_map[func.__name__]["error_message"] = str(e).replace("\r\n", " ").replace("\n", " ")[:500] - test_map[func.__name__]["error_stack"] = traceback.format_exc().replace( - "\r\n", " ").replace("\n", " ")[:500] - logger.info("--------------------------------------") - logger.info("step exception: %s", e) - logger.error("--------------------------------------") - logger.error("step exception in %s: %s", func.__name__, e) - logger.info(traceback.format_exc()) - exceptions.append((func.__name__, sys.exc_info())) - else: - test_map[func.__name__]["end_dt"] = dt.datetime.utcnow() - return ret - - if inspect.isclass(func): - return get_func_to_call() - return wrapper - - -def calc_coverage(filename): - filename = filename.split(".")[0] - coverage_name = filename + "_coverage.md" - with open(coverage_name, "w") as f: - f.write("|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt|\n") - total = len(test_map) - covered = 0 - for k, v in test_map.items(): - if not k.startswith("step_"): - total -= 1 - continue - if v["result"] == SUCCESSED: - covered += 1 - f.write("|{step_name}|{result}|{error_message}|{error_stack}|{error_normalized}|{start_dt}|" - "{end_dt}|\n".format(step_name=k, **v)) - f.write("Coverage: {}/{}\n".format(covered, total)) - print("Create coverage\n", file=sys.stderr) - - -def raise_if(): - if exceptions: - if len(exceptions) <= 1: - raise exceptions[0][1][1] - message = "{}\nFollowed with exceptions in other steps:\n".format(str(exceptions[0][1][1])) - message += "\n".join(["{}: {}".format(h[0], h[1][1]) for h in exceptions[1:]]) - raise exceptions[0][1][0](message).with_traceback(exceptions[0][1][2]) +# 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 inspect +import logging +import os +import sys +import traceback +import datetime as dt + +from azure.core.exceptions import AzureError +from azure.cli.testsdk.exceptions import CliTestError, CliExecutionError, JMESPathCheckAssertionError + + +logger = logging.getLogger('azure.cli.testsdk') +logger.addHandler(logging.StreamHandler()) +__path__ = __import__('pkgutil').extend_path(__path__, __name__) +exceptions = [] +test_map = dict() +SUCCESSED = "successed" +FAILED = "failed" + + +def try_manual(func): + def import_manual_function(origin_func): + from importlib import import_module + decorated_path = inspect.getfile(origin_func).lower() + module_path = __path__[0].lower() + if not decorated_path.startswith(module_path): + raise Exception("Decorator can only be used in submodules!") + manual_path = os.path.join( + decorated_path[module_path.rfind(os.path.sep) + 1:]) + manual_file_path, manual_file_name = os.path.split(manual_path) + module_name, _ = os.path.splitext(manual_file_name) + manual_module = "..manual." + \ + ".".join(manual_file_path.split(os.path.sep) + [module_name, ]) + return getattr(import_module(manual_module, package=__name__), origin_func.__name__) + + def get_func_to_call(): + func_to_call = func + try: + func_to_call = import_manual_function(func) + logger.info("Found manual override for %s(...)", func.__name__) + except (ImportError, AttributeError): + pass + return func_to_call + + def wrapper(*args, **kwargs): + func_to_call = get_func_to_call() + logger.info("running %s()...", func.__name__) + try: + test_map[func.__name__] = dict() + test_map[func.__name__]["result"] = SUCCESSED + test_map[func.__name__]["error_message"] = "" + test_map[func.__name__]["error_stack"] = "" + test_map[func.__name__]["error_normalized"] = "" + test_map[func.__name__]["start_dt"] = dt.datetime.utcnow() + ret = func_to_call(*args, **kwargs) + except (AssertionError, AzureError, CliTestError, CliExecutionError, SystemExit, + JMESPathCheckAssertionError) as e: + use_exception_cache = os.getenv("TEST_EXCEPTION_CACHE") + if use_exception_cache is None or use_exception_cache.lower() != "true": + raise + test_map[func.__name__]["end_dt"] = dt.datetime.utcnow() + test_map[func.__name__]["result"] = FAILED + test_map[func.__name__]["error_message"] = str(e).replace("\r\n", " ").replace("\n", " ")[:500] + test_map[func.__name__]["error_stack"] = traceback.format_exc().replace( + "\r\n", " ").replace("\n", " ")[:500] + logger.info("--------------------------------------") + logger.info("step exception: %s", e) + logger.error("--------------------------------------") + logger.error("step exception in %s: %s", func.__name__, e) + logger.info(traceback.format_exc()) + exceptions.append((func.__name__, sys.exc_info())) + else: + test_map[func.__name__]["end_dt"] = dt.datetime.utcnow() + return ret + + if inspect.isclass(func): + return get_func_to_call() + return wrapper + + +def calc_coverage(filename): + filename = filename.split(".")[0] + coverage_name = filename + "_coverage.md" + with open(coverage_name, "w") as f: + f.write("|Scenario|Result|ErrorMessage|ErrorStack|ErrorNormalized|StartDt|EndDt|\n") + total = len(test_map) + covered = 0 + for k, v in test_map.items(): + if not k.startswith("step_"): + total -= 1 + continue + if v["result"] == SUCCESSED: + covered += 1 + f.write("|{step_name}|{result}|{error_message}|{error_stack}|{error_normalized}|{start_dt}|" + "{end_dt}|\n".format(step_name=k, **v)) + f.write("Coverage: {}/{}\n".format(covered, total)) + print("Create coverage\n", file=sys.stderr) + + +def raise_if(): + if exceptions: + if len(exceptions) <= 1: + raise exceptions[0][1][1] + message = "{}\nFollowed with exceptions in other steps:\n".format(str(exceptions[0][1][1])) + message += "\n".join(["{}: {}".format(h[0], h[1][1]) for h in exceptions[1:]]) + raise exceptions[0][1][0](message).with_traceback(exceptions[0][1][2]) diff --git a/src/kusto/azext_kusto/tests/latest/__init__.py b/src/kusto/azext_kusto/tests/latest/__init__.py index ee0c4f36bd0..c9cfdc73e77 100644 --- a/src/kusto/azext_kusto/tests/latest/__init__.py +++ b/src/kusto/azext_kusto/tests/latest/__init__.py @@ -1,12 +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__) +# 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__) diff --git a/src/kusto/azext_kusto/tests/latest/example_steps.py b/src/kusto/azext_kusto/tests/latest/example_steps.py index 10ed97fe1db..c2796d6946a 100644 --- a/src/kusto/azext_kusto/tests/latest/example_steps.py +++ b/src/kusto/azext_kusto/tests/latest/example_steps.py @@ -20,17 +20,17 @@ def step_attached_database_configuration_create(test, rg, checks=None): test.cmd('az kusto attached-database-configuration create ' '--name "{myAttachedDatabaseConfiguration2}" ' '--cluster-name "{myCluster}" ' - '--location "westus" ' + '--location "southcentralus" ' '--cluster-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Kusto/Clu' 'sters/{myCluster3}" ' '--database-name "kustodatabase" ' '--default-principals-modification-kind "Union" ' '--resource-group "{rg}"', - checks=checks) + checks=[]) test.cmd('az kusto attached-database-configuration wait --created ' '--name "{myAttachedDatabaseConfiguration2}" ' '--resource-group "{rg}"', - checks=[]) + checks=checks) # EXAMPLE: /AttachedDatabaseConfigurations/get/AttachedDatabaseConfigurationsGet @@ -63,18 +63,18 @@ def step_cluster_create(test, rg, checks=None): checks = [] test.cmd('az kusto cluster create ' '--name "{myCluster}" ' - '--identity-type "SystemAssigned" ' - '--location "westus" ' + '--type "SystemAssigned" ' + '--location "southcentralus" ' '--enable-double-encryption false ' '--enable-purge true ' '--enable-streaming-ingest true ' - '--sku name="Standard_L8s" capacity=2 tier="Standard" ' + '--sku name="Standard_D11_v2" capacity=2 tier="Standard" ' '--resource-group "{rg}"', - checks=checks) + checks=[]) test.cmd('az kusto cluster wait --created ' '--name "{myCluster}" ' '--resource-group "{rg}"', - checks=[]) + checks=checks) # EXAMPLE: /Clusters/get/KustoClustersGet @@ -136,8 +136,8 @@ def step_cluster_update(test, rg, checks=None): checks = [] test.cmd('az kusto cluster update ' '--name "{myCluster}" ' - '--identity-type "SystemAssigned" ' - '--location "westus" ' + '--type "SystemAssigned" ' + '--location "southcentralus" ' '--enable-purge true ' '--enable-streaming-ingest true ' '--key-vault-properties key-name="keyName" key-vault-uri="https://dummy.keyvault.com" ' @@ -343,7 +343,7 @@ def step_database_create(test, rg, checks=None): test.cmd('az kusto database create ' '--cluster-name "{myCluster}" ' '--database-name "KustoDatabase8" ' - '--read-write-database location="westus" soft-delete-period="P1D" ' + '--read-write-database location="southcentralus" soft-delete-period="P1D" ' '--resource-group "{rg}"', checks=checks) @@ -447,7 +447,7 @@ def step_data_connection_event_hub_create(test, rg, checks=None): '--cluster-name "{myCluster}" ' '--name "{myDataConnection}" ' '--database-name "KustoDatabase8" ' - '--location "westus" ' + '--location "southcentralus" ' '--consumer-group "testConsumerGroup1" ' '--event-hub-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.EventHu' 'b/namespaces/eventhubTestns1/eventhubs/eventhubTest1" ' @@ -489,7 +489,7 @@ def step_data_connection_event_hub_update(test, rg, checks=None): '--cluster-name "{myCluster}" ' '--name "{myDataConnection}" ' '--database-name "KustoDatabase8" ' - '--location "westus" ' + '--location "southcentralus" ' '--consumer-group "testConsumerGroup1" ' '--event-hub-resource-id "/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.EventHu' 'b/namespaces/eventhubTestns1/eventhubs/eventhubTest1" ' diff --git a/src/kusto/azext_kusto/tests/latest/recordings/test_kusto_Scenario.yaml b/src/kusto/azext_kusto/tests/latest/recordings/test_kusto_Scenario.yaml deleted file mode 100644 index 2871ba58882..00000000000 --- a/src/kusto/azext_kusto/tests/latest/recordings/test_kusto_Scenario.yaml +++ /dev/null @@ -1,320 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - eventhubs namespace create - Connection: - - keep-alive - ParameterSetName: - - --name -g - User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.15.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001","name":"clitest000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2020-11-25T05:12:35Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 25 Nov 2020 05:12:39 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "westus", "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - eventhubs namespace create - Connection: - - keep-alive - Content-Length: - - '71' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --name -g - User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002?api-version=2018-01-01-preview - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-25T05:12:48.26Z","updatedAt":"2020-11-25T05:12:48.26Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '761' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 25 Nov 2020 05:12:49 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - 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: - - '49' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - eventhubs namespace create - Connection: - - keep-alive - ParameterSetName: - - --name -g - User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002?api-version=2018-01-01-preview - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Created","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-25T05:12:48.26Z","updatedAt":"2020-11-25T05:12:48.26Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Activating"}}' - headers: - cache-control: - - no-cache - content-length: - - '761' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 25 Nov 2020 05:13:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - 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: - - eventhubs namespace create - Connection: - - keep-alive - ParameterSetName: - - --name -g - User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002?api-version=2018-01-01-preview - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-25T05:12:48.26Z","updatedAt":"2020-11-25T05:13:35.1Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '758' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 25 Nov 2020 05:13:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - 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: - - eventhubs namespace create - Connection: - - keep-alive - ParameterSetName: - - --name -g - User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002?api-version=2018-01-01-preview - response: - body: - string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002","name":"codegenlivetest000002","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"zoneRedundant":false,"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"kafkaEnabled":true,"provisioningState":"Succeeded","metricId":"7fd08dcc-a653-4b0f-8f8c-4dac889fdda4:codegenlivetest000002","createdAt":"2020-11-25T05:12:48.26Z","updatedAt":"2020-11-25T05:13:35.1Z","serviceBusEndpoint":"https://codegenlivetest000002.servicebus.windows.net:443/","status":"Active"}}' - headers: - cache-control: - - no-cache - content-length: - - '758' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 25 Nov 2020 05:13:50 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/SN1 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/SN1 - 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: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - eventhubs eventhub create - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - --name --namespace-name -g - User-Agent: - - python/3.8.1 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.4 - azure-mgmt-eventhub/4.1.0 Azure-SDK-For-Python AZURECLI/2.15.1 - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003?api-version=2017-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.EventHub/namespaces/codegenlivetest000002/eventhubs/livetest000003","name":"livetest000003","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2020-11-25T05:13:53.927Z","updatedAt":"2020-11-25T05:13:54.383Z","partitionIds":["0","1","2","3"]}}' - headers: - cache-control: - - no-cache - content-length: - - '523' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 25 Nov 2020 05:13:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Service-Bus-Resource-Provider/CH3 - - Microsoft-HTTPAPI/2.0 - server-sb: - - Service-Bus-Resource-Provider/CH3 - 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 -version: 1 diff --git a/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py b/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py index 838f841105d..6bc8933268c 100644 --- a/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py +++ b/src/kusto/azext_kusto/tests/latest/test_kusto_scenario.py @@ -1,135 +1,119 @@ -# -------------------------------------------------------------------------- -# 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 os -from azure.cli.testsdk import ScenarioTest -from azure.cli.testsdk import ResourceGroupPreparer -from .example_steps import step_cluster_create -from .example_steps import step_database_create -from .example_steps import step_data_connection_event_hub_create -from .example_steps import step_attached_database_configuration_create -from .example_steps import step_attached_database_configuration_show -from .example_steps import step_data_connection_show -from .example_steps import step_database_list -from .example_steps import step_attached_database_configuration_list -from .example_steps import step_database_show -from .example_steps import step_database_list -from .example_steps import step_cluster_list_sku -from .example_steps import step_cluster_show -from .example_steps import step_cluster_list -from .example_steps import step_data_connection_event_hub_update -from .example_steps import step_data_connection_event -from .example_steps import step_database_update -from .example_steps import step_cluster_detach_follower_database -from .example_steps import step_cluster_list_follower_database -from .example_steps import step_cluster_start -from .example_steps import step_cluster_stop -from .example_steps import step_cluster_update -from .example_steps import step_attached_database_configuration_delete -from .example_steps import step_data_connection_delete -from .example_steps import step_database_delete -from .example_steps import step_cluster_delete -from .example_steps import step_database_principal_assignment_show -from .example_steps import step_database_principal_assignment_create -from .example_steps import step_database_principal_assignment_delete -from .example_steps import step_cluster_principal_assignment_show -from .example_steps import step_cluster_principal_assignment_create -from .example_steps import step_cluster_principal_assignment_delete -from .. import ( - try_manual, - raise_if, - calc_coverage -) - - -TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) - - -# Env setup_scenario -@try_manual -def setup_scenario(test, rg): - pass - - -# Env cleanup_scenario -@try_manual -def cleanup_scenario(test, rg): - pass - - -# Testcase: Scenario -@try_manual -def call_scenario(test, rg): - setup_scenario(test, rg) - step_cluster_create(test, rg, checks=[]) - step_database_create(test, rg, checks=[]) - step_data_connection_event_hub_create(test, rg, checks=[]) - step_attached_database_configuration_create(test, rg, checks=[]) - step_attached_database_configuration_show(test, rg, checks=[]) - step_data_connection_show(test, rg, checks=[]) - step_database_list(test, rg, checks=[]) - step_attached_database_configuration_list(test, rg, checks=[]) - step_database_show(test, rg, checks=[]) - step_database_list(test, rg, checks=[]) - step_cluster_list_sku(test, rg, checks=[]) - step_cluster_show(test, rg, checks=[]) - step_cluster_list(test, rg, checks=[]) - # STEP NOT FOUND: KustoOperationsList - step_data_connection_event_hub_update(test, rg, checks=[]) - step_data_connection_event(test, rg, checks=[]) - # STEP NOT FOUND: KustoDataConnectionsCheckNameAvailability - step_database_update(test, rg, checks=[]) - step_cluster_detach_follower_database(test, rg, checks=[]) - # STEP NOT FOUND: KustoDatabaseCheckNameAvailability - step_cluster_list_follower_database(test, rg, checks=[]) - step_cluster_start(test, rg, checks=[]) - step_cluster_stop(test, rg, checks=[]) - step_cluster_update(test, rg, checks=[]) - # STEP NOT FOUND: KustoClustersCheckNameAvailability - step_attached_database_configuration_delete(test, rg, checks=[]) - step_data_connection_delete(test, rg, checks=[]) - step_database_delete(test, rg, checks=[]) - step_cluster_delete(test, rg, checks=[]) - step_database_principal_assignment_show(test, rg, checks=[]) - step_database_principal_assignment_create(test, rg, checks=[]) - step_database_principal_assignment_delete(test, rg, checks=[]) - step_cluster_principal_assignment_show(test, rg, checks=[]) - step_cluster_principal_assignment_create(test, rg, checks=[]) - step_cluster_principal_assignment_delete(test, rg, checks=[]) - cleanup_scenario(test, rg) - - -# Test class for Scenario -@try_manual -class KustoScenarioTest(ScenarioTest): - - @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') - def test_kusto_Scenario(self, rg): - - self.kwargs.update({ - 'subscription_id': self.get_subscription_id() - }) - - self.kwargs.update({ - 'myCluster4': 'default', - 'myAttachedDatabaseConfiguration3': 'default', - 'myCluster2': 'leader4', - 'myCluster3': 'KustoClusterLeader', - 'myCluster': 'kustoclusterrptest4', - 'myAttachedDatabaseConfiguration': 'myAttachedDatabaseConfiguration', - 'myAttachedDatabaseConfiguration2': 'attachedDatabaseConfigurations1', - 'myDataConnection': 'DataConnections8', - 'myDataConnection2': 'kustoeventhubconnection1', - }) - - call_scenario(self, rg) - calc_coverage(__file__) - raise_if() - +# -------------------------------------------------------------------------- +# 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 os +from azure.cli.testsdk import ScenarioTest +from azure.cli.testsdk import ResourceGroupPreparer +from .example_steps import step_cluster_create +from .example_steps import step_database_create +from .example_steps import step_data_connection_event_hub_create +from .example_steps import step_attached_database_configuration_create +from .example_steps import step_attached_database_configuration_show +from .example_steps import step_data_connection_show +from .example_steps import step_database_list +from .example_steps import step_attached_database_configuration_list +from .example_steps import step_database_show +from .example_steps import step_cluster_list_sku +from .example_steps import step_cluster_show +from .example_steps import step_cluster_list +from .example_steps import step_data_connection_event_hub_update +from .example_steps import step_data_connection_event +from .example_steps import step_database_update +from .example_steps import step_cluster_detach_follower_database +from .example_steps import step_cluster_list_follower_database +from .example_steps import step_attached_database_configuration_delete +from .example_steps import step_data_connection_delete +from .example_steps import step_database_delete +from .example_steps import step_cluster_delete +from .. import ( + try_manual, + raise_if, + calc_coverage +) + + +TEST_DIR = os.path.abspath(os.path.join(os.path.abspath(__file__), '..')) + + +# Env setup_scenario +@try_manual +def setup_scenario(test, rg): + pass + + +# Env cleanup_scenario +@try_manual +def cleanup_scenario(test, rg): + pass + + +# Testcase: Scenario +@try_manual +def call_scenario(test, rg): + setup_scenario(test, rg) + step_cluster_create(test, rg, checks=[]) + step_database_create(test, rg, checks=[]) + step_data_connection_event_hub_create(test, rg, checks=[]) + step_attached_database_configuration_create(test, rg, checks=[]) + step_attached_database_configuration_show(test, rg, checks=[]) + step_data_connection_show(test, rg, checks=[]) + step_database_list(test, rg, checks=[]) + step_attached_database_configuration_list(test, rg, checks=[]) + step_database_show(test, rg, checks=[]) + step_database_list(test, rg, checks=[]) + step_cluster_list_sku(test, rg, checks=[]) + step_cluster_show(test, rg, checks=[]) + step_cluster_list(test, rg, checks=[]) + # STEP NOT FOUND: KustoOperationsList + step_data_connection_event_hub_update(test, rg, checks=[]) + step_data_connection_event(test, rg, checks=[]) + # STEP NOT FOUND: KustoDataConnectionsCheckNameAvailability + step_database_update(test, rg, checks=[]) + step_cluster_detach_follower_database(test, rg, checks=[]) + # STEP NOT FOUND: KustoDatabaseCheckNameAvailability + step_cluster_list_follower_database(test, rg, checks=[]) + # STEP NOT FOUND: KustoClustersCheckNameAvailability + step_attached_database_configuration_delete(test, rg, checks=[]) + step_data_connection_delete(test, rg, checks=[]) + step_database_delete(test, rg, checks=[]) + step_cluster_delete(test, rg, checks=[]) + cleanup_scenario(test, rg) + + +# Test class for Scenario +@try_manual +class KustoScenarioTest(ScenarioTest): + + def __init__(self, *args, **kwargs): + super(KustoScenarioTest, self).__init__(*args, **kwargs) + self.kwargs.update({ + 'subscription_id': self.get_subscription_id() + }) + + self.kwargs.update({ + 'myCluster4': 'default', + 'myAttachedDatabaseConfiguration3': 'default', + 'myCluster2': 'leader4', + 'myCluster3': 'KustoClusterLeader', + 'myCluster': self.create_random_name(prefix='kustoclusterrptest4'[:9], length=19), + 'myAttachedDatabaseConfiguration': 'myAttachedDatabaseConfiguration', + 'myAttachedDatabaseConfiguration2': self.create_random_name(prefix='attachedDatabaseConfigurations1'[:15], + length=31), + 'myDataConnection': self.create_random_name(prefix='DataConnections8'[:8], length=16), + 'myDataConnection2': 'kustoeventhubconnection1', + }) + + + @ResourceGroupPreparer(name_prefix='clitestkusto_kustorptest'[:7], key='rg', parameter_name='rg') + def test_kusto_Scenario(self, rg): + call_scenario(self, rg) + calc_coverage(__file__) + raise_if() + diff --git a/src/kusto/azext_kusto/vendored_sdks/__init__.py b/src/kusto/azext_kusto/vendored_sdks/__init__.py index ee0c4f36bd0..c9cfdc73e77 100644 --- a/src/kusto/azext_kusto/vendored_sdks/__init__.py +++ b/src/kusto/azext_kusto/vendored_sdks/__init__.py @@ -1,12 +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__) +# 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__) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/_kusto_management_client.py b/src/kusto/azext_kusto/vendored_sdks/kusto/_kusto_management_client.py index d801def53bd..349af8f9ea4 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/_kusto_management_client.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/_kusto_management_client.py @@ -18,33 +18,33 @@ from azure.core.credentials import TokenCredential from ._configuration import KustoManagementClientConfiguration -from .operations import ClusterOperations -from .operations import ClusterPrincipalAssignmentOperations -from .operations import DatabaseOperations -from .operations import DatabasePrincipalAssignmentOperations -from .operations import AttachedDatabaseConfigurationOperations -from .operations import DataConnectionOperations -from .operations import OperationOperations +from .operations import ClustersOperations +from .operations import ClusterPrincipalAssignmentsOperations +from .operations import DatabasesOperations +from .operations import DatabasePrincipalAssignmentsOperations +from .operations import AttachedDatabaseConfigurationsOperations +from .operations import DataConnectionsOperations +from .operations import Operations from . import models class KustoManagementClient(object): """The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. - :ivar cluster: ClusterOperations operations - :vartype cluster: kusto_management_client.operations.ClusterOperations - :ivar cluster_principal_assignment: ClusterPrincipalAssignmentOperations operations - :vartype cluster_principal_assignment: kusto_management_client.operations.ClusterPrincipalAssignmentOperations - :ivar database: DatabaseOperations operations - :vartype database: kusto_management_client.operations.DatabaseOperations - :ivar database_principal_assignment: DatabasePrincipalAssignmentOperations operations - :vartype database_principal_assignment: kusto_management_client.operations.DatabasePrincipalAssignmentOperations - :ivar attached_database_configuration: AttachedDatabaseConfigurationOperations operations - :vartype attached_database_configuration: kusto_management_client.operations.AttachedDatabaseConfigurationOperations - :ivar data_connection: DataConnectionOperations operations - :vartype data_connection: kusto_management_client.operations.DataConnectionOperations - :ivar operation: OperationOperations operations - :vartype operation: kusto_management_client.operations.OperationOperations + :ivar clusters: ClustersOperations operations + :vartype clusters: kusto_management_client.operations.ClustersOperations + :ivar cluster_principal_assignments: ClusterPrincipalAssignmentsOperations operations + :vartype cluster_principal_assignments: kusto_management_client.operations.ClusterPrincipalAssignmentsOperations + :ivar databases: DatabasesOperations operations + :vartype databases: kusto_management_client.operations.DatabasesOperations + :ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations + :vartype database_principal_assignments: kusto_management_client.operations.DatabasePrincipalAssignmentsOperations + :ivar attached_database_configurations: AttachedDatabaseConfigurationsOperations operations + :vartype attached_database_configurations: kusto_management_client.operations.AttachedDatabaseConfigurationsOperations + :ivar data_connections: DataConnectionsOperations operations + :vartype data_connections: kusto_management_client.operations.DataConnectionsOperations + :ivar operations: Operations operations + :vartype operations: kusto_management_client.operations.Operations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. @@ -70,19 +70,19 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - self.cluster = ClusterOperations( + self.clusters = ClustersOperations( self._client, self._config, self._serialize, self._deserialize) - self.cluster_principal_assignment = ClusterPrincipalAssignmentOperations( + self.cluster_principal_assignments = ClusterPrincipalAssignmentsOperations( self._client, self._config, self._serialize, self._deserialize) - self.database = DatabaseOperations( + self.databases = DatabasesOperations( self._client, self._config, self._serialize, self._deserialize) - self.database_principal_assignment = DatabasePrincipalAssignmentOperations( + self.database_principal_assignments = DatabasePrincipalAssignmentsOperations( self._client, self._config, self._serialize, self._deserialize) - self.attached_database_configuration = AttachedDatabaseConfigurationOperations( + self.attached_database_configurations = AttachedDatabaseConfigurationsOperations( self._client, self._config, self._serialize, self._deserialize) - self.data_connection = DataConnectionOperations( + self.data_connections = DataConnectionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.operation = OperationOperations( + self.operations = Operations( self._client, self._config, self._serialize, self._deserialize) def close(self): diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/_version.py b/src/kusto/azext_kusto/vendored_sdks/kusto/_version.py deleted file mode 100644 index 60c349ae6a8..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/_version.py +++ /dev/null @@ -1,9 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- - -VERSION = "0.1.0" diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_configuration_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_configuration_async.py deleted file mode 100644 index e1c166820e5..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_configuration_async.py +++ /dev/null @@ -1,65 +0,0 @@ -# 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, TYPE_CHECKING - -from azure.core.configuration import Configuration -from azure.core.pipeline import policies - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - -VERSION = "unknown" - -class KustoManagementClientConfiguration(Configuration): - """Configuration for KustoManagementClient. - - 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_async.AsyncTokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - :type subscription_id: str - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - 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(KustoManagementClientConfiguration, self).__init__(**kwargs) - - self.credential = credential - self.subscription_id = subscription_id - self.api_version = "2020-06-14" - self.credential_scopes = ['https://management.azure.com/.default'] - self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'kustomanagementclient/{}'.format(VERSION)) - self._configure(**kwargs) - - 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, *self.credential_scopes, **kwargs) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client.py index d5a05cf1cec..ba6db69d88a 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client.py @@ -16,33 +16,33 @@ from azure.core.credentials_async import AsyncTokenCredential from ._configuration import KustoManagementClientConfiguration -from .operations import ClusterOperations -from .operations import ClusterPrincipalAssignmentOperations -from .operations import DatabaseOperations -from .operations import DatabasePrincipalAssignmentOperations -from .operations import AttachedDatabaseConfigurationOperations -from .operations import DataConnectionOperations -from .operations import OperationOperations +from .operations import ClustersOperations +from .operations import ClusterPrincipalAssignmentsOperations +from .operations import DatabasesOperations +from .operations import DatabasePrincipalAssignmentsOperations +from .operations import AttachedDatabaseConfigurationsOperations +from .operations import DataConnectionsOperations +from .operations import Operations from .. import models class KustoManagementClient(object): """The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. - :ivar cluster: ClusterOperations operations - :vartype cluster: kusto_management_client.aio.operations.ClusterOperations - :ivar cluster_principal_assignment: ClusterPrincipalAssignmentOperations operations - :vartype cluster_principal_assignment: kusto_management_client.aio.operations.ClusterPrincipalAssignmentOperations - :ivar database: DatabaseOperations operations - :vartype database: kusto_management_client.aio.operations.DatabaseOperations - :ivar database_principal_assignment: DatabasePrincipalAssignmentOperations operations - :vartype database_principal_assignment: kusto_management_client.aio.operations.DatabasePrincipalAssignmentOperations - :ivar attached_database_configuration: AttachedDatabaseConfigurationOperations operations - :vartype attached_database_configuration: kusto_management_client.aio.operations.AttachedDatabaseConfigurationOperations - :ivar data_connection: DataConnectionOperations operations - :vartype data_connection: kusto_management_client.aio.operations.DataConnectionOperations - :ivar operation: OperationOperations operations - :vartype operation: kusto_management_client.aio.operations.OperationOperations + :ivar clusters: ClustersOperations operations + :vartype clusters: kusto_management_client.aio.operations.ClustersOperations + :ivar cluster_principal_assignments: ClusterPrincipalAssignmentsOperations operations + :vartype cluster_principal_assignments: kusto_management_client.aio.operations.ClusterPrincipalAssignmentsOperations + :ivar databases: DatabasesOperations operations + :vartype databases: kusto_management_client.aio.operations.DatabasesOperations + :ivar database_principal_assignments: DatabasePrincipalAssignmentsOperations operations + :vartype database_principal_assignments: kusto_management_client.aio.operations.DatabasePrincipalAssignmentsOperations + :ivar attached_database_configurations: AttachedDatabaseConfigurationsOperations operations + :vartype attached_database_configurations: kusto_management_client.aio.operations.AttachedDatabaseConfigurationsOperations + :ivar data_connections: DataConnectionsOperations operations + :vartype data_connections: kusto_management_client.aio.operations.DataConnectionsOperations + :ivar operations: Operations operations + :vartype operations: kusto_management_client.aio.operations.Operations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. @@ -67,19 +67,19 @@ def __init__( self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - self.cluster = ClusterOperations( + self.clusters = ClustersOperations( self._client, self._config, self._serialize, self._deserialize) - self.cluster_principal_assignment = ClusterPrincipalAssignmentOperations( + self.cluster_principal_assignments = ClusterPrincipalAssignmentsOperations( self._client, self._config, self._serialize, self._deserialize) - self.database = DatabaseOperations( + self.databases = DatabasesOperations( self._client, self._config, self._serialize, self._deserialize) - self.database_principal_assignment = DatabasePrincipalAssignmentOperations( + self.database_principal_assignments = DatabasePrincipalAssignmentsOperations( self._client, self._config, self._serialize, self._deserialize) - self.attached_database_configuration = AttachedDatabaseConfigurationOperations( + self.attached_database_configurations = AttachedDatabaseConfigurationsOperations( self._client, self._config, self._serialize, self._deserialize) - self.data_connection = DataConnectionOperations( + self.data_connections = DataConnectionsOperations( self._client, self._config, self._serialize, self._deserialize) - self.operation = OperationOperations( + self.operations = Operations( self._client, self._config, self._serialize, self._deserialize) async def close(self) -> None: diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client_async.py deleted file mode 100644 index cd74af7f704..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client_async.py +++ /dev/null @@ -1,93 +0,0 @@ -# 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, TYPE_CHECKING - -from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from azure.core.credentials_async import AsyncTokenCredential - -from ._configuration_async import KustoManagementClientConfiguration -from .operations_async import ClusterOperations -from .operations_async import ClusterPrincipalAssignmentOperations -from .operations_async import DatabaseOperations -from .operations_async import DatabasePrincipalAssignmentOperations -from .operations_async import AttachedDatabaseConfigurationOperations -from .operations_async import DataConnectionOperations -from .operations_async import OperationOperations -from .. import models - - -class KustoManagementClient(object): - """The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. - - :ivar cluster: ClusterOperations operations - :vartype cluster: kusto_management_client.aio.operations_async.ClusterOperations - :ivar cluster_principal_assignment: ClusterPrincipalAssignmentOperations operations - :vartype cluster_principal_assignment: kusto_management_client.aio.operations_async.ClusterPrincipalAssignmentOperations - :ivar database: DatabaseOperations operations - :vartype database: kusto_management_client.aio.operations_async.DatabaseOperations - :ivar database_principal_assignment: DatabasePrincipalAssignmentOperations operations - :vartype database_principal_assignment: kusto_management_client.aio.operations_async.DatabasePrincipalAssignmentOperations - :ivar attached_database_configuration: AttachedDatabaseConfigurationOperations operations - :vartype attached_database_configuration: kusto_management_client.aio.operations_async.AttachedDatabaseConfigurationOperations - :ivar data_connection: DataConnectionOperations operations - :vartype data_connection: kusto_management_client.aio.operations_async.DataConnectionOperations - :ivar operation: OperationOperations operations - :vartype operation: kusto_management_client.aio.operations_async.OperationOperations - :param credential: Credential needed for the client to connect to Azure. - :type credential: ~azure.core.credentials_async.AsyncTokenCredential - :param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - :type subscription_id: str - :param str base_url: Service URL - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - """ - - def __init__( - self, - credential: "AsyncTokenCredential", - subscription_id: str, - base_url: Optional[str] = None, - **kwargs: Any - ) -> None: - if not base_url: - base_url = 'https://management.azure.com' - self._config = KustoManagementClientConfiguration(credential, subscription_id, **kwargs) - self._client = AsyncARMPipelineClient(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.cluster = ClusterOperations( - self._client, self._config, self._serialize, self._deserialize) - self.cluster_principal_assignment = ClusterPrincipalAssignmentOperations( - self._client, self._config, self._serialize, self._deserialize) - self.database = DatabaseOperations( - self._client, self._config, self._serialize, self._deserialize) - self.database_principal_assignment = DatabasePrincipalAssignmentOperations( - self._client, self._config, self._serialize, self._deserialize) - self.attached_database_configuration = AttachedDatabaseConfigurationOperations( - self._client, self._config, self._serialize, self._deserialize) - self.data_connection = DataConnectionOperations( - self._client, self._config, self._serialize, self._deserialize) - self.operation = OperationOperations( - self._client, self._config, self._serialize, self._deserialize) - - async def close(self) -> None: - await self._client.close() - - async def __aenter__(self) -> "KustoManagementClient": - await self._client.__aenter__() - return self - - async def __aexit__(self, *exc_details) -> None: - await self._client.__aexit__(*exc_details) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/__init__.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/__init__.py index 5750cdc82c5..fb6fa595386 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/__init__.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/__init__.py @@ -6,20 +6,20 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._cluster_operations import ClusterOperations -from ._cluster_principal_assignment_operations import ClusterPrincipalAssignmentOperations -from ._database_operations import DatabaseOperations -from ._database_principal_assignment_operations import DatabasePrincipalAssignmentOperations -from ._attached_database_configuration_operations import AttachedDatabaseConfigurationOperations -from ._data_connection_operations import DataConnectionOperations -from ._operation_operations import OperationOperations +from ._clusters_operations import ClustersOperations +from ._cluster_principal_assignments_operations import ClusterPrincipalAssignmentsOperations +from ._databases_operations import DatabasesOperations +from ._database_principal_assignments_operations import DatabasePrincipalAssignmentsOperations +from ._attached_database_configurations_operations import AttachedDatabaseConfigurationsOperations +from ._data_connections_operations import DataConnectionsOperations +from ._operations import Operations __all__ = [ - 'ClusterOperations', - 'ClusterPrincipalAssignmentOperations', - 'DatabaseOperations', - 'DatabasePrincipalAssignmentOperations', - 'AttachedDatabaseConfigurationOperations', - 'DataConnectionOperations', - 'OperationOperations', + 'ClustersOperations', + 'ClusterPrincipalAssignmentsOperations', + 'DatabasesOperations', + 'DatabasePrincipalAssignmentsOperations', + 'AttachedDatabaseConfigurationsOperations', + 'DataConnectionsOperations', + 'Operations', ] diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_attached_database_configuration_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_attached_database_configurations_operations.py similarity index 92% rename from src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_attached_database_configuration_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_attached_database_configurations_operations.py index 8dae1929ef9..03ccc65bd8f 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_attached_database_configuration_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_attached_database_configurations_operations.py @@ -21,8 +21,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class AttachedDatabaseConfigurationOperations: - """AttachedDatabaseConfigurationOperations async operations. +class AttachedDatabaseConfigurationsOperations: + """AttachedDatabaseConfigurationsOperations async operations. 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. @@ -184,10 +184,7 @@ async def _create_or_update_initial( resource_group_name: str, cluster_name: str, attached_database_configuration_name: str, - location: Optional[str] = None, - database_name: Optional[str] = None, - cluster_resource_id: Optional[str] = None, - default_principals_modification_kind: Optional[Union[str, "models.DefaultPrincipalsModificationKind"]] = None, + parameters: "models.AttachedDatabaseConfiguration", **kwargs ) -> "models.AttachedDatabaseConfiguration": cls = kwargs.pop('cls', None) # type: ClsType["models.AttachedDatabaseConfiguration"] @@ -195,8 +192,6 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.AttachedDatabaseConfiguration(location=location, database_name=database_name, cluster_resource_id=cluster_resource_id, default_principals_modification_kind=default_principals_modification_kind) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -251,10 +246,7 @@ async def begin_create_or_update( resource_group_name: str, cluster_name: str, attached_database_configuration_name: str, - location: Optional[str] = None, - database_name: Optional[str] = None, - cluster_resource_id: Optional[str] = None, - default_principals_modification_kind: Optional[Union[str, "models.DefaultPrincipalsModificationKind"]] = None, + parameters: "models.AttachedDatabaseConfiguration", **kwargs ) -> AsyncLROPoller["models.AttachedDatabaseConfiguration"]: """Creates or updates an attached database configuration. @@ -265,16 +257,8 @@ async def begin_create_or_update( :type cluster_name: str :param attached_database_configuration_name: The name of the attached database configuration. :type attached_database_configuration_name: str - :param location: Resource location. - :type location: str - :param database_name: The name of the database which you would like to attach, use * if you - want to follow all current and future databases. - :type database_name: str - :param cluster_resource_id: The resource id of the cluster where the databases you would like - to attach reside. - :type cluster_resource_id: str - :param default_principals_modification_kind: The default principals modification kind. - :type default_principals_modification_kind: str or ~kusto_management_client.models.DefaultPrincipalsModificationKind + :param parameters: The database parameters supplied to the CreateOrUpdate operation. + :type parameters: ~kusto_management_client.models.AttachedDatabaseConfiguration :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -297,10 +281,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, cluster_name=cluster_name, attached_database_configuration_name=attached_database_configuration_name, - location=location, - database_name=database_name, - cluster_resource_id=cluster_resource_id, - default_principals_modification_kind=default_principals_modification_kind, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_principal_assignment_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_principal_assignments_operations.py similarity index 93% rename from src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_principal_assignment_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_principal_assignments_operations.py index 4b0dc447a55..31581345029 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_principal_assignment_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_principal_assignments_operations.py @@ -21,8 +21,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class ClusterPrincipalAssignmentOperations: - """ClusterPrincipalAssignmentOperations async operations. +class ClusterPrincipalAssignmentsOperations: + """ClusterPrincipalAssignmentsOperations async operations. 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. @@ -47,8 +47,7 @@ async def check_name_availability( self, resource_group_name: str, cluster_name: str, - name: str, - type: Union[str, "models.Type"], + principal_assignment_name: "models.ClusterPrincipalAssignmentCheckNameRequest", **kwargs ) -> "models.CheckNameResult": """Checks that the principal assignment name is valid and is not already in use. @@ -57,10 +56,8 @@ async def check_name_availability( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param name: Principal Assignment resource name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/principalAssignments. - :type type: str or ~kusto_management_client.models.Type + :param principal_assignment_name: The name of the principal assignment. + :type principal_assignment_name: ~kusto_management_client.models.ClusterPrincipalAssignmentCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -71,8 +68,6 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - principal_assignment_name = models.ClusterPrincipalAssignmentCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -181,10 +176,7 @@ async def _create_or_update_initial( resource_group_name: str, cluster_name: str, principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.ClusterPrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, + parameters: "models.ClusterPrincipalAssignment", **kwargs ) -> "models.ClusterPrincipalAssignment": cls = kwargs.pop('cls', None) # type: ClsType["models.ClusterPrincipalAssignment"] @@ -192,8 +184,6 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.ClusterPrincipalAssignment(principal_id=principal_id, role=role, tenant_id=tenant_id, principal_type=principal_type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -245,10 +235,7 @@ async def begin_create_or_update( resource_group_name: str, cluster_name: str, principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.ClusterPrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, + parameters: "models.ClusterPrincipalAssignment", **kwargs ) -> AsyncLROPoller["models.ClusterPrincipalAssignment"]: """Create a Kusto cluster principalAssignment. @@ -259,15 +246,9 @@ async def begin_create_or_update( :type cluster_name: str :param principal_assignment_name: The name of the Kusto principalAssignment. :type principal_assignment_name: str - :param principal_id: The principal ID assigned to the cluster principal. It can be a user - email, application ID, or security group name. - :type principal_id: str - :param role: Cluster principal role. - :type role: str or ~kusto_management_client.models.ClusterPrincipalRole - :param tenant_id: The tenant id of the principal. - :type tenant_id: str - :param principal_type: Principal type. - :type principal_type: str or ~kusto_management_client.models.PrincipalType + :param parameters: The Kusto cluster principalAssignment's parameters supplied for the + operation. + :type parameters: ~kusto_management_client.models.ClusterPrincipalAssignment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -290,10 +271,7 @@ async def begin_create_or_update( resource_group_name=resource_group_name, cluster_name=cluster_name, principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_clusters_operations.py similarity index 83% rename from src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_clusters_operations.py index 1137adf5d17..c805b73ea32 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_clusters_operations.py @@ -5,7 +5,7 @@ # 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, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -21,8 +21,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class ClusterOperations: - """ClusterOperations async operations. +class ClustersOperations: + """ClustersOperations async operations. 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. @@ -105,20 +105,7 @@ async def _create_or_update_initial( self, resource_group_name: str, cluster_name: str, - location: str, - sku: "models.AzureSku", - tags: Optional[Dict[str, str]] = None, - zones: Optional[List[str]] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, + parameters: "models.Cluster", **kwargs ) -> "models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["models.Cluster"] @@ -126,8 +113,6 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.Cluster(tags=tags, location=location, sku=sku, zones=zones, trusted_external_tenants=trusted_external_tenants, optimized_autoscale=optimized_autoscale, enable_disk_encryption=enable_disk_encryption, enable_streaming_ingest=enable_streaming_ingest, virtual_network_configuration=virtual_network_configuration, key_vault_properties=key_vault_properties, enable_purge=enable_purge, enable_double_encryption=enable_double_encryption, type_identity_type=type, user_assigned_identities=user_assigned_identities) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -177,20 +162,7 @@ async def begin_create_or_update( self, resource_group_name: str, cluster_name: str, - location: str, - sku: "models.AzureSku", - tags: Optional[Dict[str, str]] = None, - zones: Optional[List[str]] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, + parameters: "models.Cluster", **kwargs ) -> AsyncLROPoller["models.Cluster"]: """Create or update a Kusto cluster. @@ -199,39 +171,8 @@ async def begin_create_or_update( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param location: The geo-location where the resource lives. - :type location: str - :param sku: The SKU of the cluster. - :type sku: ~kusto_management_client.models.AzureSku - :param tags: Resource tags. - :type tags: dict[str, str] - :param zones: The availability zones of the cluster. - :type zones: list[str] - :param trusted_external_tenants: The cluster's external tenants. - :type trusted_external_tenants: list[~kusto_management_client.models.TrustedExternalTenant] - :param optimized_autoscale: Optimized auto scale definition. - :type optimized_autoscale: ~kusto_management_client.models.OptimizedAutoscale - :param enable_disk_encryption: A boolean value that indicates if the cluster's disks are - encrypted. - :type enable_disk_encryption: bool - :param enable_streaming_ingest: A boolean value that indicates if the streaming ingest is - enabled. - :type enable_streaming_ingest: bool - :param virtual_network_configuration: Virtual network definition. - :type virtual_network_configuration: ~kusto_management_client.models.VirtualNetworkConfiguration - :param key_vault_properties: KeyVault properties for the cluster encryption. - :type key_vault_properties: ~kusto_management_client.models.KeyVaultProperties - :param enable_purge: A boolean value that indicates if the purge operations are enabled. - :type enable_purge: bool - :param enable_double_encryption: A boolean value that indicates if double encryption is - enabled. - :type enable_double_encryption: bool - :param type: The identity type. - :type type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] + :param parameters: The Kusto cluster parameters supplied to the CreateOrUpdate operation. + :type parameters: ~kusto_management_client.models.Cluster :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -253,20 +194,7 @@ async def begin_create_or_update( raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - location=location, - sku=sku, - tags=tags, - zones=zones, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=type, - user_assigned_identities=user_assigned_identities, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) @@ -305,19 +233,7 @@ async def _update_initial( self, resource_group_name: str, cluster_name: str, - tags: Optional[Dict[str, str]] = None, - location: Optional[str] = None, - sku: Optional["models.AzureSku"] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, + parameters: "models.ClusterUpdate", **kwargs ) -> "models.Cluster": cls = kwargs.pop('cls', None) # type: ClsType["models.Cluster"] @@ -325,8 +241,6 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.ClusterUpdate(tags=tags, location=location, sku=sku, trusted_external_tenants=trusted_external_tenants, optimized_autoscale=optimized_autoscale, enable_disk_encryption=enable_disk_encryption, enable_streaming_ingest=enable_streaming_ingest, virtual_network_configuration=virtual_network_configuration, key_vault_properties=key_vault_properties, enable_purge=enable_purge, enable_double_encryption=enable_double_encryption, type_identity_type=type, user_assigned_identities=user_assigned_identities) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -379,19 +293,7 @@ async def begin_update( self, resource_group_name: str, cluster_name: str, - tags: Optional[Dict[str, str]] = None, - location: Optional[str] = None, - sku: Optional["models.AzureSku"] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, + parameters: "models.ClusterUpdate", **kwargs ) -> AsyncLROPoller["models.Cluster"]: """Update a Kusto cluster. @@ -400,37 +302,8 @@ async def begin_update( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Resource location. - :type location: str - :param sku: The SKU of the cluster. - :type sku: ~kusto_management_client.models.AzureSku - :param trusted_external_tenants: The cluster's external tenants. - :type trusted_external_tenants: list[~kusto_management_client.models.TrustedExternalTenant] - :param optimized_autoscale: Optimized auto scale definition. - :type optimized_autoscale: ~kusto_management_client.models.OptimizedAutoscale - :param enable_disk_encryption: A boolean value that indicates if the cluster's disks are - encrypted. - :type enable_disk_encryption: bool - :param enable_streaming_ingest: A boolean value that indicates if the streaming ingest is - enabled. - :type enable_streaming_ingest: bool - :param virtual_network_configuration: Virtual network definition. - :type virtual_network_configuration: ~kusto_management_client.models.VirtualNetworkConfiguration - :param key_vault_properties: KeyVault properties for the cluster encryption. - :type key_vault_properties: ~kusto_management_client.models.KeyVaultProperties - :param enable_purge: A boolean value that indicates if the purge operations are enabled. - :type enable_purge: bool - :param enable_double_encryption: A boolean value that indicates if double encryption is - enabled. - :type enable_double_encryption: bool - :param type: The identity type. - :type type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] + :param parameters: The Kusto cluster parameters supplied to the Update operation. + :type parameters: ~kusto_management_client.models.ClusterUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -452,19 +325,7 @@ async def begin_update( raw_result = await self._update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - tags=tags, - location=location, - sku=sku, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=type, - user_assigned_identities=user_assigned_identities, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) @@ -823,7 +684,7 @@ def get_long_running_output(pipeline_response): return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start'} # type: ignore - def list_follower_database( + def list_follower_databases( self, resource_group_name: str, cluster_name: str, @@ -856,7 +717,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_follower_database.metadata['url'] # type: ignore + url = self.list_follower_databases.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -896,14 +757,13 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_follower_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases'} # type: ignore + list_follower_databases.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases'} # type: ignore - async def _detach_follower_database_initial( + async def _detach_follower_databases_initial( self, resource_group_name: str, cluster_name: str, - cluster_resource_id: str, - attached_database_configuration_name: str, + follower_database_to_remove: "models.FollowerDatabaseDefinition", **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -911,14 +771,12 @@ async def _detach_follower_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - follower_database_to_remove = models.FollowerDatabaseDefinition(cluster_resource_id=cluster_resource_id, attached_database_configuration_name=attached_database_configuration_name) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._detach_follower_database_initial.metadata['url'] # type: ignore + url = self._detach_follower_databases_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -949,14 +807,13 @@ async def _detach_follower_database_initial( if cls: return cls(pipeline_response, None, {}) - _detach_follower_database_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore + _detach_follower_databases_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore - async def begin_detach_follower_database( + async def begin_detach_follower_databases( self, resource_group_name: str, cluster_name: str, - cluster_resource_id: str, - attached_database_configuration_name: str, + follower_database_to_remove: "models.FollowerDatabaseDefinition", **kwargs ) -> AsyncLROPoller[None]: """Detaches all followers of a database owned by this cluster. @@ -965,12 +822,8 @@ async def begin_detach_follower_database( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param cluster_resource_id: Resource id of the cluster that follows a database owned by this - cluster. - :type cluster_resource_id: str - :param attached_database_configuration_name: Resource name of the attached database - configuration in the follower cluster. - :type attached_database_configuration_name: str + :param follower_database_to_remove: The follower databases properties to remove. + :type follower_database_to_remove: ~kusto_management_client.models.FollowerDatabaseDefinition :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -989,11 +842,10 @@ async def begin_detach_follower_database( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._detach_follower_database_initial( + raw_result = await self._detach_follower_databases_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - cluster_resource_id=cluster_resource_id, - attached_database_configuration_name=attached_database_configuration_name, + follower_database_to_remove=follower_database_to_remove, cls=lambda x,y,z: x, **kwargs ) @@ -1023,7 +875,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_detach_follower_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore + begin_detach_follower_databases.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore async def _diagnose_virtual_network_initial( self, @@ -1278,7 +1130,7 @@ async def get_next(next_link=None): ) list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters'} # type: ignore - def list_sku( + def list_skus( self, **kwargs ) -> AsyncIterable["models.SkuDescriptionList"]: @@ -1304,7 +1156,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_sku.metadata['url'] # type: ignore + url = self.list_skus.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } @@ -1342,23 +1194,20 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_sku.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus'} # type: ignore + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus'} # type: ignore async def check_name_availability( self, location: str, - name: str, - type: Union[str, "models.Type"], + cluster_name: "models.ClusterCheckNameRequest", **kwargs ) -> "models.CheckNameResult": """Checks that the cluster name is valid and is not already in use. :param location: Azure location. :type location: str - :param name: Cluster name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters. - :type type: str or ~kusto_management_client.models.Type + :param cluster_name: The name of the cluster. + :type cluster_name: ~kusto_management_client.models.ClusterCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -1369,8 +1218,6 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - cluster_name = models.ClusterCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1411,7 +1258,7 @@ async def check_name_availability( return deserialized check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability'} # type: ignore - def list_sku_by_resource( + def list_skus_by_resource( self, resource_group_name: str, cluster_name: str, @@ -1443,7 +1290,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_sku_by_resource.metadata['url'] # type: ignore + url = self.list_skus_by_resource.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -1483,9 +1330,9 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_sku_by_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus'} # type: ignore + list_skus_by_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus'} # type: ignore - def list_language_extension( + def list_language_extensions( self, resource_group_name: str, cluster_name: str, @@ -1517,7 +1364,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_language_extension.metadata['url'] # type: ignore + url = self.list_language_extensions.metadata['url'] # type: ignore 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'), @@ -1557,13 +1404,13 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions'} # type: ignore + list_language_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions'} # type: ignore - async def _add_language_extension_initial( + async def _add_language_extensions_initial( self, resource_group_name: str, cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, + language_extensions_to_add: "models.LanguageExtensionsList", **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -1571,14 +1418,12 @@ async def _add_language_extension_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - language_extensions_to_add = models.LanguageExtensionsList(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._add_language_extension_initial.metadata['url'] # type: ignore + url = self._add_language_extensions_initial.metadata['url'] # type: ignore 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'), @@ -1609,13 +1454,13 @@ async def _add_language_extension_initial( if cls: return cls(pipeline_response, None, {}) - _add_language_extension_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore + _add_language_extensions_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore - async def begin_add_language_extension( + async def begin_add_language_extensions( self, resource_group_name: str, cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, + language_extensions_to_add: "models.LanguageExtensionsList", **kwargs ) -> AsyncLROPoller[None]: """Add a list of language extensions that can run within KQL queries. @@ -1624,8 +1469,8 @@ async def begin_add_language_extension( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param value: The list of language extensions. - :type value: list[~kusto_management_client.models.LanguageExtension] + :param language_extensions_to_add: The language extensions to add. + :type language_extensions_to_add: ~kusto_management_client.models.LanguageExtensionsList :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -1644,10 +1489,10 @@ async def begin_add_language_extension( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._add_language_extension_initial( + raw_result = await self._add_language_extensions_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - value=value, + language_extensions_to_add=language_extensions_to_add, cls=lambda x,y,z: x, **kwargs ) @@ -1677,13 +1522,13 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_add_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore + begin_add_language_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore - async def _remove_language_extension_initial( + async def _remove_language_extensions_initial( self, resource_group_name: str, cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, + language_extensions_to_remove: "models.LanguageExtensionsList", **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] @@ -1691,14 +1536,12 @@ async def _remove_language_extension_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - language_extensions_to_remove = models.LanguageExtensionsList(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._remove_language_extension_initial.metadata['url'] # type: ignore + url = self._remove_language_extensions_initial.metadata['url'] # type: ignore 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'), @@ -1729,13 +1572,13 @@ async def _remove_language_extension_initial( if cls: return cls(pipeline_response, None, {}) - _remove_language_extension_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore + _remove_language_extensions_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore - async def begin_remove_language_extension( + async def begin_remove_language_extensions( self, resource_group_name: str, cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, + language_extensions_to_remove: "models.LanguageExtensionsList", **kwargs ) -> AsyncLROPoller[None]: """Remove a list of language extensions that can run within KQL queries. @@ -1744,8 +1587,8 @@ async def begin_remove_language_extension( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param value: The list of language extensions. - :type value: list[~kusto_management_client.models.LanguageExtension] + :param language_extensions_to_remove: The language extensions to remove. + :type language_extensions_to_remove: ~kusto_management_client.models.LanguageExtensionsList :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -1764,10 +1607,10 @@ async def begin_remove_language_extension( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._remove_language_extension_initial( + raw_result = await self._remove_language_extensions_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - value=value, + language_extensions_to_remove=language_extensions_to_remove, cls=lambda x,y,z: x, **kwargs ) @@ -1797,4 +1640,4 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_remove_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore + begin_remove_language_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_data_connection_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_data_connections_operations.py similarity index 97% rename from src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_data_connection_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_data_connections_operations.py index 459d0d414a7..3fb6ede3e8f 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_data_connection_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_data_connections_operations.py @@ -21,8 +21,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class DataConnectionOperations: - """DataConnectionOperations async operations. +class DataConnectionsOperations: + """DataConnectionsOperations async operations. 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. @@ -126,8 +126,7 @@ async def _data_connection_validation_initial( resource_group_name: str, cluster_name: str, database_name: str, - data_connection_name: Optional[str] = None, - properties: Optional["models.DataConnection"] = None, + parameters: "models.DataConnectionValidation", **kwargs ) -> Optional["models.DataConnectionValidationListResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.DataConnectionValidationListResult"]] @@ -135,8 +134,6 @@ async def _data_connection_validation_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.DataConnectionValidation(data_connection_name=data_connection_name, properties=properties) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -186,8 +183,7 @@ async def begin_data_connection_validation( resource_group_name: str, cluster_name: str, database_name: str, - data_connection_name: Optional[str] = None, - properties: Optional["models.DataConnection"] = None, + parameters: "models.DataConnectionValidation", **kwargs ) -> AsyncLROPoller["models.DataConnectionValidationListResult"]: """Checks that the data connection parameters are valid. @@ -198,10 +194,8 @@ async def begin_data_connection_validation( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param data_connection_name: The name of the data connection. - :type data_connection_name: str - :param properties: The data connection properties to validate. - :type properties: ~kusto_management_client.models.DataConnection + :param parameters: The data connection parameters supplied to the CreateOrUpdate operation. + :type parameters: ~kusto_management_client.models.DataConnectionValidation :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -224,8 +218,7 @@ async def begin_data_connection_validation( resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, - data_connection_name=data_connection_name, - properties=properties, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) @@ -266,8 +259,7 @@ async def check_name_availability( resource_group_name: str, cluster_name: str, database_name: str, - name: str, - type: Union[str, "models.Type"], + data_connection_name: "models.DataConnectionCheckNameRequest", **kwargs ) -> "models.CheckNameResult": """Checks that the data connection name is valid and is not already in use. @@ -278,10 +270,8 @@ async def check_name_availability( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param name: Data Connection name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/databases/dataConnections. - :type type: str or ~kusto_management_client.models.Type + :param data_connection_name: The name of the data connection. + :type data_connection_name: ~kusto_management_client.models.DataConnectionCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -292,8 +282,6 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - data_connection_name = models.DataConnectionCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_principal_assignment_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_principal_assignments_operations.py similarity index 93% rename from src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_principal_assignment_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_principal_assignments_operations.py index 710a8a21117..1816f8fa653 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_principal_assignment_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_principal_assignments_operations.py @@ -21,8 +21,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class DatabasePrincipalAssignmentOperations: - """DatabasePrincipalAssignmentOperations async operations. +class DatabasePrincipalAssignmentsOperations: + """DatabasePrincipalAssignmentsOperations async operations. 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. @@ -48,8 +48,7 @@ async def check_name_availability( resource_group_name: str, cluster_name: str, database_name: str, - name: str, - type: Union[str, "models.Type"], + principal_assignment_name: "models.DatabasePrincipalAssignmentCheckNameRequest", **kwargs ) -> "models.CheckNameResult": """Checks that the database principal assignment is valid and is not already in use. @@ -60,10 +59,8 @@ async def check_name_availability( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param name: Principal Assignment resource name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/databases/principalAssignments. - :type type: str or ~kusto_management_client.models.Type + :param principal_assignment_name: The name of the resource. + :type principal_assignment_name: ~kusto_management_client.models.DatabasePrincipalAssignmentCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -74,8 +71,6 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - principal_assignment_name = models.DatabasePrincipalAssignmentCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -190,10 +185,7 @@ async def _create_or_update_initial( cluster_name: str, database_name: str, principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.DatabasePrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, + parameters: "models.DatabasePrincipalAssignment", **kwargs ) -> "models.DatabasePrincipalAssignment": cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalAssignment"] @@ -201,8 +193,6 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.DatabasePrincipalAssignment(principal_id=principal_id, role=role, tenant_id=tenant_id, principal_type=principal_type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -256,10 +246,7 @@ async def begin_create_or_update( cluster_name: str, database_name: str, principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.DatabasePrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, + parameters: "models.DatabasePrincipalAssignment", **kwargs ) -> AsyncLROPoller["models.DatabasePrincipalAssignment"]: """Creates a Kusto cluster database principalAssignment. @@ -272,15 +259,8 @@ async def begin_create_or_update( :type database_name: str :param principal_assignment_name: The name of the Kusto principalAssignment. :type principal_assignment_name: str - :param principal_id: The principal ID assigned to the database principal. It can be a user - email, application ID, or security group name. - :type principal_id: str - :param role: Database principal role. - :type role: str or ~kusto_management_client.models.DatabasePrincipalRole - :param tenant_id: The tenant id of the principal. - :type tenant_id: str - :param principal_type: Principal type. - :type principal_type: str or ~kusto_management_client.models.PrincipalType + :param parameters: The Kusto principalAssignments parameters supplied for the operation. + :type parameters: ~kusto_management_client.models.DatabasePrincipalAssignment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -304,10 +284,7 @@ async def begin_create_or_update( cluster_name=cluster_name, database_name=database_name, principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_databases_operations.py similarity index 95% rename from src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_databases_operations.py index dfe13681db2..f2fb6bf2cf3 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_database_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_databases_operations.py @@ -5,7 +5,7 @@ # 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, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList @@ -21,8 +21,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class DatabaseOperations: - """DatabaseOperations async operations. +class DatabasesOperations: + """DatabasesOperations async operations. 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. @@ -47,8 +47,7 @@ async def check_name_availability( self, resource_group_name: str, cluster_name: str, - name: str, - type: Union[str, "models.Type"], + resource_name: "models.CheckNameRequest", **kwargs ) -> "models.CheckNameResult": """Checks that the database name is valid and is not already in use. @@ -57,10 +56,8 @@ async def check_name_availability( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param name: Resource name. - :type name: str - :param type: The type of resource, for instance Microsoft.Kusto/clusters/databases. - :type type: str or ~kusto_management_client.models.Type + :param resource_name: The name of the resource. + :type resource_name: ~kusto_management_client.models.CheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -71,8 +68,6 @@ async def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - resource_name = models.CheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -641,7 +636,7 @@ def get_long_running_output(pipeline_response): return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - def list_principal( + def list_principals( self, resource_group_name: str, cluster_name: str, @@ -676,7 +671,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_principal.metadata['url'] # type: ignore + url = self.list_principals.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -717,14 +712,14 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals'} # type: ignore + list_principals.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals'} # type: ignore - async def add_principal( + async def add_principals( self, resource_group_name: str, cluster_name: str, database_name: str, - value: Optional[List["models.DatabasePrincipal"]] = None, + database_principals_to_add: "models.DatabasePrincipalListRequest", **kwargs ) -> "models.DatabasePrincipalListResult": """Add Database principals permissions. @@ -735,8 +730,8 @@ async def add_principal( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param value: The list of Kusto database principals. - :type value: list[~kusto_management_client.models.DatabasePrincipal] + :param database_principals_to_add: List of database principals to add. + :type database_principals_to_add: ~kusto_management_client.models.DatabasePrincipalListRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: DatabasePrincipalListResult, or the result of cls(response) :rtype: ~kusto_management_client.models.DatabasePrincipalListResult @@ -747,14 +742,12 @@ async def add_principal( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - database_principals_to_add = models.DatabasePrincipalListRequest(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_principal.metadata['url'] # type: ignore + url = self.add_principals.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -789,14 +782,14 @@ async def add_principal( return cls(pipeline_response, deserialized, {}) return deserialized - add_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals'} # type: ignore + add_principals.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals'} # type: ignore - async def remove_principal( + async def remove_principals( self, resource_group_name: str, cluster_name: str, database_name: str, - value: Optional[List["models.DatabasePrincipal"]] = None, + database_principals_to_remove: "models.DatabasePrincipalListRequest", **kwargs ) -> "models.DatabasePrincipalListResult": """Remove Database principals permissions. @@ -807,8 +800,8 @@ async def remove_principal( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param value: The list of Kusto database principals. - :type value: list[~kusto_management_client.models.DatabasePrincipal] + :param database_principals_to_remove: List of database principals to remove. + :type database_principals_to_remove: ~kusto_management_client.models.DatabasePrincipalListRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: DatabasePrincipalListResult, or the result of cls(response) :rtype: ~kusto_management_client.models.DatabasePrincipalListResult @@ -819,14 +812,12 @@ async def remove_principal( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - database_principals_to_remove = models.DatabasePrincipalListRequest(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.remove_principal.metadata['url'] # type: ignore + url = self.remove_principals.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -861,4 +852,4 @@ async def remove_principal( return cls(pipeline_response, deserialized, {}) return deserialized - remove_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals'} # type: ignore + remove_principals.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_operation_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_operations.py similarity index 98% rename from src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_operation_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_operations.py index 82a4c845b91..4087210b098 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_operation_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations/_operations.py @@ -19,8 +19,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] -class OperationOperations: - """OperationOperations async operations. +class Operations: + """Operations async operations. 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. diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/__init__.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/__init__.py deleted file mode 100644 index e173d033126..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# 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 ._cluster_operations_async import ClusterOperations -from ._cluster_principal_assignment_operations_async import ClusterPrincipalAssignmentOperations -from ._database_operations_async import DatabaseOperations -from ._database_principal_assignment_operations_async import DatabasePrincipalAssignmentOperations -from ._attached_database_configuration_operations_async import AttachedDatabaseConfigurationOperations -from ._data_connection_operations_async import DataConnectionOperations -from ._operation_operations_async import OperationOperations - -__all__ = [ - 'ClusterOperations', - 'ClusterPrincipalAssignmentOperations', - 'DatabaseOperations', - 'DatabasePrincipalAssignmentOperations', - 'AttachedDatabaseConfigurationOperations', - 'DataConnectionOperations', - 'OperationOperations', -] diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_attached_database_configuration_operations_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_attached_database_configuration_operations_async.py deleted file mode 100644 index f42d9b81c9c..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_attached_database_configuration_operations_async.py +++ /dev/null @@ -1,408 +0,0 @@ -# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -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.exceptions import ARMErrorFormat -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 AttachedDatabaseConfigurationOperations: - """AttachedDatabaseConfigurationOperations async operations. - - 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: ~kusto_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_cluster( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> AsyncIterable["models.AttachedDatabaseConfigurationListResult"]: - """Returns the list of attached database configurations of the given Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either AttachedDatabaseConfigurationListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.AttachedDatabaseConfigurationListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AttachedDatabaseConfigurationListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_cluster.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('AttachedDatabaseConfigurationListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations'} # type: ignore - - async def get( - self, - resource_group_name: str, - cluster_name: str, - attached_database_configuration_name: str, - **kwargs - ) -> "models.AttachedDatabaseConfiguration": - """Returns an attached database configuration. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param attached_database_configuration_name: The name of the attached database configuration. - :type attached_database_configuration_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: AttachedDatabaseConfiguration, or the result of cls(response) - :rtype: ~kusto_management_client.models.AttachedDatabaseConfiguration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AttachedDatabaseConfiguration"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'attachedDatabaseConfigurationName': self._serialize.url("attached_database_configuration_name", attached_database_configuration_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('AttachedDatabaseConfiguration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - cluster_name: str, - attached_database_configuration_name: str, - location: Optional[str] = None, - database_name: Optional[str] = None, - cluster_resource_id: Optional[str] = None, - default_principals_modification_kind: Optional[Union[str, "models.DefaultPrincipalsModificationKind"]] = None, - **kwargs - ) -> "models.AttachedDatabaseConfiguration": - cls = kwargs.pop('cls', None) # type: ClsType["models.AttachedDatabaseConfiguration"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _parameters = models.AttachedDatabaseConfiguration(location=location, database_name=database_name, cluster_resource_id=cluster_resource_id, default_principals_modification_kind=default_principals_modification_kind) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'attachedDatabaseConfigurationName': self._serialize.url("attached_database_configuration_name", attached_database_configuration_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_parameters, 'AttachedDatabaseConfiguration') - 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, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('AttachedDatabaseConfiguration', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('AttachedDatabaseConfiguration', pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize('AttachedDatabaseConfiguration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} # type: ignore - - async def create_or_update( - self, - resource_group_name: str, - cluster_name: str, - attached_database_configuration_name: str, - location: Optional[str] = None, - database_name: Optional[str] = None, - cluster_resource_id: Optional[str] = None, - default_principals_modification_kind: Optional[Union[str, "models.DefaultPrincipalsModificationKind"]] = None, - **kwargs - ) -> "models.AttachedDatabaseConfiguration": - """Creates or updates an attached database configuration. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param attached_database_configuration_name: The name of the attached database configuration. - :type attached_database_configuration_name: str - :param location: Resource location. - :type location: str - :param database_name: The name of the database which you would like to attach, use * if you - want to follow all current and future databases. - :type database_name: str - :param cluster_resource_id: The resource id of the cluster where the databases you would like - to attach reside. - :type cluster_resource_id: str - :param default_principals_modification_kind: The default principals modification kind. - :type default_principals_modification_kind: str or ~kusto_management_client.models.DefaultPrincipalsModificationKind - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: AttachedDatabaseConfiguration, or the result of cls(response) - :rtype: ~kusto_management_client.models.AttachedDatabaseConfiguration - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.AttachedDatabaseConfiguration"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name, - location=location, - database_name=database_name, - cluster_resource_id=cluster_resource_id, - default_principals_modification_kind=default_principals_modification_kind, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('AttachedDatabaseConfiguration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - cluster_name: str, - attached_database_configuration_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'attachedDatabaseConfigurationName': self._serialize.url("attached_database_configuration_name", attached_database_configuration_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} # type: ignore - - async def delete( - self, - resource_group_name: str, - cluster_name: str, - attached_database_configuration_name: str, - **kwargs - ) -> None: - """Deletes the attached database configuration with the given name. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param attached_database_configuration_name: The name of the attached database configuration. - :type attached_database_configuration_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - attached_database_configuration_name=attached_database_configuration_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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.Kusto/clusters/{clusterName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_operations_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_operations_async.py deleted file mode 100644 index 382ed19396a..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_operations_async.py +++ /dev/null @@ -1,1607 +0,0 @@ -# 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, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -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.exceptions import ARMErrorFormat -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 ClusterOperations: - """ClusterOperations async operations. - - 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: ~kusto_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, - cluster_name: str, - **kwargs - ) -> "models.Cluster": - """Gets a Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Cluster, or the result of cls(response) - :rtype: ~kusto_management_client.models.Cluster - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Cluster"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('Cluster', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'} # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - cluster_name: str, - location: str, - sku: "models.AzureSku", - tags: Optional[Dict[str, str]] = None, - zones: Optional[List[str]] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, - **kwargs - ) -> "models.Cluster": - cls = kwargs.pop('cls', None) # type: ClsType["models.Cluster"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _parameters = models.Cluster(tags=tags, location=location, sku=sku, zones=zones, trusted_external_tenants=trusted_external_tenants, optimized_autoscale=optimized_autoscale, enable_disk_encryption=enable_disk_encryption, enable_streaming_ingest=enable_streaming_ingest, virtual_network_configuration=virtual_network_configuration, key_vault_properties=key_vault_properties, enable_purge=enable_purge, enable_double_encryption=enable_double_encryption, type_identity_type=type, user_assigned_identities=user_assigned_identities) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_parameters, 'Cluster') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('Cluster', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('Cluster', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'} # type: ignore - - async def create_or_update( - self, - resource_group_name: str, - cluster_name: str, - location: str, - sku: "models.AzureSku", - tags: Optional[Dict[str, str]] = None, - zones: Optional[List[str]] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, - **kwargs - ) -> "models.Cluster": - """Create or update a Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param location: The geo-location where the resource lives. - :type location: str - :param sku: The SKU of the cluster. - :type sku: ~kusto_management_client.models.AzureSku - :param tags: Resource tags. - :type tags: dict[str, str] - :param zones: The availability zones of the cluster. - :type zones: list[str] - :param trusted_external_tenants: The cluster's external tenants. - :type trusted_external_tenants: list[~kusto_management_client.models.TrustedExternalTenant] - :param optimized_autoscale: Optimized auto scale definition. - :type optimized_autoscale: ~kusto_management_client.models.OptimizedAutoscale - :param enable_disk_encryption: A boolean value that indicates if the cluster's disks are - encrypted. - :type enable_disk_encryption: bool - :param enable_streaming_ingest: A boolean value that indicates if the streaming ingest is - enabled. - :type enable_streaming_ingest: bool - :param virtual_network_configuration: Virtual network definition. - :type virtual_network_configuration: ~kusto_management_client.models.VirtualNetworkConfiguration - :param key_vault_properties: KeyVault properties for the cluster encryption. - :type key_vault_properties: ~kusto_management_client.models.KeyVaultProperties - :param enable_purge: A boolean value that indicates if the purge operations are enabled. - :type enable_purge: bool - :param enable_double_encryption: A boolean value that indicates if double encryption is - enabled. - :type enable_double_encryption: bool - :param type: The identity type. - :type type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: Cluster, or the result of cls(response) - :rtype: ~kusto_management_client.models.Cluster - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.Cluster"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - location=location, - sku=sku, - tags=tags, - zones=zones, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=type, - user_assigned_identities=user_assigned_identities, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('Cluster', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'} # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - cluster_name: str, - tags: Optional[Dict[str, str]] = None, - location: Optional[str] = None, - sku: Optional["models.AzureSku"] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, - **kwargs - ) -> "models.Cluster": - cls = kwargs.pop('cls', None) # type: ClsType["models.Cluster"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _parameters = models.ClusterUpdate(tags=tags, location=location, sku=sku, trusted_external_tenants=trusted_external_tenants, optimized_autoscale=optimized_autoscale, enable_disk_encryption=enable_disk_encryption, enable_streaming_ingest=enable_streaming_ingest, virtual_network_configuration=virtual_network_configuration, key_vault_properties=key_vault_properties, enable_purge=enable_purge, enable_double_encryption=enable_double_encryption, type_identity_type=type, user_assigned_identities=user_assigned_identities) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_parameters, 'ClusterUpdate') - 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, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('Cluster', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('Cluster', pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize('Cluster', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'} # type: ignore - - async def update( - self, - resource_group_name: str, - cluster_name: str, - tags: Optional[Dict[str, str]] = None, - location: Optional[str] = None, - sku: Optional["models.AzureSku"] = None, - trusted_external_tenants: Optional[List["models.TrustedExternalTenant"]] = None, - optimized_autoscale: Optional["models.OptimizedAutoscale"] = None, - enable_disk_encryption: Optional[bool] = None, - enable_streaming_ingest: Optional[bool] = False, - virtual_network_configuration: Optional["models.VirtualNetworkConfiguration"] = None, - key_vault_properties: Optional["models.KeyVaultProperties"] = None, - enable_purge: Optional[bool] = False, - enable_double_encryption: Optional[bool] = False, - type: Optional[Union[str, "models.IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, - **kwargs - ) -> "models.Cluster": - """Update a Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Resource location. - :type location: str - :param sku: The SKU of the cluster. - :type sku: ~kusto_management_client.models.AzureSku - :param trusted_external_tenants: The cluster's external tenants. - :type trusted_external_tenants: list[~kusto_management_client.models.TrustedExternalTenant] - :param optimized_autoscale: Optimized auto scale definition. - :type optimized_autoscale: ~kusto_management_client.models.OptimizedAutoscale - :param enable_disk_encryption: A boolean value that indicates if the cluster's disks are - encrypted. - :type enable_disk_encryption: bool - :param enable_streaming_ingest: A boolean value that indicates if the streaming ingest is - enabled. - :type enable_streaming_ingest: bool - :param virtual_network_configuration: Virtual network definition. - :type virtual_network_configuration: ~kusto_management_client.models.VirtualNetworkConfiguration - :param key_vault_properties: KeyVault properties for the cluster encryption. - :type key_vault_properties: ~kusto_management_client.models.KeyVaultProperties - :param enable_purge: A boolean value that indicates if the purge operations are enabled. - :type enable_purge: bool - :param enable_double_encryption: A boolean value that indicates if double encryption is - enabled. - :type enable_double_encryption: bool - :param type: The identity type. - :type type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: Cluster, or the result of cls(response) - :rtype: ~kusto_management_client.models.Cluster - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.Cluster"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - tags=tags, - location=location, - sku=sku, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=type, - user_assigned_identities=user_assigned_identities, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('Cluster', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}'} # type: ignore - - async def delete( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> None: - """Deletes a Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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.Kusto/clusters/{clusterName}'} # type: ignore - - async def _stop_initial( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._stop_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - - # 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop'} # type: ignore - - async def stop( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> None: - """Stops a Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._stop_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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) - stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/stop'} # type: ignore - - async def _start_initial( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._start_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - - # 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start'} # type: ignore - - async def start( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> None: - """Starts a Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._start_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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) - start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start'} # type: ignore - - def list_follower_database( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> AsyncIterable["models.FollowerDatabaseListResult"]: - """Returns a list of databases that are owned by this cluster and were followed by another cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either FollowerDatabaseListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.FollowerDatabaseListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.FollowerDatabaseListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_follower_database.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('FollowerDatabaseListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_follower_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases'} # type: ignore - - async def _detach_follower_database_initial( - self, - resource_group_name: str, - cluster_name: str, - cluster_resource_id: str, - attached_database_configuration_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _follower_database_to_remove = models.FollowerDatabaseDefinition(cluster_resource_id=cluster_resource_id, attached_database_configuration_name=attached_database_configuration_name) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._detach_follower_database_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_follower_database_to_remove, 'FollowerDatabaseDefinition') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _detach_follower_database_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore - - async def detach_follower_database( - self, - resource_group_name: str, - cluster_name: str, - cluster_resource_id: str, - attached_database_configuration_name: str, - **kwargs - ) -> None: - """Detaches all followers of a database owned by this cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param cluster_resource_id: Resource id of the cluster that follows a database owned by this - cluster. - :type cluster_resource_id: str - :param attached_database_configuration_name: Resource name of the attached database - configuration in the follower cluster. - :type attached_database_configuration_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._detach_follower_database_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - cluster_resource_id=cluster_resource_id, - attached_database_configuration_name=attached_database_configuration_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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) - detach_follower_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore - - async def _diagnose_virtual_network_initial( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> "models.DiagnoseVirtualNetworkResult": - cls = kwargs.pop('cls', None) # type: ClsType["models.DiagnoseVirtualNetworkResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._diagnose_virtual_network_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DiagnoseVirtualNetworkResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _diagnose_virtual_network_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/diagnoseVirtualNetwork'} # type: ignore - - async def diagnose_virtual_network( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> "models.DiagnoseVirtualNetworkResult": - """Diagnoses network connectivity status for external resources on which the service is dependent on. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: DiagnoseVirtualNetworkResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.DiagnoseVirtualNetworkResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.DiagnoseVirtualNetworkResult"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._diagnose_virtual_network_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('DiagnoseVirtualNetworkResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **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) - diagnose_virtual_network.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/diagnoseVirtualNetwork'} # type: ignore - - def list_by_resource_group( - self, - resource_group_name: str, - **kwargs - ) -> AsyncIterable["models.ClusterListResult"]: - """Lists all Kusto clusters within a resource group. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ClusterListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.ClusterListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ClusterListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_resource_group.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('ClusterListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters'} # type: ignore - - def list( - self, - **kwargs - ) -> AsyncIterable["models.ClusterListResult"]: - """Lists all Kusto clusters within a subscription. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ClusterListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.ClusterListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ClusterListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - 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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('ClusterListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters'} # type: ignore - - def list_sku( - self, - **kwargs - ) -> AsyncIterable["models.SkuDescriptionList"]: - """Lists eligible SKUs for Kusto resource provider. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either SkuDescriptionList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.SkuDescriptionList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.SkuDescriptionList"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_sku.metadata['url'] # type: ignore - 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) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('SkuDescriptionList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_sku.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus'} # type: ignore - - async def check_name_availability( - self, - location: str, - name: str, - type: Union[str, "models.Type"], - **kwargs - ) -> "models.CheckNameResult": - """Checks that the cluster name is valid and is not already in use. - - :param location: Azure location. - :type location: str - :param name: Cluster name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters. - :type type: str or ~kusto_management_client.models.Type - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckNameResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.CheckNameResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _cluster_name = models.ClusterCheckNameRequest(name=name, type=type) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_cluster_name, 'ClusterCheckNameRequest') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CheckNameResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability'} # type: ignore - - def list_sku_by_resource( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> AsyncIterable["models.ListResourceSkusResult"]: - """Returns the SKUs available for the provided resource. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ListResourceSkusResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.ListResourceSkusResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ListResourceSkusResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_sku_by_resource.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('ListResourceSkusResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_sku_by_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus'} # type: ignore - - def list_language_extension( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> AsyncIterable["models.LanguageExtensionsList"]: - """Returns a list of language extensions that can run within KQL queries. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either LanguageExtensionsList or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.LanguageExtensionsList] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.LanguageExtensionsList"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_language_extension.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('LanguageExtensionsList', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions'} # type: ignore - - async def _add_language_extension_initial( - self, - resource_group_name: str, - cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _language_extensions_to_add = models.LanguageExtensionsList(value=value) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._add_language_extension_initial.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_language_extensions_to_add, 'LanguageExtensionsList') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _add_language_extension_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore - - async def add_language_extension( - self, - resource_group_name: str, - cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, - **kwargs - ) -> None: - """Add a list of language extensions that can run within KQL queries. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param value: The list of language extensions. - :type value: list[~kusto_management_client.models.LanguageExtension] - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._add_language_extension_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - value=value, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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) - add_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore - - async def _remove_language_extension_initial( - self, - resource_group_name: str, - cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _language_extensions_to_remove = models.LanguageExtensionsList(value=value) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._remove_language_extension_initial.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_language_extensions_to_remove, 'LanguageExtensionsList') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _remove_language_extension_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore - - async def remove_language_extension( - self, - resource_group_name: str, - cluster_name: str, - value: Optional[List["models.LanguageExtension"]] = None, - **kwargs - ) -> None: - """Remove a list of language extensions that can run within KQL queries. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param value: The list of language extensions. - :type value: list[~kusto_management_client.models.LanguageExtension] - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._remove_language_extension_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - value=value, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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) - remove_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_principal_assignment_operations_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_principal_assignment_operations_async.py deleted file mode 100644 index 9c35c6bb8c0..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_principal_assignment_operations_async.py +++ /dev/null @@ -1,474 +0,0 @@ -# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -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.exceptions import ARMErrorFormat -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 ClusterPrincipalAssignmentOperations: - """ClusterPrincipalAssignmentOperations async operations. - - 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: ~kusto_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 check_name_availability( - self, - resource_group_name: str, - cluster_name: str, - name: str, - type: Union[str, "models.Type"], - **kwargs - ) -> "models.CheckNameResult": - """Checks that the principal assignment name is valid and is not already in use. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param name: Principal Assignment resource name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/principalAssignments. - :type type: str or ~kusto_management_client.models.Type - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckNameResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.CheckNameResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _principal_assignment_name = models.ClusterPrincipalAssignmentCheckNameRequest(name=name, type=type) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_principal_assignment_name, 'ClusterPrincipalAssignmentCheckNameRequest') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CheckNameResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkPrincipalAssignmentNameAvailability'} # type: ignore - - async def get( - self, - resource_group_name: str, - cluster_name: str, - principal_assignment_name: str, - **kwargs - ) -> "models.ClusterPrincipalAssignment": - """Gets a Kusto cluster principalAssignment. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param principal_assignment_name: The name of the Kusto principalAssignment. - :type principal_assignment_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: ClusterPrincipalAssignment, or the result of cls(response) - :rtype: ~kusto_management_client.models.ClusterPrincipalAssignment - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ClusterPrincipalAssignment"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'principalAssignmentName': self._serialize.url("principal_assignment_name", principal_assignment_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('ClusterPrincipalAssignment', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - cluster_name: str, - principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.ClusterPrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, - **kwargs - ) -> "models.ClusterPrincipalAssignment": - cls = kwargs.pop('cls', None) # type: ClsType["models.ClusterPrincipalAssignment"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _parameters = models.ClusterPrincipalAssignment(principal_id=principal_id, role=role, tenant_id=tenant_id, principal_type=principal_type) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'principalAssignmentName': self._serialize.url("principal_assignment_name", principal_assignment_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_parameters, 'ClusterPrincipalAssignment') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('ClusterPrincipalAssignment', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('ClusterPrincipalAssignment', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def create_or_update( - self, - resource_group_name: str, - cluster_name: str, - principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.ClusterPrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, - **kwargs - ) -> "models.ClusterPrincipalAssignment": - """Create a Kusto cluster principalAssignment. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param principal_assignment_name: The name of the Kusto principalAssignment. - :type principal_assignment_name: str - :param principal_id: The principal ID assigned to the cluster principal. It can be a user - email, application ID, or security group name. - :type principal_id: str - :param role: Cluster principal role. - :type role: str or ~kusto_management_client.models.ClusterPrincipalRole - :param tenant_id: The tenant id of the principal. - :type tenant_id: str - :param principal_type: Principal type. - :type principal_type: str or ~kusto_management_client.models.PrincipalType - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: ClusterPrincipalAssignment, or the result of cls(response) - :rtype: ~kusto_management_client.models.ClusterPrincipalAssignment - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ClusterPrincipalAssignment"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('ClusterPrincipalAssignment', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - cluster_name: str, - principal_assignment_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'principalAssignmentName': self._serialize.url("principal_assignment_name", principal_assignment_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def delete( - self, - resource_group_name: str, - cluster_name: str, - principal_assignment_name: str, - **kwargs - ) -> None: - """Deletes a Kusto cluster principalAssignment. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param principal_assignment_name: The name of the Kusto principalAssignment. - :type principal_assignment_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - principal_assignment_name=principal_assignment_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - def list( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> AsyncIterable["models.ClusterPrincipalAssignmentListResult"]: - """Lists all Kusto cluster principalAssignments. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ClusterPrincipalAssignmentListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.ClusterPrincipalAssignmentListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ClusterPrincipalAssignmentListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('ClusterPrincipalAssignmentListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_data_connection_operations_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_data_connection_operations_async.py deleted file mode 100644 index b4a7b8ff101..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_data_connection_operations_async.py +++ /dev/null @@ -1,730 +0,0 @@ -# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -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.exceptions import ARMErrorFormat -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 DataConnectionOperations: - """DataConnectionOperations async operations. - - 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: ~kusto_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_database( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - **kwargs - ) -> AsyncIterable["models.DataConnectionListResult"]: - """Returns the list of data connections of the given Kusto database. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either DataConnectionListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.DataConnectionListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnectionListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_database.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('DataConnectionListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections'} # type: ignore - - async def _data_connection_validation_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: Optional[str] = None, - properties: Optional["models.DataConnection"] = None, - **kwargs - ) -> "models.DataConnectionValidationListResult": - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnectionValidationListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _parameters = models.DataConnectionValidation(data_connection_name=data_connection_name, properties=properties) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._data_connection_validation_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_parameters, 'DataConnectionValidation') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DataConnectionValidationListResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _data_connection_validation_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation'} # type: ignore - - async def data_connection_validation( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: Optional[str] = None, - properties: Optional["models.DataConnection"] = None, - **kwargs - ) -> "models.DataConnectionValidationListResult": - """Checks that the data connection parameters are valid. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param data_connection_name: The name of the data connection. - :type data_connection_name: str - :param properties: The data connection properties to validate. - :type properties: ~kusto_management_client.models.DataConnection - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: DataConnectionValidationListResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.DataConnectionValidationListResult - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnectionValidationListResult"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._data_connection_validation_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - properties=properties, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('DataConnectionValidationListResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - if polling is True: polling_method = AsyncARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **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) - data_connection_validation.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnectionValidation'} # type: ignore - - async def check_name_availability( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - name: str, - type: Union[str, "models.Type"], - **kwargs - ) -> "models.CheckNameResult": - """Checks that the data connection name is valid and is not already in use. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param name: Data Connection name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/databases/dataConnections. - :type type: str or ~kusto_management_client.models.Type - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckNameResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.CheckNameResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _data_connection_name = models.DataConnectionCheckNameRequest(name=name, type=type) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_data_connection_name, 'DataConnectionCheckNameRequest') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CheckNameResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkNameAvailability'} # type: ignore - - async def get( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: str, - **kwargs - ) -> "models.DataConnection": - """Returns a data connection. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param data_connection_name: The name of the data connection. - :type data_connection_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DataConnection, or the result of cls(response) - :rtype: ~kusto_management_client.models.DataConnection - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnection"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'dataConnectionName': self._serialize.url("data_connection_name", data_connection_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('DataConnection', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}'} # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: str, - parameters: "models.DataConnection", - **kwargs - ) -> "models.DataConnection": - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnection"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'dataConnectionName': self._serialize.url("data_connection_name", data_connection_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'DataConnection') - 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, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DataConnection', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('DataConnection', pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize('DataConnection', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}'} # type: ignore - - async def create_or_update( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: str, - parameters: "models.DataConnection", - **kwargs - ) -> "models.DataConnection": - """Creates or updates a data connection. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param data_connection_name: The name of the data connection. - :type data_connection_name: str - :param parameters: The data connection parameters supplied to the CreateOrUpdate operation. - :type parameters: ~kusto_management_client.models.DataConnection - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: DataConnection, or the result of cls(response) - :rtype: ~kusto_management_client.models.DataConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnection"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('DataConnection', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}'} # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: str, - parameters: "models.DataConnection", - **kwargs - ) -> "models.DataConnection": - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnection"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'dataConnectionName': self._serialize.url("data_connection_name", data_connection_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'DataConnection') - 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, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DataConnection', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('DataConnection', pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize('DataConnection', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}'} # type: ignore - - async def update( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: str, - parameters: "models.DataConnection", - **kwargs - ) -> "models.DataConnection": - """Updates a data connection. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param data_connection_name: The name of the data connection. - :type data_connection_name: str - :param parameters: The data connection parameters supplied to the Update operation. - :type parameters: ~kusto_management_client.models.DataConnection - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: DataConnection, or the result of cls(response) - :rtype: ~kusto_management_client.models.DataConnection - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.DataConnection"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - parameters=parameters, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('DataConnection', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'dataConnectionName': self._serialize.url("data_connection_name", data_connection_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}'} # type: ignore - - async def delete( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - data_connection_name: str, - **kwargs - ) -> None: - """Deletes the data connection with the given name. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param data_connection_name: The name of the data connection. - :type data_connection_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - data_connection_name=data_connection_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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.Kusto/clusters/{clusterName}/databases/{databaseName}/dataConnections/{dataConnectionName}'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_operations_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_operations_async.py deleted file mode 100644 index 340064db262..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_operations_async.py +++ /dev/null @@ -1,796 +0,0 @@ -# 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, AsyncIterable, Callable, Dict, Generic, List, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -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.exceptions import ARMErrorFormat -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 DatabaseOperations: - """DatabaseOperations async operations. - - 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: ~kusto_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 check_name_availability( - self, - resource_group_name: str, - cluster_name: str, - name: str, - type: Union[str, "models.Type"], - **kwargs - ) -> "models.CheckNameResult": - """Checks that the database name is valid and is not already in use. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param name: Resource name. - :type name: str - :param type: The type of resource, for instance Microsoft.Kusto/clusters/databases. - :type type: str or ~kusto_management_client.models.Type - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckNameResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.CheckNameResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _resource_name = models.CheckNameRequest(name=name, type=type) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_resource_name, 'CheckNameRequest') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CheckNameResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/checkNameAvailability'} # type: ignore - - def list_by_cluster( - self, - resource_group_name: str, - cluster_name: str, - **kwargs - ) -> AsyncIterable["models.DatabaseListResult"]: - """Returns the list of databases of the given Kusto cluster. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either DatabaseListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.DatabaseListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabaseListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_by_cluster.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('DatabaseListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases'} # type: ignore - - async def get( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - **kwargs - ) -> "models.Database": - """Returns a database. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Database, or the result of cls(response) - :rtype: ~kusto_management_client.models.Database - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.Database"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('Database', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - parameters: "models.Database", - **kwargs - ) -> "models.Database": - cls = kwargs.pop('cls', None) # type: ClsType["models.Database"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'Database') - 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, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('Database', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('Database', pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize('Database', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - - async def create_or_update( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - parameters: "models.Database", - **kwargs - ) -> "models.Database": - """Creates or updates a database. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param parameters: The database parameters supplied to the CreateOrUpdate operation. - :type parameters: ~kusto_management_client.models.Database - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: Database, or the result of cls(response) - :rtype: ~kusto_management_client.models.Database - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.Database"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - parameters=parameters, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('Database', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - - async def _update_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - parameters: "models.Database", - **kwargs - ) -> "models.Database": - cls = kwargs.pop('cls', None) # type: ClsType["models.Database"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._update_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'Database') - 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, 201, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('Database', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('Database', pipeline_response) - - if response.status_code == 202: - deserialized = self._deserialize('Database', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - - async def update( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - parameters: "models.Database", - **kwargs - ) -> "models.Database": - """Updates a database. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param parameters: The database parameters supplied to the Update operation. - :type parameters: ~kusto_management_client.models.Database - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: Database, or the result of cls(response) - :rtype: ~kusto_management_client.models.Database - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.Database"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - parameters=parameters, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('Database', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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) - update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - - async def delete( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - **kwargs - ) -> None: - """Deletes the database with the given name. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - - def list_principal( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - **kwargs - ) -> AsyncIterable["models.DatabasePrincipalListResult"]: - """Returns a list of database principals of the given Kusto cluster and database. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either DatabasePrincipalListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.DatabasePrincipalListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_principal.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('DatabasePrincipalListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals'} # type: ignore - - async def add_principal( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - value: Optional[List["models.DatabasePrincipal"]] = None, - **kwargs - ) -> "models.DatabasePrincipalListResult": - """Add Database principals permissions. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param value: The list of Kusto database principals. - :type value: list[~kusto_management_client.models.DatabasePrincipal] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DatabasePrincipalListResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.DatabasePrincipalListResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _database_principals_to_add = models.DatabasePrincipalListRequest(value=value) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.add_principal.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_database_principals_to_add, 'DatabasePrincipalListRequest') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('DatabasePrincipalListResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - add_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals'} # type: ignore - - async def remove_principal( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - value: Optional[List["models.DatabasePrincipal"]] = None, - **kwargs - ) -> "models.DatabasePrincipalListResult": - """Remove Database principals permissions. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param value: The list of Kusto database principals. - :type value: list[~kusto_management_client.models.DatabasePrincipal] - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DatabasePrincipalListResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.DatabasePrincipalListResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _database_principals_to_remove = models.DatabasePrincipalListRequest(value=value) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.remove_principal.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_database_principals_to_remove, 'DatabasePrincipalListRequest') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('DatabasePrincipalListResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - remove_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_principal_assignment_operations_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_principal_assignment_operations_async.py deleted file mode 100644 index 4a483658e04..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_principal_assignment_operations_async.py +++ /dev/null @@ -1,498 +0,0 @@ -# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -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.exceptions import ARMErrorFormat -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 DatabasePrincipalAssignmentOperations: - """DatabasePrincipalAssignmentOperations async operations. - - 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: ~kusto_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 check_name_availability( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - name: str, - type: Union[str, "models.Type"], - **kwargs - ) -> "models.CheckNameResult": - """Checks that the database principal assignment is valid and is not already in use. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param name: Principal Assignment resource name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/databases/principalAssignments. - :type type: str or ~kusto_management_client.models.Type - :keyword callable cls: A custom type or function that will be passed the direct response - :return: CheckNameResult, or the result of cls(response) - :rtype: ~kusto_management_client.models.CheckNameResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _principal_assignment_name = models.DatabasePrincipalAssignmentCheckNameRequest(name=name, type=type) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self.check_name_availability.metadata['url'] # type: ignore - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_principal_assignment_name, 'DatabasePrincipalAssignmentCheckNameRequest') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('CheckNameResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/checkPrincipalAssignmentNameAvailability'} # type: ignore - - async def get( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - principal_assignment_name: str, - **kwargs - ) -> "models.DatabasePrincipalAssignment": - """Gets a Kusto cluster database principalAssignment. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param principal_assignment_name: The name of the Kusto principalAssignment. - :type principal_assignment_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: DatabasePrincipalAssignment, or the result of cls(response) - :rtype: ~kusto_management_client.models.DatabasePrincipalAssignment - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalAssignment"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'principalAssignmentName': self._serialize.url("principal_assignment_name", principal_assignment_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('DatabasePrincipalAssignment', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def _create_or_update_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.DatabasePrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, - **kwargs - ) -> "models.DatabasePrincipalAssignment": - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalAssignment"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - - _parameters = models.DatabasePrincipalAssignment(principal_id=principal_id, role=role, tenant_id=tenant_id, principal_type=principal_type) - api_version = "2020-06-14" - content_type = kwargs.pop("content_type", "application/json") - - # Construct URL - url = self._create_or_update_initial.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'principalAssignmentName': self._serialize.url("principal_assignment_name", principal_assignment_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = 'application/json' - - # Construct and send request - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(_parameters, 'DatabasePrincipalAssignment') - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('DatabasePrincipalAssignment', pipeline_response) - - if response.status_code == 201: - deserialized = self._deserialize('DatabasePrincipalAssignment', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def create_or_update( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - principal_assignment_name: str, - principal_id: Optional[str] = None, - role: Optional[Union[str, "models.DatabasePrincipalRole"]] = None, - tenant_id: Optional[str] = None, - principal_type: Optional[Union[str, "models.PrincipalType"]] = None, - **kwargs - ) -> "models.DatabasePrincipalAssignment": - """Creates a Kusto cluster database principalAssignment. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param principal_assignment_name: The name of the Kusto principalAssignment. - :type principal_assignment_name: str - :param principal_id: The principal ID assigned to the database principal. It can be a user - email, application ID, or security group name. - :type principal_id: str - :param role: Database principal role. - :type role: str or ~kusto_management_client.models.DatabasePrincipalRole - :param tenant_id: The tenant id of the principal. - :type tenant_id: str - :param principal_type: Principal type. - :type principal_type: str or ~kusto_management_client.models.PrincipalType - :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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: DatabasePrincipalAssignment, or the result of cls(response) - :rtype: ~kusto_management_client.models.DatabasePrincipalAssignment - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalAssignment"] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._create_or_update_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - deserialized = self._deserialize('DatabasePrincipalAssignment', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - return deserialized - - 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_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def _delete_initial( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - principal_assignment_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - # Construct URL - url = self._delete_initial.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'principalAssignmentName': self._serialize.url("principal_assignment_name", principal_assignment_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - async def delete( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - principal_assignment_name: str, - **kwargs - ) -> None: - """Deletes a Kusto principalAssignment. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :param principal_assignment_name: The name of the Kusto principalAssignment. - :type principal_assignment_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 - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: None, or the result of cls(response) - :rtype: None - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - raw_result = await self._delete_initial( - resource_group_name=resource_group_name, - cluster_name=cluster_name, - database_name=database_name, - principal_assignment_name=principal_assignment_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - 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.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}'} # type: ignore - - def list( - self, - resource_group_name: str, - cluster_name: str, - database_name: str, - **kwargs - ) -> AsyncIterable["models.DatabasePrincipalAssignmentListResult"]: - """Lists all Kusto cluster database principalAssignments. - - :param resource_group_name: The name of the resource group containing the Kusto cluster. - :type resource_group_name: str - :param cluster_name: The name of the Kusto cluster. - :type cluster_name: str - :param database_name: The name of the database in the Kusto cluster. - :type database_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either DatabasePrincipalAssignmentListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.DatabasePrincipalAssignmentListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.DatabasePrincipalAssignmentListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - 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'), - 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('DatabasePrincipalAssignmentListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return None, 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/principalAssignments'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_operation_operations_async.py b/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_operation_operations_async.py deleted file mode 100644 index d8d07749184..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/aio/operations_async/_operation_operations_async.py +++ /dev/null @@ -1,101 +0,0 @@ -# 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, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -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.mgmt.core.exceptions import ARMErrorFormat - -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 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: ~kusto_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 - ) -> AsyncIterable["models.OperationListResult"]: - """Lists available operations for the Microsoft.Kusto provider. - - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either OperationListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~kusto_management_client.models.OperationListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-14" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list.metadata['url'] # type: ignore - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - # Construct headers - header_parameters = {} # type: 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('OperationListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(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) - - 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 HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list.metadata = {'url': '/providers/Microsoft.Kusto/operations'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/models/__init__.py b/src/kusto/azext_kusto/vendored_sdks/kusto/models/__init__.py index 3ab71bc3631..a85e849f8fa 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/models/__init__.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/models/__init__.py @@ -43,6 +43,7 @@ from ._models_py3 import EventHubDataConnection from ._models_py3 import FollowerDatabaseDefinition from ._models_py3 import FollowerDatabaseListResult + from ._models_py3 import Identity from ._models_py3 import IotHubDataConnection from ._models_py3 import KeyVaultProperties from ._models_py3 import LanguageExtension @@ -99,6 +100,7 @@ from ._models import EventHubDataConnection # type: ignore from ._models import FollowerDatabaseDefinition # type: ignore from ._models import FollowerDatabaseListResult # type: ignore + from ._models import Identity # type: ignore from ._models import IotHubDataConnection # type: ignore from ._models import KeyVaultProperties # type: ignore from ._models import LanguageExtension # type: ignore @@ -180,6 +182,7 @@ 'EventHubDataConnection', 'FollowerDatabaseDefinition', 'FollowerDatabaseListResult', + 'Identity', 'IotHubDataConnection', 'KeyVaultProperties', 'LanguageExtension', diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py index e8b0194f226..fb90dff685d 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models.py @@ -409,6 +409,8 @@ class Cluster(TrackedResource): :type sku: ~kusto_management_client.models.AzureSku :param zones: The availability zones of the cluster. :type zones: list[str] + :param identity: The identity of the cluster, if configured. + :type identity: ~kusto_management_client.models.Identity :ivar state: The state of the resource. Possible values include: "Creating", "Unavailable", "Running", "Deleting", "Deleted", "Stopping", "Stopped", "Starting", "Updating". :vartype state: str or ~kusto_management_client.models.State @@ -443,18 +445,6 @@ class Cluster(TrackedResource): :param enable_double_encryption: A boolean value that indicates if double encryption is enabled. :type enable_double_encryption: bool - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type_identity_type: The identity type. Possible values include: "None", - "SystemAssigned". - :type type_identity_type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] """ _validation = { @@ -469,8 +459,6 @@ class Cluster(TrackedResource): 'data_ingestion_uri': {'readonly': True}, 'state_reason': {'readonly': True}, 'language_extensions': {'readonly': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, } _attribute_map = { @@ -481,6 +469,7 @@ class Cluster(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, 'zones': {'key': 'zones', 'type': '[str]'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -495,10 +484,6 @@ class Cluster(TrackedResource): 'enable_purge': {'key': 'properties.enablePurge', 'type': 'bool'}, 'language_extensions': {'key': 'properties.languageExtensions', 'type': 'LanguageExtensionsList'}, 'enable_double_encryption': {'key': 'properties.enableDoubleEncryption', 'type': 'bool'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'identity.userAssignedIdentities', 'type': '{ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties}'}, } def __init__( @@ -508,6 +493,7 @@ def __init__( super(Cluster, self).__init__(**kwargs) self.sku = kwargs['sku'] self.zones = kwargs.get('zones', None) + self.identity = kwargs.get('identity', None) self.state = None self.provisioning_state = None self.uri = None @@ -522,10 +508,6 @@ def __init__( self.enable_purge = kwargs.get('enable_purge', False) self.language_extensions = None self.enable_double_encryption = kwargs.get('enable_double_encryption', False) - self.principal_id = None - self.tenant_id = None - self.type_identity_type = kwargs.get('type_identity_type', None) - self.user_assigned_identities = kwargs.get('user_assigned_identities', None) class ClusterCheckNameRequest(msrest.serialization.Model): @@ -723,6 +705,8 @@ class ClusterUpdate(Resource): :type location: str :param sku: The SKU of the cluster. :type sku: ~kusto_management_client.models.AzureSku + :param identity: The identity of the cluster, if configured. + :type identity: ~kusto_management_client.models.Identity :ivar state: The state of the resource. Possible values include: "Creating", "Unavailable", "Running", "Deleting", "Deleted", "Stopping", "Stopped", "Starting", "Updating". :vartype state: str or ~kusto_management_client.models.State @@ -757,18 +741,6 @@ class ClusterUpdate(Resource): :param enable_double_encryption: A boolean value that indicates if double encryption is enabled. :type enable_double_encryption: bool - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type_identity_type: The identity type. Possible values include: "None", - "SystemAssigned". - :type type_identity_type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] """ _validation = { @@ -781,8 +753,6 @@ class ClusterUpdate(Resource): 'data_ingestion_uri': {'readonly': True}, 'state_reason': {'readonly': True}, 'language_extensions': {'readonly': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, } _attribute_map = { @@ -792,6 +762,7 @@ class ClusterUpdate(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -806,10 +777,6 @@ class ClusterUpdate(Resource): 'enable_purge': {'key': 'properties.enablePurge', 'type': 'bool'}, 'language_extensions': {'key': 'properties.languageExtensions', 'type': 'LanguageExtensionsList'}, 'enable_double_encryption': {'key': 'properties.enableDoubleEncryption', 'type': 'bool'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'identity.userAssignedIdentities', 'type': '{ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties}'}, } def __init__( @@ -820,6 +787,7 @@ def __init__( self.tags = kwargs.get('tags', None) self.location = kwargs.get('location', None) self.sku = kwargs.get('sku', None) + self.identity = kwargs.get('identity', None) self.state = None self.provisioning_state = None self.uri = None @@ -834,10 +802,6 @@ def __init__( self.enable_purge = kwargs.get('enable_purge', False) self.language_extensions = None self.enable_double_encryption = kwargs.get('enable_double_encryption', False) - self.principal_id = None - self.tenant_id = None - self.type_identity_type = kwargs.get('type_identity_type', None) - self.user_assigned_identities = kwargs.get('user_assigned_identities', None) class ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties(msrest.serialization.Model): @@ -1591,6 +1555,50 @@ def __init__( self.value = kwargs.get('value', None) +class Identity(msrest.serialization.Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: Required. The identity type. Possible values include: "None", "SystemAssigned". + :type type: str or ~kusto_management_client.models.IdentityType + :param user_assigned_identities: The list of user identities associated with the Kusto cluster. + The user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties}'}, + } + + def __init__( + self, + **kwargs + ): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs['type'] + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) + + class IotHubDataConnection(DataConnection): """Class representing an iot hub data connection. diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py index 2ebd80310a5..a0b86af0bf1 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/models/_models_py3.py @@ -450,6 +450,8 @@ class Cluster(TrackedResource): :type sku: ~kusto_management_client.models.AzureSku :param zones: The availability zones of the cluster. :type zones: list[str] + :param identity: The identity of the cluster, if configured. + :type identity: ~kusto_management_client.models.Identity :ivar state: The state of the resource. Possible values include: "Creating", "Unavailable", "Running", "Deleting", "Deleted", "Stopping", "Stopped", "Starting", "Updating". :vartype state: str or ~kusto_management_client.models.State @@ -484,18 +486,6 @@ class Cluster(TrackedResource): :param enable_double_encryption: A boolean value that indicates if double encryption is enabled. :type enable_double_encryption: bool - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type_identity_type: The identity type. Possible values include: "None", - "SystemAssigned". - :type type_identity_type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] """ _validation = { @@ -510,8 +500,6 @@ class Cluster(TrackedResource): 'data_ingestion_uri': {'readonly': True}, 'state_reason': {'readonly': True}, 'language_extensions': {'readonly': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, } _attribute_map = { @@ -522,6 +510,7 @@ class Cluster(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, 'zones': {'key': 'zones', 'type': '[str]'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -536,10 +525,6 @@ class Cluster(TrackedResource): 'enable_purge': {'key': 'properties.enablePurge', 'type': 'bool'}, 'language_extensions': {'key': 'properties.languageExtensions', 'type': 'LanguageExtensionsList'}, 'enable_double_encryption': {'key': 'properties.enableDoubleEncryption', 'type': 'bool'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'identity.userAssignedIdentities', 'type': '{ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties}'}, } def __init__( @@ -549,6 +534,7 @@ def __init__( sku: "AzureSku", tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, + identity: Optional["Identity"] = None, trusted_external_tenants: Optional[List["TrustedExternalTenant"]] = None, optimized_autoscale: Optional["OptimizedAutoscale"] = None, enable_disk_encryption: Optional[bool] = None, @@ -557,13 +543,12 @@ def __init__( key_vault_properties: Optional["KeyVaultProperties"] = None, enable_purge: Optional[bool] = False, enable_double_encryption: Optional[bool] = False, - type_identity_type: Optional[Union[str, "IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, **kwargs ): super(Cluster, self).__init__(tags=tags, location=location, **kwargs) self.sku = sku self.zones = zones + self.identity = identity self.state = None self.provisioning_state = None self.uri = None @@ -578,10 +563,6 @@ def __init__( self.enable_purge = enable_purge self.language_extensions = None self.enable_double_encryption = enable_double_encryption - self.principal_id = None - self.tenant_id = None - self.type_identity_type = type_identity_type - self.user_assigned_identities = user_assigned_identities class ClusterCheckNameRequest(msrest.serialization.Model): @@ -794,6 +775,8 @@ class ClusterUpdate(Resource): :type location: str :param sku: The SKU of the cluster. :type sku: ~kusto_management_client.models.AzureSku + :param identity: The identity of the cluster, if configured. + :type identity: ~kusto_management_client.models.Identity :ivar state: The state of the resource. Possible values include: "Creating", "Unavailable", "Running", "Deleting", "Deleted", "Stopping", "Stopped", "Starting", "Updating". :vartype state: str or ~kusto_management_client.models.State @@ -828,18 +811,6 @@ class ClusterUpdate(Resource): :param enable_double_encryption: A boolean value that indicates if double encryption is enabled. :type enable_double_encryption: bool - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :param type_identity_type: The identity type. Possible values include: "None", - "SystemAssigned". - :type type_identity_type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, - ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] """ _validation = { @@ -852,8 +823,6 @@ class ClusterUpdate(Resource): 'data_ingestion_uri': {'readonly': True}, 'state_reason': {'readonly': True}, 'language_extensions': {'readonly': True}, - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, } _attribute_map = { @@ -863,6 +832,7 @@ class ClusterUpdate(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'location': {'key': 'location', 'type': 'str'}, 'sku': {'key': 'sku', 'type': 'AzureSku'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, 'state': {'key': 'properties.state', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'uri': {'key': 'properties.uri', 'type': 'str'}, @@ -877,10 +847,6 @@ class ClusterUpdate(Resource): 'enable_purge': {'key': 'properties.enablePurge', 'type': 'bool'}, 'language_extensions': {'key': 'properties.languageExtensions', 'type': 'LanguageExtensionsList'}, 'enable_double_encryption': {'key': 'properties.enableDoubleEncryption', 'type': 'bool'}, - 'principal_id': {'key': 'identity.principalId', 'type': 'str'}, - 'tenant_id': {'key': 'identity.tenantId', 'type': 'str'}, - 'type_identity_type': {'key': 'identity.type', 'type': 'str'}, - 'user_assigned_identities': {'key': 'identity.userAssignedIdentities', 'type': '{ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties}'}, } def __init__( @@ -889,6 +855,7 @@ def __init__( tags: Optional[Dict[str, str]] = None, location: Optional[str] = None, sku: Optional["AzureSku"] = None, + identity: Optional["Identity"] = None, trusted_external_tenants: Optional[List["TrustedExternalTenant"]] = None, optimized_autoscale: Optional["OptimizedAutoscale"] = None, enable_disk_encryption: Optional[bool] = None, @@ -897,14 +864,13 @@ def __init__( key_vault_properties: Optional["KeyVaultProperties"] = None, enable_purge: Optional[bool] = False, enable_double_encryption: Optional[bool] = False, - type_identity_type: Optional[Union[str, "IdentityType"]] = None, - user_assigned_identities: Optional[Dict[str, "ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, **kwargs ): super(ClusterUpdate, self).__init__(**kwargs) self.tags = tags self.location = location self.sku = sku + self.identity = identity self.state = None self.provisioning_state = None self.uri = None @@ -919,10 +885,6 @@ def __init__( self.enable_purge = enable_purge self.language_extensions = None self.enable_double_encryption = enable_double_encryption - self.principal_id = None - self.tenant_id = None - self.type_identity_type = type_identity_type - self.user_assigned_identities = user_assigned_identities class ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties(msrest.serialization.Model): @@ -1743,6 +1705,53 @@ def __init__( self.value = value +class Identity(msrest.serialization.Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar principal_id: The principal ID of resource identity. + :vartype principal_id: str + :ivar tenant_id: The tenant ID of resource. + :vartype tenant_id: str + :param type: Required. The identity type. Possible values include: "None", "SystemAssigned". + :type type: str or ~kusto_management_client.models.IdentityType + :param user_assigned_identities: The list of user identities associated with the Kusto cluster. + The user identity dictionary key references will be ARM resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties}'}, + } + + def __init__( + self, + *, + type: Union[str, "IdentityType"], + user_assigned_identities: Optional[Dict[str, "ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] = None, + **kwargs + ): + super(Identity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities + + class IotHubDataConnection(DataConnection): """Class representing an iot hub data connection. diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/__init__.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/__init__.py index 5750cdc82c5..fb6fa595386 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/__init__.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/__init__.py @@ -6,20 +6,20 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._cluster_operations import ClusterOperations -from ._cluster_principal_assignment_operations import ClusterPrincipalAssignmentOperations -from ._database_operations import DatabaseOperations -from ._database_principal_assignment_operations import DatabasePrincipalAssignmentOperations -from ._attached_database_configuration_operations import AttachedDatabaseConfigurationOperations -from ._data_connection_operations import DataConnectionOperations -from ._operation_operations import OperationOperations +from ._clusters_operations import ClustersOperations +from ._cluster_principal_assignments_operations import ClusterPrincipalAssignmentsOperations +from ._databases_operations import DatabasesOperations +from ._database_principal_assignments_operations import DatabasePrincipalAssignmentsOperations +from ._attached_database_configurations_operations import AttachedDatabaseConfigurationsOperations +from ._data_connections_operations import DataConnectionsOperations +from ._operations import Operations __all__ = [ - 'ClusterOperations', - 'ClusterPrincipalAssignmentOperations', - 'DatabaseOperations', - 'DatabasePrincipalAssignmentOperations', - 'AttachedDatabaseConfigurationOperations', - 'DataConnectionOperations', - 'OperationOperations', + 'ClustersOperations', + 'ClusterPrincipalAssignmentsOperations', + 'DatabasesOperations', + 'DatabasePrincipalAssignmentsOperations', + 'AttachedDatabaseConfigurationsOperations', + 'DataConnectionsOperations', + 'Operations', ] diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_attached_database_configuration_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_attached_database_configurations_operations.py similarity index 92% rename from src/kusto/azext_kusto/vendored_sdks/kusto/operations/_attached_database_configuration_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/operations/_attached_database_configurations_operations.py index a2cddc5c94d..32afc67d4d0 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_attached_database_configuration_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_attached_database_configurations_operations.py @@ -25,8 +25,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class AttachedDatabaseConfigurationOperations(object): - """AttachedDatabaseConfigurationOperations operations. +class AttachedDatabaseConfigurationsOperations(object): + """AttachedDatabaseConfigurationsOperations operations. 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. @@ -190,10 +190,7 @@ def _create_or_update_initial( resource_group_name, # type: str cluster_name, # type: str attached_database_configuration_name, # type: str - location=None, # type: Optional[str] - database_name=None, # type: Optional[str] - cluster_resource_id=None, # type: Optional[str] - default_principals_modification_kind=None, # type: Optional[Union[str, "models.DefaultPrincipalsModificationKind"]] + parameters, # type: "models.AttachedDatabaseConfiguration" **kwargs # type: Any ): # type: (...) -> "models.AttachedDatabaseConfiguration" @@ -202,8 +199,6 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.AttachedDatabaseConfiguration(location=location, database_name=database_name, cluster_resource_id=cluster_resource_id, default_principals_modification_kind=default_principals_modification_kind) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -258,10 +253,7 @@ def begin_create_or_update( resource_group_name, # type: str cluster_name, # type: str attached_database_configuration_name, # type: str - location=None, # type: Optional[str] - database_name=None, # type: Optional[str] - cluster_resource_id=None, # type: Optional[str] - default_principals_modification_kind=None, # type: Optional[Union[str, "models.DefaultPrincipalsModificationKind"]] + parameters, # type: "models.AttachedDatabaseConfiguration" **kwargs # type: Any ): # type: (...) -> LROPoller["models.AttachedDatabaseConfiguration"] @@ -273,16 +265,8 @@ def begin_create_or_update( :type cluster_name: str :param attached_database_configuration_name: The name of the attached database configuration. :type attached_database_configuration_name: str - :param location: Resource location. - :type location: str - :param database_name: The name of the database which you would like to attach, use * if you - want to follow all current and future databases. - :type database_name: str - :param cluster_resource_id: The resource id of the cluster where the databases you would like - to attach reside. - :type cluster_resource_id: str - :param default_principals_modification_kind: The default principals modification kind. - :type default_principals_modification_kind: str or ~kusto_management_client.models.DefaultPrincipalsModificationKind + :param parameters: The database parameters supplied to the CreateOrUpdate operation. + :type parameters: ~kusto_management_client.models.AttachedDatabaseConfiguration :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -305,10 +289,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, cluster_name=cluster_name, attached_database_configuration_name=attached_database_configuration_name, - location=location, - database_name=database_name, - cluster_resource_id=cluster_resource_id, - default_principals_modification_kind=default_principals_modification_kind, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignment_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignments_operations.py similarity index 93% rename from src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignment_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignments_operations.py index 06e3a1be6c4..c7947814f5d 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignment_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignments_operations.py @@ -25,8 +25,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class ClusterPrincipalAssignmentOperations(object): - """ClusterPrincipalAssignmentOperations operations. +class ClusterPrincipalAssignmentsOperations(object): + """ClusterPrincipalAssignmentsOperations operations. 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. @@ -51,8 +51,7 @@ def check_name_availability( self, resource_group_name, # type: str cluster_name, # type: str - name, # type: str - type, # type: Union[str, "models.Type"] + principal_assignment_name, # type: "models.ClusterPrincipalAssignmentCheckNameRequest" **kwargs # type: Any ): # type: (...) -> "models.CheckNameResult" @@ -62,10 +61,8 @@ def check_name_availability( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param name: Principal Assignment resource name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/principalAssignments. - :type type: str or ~kusto_management_client.models.Type + :param principal_assignment_name: The name of the principal assignment. + :type principal_assignment_name: ~kusto_management_client.models.ClusterPrincipalAssignmentCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -76,8 +73,6 @@ def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - principal_assignment_name = models.ClusterPrincipalAssignmentCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -187,10 +182,7 @@ def _create_or_update_initial( resource_group_name, # type: str cluster_name, # type: str principal_assignment_name, # type: str - principal_id=None, # type: Optional[str] - role=None, # type: Optional[Union[str, "models.ClusterPrincipalRole"]] - tenant_id=None, # type: Optional[str] - principal_type=None, # type: Optional[Union[str, "models.PrincipalType"]] + parameters, # type: "models.ClusterPrincipalAssignment" **kwargs # type: Any ): # type: (...) -> "models.ClusterPrincipalAssignment" @@ -199,8 +191,6 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.ClusterPrincipalAssignment(principal_id=principal_id, role=role, tenant_id=tenant_id, principal_type=principal_type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -252,10 +242,7 @@ def begin_create_or_update( resource_group_name, # type: str cluster_name, # type: str principal_assignment_name, # type: str - principal_id=None, # type: Optional[str] - role=None, # type: Optional[Union[str, "models.ClusterPrincipalRole"]] - tenant_id=None, # type: Optional[str] - principal_type=None, # type: Optional[Union[str, "models.PrincipalType"]] + parameters, # type: "models.ClusterPrincipalAssignment" **kwargs # type: Any ): # type: (...) -> LROPoller["models.ClusterPrincipalAssignment"] @@ -267,15 +254,9 @@ def begin_create_or_update( :type cluster_name: str :param principal_assignment_name: The name of the Kusto principalAssignment. :type principal_assignment_name: str - :param principal_id: The principal ID assigned to the cluster principal. It can be a user - email, application ID, or security group name. - :type principal_id: str - :param role: Cluster principal role. - :type role: str or ~kusto_management_client.models.ClusterPrincipalRole - :param tenant_id: The tenant id of the principal. - :type tenant_id: str - :param principal_type: Principal type. - :type principal_type: str or ~kusto_management_client.models.PrincipalType + :param parameters: The Kusto cluster principalAssignment's parameters supplied for the + operation. + :type parameters: ~kusto_management_client.models.ClusterPrincipalAssignment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -298,10 +279,7 @@ def begin_create_or_update( resource_group_name=resource_group_name, cluster_name=cluster_name, principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py similarity index 82% rename from src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py index d2a05bda492..93903b4e8ba 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_cluster_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py @@ -20,13 +20,13 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class ClusterOperations(object): - """ClusterOperations operations. +class ClustersOperations(object): + """ClustersOperations operations. 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. @@ -110,20 +110,7 @@ def _create_or_update_initial( self, resource_group_name, # type: str cluster_name, # type: str - location, # type: str - sku, # type: "models.AzureSku" - tags=None, # type: Optional[Dict[str, str]] - zones=None, # type: Optional[List[str]] - trusted_external_tenants=None, # type: Optional[List["models.TrustedExternalTenant"]] - optimized_autoscale=None, # type: Optional["models.OptimizedAutoscale"] - enable_disk_encryption=None, # type: Optional[bool] - enable_streaming_ingest=False, # type: Optional[bool] - virtual_network_configuration=None, # type: Optional["models.VirtualNetworkConfiguration"] - key_vault_properties=None, # type: Optional["models.KeyVaultProperties"] - enable_purge=False, # type: Optional[bool] - enable_double_encryption=False, # type: Optional[bool] - type=None, # type: Optional[Union[str, "models.IdentityType"]] - user_assigned_identities=None, # type: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] + parameters, # type: "models.Cluster" **kwargs # type: Any ): # type: (...) -> "models.Cluster" @@ -132,8 +119,6 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.Cluster(tags=tags, location=location, sku=sku, zones=zones, trusted_external_tenants=trusted_external_tenants, optimized_autoscale=optimized_autoscale, enable_disk_encryption=enable_disk_encryption, enable_streaming_ingest=enable_streaming_ingest, virtual_network_configuration=virtual_network_configuration, key_vault_properties=key_vault_properties, enable_purge=enable_purge, enable_double_encryption=enable_double_encryption, type_identity_type=type, user_assigned_identities=user_assigned_identities) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -183,20 +168,7 @@ def begin_create_or_update( self, resource_group_name, # type: str cluster_name, # type: str - location, # type: str - sku, # type: "models.AzureSku" - tags=None, # type: Optional[Dict[str, str]] - zones=None, # type: Optional[List[str]] - trusted_external_tenants=None, # type: Optional[List["models.TrustedExternalTenant"]] - optimized_autoscale=None, # type: Optional["models.OptimizedAutoscale"] - enable_disk_encryption=None, # type: Optional[bool] - enable_streaming_ingest=False, # type: Optional[bool] - virtual_network_configuration=None, # type: Optional["models.VirtualNetworkConfiguration"] - key_vault_properties=None, # type: Optional["models.KeyVaultProperties"] - enable_purge=False, # type: Optional[bool] - enable_double_encryption=False, # type: Optional[bool] - type=None, # type: Optional[Union[str, "models.IdentityType"]] - user_assigned_identities=None, # type: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] + parameters, # type: "models.Cluster" **kwargs # type: Any ): # type: (...) -> LROPoller["models.Cluster"] @@ -206,39 +178,8 @@ def begin_create_or_update( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param location: The geo-location where the resource lives. - :type location: str - :param sku: The SKU of the cluster. - :type sku: ~kusto_management_client.models.AzureSku - :param tags: Resource tags. - :type tags: dict[str, str] - :param zones: The availability zones of the cluster. - :type zones: list[str] - :param trusted_external_tenants: The cluster's external tenants. - :type trusted_external_tenants: list[~kusto_management_client.models.TrustedExternalTenant] - :param optimized_autoscale: Optimized auto scale definition. - :type optimized_autoscale: ~kusto_management_client.models.OptimizedAutoscale - :param enable_disk_encryption: A boolean value that indicates if the cluster's disks are - encrypted. - :type enable_disk_encryption: bool - :param enable_streaming_ingest: A boolean value that indicates if the streaming ingest is - enabled. - :type enable_streaming_ingest: bool - :param virtual_network_configuration: Virtual network definition. - :type virtual_network_configuration: ~kusto_management_client.models.VirtualNetworkConfiguration - :param key_vault_properties: KeyVault properties for the cluster encryption. - :type key_vault_properties: ~kusto_management_client.models.KeyVaultProperties - :param enable_purge: A boolean value that indicates if the purge operations are enabled. - :type enable_purge: bool - :param enable_double_encryption: A boolean value that indicates if double encryption is - enabled. - :type enable_double_encryption: bool - :param type: The identity type. - :type type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] + :param parameters: The Kusto cluster parameters supplied to the CreateOrUpdate operation. + :type parameters: ~kusto_management_client.models.Cluster :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -260,20 +201,7 @@ def begin_create_or_update( raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - location=location, - sku=sku, - tags=tags, - zones=zones, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=type, - user_assigned_identities=user_assigned_identities, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) @@ -312,19 +240,7 @@ def _update_initial( self, resource_group_name, # type: str cluster_name, # type: str - tags=None, # type: Optional[Dict[str, str]] - location=None, # type: Optional[str] - sku=None, # type: Optional["models.AzureSku"] - trusted_external_tenants=None, # type: Optional[List["models.TrustedExternalTenant"]] - optimized_autoscale=None, # type: Optional["models.OptimizedAutoscale"] - enable_disk_encryption=None, # type: Optional[bool] - enable_streaming_ingest=False, # type: Optional[bool] - virtual_network_configuration=None, # type: Optional["models.VirtualNetworkConfiguration"] - key_vault_properties=None, # type: Optional["models.KeyVaultProperties"] - enable_purge=False, # type: Optional[bool] - enable_double_encryption=False, # type: Optional[bool] - type=None, # type: Optional[Union[str, "models.IdentityType"]] - user_assigned_identities=None, # type: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] + parameters, # type: "models.ClusterUpdate" **kwargs # type: Any ): # type: (...) -> "models.Cluster" @@ -333,8 +249,6 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.ClusterUpdate(tags=tags, location=location, sku=sku, trusted_external_tenants=trusted_external_tenants, optimized_autoscale=optimized_autoscale, enable_disk_encryption=enable_disk_encryption, enable_streaming_ingest=enable_streaming_ingest, virtual_network_configuration=virtual_network_configuration, key_vault_properties=key_vault_properties, enable_purge=enable_purge, enable_double_encryption=enable_double_encryption, type_identity_type=type, user_assigned_identities=user_assigned_identities) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -387,19 +301,7 @@ def begin_update( self, resource_group_name, # type: str cluster_name, # type: str - tags=None, # type: Optional[Dict[str, str]] - location=None, # type: Optional[str] - sku=None, # type: Optional["models.AzureSku"] - trusted_external_tenants=None, # type: Optional[List["models.TrustedExternalTenant"]] - optimized_autoscale=None, # type: Optional["models.OptimizedAutoscale"] - enable_disk_encryption=None, # type: Optional[bool] - enable_streaming_ingest=False, # type: Optional[bool] - virtual_network_configuration=None, # type: Optional["models.VirtualNetworkConfiguration"] - key_vault_properties=None, # type: Optional["models.KeyVaultProperties"] - enable_purge=False, # type: Optional[bool] - enable_double_encryption=False, # type: Optional[bool] - type=None, # type: Optional[Union[str, "models.IdentityType"]] - user_assigned_identities=None, # type: Optional[Dict[str, "models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties"]] + parameters, # type: "models.ClusterUpdate" **kwargs # type: Any ): # type: (...) -> LROPoller["models.Cluster"] @@ -409,37 +311,8 @@ def begin_update( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Resource location. - :type location: str - :param sku: The SKU of the cluster. - :type sku: ~kusto_management_client.models.AzureSku - :param trusted_external_tenants: The cluster's external tenants. - :type trusted_external_tenants: list[~kusto_management_client.models.TrustedExternalTenant] - :param optimized_autoscale: Optimized auto scale definition. - :type optimized_autoscale: ~kusto_management_client.models.OptimizedAutoscale - :param enable_disk_encryption: A boolean value that indicates if the cluster's disks are - encrypted. - :type enable_disk_encryption: bool - :param enable_streaming_ingest: A boolean value that indicates if the streaming ingest is - enabled. - :type enable_streaming_ingest: bool - :param virtual_network_configuration: Virtual network definition. - :type virtual_network_configuration: ~kusto_management_client.models.VirtualNetworkConfiguration - :param key_vault_properties: KeyVault properties for the cluster encryption. - :type key_vault_properties: ~kusto_management_client.models.KeyVaultProperties - :param enable_purge: A boolean value that indicates if the purge operations are enabled. - :type enable_purge: bool - :param enable_double_encryption: A boolean value that indicates if double encryption is - enabled. - :type enable_double_encryption: bool - :param type: The identity type. - :type type: str or ~kusto_management_client.models.IdentityType - :param user_assigned_identities: The list of user identities associated with the Kusto cluster. - The user identity dictionary key references will be ARM resource ids in the form: - '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - :type user_assigned_identities: dict[str, ~kusto_management_client.models.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties] + :param parameters: The Kusto cluster parameters supplied to the Update operation. + :type parameters: ~kusto_management_client.models.ClusterUpdate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -461,19 +334,7 @@ def begin_update( raw_result = self._update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - tags=tags, - location=location, - sku=sku, - trusted_external_tenants=trusted_external_tenants, - optimized_autoscale=optimized_autoscale, - enable_disk_encryption=enable_disk_encryption, - enable_streaming_ingest=enable_streaming_ingest, - virtual_network_configuration=virtual_network_configuration, - key_vault_properties=key_vault_properties, - enable_purge=enable_purge, - enable_double_encryption=enable_double_encryption, - type=type, - user_assigned_identities=user_assigned_identities, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) @@ -838,7 +699,7 @@ def get_long_running_output(pipeline_response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/start'} # type: ignore - def list_follower_database( + def list_follower_databases( self, resource_group_name, # type: str cluster_name, # type: str @@ -872,7 +733,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_follower_database.metadata['url'] # type: ignore + url = self.list_follower_databases.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -912,14 +773,13 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_follower_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases'} # type: ignore + list_follower_databases.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listFollowerDatabases'} # type: ignore - def _detach_follower_database_initial( + def _detach_follower_databases_initial( self, resource_group_name, # type: str cluster_name, # type: str - cluster_resource_id, # type: str - attached_database_configuration_name, # type: str + follower_database_to_remove, # type: "models.FollowerDatabaseDefinition" **kwargs # type: Any ): # type: (...) -> None @@ -928,14 +788,12 @@ def _detach_follower_database_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - follower_database_to_remove = models.FollowerDatabaseDefinition(cluster_resource_id=cluster_resource_id, attached_database_configuration_name=attached_database_configuration_name) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._detach_follower_database_initial.metadata['url'] # type: ignore + url = self._detach_follower_databases_initial.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -966,14 +824,13 @@ def _detach_follower_database_initial( if cls: return cls(pipeline_response, None, {}) - _detach_follower_database_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore + _detach_follower_databases_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore - def begin_detach_follower_database( + def begin_detach_follower_databases( self, resource_group_name, # type: str cluster_name, # type: str - cluster_resource_id, # type: str - attached_database_configuration_name, # type: str + follower_database_to_remove, # type: "models.FollowerDatabaseDefinition" **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -983,12 +840,8 @@ def begin_detach_follower_database( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param cluster_resource_id: Resource id of the cluster that follows a database owned by this - cluster. - :type cluster_resource_id: str - :param attached_database_configuration_name: Resource name of the attached database - configuration in the follower cluster. - :type attached_database_configuration_name: str + :param follower_database_to_remove: The follower databases properties to remove. + :type follower_database_to_remove: ~kusto_management_client.models.FollowerDatabaseDefinition :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -1007,11 +860,10 @@ def begin_detach_follower_database( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._detach_follower_database_initial( + raw_result = self._detach_follower_databases_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - cluster_resource_id=cluster_resource_id, - attached_database_configuration_name=attached_database_configuration_name, + follower_database_to_remove=follower_database_to_remove, cls=lambda x,y,z: x, **kwargs ) @@ -1041,7 +893,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_detach_follower_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore + begin_detach_follower_databases.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/detachFollowerDatabases'} # type: ignore def _diagnose_virtual_network_initial( self, @@ -1300,7 +1152,7 @@ def get_next(next_link=None): ) list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/clusters'} # type: ignore - def list_sku( + def list_skus( self, **kwargs # type: Any ): @@ -1327,7 +1179,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_sku.metadata['url'] # type: ignore + url = self.list_skus.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), } @@ -1365,13 +1217,12 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_sku.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus'} # type: ignore + list_skus.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/skus'} # type: ignore def check_name_availability( self, location, # type: str - name, # type: str - type, # type: Union[str, "models.Type"] + cluster_name, # type: "models.ClusterCheckNameRequest" **kwargs # type: Any ): # type: (...) -> "models.CheckNameResult" @@ -1379,10 +1230,8 @@ def check_name_availability( :param location: Azure location. :type location: str - :param name: Cluster name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters. - :type type: str or ~kusto_management_client.models.Type + :param cluster_name: The name of the cluster. + :type cluster_name: ~kusto_management_client.models.ClusterCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -1393,8 +1242,6 @@ def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - cluster_name = models.ClusterCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -1435,7 +1282,7 @@ def check_name_availability( return deserialized check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/checkNameAvailability'} # type: ignore - def list_sku_by_resource( + def list_skus_by_resource( self, resource_group_name, # type: str cluster_name, # type: str @@ -1468,7 +1315,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_sku_by_resource.metadata['url'] # type: ignore + url = self.list_skus_by_resource.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -1508,9 +1355,9 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_sku_by_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus'} # type: ignore + list_skus_by_resource.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/skus'} # type: ignore - def list_language_extension( + def list_language_extensions( self, resource_group_name, # type: str cluster_name, # type: str @@ -1543,7 +1390,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_language_extension.metadata['url'] # type: ignore + url = self.list_language_extensions.metadata['url'] # type: ignore 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'), @@ -1583,13 +1430,13 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions'} # type: ignore + list_language_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/listLanguageExtensions'} # type: ignore - def _add_language_extension_initial( + def _add_language_extensions_initial( self, resource_group_name, # type: str cluster_name, # type: str - value=None, # type: Optional[List["models.LanguageExtension"]] + language_extensions_to_add, # type: "models.LanguageExtensionsList" **kwargs # type: Any ): # type: (...) -> None @@ -1598,14 +1445,12 @@ def _add_language_extension_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - language_extensions_to_add = models.LanguageExtensionsList(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._add_language_extension_initial.metadata['url'] # type: ignore + url = self._add_language_extensions_initial.metadata['url'] # type: ignore 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'), @@ -1636,13 +1481,13 @@ def _add_language_extension_initial( if cls: return cls(pipeline_response, None, {}) - _add_language_extension_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore + _add_language_extensions_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore - def begin_add_language_extension( + def begin_add_language_extensions( self, resource_group_name, # type: str cluster_name, # type: str - value=None, # type: Optional[List["models.LanguageExtension"]] + language_extensions_to_add, # type: "models.LanguageExtensionsList" **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -1652,8 +1497,8 @@ def begin_add_language_extension( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param value: The list of language extensions. - :type value: list[~kusto_management_client.models.LanguageExtension] + :param language_extensions_to_add: The language extensions to add. + :type language_extensions_to_add: ~kusto_management_client.models.LanguageExtensionsList :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -1672,10 +1517,10 @@ def begin_add_language_extension( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._add_language_extension_initial( + raw_result = self._add_language_extensions_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - value=value, + language_extensions_to_add=language_extensions_to_add, cls=lambda x,y,z: x, **kwargs ) @@ -1705,13 +1550,13 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_add_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore + begin_add_language_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/addLanguageExtensions'} # type: ignore - def _remove_language_extension_initial( + def _remove_language_extensions_initial( self, resource_group_name, # type: str cluster_name, # type: str - value=None, # type: Optional[List["models.LanguageExtension"]] + language_extensions_to_remove, # type: "models.LanguageExtensionsList" **kwargs # type: Any ): # type: (...) -> None @@ -1720,14 +1565,12 @@ def _remove_language_extension_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - language_extensions_to_remove = models.LanguageExtensionsList(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._remove_language_extension_initial.metadata['url'] # type: ignore + url = self._remove_language_extensions_initial.metadata['url'] # type: ignore 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'), @@ -1758,13 +1601,13 @@ def _remove_language_extension_initial( if cls: return cls(pipeline_response, None, {}) - _remove_language_extension_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore + _remove_language_extensions_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore - def begin_remove_language_extension( + def begin_remove_language_extensions( self, resource_group_name, # type: str cluster_name, # type: str - value=None, # type: Optional[List["models.LanguageExtension"]] + language_extensions_to_remove, # type: "models.LanguageExtensionsList" **kwargs # type: Any ): # type: (...) -> LROPoller[None] @@ -1774,8 +1617,8 @@ def begin_remove_language_extension( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param value: The list of language extensions. - :type value: list[~kusto_management_client.models.LanguageExtension] + :param language_extensions_to_remove: The language extensions to remove. + :type language_extensions_to_remove: ~kusto_management_client.models.LanguageExtensionsList :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -1794,10 +1637,10 @@ def begin_remove_language_extension( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._remove_language_extension_initial( + raw_result = self._remove_language_extensions_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, - value=value, + language_extensions_to_remove=language_extensions_to_remove, cls=lambda x,y,z: x, **kwargs ) @@ -1827,4 +1670,4 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_remove_language_extension.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore + begin_remove_language_extensions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/removeLanguageExtensions'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_data_connection_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_data_connections_operations.py similarity index 97% rename from src/kusto/azext_kusto/vendored_sdks/kusto/operations/_data_connection_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/operations/_data_connections_operations.py index 101ccfceecf..5bd25633354 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_data_connection_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_data_connections_operations.py @@ -25,8 +25,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class DataConnectionOperations(object): - """DataConnectionOperations operations. +class DataConnectionsOperations(object): + """DataConnectionsOperations operations. 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. @@ -131,8 +131,7 @@ def _data_connection_validation_initial( resource_group_name, # type: str cluster_name, # type: str database_name, # type: str - data_connection_name=None, # type: Optional[str] - properties=None, # type: Optional["models.DataConnection"] + parameters, # type: "models.DataConnectionValidation" **kwargs # type: Any ): # type: (...) -> Optional["models.DataConnectionValidationListResult"] @@ -141,8 +140,6 @@ def _data_connection_validation_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.DataConnectionValidation(data_connection_name=data_connection_name, properties=properties) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -192,8 +189,7 @@ def begin_data_connection_validation( resource_group_name, # type: str cluster_name, # type: str database_name, # type: str - data_connection_name=None, # type: Optional[str] - properties=None, # type: Optional["models.DataConnection"] + parameters, # type: "models.DataConnectionValidation" **kwargs # type: Any ): # type: (...) -> LROPoller["models.DataConnectionValidationListResult"] @@ -205,10 +201,8 @@ def begin_data_connection_validation( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param data_connection_name: The name of the data connection. - :type data_connection_name: str - :param properties: The data connection properties to validate. - :type properties: ~kusto_management_client.models.DataConnection + :param parameters: The data connection parameters supplied to the CreateOrUpdate operation. + :type parameters: ~kusto_management_client.models.DataConnectionValidation :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -231,8 +225,7 @@ def begin_data_connection_validation( resource_group_name=resource_group_name, cluster_name=cluster_name, database_name=database_name, - data_connection_name=data_connection_name, - properties=properties, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) @@ -273,8 +266,7 @@ def check_name_availability( resource_group_name, # type: str cluster_name, # type: str database_name, # type: str - name, # type: str - type, # type: Union[str, "models.Type"] + data_connection_name, # type: "models.DataConnectionCheckNameRequest" **kwargs # type: Any ): # type: (...) -> "models.CheckNameResult" @@ -286,10 +278,8 @@ def check_name_availability( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param name: Data Connection name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/databases/dataConnections. - :type type: str or ~kusto_management_client.models.Type + :param data_connection_name: The name of the data connection. + :type data_connection_name: ~kusto_management_client.models.DataConnectionCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -300,8 +290,6 @@ def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - data_connection_name = models.DataConnectionCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignment_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignments_operations.py similarity index 93% rename from src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignment_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignments_operations.py index 383c23addaa..752ba5924c6 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignment_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignments_operations.py @@ -25,8 +25,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class DatabasePrincipalAssignmentOperations(object): - """DatabasePrincipalAssignmentOperations operations. +class DatabasePrincipalAssignmentsOperations(object): + """DatabasePrincipalAssignmentsOperations operations. 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. @@ -52,8 +52,7 @@ def check_name_availability( resource_group_name, # type: str cluster_name, # type: str database_name, # type: str - name, # type: str - type, # type: Union[str, "models.Type"] + principal_assignment_name, # type: "models.DatabasePrincipalAssignmentCheckNameRequest" **kwargs # type: Any ): # type: (...) -> "models.CheckNameResult" @@ -65,10 +64,8 @@ def check_name_availability( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param name: Principal Assignment resource name. - :type name: str - :param type: The type of resource, Microsoft.Kusto/clusters/databases/principalAssignments. - :type type: str or ~kusto_management_client.models.Type + :param principal_assignment_name: The name of the resource. + :type principal_assignment_name: ~kusto_management_client.models.DatabasePrincipalAssignmentCheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -79,8 +76,6 @@ def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - principal_assignment_name = models.DatabasePrincipalAssignmentCheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -196,10 +191,7 @@ def _create_or_update_initial( cluster_name, # type: str database_name, # type: str principal_assignment_name, # type: str - principal_id=None, # type: Optional[str] - role=None, # type: Optional[Union[str, "models.DatabasePrincipalRole"]] - tenant_id=None, # type: Optional[str] - principal_type=None, # type: Optional[Union[str, "models.PrincipalType"]] + parameters, # type: "models.DatabasePrincipalAssignment" **kwargs # type: Any ): # type: (...) -> "models.DatabasePrincipalAssignment" @@ -208,8 +200,6 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - parameters = models.DatabasePrincipalAssignment(principal_id=principal_id, role=role, tenant_id=tenant_id, principal_type=principal_type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -263,10 +253,7 @@ def begin_create_or_update( cluster_name, # type: str database_name, # type: str principal_assignment_name, # type: str - principal_id=None, # type: Optional[str] - role=None, # type: Optional[Union[str, "models.DatabasePrincipalRole"]] - tenant_id=None, # type: Optional[str] - principal_type=None, # type: Optional[Union[str, "models.PrincipalType"]] + parameters, # type: "models.DatabasePrincipalAssignment" **kwargs # type: Any ): # type: (...) -> LROPoller["models.DatabasePrincipalAssignment"] @@ -280,15 +267,8 @@ def begin_create_or_update( :type database_name: str :param principal_assignment_name: The name of the Kusto principalAssignment. :type principal_assignment_name: str - :param principal_id: The principal ID assigned to the database principal. It can be a user - email, application ID, or security group name. - :type principal_id: str - :param role: Database principal role. - :type role: str or ~kusto_management_client.models.DatabasePrincipalRole - :param tenant_id: The tenant id of the principal. - :type tenant_id: str - :param principal_type: Principal type. - :type principal_type: str or ~kusto_management_client.models.PrincipalType + :param parameters: The Kusto principalAssignments parameters supplied for the operation. + :type parameters: ~kusto_management_client.models.DatabasePrincipalAssignment :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -312,10 +292,7 @@ def begin_create_or_update( cluster_name=cluster_name, database_name=database_name, principal_assignment_name=principal_assignment_name, - principal_id=principal_id, - role=role, - tenant_id=tenant_id, - principal_type=principal_type, + parameters=parameters, cls=lambda x,y,z: x, **kwargs ) diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_databases_operations.py similarity index 95% rename from src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/operations/_databases_operations.py index e6ea7cea632..85992118443 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_database_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_databases_operations.py @@ -20,13 +20,13 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, List, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class DatabaseOperations(object): - """DatabaseOperations operations. +class DatabasesOperations(object): + """DatabasesOperations operations. 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. @@ -51,8 +51,7 @@ def check_name_availability( self, resource_group_name, # type: str cluster_name, # type: str - name, # type: str - type, # type: Union[str, "models.Type"] + resource_name, # type: "models.CheckNameRequest" **kwargs # type: Any ): # type: (...) -> "models.CheckNameResult" @@ -62,10 +61,8 @@ def check_name_availability( :type resource_group_name: str :param cluster_name: The name of the Kusto cluster. :type cluster_name: str - :param name: Resource name. - :type name: str - :param type: The type of resource, for instance Microsoft.Kusto/clusters/databases. - :type type: str or ~kusto_management_client.models.Type + :param resource_name: The name of the resource. + :type resource_name: ~kusto_management_client.models.CheckNameRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: CheckNameResult, or the result of cls(response) :rtype: ~kusto_management_client.models.CheckNameResult @@ -76,8 +73,6 @@ def check_name_availability( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - resource_name = models.CheckNameRequest(name=name, type=type) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -654,7 +649,7 @@ def get_long_running_output(pipeline_response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}'} # type: ignore - def list_principal( + def list_principals( self, resource_group_name, # type: str cluster_name, # type: str @@ -690,7 +685,7 @@ def prepare_request(next_link=None): if not next_link: # Construct URL - url = self.list_principal.metadata['url'] # type: ignore + url = self.list_principals.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -731,14 +726,14 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals'} # type: ignore + list_principals.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/listPrincipals'} # type: ignore - def add_principal( + def add_principals( self, resource_group_name, # type: str cluster_name, # type: str database_name, # type: str - value=None, # type: Optional[List["models.DatabasePrincipal"]] + database_principals_to_add, # type: "models.DatabasePrincipalListRequest" **kwargs # type: Any ): # type: (...) -> "models.DatabasePrincipalListResult" @@ -750,8 +745,8 @@ def add_principal( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param value: The list of Kusto database principals. - :type value: list[~kusto_management_client.models.DatabasePrincipal] + :param database_principals_to_add: List of database principals to add. + :type database_principals_to_add: ~kusto_management_client.models.DatabasePrincipalListRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: DatabasePrincipalListResult, or the result of cls(response) :rtype: ~kusto_management_client.models.DatabasePrincipalListResult @@ -762,14 +757,12 @@ def add_principal( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - database_principals_to_add = models.DatabasePrincipalListRequest(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.add_principal.metadata['url'] # type: ignore + url = self.add_principals.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -804,14 +797,14 @@ def add_principal( return cls(pipeline_response, deserialized, {}) return deserialized - add_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals'} # type: ignore + add_principals.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/addPrincipals'} # type: ignore - def remove_principal( + def remove_principals( self, resource_group_name, # type: str cluster_name, # type: str database_name, # type: str - value=None, # type: Optional[List["models.DatabasePrincipal"]] + database_principals_to_remove, # type: "models.DatabasePrincipalListRequest" **kwargs # type: Any ): # type: (...) -> "models.DatabasePrincipalListResult" @@ -823,8 +816,8 @@ def remove_principal( :type cluster_name: str :param database_name: The name of the database in the Kusto cluster. :type database_name: str - :param value: The list of Kusto database principals. - :type value: list[~kusto_management_client.models.DatabasePrincipal] + :param database_principals_to_remove: List of database principals to remove. + :type database_principals_to_remove: ~kusto_management_client.models.DatabasePrincipalListRequest :keyword callable cls: A custom type or function that will be passed the direct response :return: DatabasePrincipalListResult, or the result of cls(response) :rtype: ~kusto_management_client.models.DatabasePrincipalListResult @@ -835,14 +828,12 @@ def remove_principal( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - - database_principals_to_remove = models.DatabasePrincipalListRequest(value=value) api_version = "2020-06-14" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self.remove_principal.metadata['url'] # type: ignore + url = self.remove_principals.metadata['url'] # type: ignore path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str'), @@ -877,4 +868,4 @@ def remove_principal( return cls(pipeline_response, deserialized, {}) return deserialized - remove_principal.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals'} # type: ignore + remove_principals.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/removePrincipals'} # type: ignore diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_operation_operations.py b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_operations.py similarity index 98% rename from src/kusto/azext_kusto/vendored_sdks/kusto/operations/_operation_operations.py rename to src/kusto/azext_kusto/vendored_sdks/kusto/operations/_operations.py index 014f977caee..dcca09b2463 100644 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_operation_operations.py +++ b/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_operations.py @@ -23,8 +23,8 @@ T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] -class OperationOperations(object): - """OperationOperations operations. +class Operations(object): + """Operations operations. 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. diff --git a/src/kusto/azext_kusto/vendored_sdks/kusto/setup.py b/src/kusto/azext_kusto/vendored_sdks/kusto/setup.py deleted file mode 100644 index 6f2ab0c5bff..00000000000 --- a/src/kusto/azext_kusto/vendored_sdks/kusto/setup.py +++ /dev/null @@ -1,37 +0,0 @@ -# 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. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "kustomanagementclient" -VERSION = "0.1.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.6.0", "azure-core<2.0.0,>=1.2.0"] - -setup( - name=NAME, - version=VERSION, - description="KustoManagementClient", - author_email="", - url="", - keywords=["Swagger", "KustoManagementClient"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. - """ -) diff --git a/src/kusto/kusto.egg-info/PKG-INFO b/src/kusto/kusto.egg-info/PKG-INFO index 570c2449bc6..e3dced53fad 100644 --- a/src/kusto/kusto.egg-info/PKG-INFO +++ b/src/kusto/kusto.egg-info/PKG-INFO @@ -1,34 +1,34 @@ -Metadata-Version: 1.1 -Name: kusto -Version: 0.1.0 -Summary: Microsoft Azure Command-Line Tools KustoManagementClient Extension -Home-page: https://github.com/Azure/azure-cli-extensions/tree/master/src/kusto -Author: Microsoft Corporation -Author-email: azpycli@microsoft.com -License: MIT -Description: Microsoft Azure CLI 'kusto' Extension - ========================================== - - This package is for the 'kusto' extension. - i.e. 'az kusto' - - - .. :changelog: - - Release History - =============== - - 0.1.0 - ++++++ - * Initial release. - -Platform: UNKNOWN -Classifier: Development Status :: 4 - Beta -Classifier: Intended Audience :: Developers -Classifier: Intended Audience :: System Administrators -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 3 -Classifier: Programming Language :: Python :: 3.6 -Classifier: Programming Language :: Python :: 3.7 -Classifier: Programming Language :: Python :: 3.8 -Classifier: License :: OSI Approved :: MIT License +Metadata-Version: 1.1 +Name: kusto +Version: 0.1.0 +Summary: Microsoft Azure Command-Line Tools KustoManagementClient Extension +Home-page: https://github.com/Azure/azure-cli-extensions/tree/master/src/kusto +Author: Microsoft Corporation +Author-email: azpycli@microsoft.com +License: MIT +Description: Microsoft Azure CLI 'kusto' Extension + ========================================== + + This package is for the 'kusto' extension. + i.e. 'az kusto' + + + .. :changelog: + + Release History + =============== + + 0.1.0 + ++++++ + * Initial release. + +Platform: UNKNOWN +Classifier: Development Status :: 4 - Beta +Classifier: Intended Audience :: Developers +Classifier: Intended Audience :: System Administrators +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: License :: OSI Approved :: MIT License diff --git a/src/kusto/kusto.egg-info/SOURCES.txt b/src/kusto/kusto.egg-info/SOURCES.txt index dcdb5808ee5..d7d20347e31 100644 --- a/src/kusto/kusto.egg-info/SOURCES.txt +++ b/src/kusto/kusto.egg-info/SOURCES.txt @@ -14,43 +14,41 @@ azext_kusto/generated/action.py azext_kusto/generated/commands.py azext_kusto/generated/custom.py azext_kusto/manual/__init__.py -azext_kusto/manual/_help.py azext_kusto/manual/tests/__init__.py azext_kusto/manual/tests/latest/__init__.py +azext_kusto/manual/tests/latest/example_steps.py azext_kusto/manual/tests/latest/test_kusto_scenario.py azext_kusto/tests/__init__.py azext_kusto/tests/latest/__init__.py -azext_kusto/tests/latest/preparers.py +azext_kusto/tests/latest/example_steps.py azext_kusto/tests/latest/test_kusto_scenario.py azext_kusto/vendored_sdks/__init__.py azext_kusto/vendored_sdks/kusto/__init__.py azext_kusto/vendored_sdks/kusto/_configuration.py azext_kusto/vendored_sdks/kusto/_kusto_management_client.py -azext_kusto/vendored_sdks/kusto/_version.py -azext_kusto/vendored_sdks/kusto/setup.py azext_kusto/vendored_sdks/kusto/aio/__init__.py -azext_kusto/vendored_sdks/kusto/aio/_configuration_async.py -azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client_async.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/__init__.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/_attached_database_configuration_operations_async.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_operations_async.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/_cluster_principal_assignment_operations_async.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/_data_connection_operations_async.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_operations_async.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/_database_principal_assignment_operations_async.py -azext_kusto/vendored_sdks/kusto/aio/operations_async/_operation_operations_async.py +azext_kusto/vendored_sdks/kusto/aio/_configuration.py +azext_kusto/vendored_sdks/kusto/aio/_kusto_management_client.py +azext_kusto/vendored_sdks/kusto/aio/operations/__init__.py +azext_kusto/vendored_sdks/kusto/aio/operations/_attached_database_configurations_operations.py +azext_kusto/vendored_sdks/kusto/aio/operations/_cluster_principal_assignments_operations.py +azext_kusto/vendored_sdks/kusto/aio/operations/_clusters_operations.py +azext_kusto/vendored_sdks/kusto/aio/operations/_data_connections_operations.py +azext_kusto/vendored_sdks/kusto/aio/operations/_database_principal_assignments_operations.py +azext_kusto/vendored_sdks/kusto/aio/operations/_databases_operations.py +azext_kusto/vendored_sdks/kusto/aio/operations/_operations.py azext_kusto/vendored_sdks/kusto/models/__init__.py azext_kusto/vendored_sdks/kusto/models/_kusto_management_client_enums.py azext_kusto/vendored_sdks/kusto/models/_models.py azext_kusto/vendored_sdks/kusto/models/_models_py3.py azext_kusto/vendored_sdks/kusto/operations/__init__.py -azext_kusto/vendored_sdks/kusto/operations/_attached_database_configuration_operations.py -azext_kusto/vendored_sdks/kusto/operations/_cluster_operations.py -azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignment_operations.py -azext_kusto/vendored_sdks/kusto/operations/_data_connection_operations.py -azext_kusto/vendored_sdks/kusto/operations/_database_operations.py -azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignment_operations.py -azext_kusto/vendored_sdks/kusto/operations/_operation_operations.py +azext_kusto/vendored_sdks/kusto/operations/_attached_database_configurations_operations.py +azext_kusto/vendored_sdks/kusto/operations/_cluster_principal_assignments_operations.py +azext_kusto/vendored_sdks/kusto/operations/_clusters_operations.py +azext_kusto/vendored_sdks/kusto/operations/_data_connections_operations.py +azext_kusto/vendored_sdks/kusto/operations/_database_principal_assignments_operations.py +azext_kusto/vendored_sdks/kusto/operations/_databases_operations.py +azext_kusto/vendored_sdks/kusto/operations/_operations.py kusto.egg-info/PKG-INFO kusto.egg-info/SOURCES.txt kusto.egg-info/dependency_links.txt diff --git a/src/kusto/report.md b/src/kusto/report.md index 68e03f8bd2e..2760a6a4cc8 100644 --- a/src/kusto/report.md +++ b/src/kusto/report.md @@ -1,901 +1,901 @@ -# Azure CLI Module Creation Report - -## EXTENSION -|CLI Extension|Command Groups| -|---------|------------| -|az kusto|[groups](#CommandGroups) - -## GROUPS -### Command groups in `az kusto` extension -|CLI Command Group|Group Swagger name|Commands| -|---------|------------|--------| -|az kusto cluster|Clusters|[commands](#CommandsInClusters)| -|az kusto cluster-principal-assignment|ClusterPrincipalAssignments|[commands](#CommandsInClusterPrincipalAssignments)| -|az kusto database|Databases|[commands](#CommandsInDatabases)| -|az kusto database-principal-assignment|DatabasePrincipalAssignments|[commands](#CommandsInDatabasePrincipalAssignments)| -|az kusto attached-database-configuration|AttachedDatabaseConfigurations|[commands](#CommandsInAttachedDatabaseConfigurations)| -|az kusto data-connection|DataConnections|[commands](#CommandsInDataConnections)| - -## COMMANDS -### Commands in `az kusto attached-database-configuration` group -|CLI Command|Operation Swagger name|Parameters|Examples| -|---------|------------|--------|-----------| -|[az kusto attached-database-configuration list](#AttachedDatabaseConfigurationsListByCluster)|ListByCluster|[Parameters](#ParametersAttachedDatabaseConfigurationsListByCluster)|[Example](#ExamplesAttachedDatabaseConfigurationsListByCluster)| -|[az kusto attached-database-configuration show](#AttachedDatabaseConfigurationsGet)|Get|[Parameters](#ParametersAttachedDatabaseConfigurationsGet)|[Example](#ExamplesAttachedDatabaseConfigurationsGet)| -|[az kusto attached-database-configuration create](#AttachedDatabaseConfigurationsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersAttachedDatabaseConfigurationsCreateOrUpdate#Create)|[Example](#ExamplesAttachedDatabaseConfigurationsCreateOrUpdate#Create)| -|[az kusto attached-database-configuration update](#AttachedDatabaseConfigurationsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersAttachedDatabaseConfigurationsCreateOrUpdate#Update)|Not Found| -|[az kusto attached-database-configuration delete](#AttachedDatabaseConfigurationsDelete)|Delete|[Parameters](#ParametersAttachedDatabaseConfigurationsDelete)|[Example](#ExamplesAttachedDatabaseConfigurationsDelete)| - -### Commands in `az kusto cluster` group -|CLI Command|Operation Swagger name|Parameters|Examples| -|---------|------------|--------|-----------| -|[az kusto cluster list](#ClustersListByResourceGroup)|ListByResourceGroup|[Parameters](#ParametersClustersListByResourceGroup)|[Example](#ExamplesClustersListByResourceGroup)| -|[az kusto cluster list](#ClustersList)|List|[Parameters](#ParametersClustersList)|[Example](#ExamplesClustersList)| -|[az kusto cluster show](#ClustersGet)|Get|[Parameters](#ParametersClustersGet)|[Example](#ExamplesClustersGet)| -|[az kusto cluster create](#ClustersCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersClustersCreateOrUpdate#Create)|[Example](#ExamplesClustersCreateOrUpdate#Create)| -|[az kusto cluster update](#ClustersUpdate)|Update|[Parameters](#ParametersClustersUpdate)|[Example](#ExamplesClustersUpdate)| -|[az kusto cluster delete](#ClustersDelete)|Delete|[Parameters](#ParametersClustersDelete)|[Example](#ExamplesClustersDelete)| -|[az kusto cluster add-language-extension](#ClustersAddLanguageExtensions)|AddLanguageExtensions|[Parameters](#ParametersClustersAddLanguageExtensions)|[Example](#ExamplesClustersAddLanguageExtensions)| -|[az kusto cluster detach-follower-database](#ClustersDetachFollowerDatabases)|DetachFollowerDatabases|[Parameters](#ParametersClustersDetachFollowerDatabases)|[Example](#ExamplesClustersDetachFollowerDatabases)| -|[az kusto cluster diagnose-virtual-network](#ClustersDiagnoseVirtualNetwork)|DiagnoseVirtualNetwork|[Parameters](#ParametersClustersDiagnoseVirtualNetwork)|[Example](#ExamplesClustersDiagnoseVirtualNetwork)| -|[az kusto cluster list-follower-database](#ClustersListFollowerDatabases)|ListFollowerDatabases|[Parameters](#ParametersClustersListFollowerDatabases)|[Example](#ExamplesClustersListFollowerDatabases)| -|[az kusto cluster list-language-extension](#ClustersListLanguageExtensions)|ListLanguageExtensions|[Parameters](#ParametersClustersListLanguageExtensions)|[Example](#ExamplesClustersListLanguageExtensions)| -|[az kusto cluster list-sku](#ClustersListSkusByResource)|ListSkusByResource|[Parameters](#ParametersClustersListSkusByResource)|[Example](#ExamplesClustersListSkusByResource)| -|[az kusto cluster list-sku](#ClustersListSkus)|ListSkus|[Parameters](#ParametersClustersListSkus)|[Example](#ExamplesClustersListSkus)| -|[az kusto cluster remove-language-extension](#ClustersRemoveLanguageExtensions)|RemoveLanguageExtensions|[Parameters](#ParametersClustersRemoveLanguageExtensions)|[Example](#ExamplesClustersRemoveLanguageExtensions)| -|[az kusto cluster start](#ClustersStart)|Start|[Parameters](#ParametersClustersStart)|[Example](#ExamplesClustersStart)| -|[az kusto cluster stop](#ClustersStop)|Stop|[Parameters](#ParametersClustersStop)|[Example](#ExamplesClustersStop)| - -### Commands in `az kusto cluster-principal-assignment` group -|CLI Command|Operation Swagger name|Parameters|Examples| -|---------|------------|--------|-----------| -|[az kusto cluster-principal-assignment list](#ClusterPrincipalAssignmentsList)|List|[Parameters](#ParametersClusterPrincipalAssignmentsList)|[Example](#ExamplesClusterPrincipalAssignmentsList)| -|[az kusto cluster-principal-assignment show](#ClusterPrincipalAssignmentsGet)|Get|[Parameters](#ParametersClusterPrincipalAssignmentsGet)|[Example](#ExamplesClusterPrincipalAssignmentsGet)| -|[az kusto cluster-principal-assignment create](#ClusterPrincipalAssignmentsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersClusterPrincipalAssignmentsCreateOrUpdate#Create)|[Example](#ExamplesClusterPrincipalAssignmentsCreateOrUpdate#Create)| -|[az kusto cluster-principal-assignment update](#ClusterPrincipalAssignmentsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersClusterPrincipalAssignmentsCreateOrUpdate#Update)|Not Found| -|[az kusto cluster-principal-assignment delete](#ClusterPrincipalAssignmentsDelete)|Delete|[Parameters](#ParametersClusterPrincipalAssignmentsDelete)|[Example](#ExamplesClusterPrincipalAssignmentsDelete)| - -### Commands in `az kusto data-connection` group -|CLI Command|Operation Swagger name|Parameters|Examples| -|---------|------------|--------|-----------| -|[az kusto data-connection list](#DataConnectionsListByDatabase)|ListByDatabase|[Parameters](#ParametersDataConnectionsListByDatabase)|[Example](#ExamplesDataConnectionsListByDatabase)| -|[az kusto data-connection show](#DataConnectionsGet)|Get|[Parameters](#ParametersDataConnectionsGet)|[Example](#ExamplesDataConnectionsGet)| -|[az kusto data-connection event-grid create](#DataConnectionsCreateOrUpdate#Create#EventGrid)|CreateOrUpdate#Create#EventGrid|[Parameters](#ParametersDataConnectionsCreateOrUpdate#Create#EventGrid)|Not Found| -|[az kusto data-connection event-hub create](#DataConnectionsCreateOrUpdate#Create#EventHub)|CreateOrUpdate#Create#EventHub|[Parameters](#ParametersDataConnectionsCreateOrUpdate#Create#EventHub)|[Example](#ExamplesDataConnectionsCreateOrUpdate#Create#EventHub)| -|[az kusto data-connection iot-hub create](#DataConnectionsCreateOrUpdate#Create#IotHub)|CreateOrUpdate#Create#IotHub|[Parameters](#ParametersDataConnectionsCreateOrUpdate#Create#IotHub)|Not Found| -|[az kusto data-connection event-grid update](#DataConnectionsUpdate#EventGrid)|Update#EventGrid|[Parameters](#ParametersDataConnectionsUpdate#EventGrid)|Not Found| -|[az kusto data-connection event-hub update](#DataConnectionsUpdate#EventHub)|Update#EventHub|[Parameters](#ParametersDataConnectionsUpdate#EventHub)|[Example](#ExamplesDataConnectionsUpdate#EventHub)| -|[az kusto data-connection iot-hub update](#DataConnectionsUpdate#IotHub)|Update#IotHub|[Parameters](#ParametersDataConnectionsUpdate#IotHub)|Not Found| -|[az kusto data-connection delete](#DataConnectionsDelete)|Delete|[Parameters](#ParametersDataConnectionsDelete)|[Example](#ExamplesDataConnectionsDelete)| -|[az kusto data-connection event-grid data-connection-validation](#DataConnectionsdataConnectionValidation#EventGrid)|dataConnectionValidation#EventGrid|[Parameters](#ParametersDataConnectionsdataConnectionValidation#EventGrid)|Not Found| -|[az kusto data-connection event-hub data-connection-validation](#DataConnectionsdataConnectionValidation#EventHub)|dataConnectionValidation#EventHub|[Parameters](#ParametersDataConnectionsdataConnectionValidation#EventHub)|[Example](#ExamplesDataConnectionsdataConnectionValidation#EventHub)| -|[az kusto data-connection iot-hub data-connection-validation](#DataConnectionsdataConnectionValidation#IotHub)|dataConnectionValidation#IotHub|[Parameters](#ParametersDataConnectionsdataConnectionValidation#IotHub)|Not Found| - -### Commands in `az kusto database` group -|CLI Command|Operation Swagger name|Parameters|Examples| -|---------|------------|--------|-----------| -|[az kusto database list](#DatabasesListByCluster)|ListByCluster|[Parameters](#ParametersDatabasesListByCluster)|[Example](#ExamplesDatabasesListByCluster)| -|[az kusto database show](#DatabasesGet)|Get|[Parameters](#ParametersDatabasesGet)|[Example](#ExamplesDatabasesGet)| -|[az kusto database create](#DatabasesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersDatabasesCreateOrUpdate#Create)|[Example](#ExamplesDatabasesCreateOrUpdate#Create)| -|[az kusto database update](#DatabasesUpdate)|Update|[Parameters](#ParametersDatabasesUpdate)|[Example](#ExamplesDatabasesUpdate)| -|[az kusto database delete](#DatabasesDelete)|Delete|[Parameters](#ParametersDatabasesDelete)|[Example](#ExamplesDatabasesDelete)| -|[az kusto database add-principal](#DatabasesAddPrincipals)|AddPrincipals|[Parameters](#ParametersDatabasesAddPrincipals)|[Example](#ExamplesDatabasesAddPrincipals)| -|[az kusto database list-principal](#DatabasesListPrincipals)|ListPrincipals|[Parameters](#ParametersDatabasesListPrincipals)|[Example](#ExamplesDatabasesListPrincipals)| -|[az kusto database remove-principal](#DatabasesRemovePrincipals)|RemovePrincipals|[Parameters](#ParametersDatabasesRemovePrincipals)|[Example](#ExamplesDatabasesRemovePrincipals)| - -### Commands in `az kusto database-principal-assignment` group -|CLI Command|Operation Swagger name|Parameters|Examples| -|---------|------------|--------|-----------| -|[az kusto database-principal-assignment list](#DatabasePrincipalAssignmentsList)|List|[Parameters](#ParametersDatabasePrincipalAssignmentsList)|[Example](#ExamplesDatabasePrincipalAssignmentsList)| -|[az kusto database-principal-assignment show](#DatabasePrincipalAssignmentsGet)|Get|[Parameters](#ParametersDatabasePrincipalAssignmentsGet)|[Example](#ExamplesDatabasePrincipalAssignmentsGet)| -|[az kusto database-principal-assignment create](#DatabasePrincipalAssignmentsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersDatabasePrincipalAssignmentsCreateOrUpdate#Create)|[Example](#ExamplesDatabasePrincipalAssignmentsCreateOrUpdate#Create)| -|[az kusto database-principal-assignment update](#DatabasePrincipalAssignmentsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersDatabasePrincipalAssignmentsCreateOrUpdate#Update)|Not Found| -|[az kusto database-principal-assignment delete](#DatabasePrincipalAssignmentsDelete)|Delete|[Parameters](#ParametersDatabasePrincipalAssignmentsDelete)|[Example](#ExamplesDatabasePrincipalAssignmentsDelete)| - - -## COMMAND DETAILS - -### group `az kusto attached-database-configuration` -#### Command `az kusto attached-database-configuration list` - -##### Example -``` -az kusto attached-database-configuration list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto attached-database-configuration show` - -##### Example -``` -az kusto attached-database-configuration show --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| - -#### Command `az kusto attached-database-configuration create` - -##### Example -``` -az kusto attached-database-configuration create --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --location "westus" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/re\ -sourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --database-name "kustodatabase" \ ---default-principals-modification-kind "Union" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| -|**--location**|string|Resource location.|location|location| -|**--database-name**|string|The name of the database which you would like to attach, use * if you want to follow all current and future databases.|database_name|databaseName| -|**--cluster-resource-id**|string|The resource id of the cluster where the databases you would like to attach reside.|cluster_resource_id|clusterResourceId| -|**--default-principals-modification-kind**|choice|The default principals modification kind|default_principals_modification_kind|defaultPrincipalsModificationKind| - -#### Command `az kusto attached-database-configuration update` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| -|**--location**|string|Resource location.|location|location| -|**--database-name**|string|The name of the database which you would like to attach, use * if you want to follow all current and future databases.|database_name|databaseName| -|**--cluster-resource-id**|string|The resource id of the cluster where the databases you would like to attach reside.|cluster_resource_id|clusterResourceId| -|**--default-principals-modification-kind**|choice|The default principals modification kind|default_principals_modification_kind|defaultPrincipalsModificationKind| - -#### Command `az kusto attached-database-configuration delete` - -##### Example -``` -az kusto attached-database-configuration delete --name "attachedDatabaseConfigurations1" --cluster-name \ -"kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| - -### group `az kusto cluster` -#### Command `az kusto cluster list` - -##### Example -``` -az kusto cluster list --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| - -#### Command `az kusto cluster list` - -##### Example -``` -az kusto cluster list -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -#### Command `az kusto cluster show` - -##### Example -``` -az kusto cluster show --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster create` - -##### Example -``` -az kusto cluster create --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location "westus" \ ---enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_L8s" \ -capacity=2 tier="Standard" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--location**|string|The geo-location where the resource lives|location|location| -|**--sku**|object|The SKU of the cluster.|sku|sku| -|**--tags**|dictionary|Resource tags.|tags|tags| -|**--zones**|array|The availability zones of the cluster.|zones|zones| -|**--trusted-external-tenants**|array|The cluster's external tenants.|trusted_external_tenants|trustedExternalTenants| -|**--optimized-autoscale**|object|Optimized auto scale definition.|optimized_autoscale|optimizedAutoscale| -|**--enable-disk-encryption**|boolean|A boolean value that indicates if the cluster's disks are encrypted.|enable_disk_encryption|enableDiskEncryption| -|**--enable-streaming-ingest**|boolean|A boolean value that indicates if the streaming ingest is enabled.|enable_streaming_ingest|enableStreamingIngest| -|**--virtual-network-configuration**|object|Virtual network definition.|virtual_network_configuration|virtualNetworkConfiguration| -|**--key-vault-properties**|object|KeyVault properties for the cluster encryption.|key_vault_properties|keyVaultProperties| -|**--enable-purge**|boolean|A boolean value that indicates if the purge operations are enabled.|enable_purge|enablePurge| -|**--enable-double-encryption**|boolean|A boolean value that indicates if double encryption is enabled.|enable_double_encryption|enableDoubleEncryption| -|**--identity-type**|sealed-choice|The identity type.|type|type| -|**--identity-user-assigned-identities**|dictionary|The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.|user_assigned_identities|userAssignedIdentities| - -#### Command `az kusto cluster update` - -##### Example -``` -az kusto cluster update --name "kustoclusterrptest4" --identity-type "SystemAssigned" --location "westus" \ ---enable-purge true --enable-streaming-ingest true --key-vault-properties key-name="keyName" \ -key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--tags**|dictionary|Resource tags.|tags|tags| -|**--location**|string|Resource location.|location|location| -|**--sku**|object|The SKU of the cluster.|sku|sku| -|**--trusted-external-tenants**|array|The cluster's external tenants.|trusted_external_tenants|trustedExternalTenants| -|**--optimized-autoscale**|object|Optimized auto scale definition.|optimized_autoscale|optimizedAutoscale| -|**--enable-disk-encryption**|boolean|A boolean value that indicates if the cluster's disks are encrypted.|enable_disk_encryption|enableDiskEncryption| -|**--enable-streaming-ingest**|boolean|A boolean value that indicates if the streaming ingest is enabled.|enable_streaming_ingest|enableStreamingIngest| -|**--virtual-network-configuration**|object|Virtual network definition.|virtual_network_configuration|virtualNetworkConfiguration| -|**--key-vault-properties**|object|KeyVault properties for the cluster encryption.|key_vault_properties|keyVaultProperties| -|**--enable-purge**|boolean|A boolean value that indicates if the purge operations are enabled.|enable_purge|enablePurge| -|**--enable-double-encryption**|boolean|A boolean value that indicates if double encryption is enabled.|enable_double_encryption|enableDoubleEncryption| -|**--identity-type**|sealed-choice|The identity type.|type|type| -|**--identity-user-assigned-identities**|dictionary|The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.|user_assigned_identities|userAssignedIdentities| - -#### Command `az kusto cluster delete` - -##### Example -``` -az kusto cluster delete --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster add-language-extension` - -##### Example -``` -az kusto cluster add-language-extension --name "kustoclusterrptest4" --value language-extension-name="PYTHON" --value \ -language-extension-name="R" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--value**|array|The list of language extensions.|value|value| - -#### Command `az kusto cluster detach-follower-database` - -##### Example -``` -az kusto cluster detach-follower-database --name "kustoclusterrptest4" --attached-database-configuration-name \ -"myAttachedDatabaseConfiguration" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGr\ -oups/kustorptest/providers/Microsoft.Kusto/clusters/leader4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--cluster-resource-id**|string|Resource id of the cluster that follows a database owned by this cluster.|cluster_resource_id|clusterResourceId| -|**--attached-database-configuration-name**|string|Resource name of the attached database configuration in the follower cluster.|attached_database_configuration_name|attachedDatabaseConfigurationName| - -#### Command `az kusto cluster diagnose-virtual-network` - -##### Example -``` -az kusto cluster diagnose-virtual-network --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster list-follower-database` - -##### Example -``` -az kusto cluster list-follower-database --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster list-language-extension` - -##### Example -``` -az kusto cluster list-language-extension --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster list-sku` - -##### Example -``` -az kusto cluster list-sku --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster list-sku` - -##### Example -``` -az kusto cluster list-sku -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -#### Command `az kusto cluster remove-language-extension` - -##### Example -``` -az kusto cluster remove-language-extension --name "kustoclusterrptest4" --value language-extension-name="PYTHON" \ ---value language-extension-name="R" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--value**|array|The list of language extensions.|value|value| - -#### Command `az kusto cluster start` - -##### Example -``` -az kusto cluster start --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster stop` - -##### Example -``` -az kusto cluster stop --name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -### group `az kusto cluster-principal-assignment` -#### Command `az kusto cluster-principal-assignment list` - -##### Example -``` -az kusto cluster-principal-assignment list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto cluster-principal-assignment show` - -##### Example -``` -az kusto cluster-principal-assignment show --cluster-name "kustoclusterrptest4" --principal-assignment-name \ -"kustoprincipal1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| - -#### Command `az kusto cluster-principal-assignment create` - -##### Example -``` -az kusto cluster-principal-assignment create --cluster-name "kustoclusterrptest4" --principal-id \ -"87654321-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id \ -"12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| -|**--principal-id**|string|The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.|principal_id|principalId| -|**--role**|choice|Cluster principal role.|role|role| -|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| -|**--principal-type**|choice|Principal type.|principal_type|principalType| - -#### Command `az kusto cluster-principal-assignment update` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| -|**--principal-id**|string|The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.|principal_id|principalId| -|**--role**|choice|Cluster principal role.|role|role| -|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| -|**--principal-type**|choice|Principal type.|principal_type|principalType| - -#### Command `az kusto cluster-principal-assignment delete` - -##### Example -``` -az kusto cluster-principal-assignment delete --cluster-name "kustoclusterrptest4" --principal-assignment-name \ -"kustoprincipal1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| - -### group `az kusto data-connection` -#### Command `az kusto data-connection list` - -##### Example -``` -az kusto data-connection list --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-group \ -"kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| - -#### Command `az kusto data-connection show` - -##### Example -``` -az kusto data-connection show --cluster-name "kustoclusterrptest4" --name "DataConnections8" --database-name \ -"KustoDatabase8" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| - -#### Command `az kusto data-connection event-grid create` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|event_grid_location|location| -|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id|storageAccountResourceId| -|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id|eventHubResourceId| -|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_grid_data_format|dataFormat| -|**--ignore-first-record**|boolean|A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file|event_grid_ignore_first_record|ignoreFirstRecord| -|**--blob-storage-event-type**|choice|The name of blob storage event type to process.|event_grid_blob_storage_event_type|blobStorageEventType| - -#### Command `az kusto data-connection event-hub create` - -##### Example -``` -az kusto data-connection event-hub create --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ ---database-name "KustoDatabase8" --location "westus" --consumer-group "testConsumerGroup1" --event-hub-resource-id \ -"/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces\ -/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|event_hub_location|location| -|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id|eventHubResourceId| -|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format|dataFormat| -|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties|eventSystemProperties| -|**--compression**|choice|The event hub messages compression type|event_hub_compression|compression| - -#### Command `az kusto data-connection iot-hub create` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|iot_hub_location|location| -|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id|iotHubResourceId| -|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format|dataFormat| -|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties|eventSystemProperties| -|**--shared-access-policy-name**|string|The name of the share access policy|iot_hub_shared_access_policy_name|sharedAccessPolicyName| - -#### Command `az kusto data-connection event-grid update` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|event_grid_location|location| -|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id|storageAccountResourceId| -|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id|eventHubResourceId| -|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_grid_data_format|dataFormat| -|**--ignore-first-record**|boolean|A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file|event_grid_ignore_first_record|ignoreFirstRecord| -|**--blob-storage-event-type**|choice|The name of blob storage event type to process.|event_grid_blob_storage_event_type|blobStorageEventType| - -#### Command `az kusto data-connection event-hub update` - -##### Example -``` -az kusto data-connection event-hub update --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ ---database-name "KustoDatabase8" --location "westus" --consumer-group "testConsumerGroup1" --event-hub-resource-id \ -"/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces\ -/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|event_hub_location|location| -|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id|eventHubResourceId| -|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format|dataFormat| -|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties|eventSystemProperties| -|**--compression**|choice|The event hub messages compression type|event_hub_compression|compression| - -#### Command `az kusto data-connection iot-hub update` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|iot_hub_location|location| -|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id|iotHubResourceId| -|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format|dataFormat| -|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties|eventSystemProperties| -|**--shared-access-policy-name**|string|The name of the share access policy|iot_hub_shared_access_policy_name|sharedAccessPolicyName| - -#### Command `az kusto data-connection delete` - -##### Example -``` -az kusto data-connection delete --cluster-name "kustoclusterrptest4" --name "kustoeventhubconnection1" --database-name \ -"KustoDatabase8" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| - -#### Command `az kusto data-connection event-grid data-connection-validation` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|event_grid_location|location| -|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id|storageAccountResourceId| -|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id|eventHubResourceId| -|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_grid_data_format|dataFormat| -|**--ignore-first-record**|boolean|A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file|event_grid_ignore_first_record|ignoreFirstRecord| -|**--blob-storage-event-type**|choice|The name of blob storage event type to process.|event_grid_blob_storage_event_type|blobStorageEventType| - -#### Command `az kusto data-connection event-hub data-connection-validation` - -##### Example -``` -az kusto data-connection event-hub data-connection-validation --cluster-name "kustoclusterrptest4" --database-name \ -"KustoDatabase8" --name "DataConnections8" --consumer-group "testConsumerGroup1" --event-hub-resource-id \ -"/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces\ -/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|event_hub_location|location| -|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id|eventHubResourceId| -|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format|dataFormat| -|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties|eventSystemProperties| -|**--compression**|choice|The event hub messages compression type|event_hub_compression|compression| - -#### Command `az kusto data-connection iot-hub data-connection-validation` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| -|**--location**|string|Resource location.|iot_hub_location|location| -|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id|iotHubResourceId| -|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group|consumerGroup| -|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name|tableName| -|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name|mappingRuleName| -|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format|dataFormat| -|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties|eventSystemProperties| -|**--shared-access-policy-name**|string|The name of the share access policy|iot_hub_shared_access_policy_name|sharedAccessPolicyName| - -### group `az kusto database` -#### Command `az kusto database list` - -##### Example -``` -az kusto database list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| - -#### Command `az kusto database show` - -##### Example -``` -az kusto database show --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-group \ -"kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| - -#### Command `az kusto database create` - -##### Example -``` -az kusto database create --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --read-write-database \ -location="westus" soft-delete-period="P1D" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--read-write-database**|object|Class representing a read write database.|read_write_database|ReadWriteDatabase| -|**--read-only-following-database**|object|Class representing a read only following database.|read_only_following_database|ReadOnlyFollowingDatabase| - -#### Command `az kusto database update` - -##### Example -``` -az kusto database update --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --read-write-database \ -soft-delete-period="P1D" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--read-write-database**|object|Class representing a read write database.|read_write_database|ReadWriteDatabase| -|**--read-only-following-database**|object|Class representing a read only following database.|read_only_following_database|ReadOnlyFollowingDatabase| - -#### Command `az kusto database delete` - -##### Example -``` -az kusto database delete --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-group \ -"kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| - -#### Command `az kusto database add-principal` - -##### Example -``` -az kusto database add-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --value \ -name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value \ -name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value \ -name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" \ ---resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--value**|array|The list of Kusto database principals.|value|value| - -#### Command `az kusto database list-principal` - -##### Example -``` -az kusto database list-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ ---resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| - -#### Command `az kusto database remove-principal` - -##### Example -``` -az kusto database remove-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --value \ -name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value \ -name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value \ -name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" \ ---resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--value**|array|The list of Kusto database principals.|value|value| - -### group `az kusto database-principal-assignment` -#### Command `az kusto database-principal-assignment list` - -##### Example -``` -az kusto database-principal-assignment list --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ ---resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| - -#### Command `az kusto database-principal-assignment show` - -##### Example -``` -az kusto database-principal-assignment show --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ ---principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| - -#### Command `az kusto database-principal-assignment create` - -##### Example -``` -az kusto database-principal-assignment create --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ ---principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id \ -"12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| -|**--principal-id**|string|The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.|principal_id|principalId| -|**--role**|choice|Database principal role.|role|role| -|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| -|**--principal-type**|choice|Principal type.|principal_type|principalType| - -#### Command `az kusto database-principal-assignment update` - -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| -|**--principal-id**|string|The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.|principal_id|principalId| -|**--role**|choice|Database principal role.|role|role| -|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| -|**--principal-type**|choice|Principal type.|principal_type|principalType| - -#### Command `az kusto database-principal-assignment delete` - -##### Example -``` -az kusto database-principal-assignment delete --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ ---principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" -``` -##### Parameters -|Option|Type|Description|Path (SDK)|Swagger name| -|------|----|-----------|----------|------------| -|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| -|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| -|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| -|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| +# Azure CLI Module Creation Report + +## EXTENSION +|CLI Extension|Command Groups| +|---------|------------| +|az kusto|[groups](#CommandGroups) + +## GROUPS +### Command groups in `az kusto` extension +|CLI Command Group|Group Swagger name|Commands| +|---------|------------|--------| +|az kusto cluster|Clusters|[commands](#CommandsInClusters)| +|az kusto cluster-principal-assignment|ClusterPrincipalAssignments|[commands](#CommandsInClusterPrincipalAssignments)| +|az kusto database|Databases|[commands](#CommandsInDatabases)| +|az kusto database-principal-assignment|DatabasePrincipalAssignments|[commands](#CommandsInDatabasePrincipalAssignments)| +|az kusto attached-database-configuration|AttachedDatabaseConfigurations|[commands](#CommandsInAttachedDatabaseConfigurations)| +|az kusto data-connection|DataConnections|[commands](#CommandsInDataConnections)| + +## COMMANDS +### Commands in `az kusto attached-database-configuration` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az kusto attached-database-configuration list](#AttachedDatabaseConfigurationsListByCluster)|ListByCluster|[Parameters](#ParametersAttachedDatabaseConfigurationsListByCluster)|[Example](#ExamplesAttachedDatabaseConfigurationsListByCluster)| +|[az kusto attached-database-configuration show](#AttachedDatabaseConfigurationsGet)|Get|[Parameters](#ParametersAttachedDatabaseConfigurationsGet)|[Example](#ExamplesAttachedDatabaseConfigurationsGet)| +|[az kusto attached-database-configuration create](#AttachedDatabaseConfigurationsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersAttachedDatabaseConfigurationsCreateOrUpdate#Create)|[Example](#ExamplesAttachedDatabaseConfigurationsCreateOrUpdate#Create)| +|[az kusto attached-database-configuration update](#AttachedDatabaseConfigurationsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersAttachedDatabaseConfigurationsCreateOrUpdate#Update)|Not Found| +|[az kusto attached-database-configuration delete](#AttachedDatabaseConfigurationsDelete)|Delete|[Parameters](#ParametersAttachedDatabaseConfigurationsDelete)|[Example](#ExamplesAttachedDatabaseConfigurationsDelete)| + +### Commands in `az kusto cluster` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az kusto cluster list](#ClustersListByResourceGroup)|ListByResourceGroup|[Parameters](#ParametersClustersListByResourceGroup)|[Example](#ExamplesClustersListByResourceGroup)| +|[az kusto cluster list](#ClustersList)|List|[Parameters](#ParametersClustersList)|[Example](#ExamplesClustersList)| +|[az kusto cluster show](#ClustersGet)|Get|[Parameters](#ParametersClustersGet)|[Example](#ExamplesClustersGet)| +|[az kusto cluster create](#ClustersCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersClustersCreateOrUpdate#Create)|[Example](#ExamplesClustersCreateOrUpdate#Create)| +|[az kusto cluster update](#ClustersUpdate)|Update|[Parameters](#ParametersClustersUpdate)|[Example](#ExamplesClustersUpdate)| +|[az kusto cluster delete](#ClustersDelete)|Delete|[Parameters](#ParametersClustersDelete)|[Example](#ExamplesClustersDelete)| +|[az kusto cluster add-language-extension](#ClustersAddLanguageExtensions)|AddLanguageExtensions|[Parameters](#ParametersClustersAddLanguageExtensions)|[Example](#ExamplesClustersAddLanguageExtensions)| +|[az kusto cluster detach-follower-database](#ClustersDetachFollowerDatabases)|DetachFollowerDatabases|[Parameters](#ParametersClustersDetachFollowerDatabases)|[Example](#ExamplesClustersDetachFollowerDatabases)| +|[az kusto cluster diagnose-virtual-network](#ClustersDiagnoseVirtualNetwork)|DiagnoseVirtualNetwork|[Parameters](#ParametersClustersDiagnoseVirtualNetwork)|[Example](#ExamplesClustersDiagnoseVirtualNetwork)| +|[az kusto cluster list-follower-database](#ClustersListFollowerDatabases)|ListFollowerDatabases|[Parameters](#ParametersClustersListFollowerDatabases)|[Example](#ExamplesClustersListFollowerDatabases)| +|[az kusto cluster list-language-extension](#ClustersListLanguageExtensions)|ListLanguageExtensions|[Parameters](#ParametersClustersListLanguageExtensions)|[Example](#ExamplesClustersListLanguageExtensions)| +|[az kusto cluster list-sku](#ClustersListSkusByResource)|ListSkusByResource|[Parameters](#ParametersClustersListSkusByResource)|[Example](#ExamplesClustersListSkusByResource)| +|[az kusto cluster list-sku](#ClustersListSkus)|ListSkus|[Parameters](#ParametersClustersListSkus)|[Example](#ExamplesClustersListSkus)| +|[az kusto cluster remove-language-extension](#ClustersRemoveLanguageExtensions)|RemoveLanguageExtensions|[Parameters](#ParametersClustersRemoveLanguageExtensions)|[Example](#ExamplesClustersRemoveLanguageExtensions)| +|[az kusto cluster start](#ClustersStart)|Start|[Parameters](#ParametersClustersStart)|[Example](#ExamplesClustersStart)| +|[az kusto cluster stop](#ClustersStop)|Stop|[Parameters](#ParametersClustersStop)|[Example](#ExamplesClustersStop)| + +### Commands in `az kusto cluster-principal-assignment` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az kusto cluster-principal-assignment list](#ClusterPrincipalAssignmentsList)|List|[Parameters](#ParametersClusterPrincipalAssignmentsList)|[Example](#ExamplesClusterPrincipalAssignmentsList)| +|[az kusto cluster-principal-assignment show](#ClusterPrincipalAssignmentsGet)|Get|[Parameters](#ParametersClusterPrincipalAssignmentsGet)|[Example](#ExamplesClusterPrincipalAssignmentsGet)| +|[az kusto cluster-principal-assignment create](#ClusterPrincipalAssignmentsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersClusterPrincipalAssignmentsCreateOrUpdate#Create)|[Example](#ExamplesClusterPrincipalAssignmentsCreateOrUpdate#Create)| +|[az kusto cluster-principal-assignment update](#ClusterPrincipalAssignmentsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersClusterPrincipalAssignmentsCreateOrUpdate#Update)|Not Found| +|[az kusto cluster-principal-assignment delete](#ClusterPrincipalAssignmentsDelete)|Delete|[Parameters](#ParametersClusterPrincipalAssignmentsDelete)|[Example](#ExamplesClusterPrincipalAssignmentsDelete)| + +### Commands in `az kusto data-connection` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az kusto data-connection list](#DataConnectionsListByDatabase)|ListByDatabase|[Parameters](#ParametersDataConnectionsListByDatabase)|[Example](#ExamplesDataConnectionsListByDatabase)| +|[az kusto data-connection show](#DataConnectionsGet)|Get|[Parameters](#ParametersDataConnectionsGet)|[Example](#ExamplesDataConnectionsGet)| +|[az kusto data-connection event-grid create](#DataConnectionsCreateOrUpdate#Create#EventGrid)|CreateOrUpdate#Create#EventGrid|[Parameters](#ParametersDataConnectionsCreateOrUpdate#Create#EventGrid)|Not Found| +|[az kusto data-connection event-hub create](#DataConnectionsCreateOrUpdate#Create#EventHub)|CreateOrUpdate#Create#EventHub|[Parameters](#ParametersDataConnectionsCreateOrUpdate#Create#EventHub)|[Example](#ExamplesDataConnectionsCreateOrUpdate#Create#EventHub)| +|[az kusto data-connection iot-hub create](#DataConnectionsCreateOrUpdate#Create#IotHub)|CreateOrUpdate#Create#IotHub|[Parameters](#ParametersDataConnectionsCreateOrUpdate#Create#IotHub)|Not Found| +|[az kusto data-connection event-grid update](#DataConnectionsUpdate#EventGrid)|Update#EventGrid|[Parameters](#ParametersDataConnectionsUpdate#EventGrid)|Not Found| +|[az kusto data-connection event-hub update](#DataConnectionsUpdate#EventHub)|Update#EventHub|[Parameters](#ParametersDataConnectionsUpdate#EventHub)|[Example](#ExamplesDataConnectionsUpdate#EventHub)| +|[az kusto data-connection iot-hub update](#DataConnectionsUpdate#IotHub)|Update#IotHub|[Parameters](#ParametersDataConnectionsUpdate#IotHub)|Not Found| +|[az kusto data-connection delete](#DataConnectionsDelete)|Delete|[Parameters](#ParametersDataConnectionsDelete)|[Example](#ExamplesDataConnectionsDelete)| +|[az kusto data-connection event-grid data-connection-validation](#DataConnectionsdataConnectionValidation#EventGrid)|dataConnectionValidation#EventGrid|[Parameters](#ParametersDataConnectionsdataConnectionValidation#EventGrid)|Not Found| +|[az kusto data-connection event-hub data-connection-validation](#DataConnectionsdataConnectionValidation#EventHub)|dataConnectionValidation#EventHub|[Parameters](#ParametersDataConnectionsdataConnectionValidation#EventHub)|[Example](#ExamplesDataConnectionsdataConnectionValidation#EventHub)| +|[az kusto data-connection iot-hub data-connection-validation](#DataConnectionsdataConnectionValidation#IotHub)|dataConnectionValidation#IotHub|[Parameters](#ParametersDataConnectionsdataConnectionValidation#IotHub)|Not Found| + +### Commands in `az kusto database` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az kusto database list](#DatabasesListByCluster)|ListByCluster|[Parameters](#ParametersDatabasesListByCluster)|[Example](#ExamplesDatabasesListByCluster)| +|[az kusto database show](#DatabasesGet)|Get|[Parameters](#ParametersDatabasesGet)|[Example](#ExamplesDatabasesGet)| +|[az kusto database create](#DatabasesCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersDatabasesCreateOrUpdate#Create)|[Example](#ExamplesDatabasesCreateOrUpdate#Create)| +|[az kusto database update](#DatabasesUpdate)|Update|[Parameters](#ParametersDatabasesUpdate)|[Example](#ExamplesDatabasesUpdate)| +|[az kusto database delete](#DatabasesDelete)|Delete|[Parameters](#ParametersDatabasesDelete)|[Example](#ExamplesDatabasesDelete)| +|[az kusto database add-principal](#DatabasesAddPrincipals)|AddPrincipals|[Parameters](#ParametersDatabasesAddPrincipals)|[Example](#ExamplesDatabasesAddPrincipals)| +|[az kusto database list-principal](#DatabasesListPrincipals)|ListPrincipals|[Parameters](#ParametersDatabasesListPrincipals)|[Example](#ExamplesDatabasesListPrincipals)| +|[az kusto database remove-principal](#DatabasesRemovePrincipals)|RemovePrincipals|[Parameters](#ParametersDatabasesRemovePrincipals)|[Example](#ExamplesDatabasesRemovePrincipals)| + +### Commands in `az kusto database-principal-assignment` group +|CLI Command|Operation Swagger name|Parameters|Examples| +|---------|------------|--------|-----------| +|[az kusto database-principal-assignment list](#DatabasePrincipalAssignmentsList)|List|[Parameters](#ParametersDatabasePrincipalAssignmentsList)|[Example](#ExamplesDatabasePrincipalAssignmentsList)| +|[az kusto database-principal-assignment show](#DatabasePrincipalAssignmentsGet)|Get|[Parameters](#ParametersDatabasePrincipalAssignmentsGet)|[Example](#ExamplesDatabasePrincipalAssignmentsGet)| +|[az kusto database-principal-assignment create](#DatabasePrincipalAssignmentsCreateOrUpdate#Create)|CreateOrUpdate#Create|[Parameters](#ParametersDatabasePrincipalAssignmentsCreateOrUpdate#Create)|[Example](#ExamplesDatabasePrincipalAssignmentsCreateOrUpdate#Create)| +|[az kusto database-principal-assignment update](#DatabasePrincipalAssignmentsCreateOrUpdate#Update)|CreateOrUpdate#Update|[Parameters](#ParametersDatabasePrincipalAssignmentsCreateOrUpdate#Update)|Not Found| +|[az kusto database-principal-assignment delete](#DatabasePrincipalAssignmentsDelete)|Delete|[Parameters](#ParametersDatabasePrincipalAssignmentsDelete)|[Example](#ExamplesDatabasePrincipalAssignmentsDelete)| + + +## COMMAND DETAILS + +### group `az kusto attached-database-configuration` +#### Command `az kusto attached-database-configuration list` + +##### Example +``` +az kusto attached-database-configuration list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto attached-database-configuration show` + +##### Example +``` +az kusto attached-database-configuration show --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| + +#### Command `az kusto attached-database-configuration create` + +##### Example +``` +az kusto attached-database-configuration create --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --location "southcentralus" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-1234567\ +89098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader" --database-name \ +"kustodatabase" --default-principals-modification-kind "Union" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| +|**--location**|string|Resource location.|location|location| +|**--database-name**|string|The name of the database which you would like to attach, use * if you want to follow all current and future databases.|database_name|databaseName| +|**--cluster-resource-id**|string|The resource id of the cluster where the databases you would like to attach reside.|cluster_resource_id|clusterResourceId| +|**--default-principals-modification-kind**|choice|The default principals modification kind|default_principals_modification_kind|defaultPrincipalsModificationKind| + +#### Command `az kusto attached-database-configuration update` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| +|**--location**|string|Resource location.|location|location| +|**--database-name**|string|The name of the database which you would like to attach, use * if you want to follow all current and future databases.|database_name|databaseName| +|**--cluster-resource-id**|string|The resource id of the cluster where the databases you would like to attach reside.|cluster_resource_id|clusterResourceId| +|**--default-principals-modification-kind**|choice|The default principals modification kind|default_principals_modification_kind|defaultPrincipalsModificationKind| + +#### Command `az kusto attached-database-configuration delete` + +##### Example +``` +az kusto attached-database-configuration delete --name "attachedDatabaseConfigurations1" --cluster-name \ +"kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--attached-database-configuration-name**|string|The name of the attached database configuration.|attached_database_configuration_name|attachedDatabaseConfigurationName| + +### group `az kusto cluster` +#### Command `az kusto cluster list` + +##### Example +``` +az kusto cluster list --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| + +#### Command `az kusto cluster list` + +##### Example +``` +az kusto cluster list +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +#### Command `az kusto cluster show` + +##### Example +``` +az kusto cluster show --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster create` + +##### Example +``` +az kusto cluster create --name "kustoclusterrptest4" --type "SystemAssigned" --location "southcentralus" \ +--enable-double-encryption false --enable-purge true --enable-streaming-ingest true --sku name="Standard_D11_v2" \ +capacity=2 tier="Standard" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--location**|string|The geo-location where the resource lives|location|location| +|**--sku**|object|The SKU of the cluster.|sku|sku| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--zones**|array|The availability zones of the cluster.|zones|zones| +|**--trusted-external-tenants**|array|The cluster's external tenants.|trusted_external_tenants|trustedExternalTenants| +|**--optimized-autoscale**|object|Optimized auto scale definition.|optimized_autoscale|optimizedAutoscale| +|**--enable-disk-encryption**|boolean|A boolean value that indicates if the cluster's disks are encrypted.|enable_disk_encryption|enableDiskEncryption| +|**--enable-streaming-ingest**|boolean|A boolean value that indicates if the streaming ingest is enabled.|enable_streaming_ingest|enableStreamingIngest| +|**--virtual-network-configuration**|object|Virtual network definition.|virtual_network_configuration|virtualNetworkConfiguration| +|**--key-vault-properties**|object|KeyVault properties for the cluster encryption.|key_vault_properties|keyVaultProperties| +|**--enable-purge**|boolean|A boolean value that indicates if the purge operations are enabled.|enable_purge|enablePurge| +|**--enable-double-encryption**|boolean|A boolean value that indicates if double encryption is enabled.|enable_double_encryption|enableDoubleEncryption| +|**--type**|sealed-choice|The identity type.|type|type| +|**--user-assigned-identities**|dictionary|The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.|user_assigned_identities|userAssignedIdentities| + +#### Command `az kusto cluster update` + +##### Example +``` +az kusto cluster update --name "kustoclusterrptest4" --type "SystemAssigned" --location "southcentralus" \ +--enable-purge true --enable-streaming-ingest true --key-vault-properties key-name="keyName" \ +key-vault-uri="https://dummy.keyvault.com" key-version="keyVersion" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--tags**|dictionary|Resource tags.|tags|tags| +|**--location**|string|Resource location.|location|location| +|**--sku**|object|The SKU of the cluster.|sku|sku| +|**--trusted-external-tenants**|array|The cluster's external tenants.|trusted_external_tenants|trustedExternalTenants| +|**--optimized-autoscale**|object|Optimized auto scale definition.|optimized_autoscale|optimizedAutoscale| +|**--enable-disk-encryption**|boolean|A boolean value that indicates if the cluster's disks are encrypted.|enable_disk_encryption|enableDiskEncryption| +|**--enable-streaming-ingest**|boolean|A boolean value that indicates if the streaming ingest is enabled.|enable_streaming_ingest|enableStreamingIngest| +|**--virtual-network-configuration**|object|Virtual network definition.|virtual_network_configuration|virtualNetworkConfiguration| +|**--key-vault-properties**|object|KeyVault properties for the cluster encryption.|key_vault_properties|keyVaultProperties| +|**--enable-purge**|boolean|A boolean value that indicates if the purge operations are enabled.|enable_purge|enablePurge| +|**--enable-double-encryption**|boolean|A boolean value that indicates if double encryption is enabled.|enable_double_encryption|enableDoubleEncryption| +|**--type**|sealed-choice|The identity type.|type|type| +|**--user-assigned-identities**|dictionary|The list of user identities associated with the Kusto cluster. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.|user_assigned_identities|userAssignedIdentities| + +#### Command `az kusto cluster delete` + +##### Example +``` +az kusto cluster delete --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster add-language-extension` + +##### Example +``` +az kusto cluster add-language-extension --name "kustoclusterrptest4" --value language-extension-name="PYTHON" --value \ +language-extension-name="R" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--value**|array|The list of language extensions.|value|value| + +#### Command `az kusto cluster detach-follower-database` + +##### Example +``` +az kusto cluster detach-follower-database --name "kustoclusterrptest4" --attached-database-configuration-name \ +"myAttachedDatabaseConfiguration" --cluster-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGr\ +oups/kustorptest/providers/Microsoft.Kusto/clusters/leader4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--cluster-resource-id**|string|Resource id of the cluster that follows a database owned by this cluster.|cluster_resource_id|clusterResourceId| +|**--attached-database-configuration-name**|string|Resource name of the attached database configuration in the follower cluster.|attached_database_configuration_name|attachedDatabaseConfigurationName| + +#### Command `az kusto cluster diagnose-virtual-network` + +##### Example +``` +az kusto cluster diagnose-virtual-network --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster list-follower-database` + +##### Example +``` +az kusto cluster list-follower-database --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster list-language-extension` + +##### Example +``` +az kusto cluster list-language-extension --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster list-sku` + +##### Example +``` +az kusto cluster list-sku --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster list-sku` + +##### Example +``` +az kusto cluster list-sku +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +#### Command `az kusto cluster remove-language-extension` + +##### Example +``` +az kusto cluster remove-language-extension --name "kustoclusterrptest4" --value language-extension-name="PYTHON" \ +--value language-extension-name="R" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--value**|array|The list of language extensions.|value|value| + +#### Command `az kusto cluster start` + +##### Example +``` +az kusto cluster start --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster stop` + +##### Example +``` +az kusto cluster stop --name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +### group `az kusto cluster-principal-assignment` +#### Command `az kusto cluster-principal-assignment list` + +##### Example +``` +az kusto cluster-principal-assignment list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto cluster-principal-assignment show` + +##### Example +``` +az kusto cluster-principal-assignment show --cluster-name "kustoclusterrptest4" --principal-assignment-name \ +"kustoprincipal1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| + +#### Command `az kusto cluster-principal-assignment create` + +##### Example +``` +az kusto cluster-principal-assignment create --cluster-name "kustoclusterrptest4" --principal-id \ +"87654321-1234-1234-1234-123456789123" --principal-type "App" --role "AllDatabasesAdmin" --tenant-id \ +"12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| +|**--principal-id**|string|The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.|principal_id|principalId| +|**--role**|choice|Cluster principal role.|role|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| +|**--principal-type**|choice|Principal type.|principal_type|principalType| + +#### Command `az kusto cluster-principal-assignment update` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| +|**--principal-id**|string|The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.|principal_id|principalId| +|**--role**|choice|Cluster principal role.|role|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| +|**--principal-type**|choice|Principal type.|principal_type|principalType| + +#### Command `az kusto cluster-principal-assignment delete` + +##### Example +``` +az kusto cluster-principal-assignment delete --cluster-name "kustoclusterrptest4" --principal-assignment-name \ +"kustoprincipal1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| + +### group `az kusto data-connection` +#### Command `az kusto data-connection list` + +##### Example +``` +az kusto data-connection list --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-group \ +"kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| + +#### Command `az kusto data-connection show` + +##### Example +``` +az kusto data-connection show --cluster-name "kustoclusterrptest4" --name "DataConnections8" --database-name \ +"KustoDatabase8" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| + +#### Command `az kusto data-connection event-grid create` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|event_grid_location|location| +|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id|storageAccountResourceId| +|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id|eventHubResourceId| +|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_grid_data_format|dataFormat| +|**--ignore-first-record**|boolean|A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file|event_grid_ignore_first_record|ignoreFirstRecord| +|**--blob-storage-event-type**|choice|The name of blob storage event type to process.|event_grid_blob_storage_event_type|blobStorageEventType| + +#### Command `az kusto data-connection event-hub create` + +##### Example +``` +az kusto data-connection event-hub create --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ +--database-name "KustoDatabase8" --location "southcentralus" --consumer-group "testConsumerGroup1" \ +--event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ +soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|event_hub_location|location| +|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id|eventHubResourceId| +|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format|dataFormat| +|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties|eventSystemProperties| +|**--compression**|choice|The event hub messages compression type|event_hub_compression|compression| + +#### Command `az kusto data-connection iot-hub create` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|iot_hub_location|location| +|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id|iotHubResourceId| +|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format|dataFormat| +|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties|eventSystemProperties| +|**--shared-access-policy-name**|string|The name of the share access policy|iot_hub_shared_access_policy_name|sharedAccessPolicyName| + +#### Command `az kusto data-connection event-grid update` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|event_grid_location|location| +|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id|storageAccountResourceId| +|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id|eventHubResourceId| +|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_grid_data_format|dataFormat| +|**--ignore-first-record**|boolean|A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file|event_grid_ignore_first_record|ignoreFirstRecord| +|**--blob-storage-event-type**|choice|The name of blob storage event type to process.|event_grid_blob_storage_event_type|blobStorageEventType| + +#### Command `az kusto data-connection event-hub update` + +##### Example +``` +az kusto data-connection event-hub update --cluster-name "kustoclusterrptest4" --name "DataConnections8" \ +--database-name "KustoDatabase8" --location "southcentralus" --consumer-group "testConsumerGroup1" \ +--event-hub-resource-id "/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Micro\ +soft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|event_hub_location|location| +|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id|eventHubResourceId| +|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format|dataFormat| +|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties|eventSystemProperties| +|**--compression**|choice|The event hub messages compression type|event_hub_compression|compression| + +#### Command `az kusto data-connection iot-hub update` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|iot_hub_location|location| +|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id|iotHubResourceId| +|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format|dataFormat| +|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties|eventSystemProperties| +|**--shared-access-policy-name**|string|The name of the share access policy|iot_hub_shared_access_policy_name|sharedAccessPolicyName| + +#### Command `az kusto data-connection delete` + +##### Example +``` +az kusto data-connection delete --cluster-name "kustoclusterrptest4" --name "kustoeventhubconnection1" --database-name \ +"KustoDatabase8" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| + +#### Command `az kusto data-connection event-grid data-connection-validation` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|event_grid_location|location| +|**--storage-account-resource-id**|string|The resource ID of the storage account where the data resides.|event_grid_storage_account_resource_id|storageAccountResourceId| +|**--event-hub-resource-id**|string|The resource ID where the event grid is configured to send events.|event_grid_event_hub_resource_id|eventHubResourceId| +|**--consumer-group**|string|The event hub consumer group.|event_grid_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_grid_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_grid_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_grid_data_format|dataFormat| +|**--ignore-first-record**|boolean|A Boolean value that, if set to true, indicates that ingestion should ignore the first record of every file|event_grid_ignore_first_record|ignoreFirstRecord| +|**--blob-storage-event-type**|choice|The name of blob storage event type to process.|event_grid_blob_storage_event_type|blobStorageEventType| + +#### Command `az kusto data-connection event-hub data-connection-validation` + +##### Example +``` +az kusto data-connection event-hub data-connection-validation --cluster-name "kustoclusterrptest4" --database-name \ +"KustoDatabase8" --name "DataConnections8" --consumer-group "testConsumerGroup1" --event-hub-resource-id \ +"/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces\ +/eventhubTestns1/eventhubs/eventhubTest1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|event_hub_location|location| +|**--event-hub-resource-id**|string|The resource ID of the event hub to be used to create a data connection.|event_hub_event_hub_resource_id|eventHubResourceId| +|**--consumer-group**|string|The event hub consumer group.|event_hub_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|event_hub_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|event_hub_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|event_hub_data_format|dataFormat| +|**--event-system-properties**|array|System properties of the event hub|event_hub_event_system_properties|eventSystemProperties| +|**--compression**|choice|The event hub messages compression type|event_hub_compression|compression| + +#### Command `az kusto data-connection iot-hub data-connection-validation` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--data-connection-name**|string|The name of the data connection.|data_connection_name|dataConnectionName| +|**--location**|string|Resource location.|iot_hub_location|location| +|**--iot-hub-resource-id**|string|The resource ID of the Iot hub to be used to create a data connection.|iot_hub_iot_hub_resource_id|iotHubResourceId| +|**--consumer-group**|string|The iot hub consumer group.|iot_hub_consumer_group|consumerGroup| +|**--table-name**|string|The table where the data should be ingested. Optionally the table information can be added to each message.|iot_hub_table_name|tableName| +|**--mapping-rule-name**|string|The mapping rule to be used to ingest the data. Optionally the mapping information can be added to each message.|iot_hub_mapping_rule_name|mappingRuleName| +|**--data-format**|choice|The data format of the message. Optionally the data format can be added to each message.|iot_hub_data_format|dataFormat| +|**--event-system-properties**|array|System properties of the iot hub|iot_hub_event_system_properties|eventSystemProperties| +|**--shared-access-policy-name**|string|The name of the share access policy|iot_hub_shared_access_policy_name|sharedAccessPolicyName| + +### group `az kusto database` +#### Command `az kusto database list` + +##### Example +``` +az kusto database list --cluster-name "kustoclusterrptest4" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| + +#### Command `az kusto database show` + +##### Example +``` +az kusto database show --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-group \ +"kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| + +#### Command `az kusto database create` + +##### Example +``` +az kusto database create --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --read-write-database \ +location="southcentralus" soft-delete-period="P1D" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--read-write-database**|object|Class representing a read write database.|read_write_database|ReadWriteDatabase| +|**--read-only-following-database**|object|Class representing a read only following database.|read_only_following_database|ReadOnlyFollowingDatabase| + +#### Command `az kusto database update` + +##### Example +``` +az kusto database update --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --read-write-database \ +soft-delete-period="P1D" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--read-write-database**|object|Class representing a read write database.|read_write_database|ReadWriteDatabase| +|**--read-only-following-database**|object|Class representing a read only following database.|read_only_following_database|ReadOnlyFollowingDatabase| + +#### Command `az kusto database delete` + +##### Example +``` +az kusto database delete --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --resource-group \ +"kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| + +#### Command `az kusto database add-principal` + +##### Example +``` +az kusto database add-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --value \ +name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value \ +name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value \ +name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" \ +--resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--value**|array|The list of Kusto database principals.|value|value| + +#### Command `az kusto database list-principal` + +##### Example +``` +az kusto database list-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" \ +--resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| + +#### Command `az kusto database remove-principal` + +##### Example +``` +az kusto database remove-principal --cluster-name "kustoclusterrptest4" --database-name "KustoDatabase8" --value \ +name="Some User" type="User" app-id="" email="user@microsoft.com" fqn="aaduser=some_guid" role="Admin" --value \ +name="Kusto" type="Group" app-id="" email="kusto@microsoft.com" fqn="aadgroup=some_guid" role="Viewer" --value \ +name="SomeApp" type="App" app-id="some_guid_app_id" email="" fqn="aadapp=some_guid_app_id" role="Admin" \ +--resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--value**|array|The list of Kusto database principals.|value|value| + +### group `az kusto database-principal-assignment` +#### Command `az kusto database-principal-assignment list` + +##### Example +``` +az kusto database-principal-assignment list --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ +--resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| + +#### Command `az kusto database-principal-assignment show` + +##### Example +``` +az kusto database-principal-assignment show --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ +--principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| + +#### Command `az kusto database-principal-assignment create` + +##### Example +``` +az kusto database-principal-assignment create --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ +--principal-id "87654321-1234-1234-1234-123456789123" --principal-type "App" --role "Admin" --tenant-id \ +"12345678-1234-1234-1234-123456789123" --principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| +|**--principal-id**|string|The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.|principal_id|principalId| +|**--role**|choice|Database principal role.|role|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| +|**--principal-type**|choice|Principal type.|principal_type|principalType| + +#### Command `az kusto database-principal-assignment update` + +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| +|**--principal-id**|string|The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.|principal_id|principalId| +|**--role**|choice|Database principal role.|role|role| +|**--tenant-id**|string|The tenant id of the principal|tenant_id|tenantId| +|**--principal-type**|choice|Principal type.|principal_type|principalType| + +#### Command `az kusto database-principal-assignment delete` + +##### Example +``` +az kusto database-principal-assignment delete --cluster-name "kustoclusterrptest4" --database-name "Kustodatabase8" \ +--principal-assignment-name "kustoprincipal1" --resource-group "kustorptest" +``` +##### Parameters +|Option|Type|Description|Path (SDK)|Swagger name| +|------|----|-----------|----------|------------| +|**--resource-group-name**|string|The name of the resource group containing the Kusto cluster.|resource_group_name|resourceGroupName| +|**--cluster-name**|string|The name of the Kusto cluster.|cluster_name|clusterName| +|**--database-name**|string|The name of the database in the Kusto cluster.|database_name|databaseName| +|**--principal-assignment-name**|string|The name of the Kusto principalAssignment.|principal_assignment_name|principalAssignmentName| diff --git a/src/kusto/setup.py b/src/kusto/setup.py index aefcd8f8ef7..9f4a85de1fb 100644 --- a/src/kusto/setup.py +++ b/src/kusto/setup.py @@ -1,58 +1,58 @@ -#!/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 - -# HISTORY.rst entry. -VERSION = '0.1.0' -try: - from azext_kusto.manual.version import VERSION -except ImportError: - pass - -# 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.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'License :: OSI Approved :: MIT License', -] - -DEPENDENCIES = [] - -try: - from azext_kusto.manual.dependency import DEPENDENCIES -except ImportError: - pass - -with open('README.md', 'r', encoding='utf-8') as f: - README = f.read() -with open('HISTORY.rst', 'r', encoding='utf-8') as f: - HISTORY = f.read() - -setup( - name='kusto', - version=VERSION, - description='Microsoft Azure Command-Line Tools KustoManagementClient Extension', - author='Microsoft Corporation', - author_email='azpycli@microsoft.com', - url='https://github.com/Azure/azure-cli-extensions/tree/master/src/kusto', - long_description=README + '\n\n' + HISTORY, - license='MIT', - classifiers=CLASSIFIERS, - packages=find_packages(), - install_requires=DEPENDENCIES, - package_data={'azext_kusto': ['azext_metadata.json']}, -) +#!/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 + +# HISTORY.rst entry. +VERSION = '0.1.0' +try: + from azext_kusto.manual.version import VERSION +except ImportError: + pass + +# 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.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [] + +try: + from azext_kusto.manual.dependency import DEPENDENCIES +except ImportError: + pass + +with open('README.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='kusto', + version=VERSION, + description='Microsoft Azure Command-Line Tools KustoManagementClient Extension', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli-extensions/tree/master/src/kusto', + long_description=README + '\n\n' + HISTORY, + license='MIT', + classifiers=CLASSIFIERS, + packages=find_packages(), + install_requires=DEPENDENCIES, + package_data={'azext_kusto': ['azext_metadata.json']}, +)