Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/kusto/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. :changelog:
Release History
===============
0.1.0
++++++
* Initial release.
.. :changelog:

Release History
===============

0.1.0
++++++
* Initial release.
96 changes: 50 additions & 46 deletions src/kusto/azext_kusto/__init__.py
Original file line number Diff line number Diff line change
@@ -1,46 +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


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
kusto_custom = CliCommandType(
operations_tmpl='azext_kusto.custom#{}',
client_factory=cf_kusto)
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
34 changes: 17 additions & 17 deletions src/kusto/azext_kusto/action.py
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions src/kusto/azext_kusto/azext_metadata.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.3.1"
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.11.0"
}
34 changes: 17 additions & 17 deletions src/kusto/azext_kusto/custom.py
Original file line number Diff line number Diff line change
@@ -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
24 changes: 12 additions & 12 deletions src/kusto/azext_kusto/generated/__init__.py
Original file line number Diff line number Diff line change
@@ -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__)
79 changes: 40 additions & 39 deletions src/kusto/azext_kusto/generated/_client_factory.py
Original file line number Diff line number Diff line change
@@ -1,39 +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(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from ..vendored_sdks.kusto import KustoManagementClient
return get_mgmt_service_client(cli_ctx, KustoManagementClient)


def cf_cluster(cli_ctx, *_):
return cf_kusto(cli_ctx).cluster


def cf_cluster_principal_assignment(cli_ctx, *_):
return cf_kusto(cli_ctx).cluster_principal_assignment


def cf_database(cli_ctx, *_):
return cf_kusto(cli_ctx).database


def cf_database_principal_assignment(cli_ctx, *_):
return cf_kusto(cli_ctx).database_principal_assignment


def cf_attached_database_configuration(cli_ctx, *_):
return cf_kusto(cli_ctx).attached_database_configuration


def cf_data_connection(cli_ctx, *_):
return cf_kusto(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 ..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
Loading