Skip to content

Commit

Permalink
Generated from e032abe91d6f8e68d4c978ee432e3ad48ef70d5b
Browse files Browse the repository at this point in the history
Kusto: update java readme
  • Loading branch information
SDK Automation committed Jul 21, 2020
1 parent ac2694e commit 694334e
Show file tree
Hide file tree
Showing 37 changed files with 3,801 additions and 2,207 deletions.
4 changes: 2 additions & 2 deletions src/kusto/azext_kusto/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def __init__(self, cli_ctx=None):
kusto_custom = CliCommandType(
operations_tmpl='azext_kusto.custom#{}',
client_factory=cf_kusto)
super(KustoManagementClientCommandsLoader, self).__init__(cli_ctx=cli_ctx,
custom_command_type=kusto_custom)
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
Expand Down
424 changes: 331 additions & 93 deletions src/kusto/azext_kusto/generated/_help.py

Large diffs are not rendered by default.

355 changes: 207 additions & 148 deletions src/kusto/azext_kusto/generated/_params.py

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions src/kusto/azext_kusto/generated/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,3 @@
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------


def example_name_or_id_validator(cmd, namespace):
from azure.cli.core.commands.client_factory import get_subscription_id
from msrestazure.tools import is_valid_resource_id, resource_id
if namespace.storage_account:
if not is_valid_resource_id(namespace.RESOURCE):
namespace.storage_account = resource_id(
subscription=get_subscription_id(cmd.cli_ctx),
resource_group=namespace.resource_group_name,
namespace='Microsoft.Storage',
type='storageAccounts',
name=namespace.storage_account
)
8 changes: 4 additions & 4 deletions src/kusto/azext_kusto/generated/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use
return d


class AddLanguageExtensionsValue(argparse._AppendAction):
class AddClustersValue(argparse._AppendAction):
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_action(values, option_string)
super(AddLanguageExtensionsValue, self).__call__(parser, namespace, action, option_string)
super(AddClustersValue, self).__call__(parser, namespace, action, option_string)

def get_action(self, values, option_string): # pylint: disable=no-self-use
try:
Expand Down Expand Up @@ -216,10 +216,10 @@ def get_action(self, values, option_string): # pylint: disable=no-self-use
return d


class AddValue(argparse._AppendAction):
class AddDatabasesValue(argparse._AppendAction):
def __call__(self, parser, namespace, values, option_string=None):
action = self.get_action(values, option_string)
super(AddValue, self).__call__(parser, namespace, action, option_string)
super(AddDatabasesValue, self).__call__(parser, namespace, action, option_string)

def get_action(self, values, option_string): # pylint: disable=no-self-use
try:
Expand Down
18 changes: 9 additions & 9 deletions src/kusto/azext_kusto/generated/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def load_command_table(self, _):
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.wait_command('wait')
g.custom_wait_command('wait', 'kusto_cluster_show')

from azext_kusto.generated._client_factory import cf_cluster_principal_assignment
kusto_cluster_principal_assignment = CliCommandType(
Expand All @@ -47,7 +47,7 @@ def load_command_table(self, _):
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)
g.wait_command('wait')
g.custom_wait_command('wait', 'kusto_cluster_principal_assignment_show')

from azext_kusto.generated._client_factory import cf_database
kusto_database = CliCommandType(
Expand All @@ -62,7 +62,7 @@ def load_command_table(self, _):
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.wait_command('wait')
g.custom_wait_command('wait', 'kusto_database_show')

from azext_kusto.generated._client_factory import cf_database_principal_assignment
kusto_database_principal_assignment = CliCommandType(
Expand All @@ -76,7 +76,7 @@ def load_command_table(self, _):
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)
g.wait_command('wait')
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(
Expand All @@ -90,7 +90,7 @@ def load_command_table(self, _):
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)
g.wait_command('wait')
g.custom_wait_command('wait', 'kusto_attached_database_configuration_show')

from azext_kusto.generated._client_factory import cf_data_connection
kusto_data_connection = CliCommandType(
Expand All @@ -109,9 +109,9 @@ def load_command_table(self, _):
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)
g.custom_command('event-grid data-connection-validation', 'kusto_data_connection_event_grid_data_connection_val'
'idation')
'idation', supports_no_wait=True)
g.custom_command('event-hub data-connection-validation', 'kusto_data_connection_event_hub_data_connection_valid'
'ation')
'ation', supports_no_wait=True)
g.custom_command('iot-hub data-connection-validation', 'kusto_data_connection_iot_hub_data_connection_validatio'
'n')
g.wait_command('wait')
'n', supports_no_wait=True)
g.custom_wait_command('wait', 'kusto_data_connection_show')
Loading

0 comments on commit 694334e

Please sign in to comment.